[13:27:55]ConnectInit Can't connect to host [13:27:56]ConnectInit Can't take IP for lk.salyk.kg [13:27:56]CommunicateWithHost connect error [13:27:56]CommunicateWithHost err = -1 [13:27:56]OFD Sender: Server communicate error [13:28:01]OFD Sender: Processing packet 111739 [packets to send 230, broken 37] [13:28:01]ProducePacketName [13:28:01]name=ofd_packets/00111739 [13:28:01]OFD Sender: To server: 嚂鰌G, [13:28:01]CommunicateWithHost lk.salyk.kg:30040 [13:28:01]ConnectInit lk.salyk.kg [13:28:02]Connected sock=7 [13:28:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D0 90 07 01 FC A7 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 31 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 BD 00 00 00 F4 03 04 00 CC 5F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B4 01 00 35 04 06 00 71 67 27 6F 38 4D AD E4 33 29 93 89 38 85 [13:28:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 15 53 47 00 FA 8F 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 30 38 37 35 30 38 33 10 04 04 00 7B B4 01 00 F4 03 04 00 1C 17 75 66 B6 04 01 00 00 E6 F9 BD 0C AE 38 2D CC [13:28:02]CommunicateWithHost err = 0 [13:28:02]CheckOFDResponse [13:28:02]1017 (14) - 77093643461234 [13:28:02]1041 (16) - 0000000000875083 [13:28:02]1040 (4) - 111739 [13:28:02]1012 (4) - 21.06.2024 06:01 [13:28:02]1206 (1) - 0 [13:28:02]OFD Sender: Remove packet 111739 [13:28:02]ProducePacketName [13:28:02]name=ofd_packets/00111739 [13:28:02]NVStorageDeleteData [13:28:02]OFD Sender: Processing packet 111740 [packets to send 229, broken 37] [13:28:02]ProducePacketName [13:28:02]name=ofd_packets/00111740 [13:28:02]OFD Sender: To server: 嚂鰌G, [13:28:02]CommunicateWithHost lk.salyk.kg:30040 [13:28:02]ConnectInit lk.salyk.kg [13:28:02]Connected sock=7 [13:28:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 01 3A 07 01 B3 13 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 BE 00 00 00 F4 03 04 00 22 60 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B4 01 00 35 04 06 00 FF E1 69 5E 99 B8 A2 C6 02 F3 3A 8D 4A F3 [13:28:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 87 F4 47 00 13 12 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 30 38 37 35 30 38 33 10 04 04 00 7C B4 01 00 F4 03 04 00 1D 17 75 66 B6 04 01 00 00 3D 8C 27 4A 9B 93 93 A8 [13:28:03]CommunicateWithHost err = 0 [13:28:03]CheckOFDResponse [13:28:03]1017 (14) - 77093643461234 [13:28:03]1041 (16) - 0000000000875083 [13:28:03]1040 (4) - 111740 [13:28:03]1012 (4) - 21.06.2024 06:01 [13:28:03]1206 (1) - 0 [13:28:03]OFD Sender: Remove packet 111740 [13:28:03]ProducePacketName [13:28:03]name=ofd_packets/00111740 [13:28:03]NVStorageDeleteData [13:28:03]OFD Sender: Processing packet 111741 [packets to send 228, broken 37] [13:28:03]ProducePacketName [13:28:03]name=ofd_packets/00111741 [13:28:03]OFD Sender: To server: 嚂鰌G, [13:28:03]CommunicateWithHost lk.salyk.kg:30040 [13:28:03]ConnectInit lk.salyk.kg [13:28:03]Connected sock=7 [13:28:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 97 22 07 01 5E AB 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 BF 00 00 00 F4 03 04 00 99 60 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B4 01 00 35 04 06 00 94 52 83 AB B0 37 02 F3 0C 97 87 ED B9 0D [13:28:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 93 AD 47 00 FB 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 30 38 37 35 30 38 33 10 04 04 00 7D B4 01 00 F4 03 04 00 1E 17 75 66 B6 04 01 00 00 3B EC 97 72 1D 48 C0 C2 [13:28:03]CommunicateWithHost err = 0 [13:28:03]CheckOFDResponse [13:28:03]1017 (14) - 77093643461234 [13:28:03]1041 (16) - 0000000000875083 [13:28:03]1040 (4) - 111741 [13:28:03]1012 (4) - 21.06.2024 06:01 [13:28:03]1206 (1) - 0 [13:28:03]OFD Sender: Remove packet 111741 [13:28:03]ProducePacketName [13:28:03]name=ofd_packets/00111741 [13:28:03]NVStorageDeleteData [13:28:04]OFD Sender: Processing packet 111742 [packets to send 227, broken 37] [13:28:04]ProducePacketName [13:28:04]name=ofd_packets/00111742 [13:28:04]OFD Sender: To server: 嚂鰌G, [13:28:04]CommunicateWithHost lk.salyk.kg:30040 [13:28:04]ConnectInit lk.salyk.kg [13:28:04]Connected sock=7 [13:28:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 99 8F 07 01 C8 65 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 CF 60 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B4 01 00 35 04 06 00 C2 88 6E FB 93 6D 32 F3 BF BA 93 B2 07 8D [13:28:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D5 18 47 00 F7 1D 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 30 38 37 35 30 38 33 10 04 04 00 7E B4 01 00 F4 03 04 00 1E 17 75 66 B6 04 01 00 00 29 04 9A E9 03 BB BF A6 [13:28:04]CommunicateWithHost err = 0 [13:28:04]CheckOFDResponse [13:28:04]1017 (14) - 77093643461234 [13:28:04]1041 (16) - 0000000000875083 [13:28:04]1040 (4) - 111742 [13:28:04]1012 (4) - 21.06.2024 06:01 [13:28:04]1206 (1) - 0 [13:28:04]OFD Sender: Remove packet 111742 [13:28:04]ProducePacketName [13:28:04]name=ofd_packets/00111742 [13:28:04]NVStorageDeleteData [13:28:05]OFD Sender: Processing packet 111743 [packets to send 226, broken 37] [13:28:05]ProducePacketName [13:28:05]name=ofd_packets/00111743 [13:28:05]OFD Sender: To server: 嚂鰌G, [13:28:05]CommunicateWithHost lk.salyk.kg:30040 [13:28:05]ConnectInit lk.salyk.kg [13:28:05]Connected sock=7 [13:28:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CD EE 07 01 D6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 C1 00 00 00 F4 03 04 00 D4 61 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B4 01 00 35 04 06 00 FE 5D C6 21 3E 98 66 78 1C 23 55 76 89 3C [13:28:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 80 05 47 00 F1 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B4 01 00 F4 03 04 00 1F 17 75 66 B6 04 01 00 00 8A 28 71 FC 68 20 F2 96 [13:28:05]CommunicateWithHost err = 0 [13:28:05]CheckOFDResponse [13:28:05]1017 (14) - 77093643461234 [13:28:05]1041 (16) - 0000000000875083 [13:28:05]1040 (4) - 111743 [13:28:05]1012 (4) - 21.06.2024 06:01 [13:28:05]1206 (1) - 0 [13:28:05]OFD Sender: Remove packet 111743 [13:28:05]ProducePacketName [13:28:05]name=ofd_packets/00111743 [13:28:05]NVStorageDeleteData [13:28:05]OFD Sender: Processing packet 111744 [packets to send 225, broken 37] [13:28:05]ProducePacketName [13:28:05]name=ofd_packets/00111744 [13:28:05]OFD Sender: To server: 嚂鰌G, [13:28:05]CommunicateWithHost lk.salyk.kg:30040 [13:28:05]ConnectInit lk.salyk.kg [13:28:06]Connected sock=7 [13:28:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B9 3F 07 01 9F B8 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 F6 61 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B4 01 00 35 04 06 00 42 62 02 C9 35 2E 03 8A BE 1A A8 22 1E 97 [13:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E9 C5 47 00 E4 49 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 30 38 37 35 30 38 33 10 04 04 00 80 B4 01 00 F4 03 04 00 20 17 75 66 B6 04 01 00 00 26 01 3E 61 0F A9 C2 02 [13:28:06]CommunicateWithHost err = 0 [13:28:06]CheckOFDResponse [13:28:06]1017 (14) - 77093643461234 [13:28:06]1041 (16) - 0000000000875083 [13:28:06]1040 (4) - 111744 [13:28:06]1012 (4) - 21.06.2024 06:01 [13:28:06]1206 (1) - 0 [13:28:06]OFD Sender: Remove packet 111744 [13:28:06]ProducePacketName [13:28:06]name=ofd_packets/00111744 [13:28:06]NVStorageDeleteData [13:28:06]OFD Sender: Processing packet 111745 [packets to send 224, broken 37] [13:28:06]ProducePacketName [13:28:06]name=ofd_packets/00111745 [13:28:06]OFD Sender: To server: 嚂鰌G, [13:28:06]CommunicateWithHost lk.salyk.kg:30040 [13:28:06]ConnectInit lk.salyk.kg [13:28:06]Connected sock=7 [13:28:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 42 37 07 01 C6 BC 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 C3 00 00 00 F4 03 04 00 7E 63 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B4 01 00 35 04 06 00 C9 30 82 D1 F1 4A A5 B0 0B 51 11 D6 D0 C2 [13:28:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 12 07 47 00 09 AD 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 30 38 37 35 30 38 33 10 04 04 00 81 B4 01 00 F4 03 04 00 21 17 75 66 B6 04 01 00 00 13 C0 78 1D E5 35 31 3B [13:28:07]CommunicateWithHost err = 0 [13:28:07]CheckOFDResponse [13:28:07]1017 (14) - 77093643461234 [13:28:07]1041 (16) - 0000000000875083 [13:28:07]1040 (4) - 111745 [13:28:07]1012 (4) - 21.06.2024 06:01 [13:28:07]1206 (1) - 0 [13:28:07]OFD Sender: Remove packet 111745 [13:28:07]ProducePacketName [13:28:07]name=ofd_packets/00111745 [13:28:07]NVStorageDeleteData [13:28:07]OFD Sender: Processing packet 111746 [packets to send 223, broken 37] [13:28:07]ProducePacketName [13:28:07]name=ofd_packets/00111746 [13:28:07]OFD Sender: To server: 嚂鰌G, [13:28:07]CommunicateWithHost lk.salyk.kg:30040 [13:28:07]ConnectInit lk.salyk.kg [13:28:07]Connected sock=7 [13:28:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B0 42 07 01 A7 60 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 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 B5 63 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B4 01 00 35 04 06 00 43 E8 0D 62 8A 7F AA D9 A8 69 F8 DB 5D ED [13:28:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7A EE 47 00 76 5A 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 30 38 37 35 30 38 33 10 04 04 00 82 B4 01 00 F4 03 04 00 22 17 75 66 B6 04 01 00 00 BA 43 64 B2 E8 88 40 1D [13:28:07]CommunicateWithHost err = 0 [13:28:07]CheckOFDResponse [13:28:07]1017 (14) - 77093643461234 [13:28:07]1041 (16) - 0000000000875083 [13:28:07]1040 (4) - 111746 [13:28:07]1012 (4) - 21.06.2024 06:01 [13:28:07]1206 (1) - 0 [13:28:07]OFD Sender: Remove packet 111746 [13:28:07]ProducePacketName [13:28:07]name=ofd_packets/00111746 [13:28:07]NVStorageDeleteData [13:28:08]OFD Sender: Processing packet 111747 [packets to send 222, broken 37] [13:28:08]ProducePacketName [13:28:08]name=ofd_packets/00111747 [13:28:08]OFD Sender: To server: 嚂鰌G, [13:28:08]CommunicateWithHost lk.salyk.kg:30040 [13:28:08]ConnectInit lk.salyk.kg [13:28:08]Connected sock=7 [13:28:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 8B 07 01 58 EA 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 F0 19 00 00 00 00 13 04 06 00 F3 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 8B 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 C5 00 00 00 F4 03 04 00 23 64 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B4 01 00 35 04 06 00 EC 1C 0F 8A FB 23 59 19 B7 1A 98 FC EF D9 [13:28:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AD EB 47 00 EE 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 30 38 37 35 30 38 33 10 04 04 00 83 B4 01 00 F4 03 04 00 22 17 75 66 B6 04 01 00 00 83 12 44 2D 99 FF EE CC [13:28:08]CommunicateWithHost err = 0 [13:28:08]CheckOFDResponse [13:28:08]1017 (14) - 77093643461234 [13:28:08]1041 (16) - 0000000000875083 [13:28:08]1040 (4) - 111747 [13:28:08]1012 (4) - 21.06.2024 06:01 [13:28:08]1206 (1) - 0 [13:28:08]OFD Sender: Remove packet 111747 [13:28:08]ProducePacketName [13:28:08]name=ofd_packets/00111747 [13:28:08]NVStorageDeleteData [13:28:09]OFD Sender: Processing packet 111748 [packets to send 221, broken 37] [13:28:09]ProducePacketName [13:28:09]name=ofd_packets/00111748 [13:28:09]OFD Sender: To server: 嚂鰌G, [13:28:09]CommunicateWithHost lk.salyk.kg:30040 [13:28:09]ConnectInit lk.salyk.kg [13:28:09]Connected sock=7 [13:28:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 48 B6 07 01 16 56 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 C6 00 00 00 F4 03 04 00 50 64 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B4 01 00 35 04 06 00 85 41 43 79 6C FA 07 15 AE 94 B6 6B B7 9C [13:28:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 78 7A 47 00 9F 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 30 38 37 35 30 38 33 10 04 04 00 84 B4 01 00 F4 03 04 00 23 17 75 66 B6 04 01 00 00 12 C9 80 5D 46 E3 14 4F [13:28:09]CommunicateWithHost err = 0 [13:28:09]CheckOFDResponse [13:28:09]1017 (14) - 77093643461234 [13:28:09]1041 (16) - 0000000000875083 [13:28:09]1040 (4) - 111748 [13:28:09]1012 (4) - 21.06.2024 06:01 [13:28:09]1206 (1) - 0 [13:28:09]OFD Sender: Remove packet 111748 [13:28:09]ProducePacketName [13:28:09]name=ofd_packets/00111748 [13:28:09]NVStorageDeleteData [13:28:09]OFD Sender: Processing packet 111749 [packets to send 220, broken 37] [13:28:09]ProducePacketName [13:28:09]name=ofd_packets/00111749 [13:28:09]OFD Sender: To server: 嚂鰌G, [13:28:09]CommunicateWithHost lk.salyk.kg:30040 [13:28:09]ConnectInit lk.salyk.kg [13:28:10]Connected sock=7 [13:28:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 50 52 07 01 5F 03 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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 8C 64 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B4 01 00 35 04 06 00 44 BF EB D0 D7 06 EE 28 79 8E 96 39 8C F7 [13:28:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2B 2A 47 00 09 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 30 38 37 35 30 38 33 10 04 04 00 85 B4 01 00 F4 03 04 00 24 17 75 66 B6 04 01 00 00 97 AE 81 31 4F 05 F9 B2 [13:28:10]CommunicateWithHost err = 0 [13:28:10]CheckOFDResponse [13:28:10]1017 (14) - 77093643461234 [13:28:10]1041 (16) - 0000000000875083 [13:28:10]1040 (4) - 111749 [13:28:10]1012 (4) - 21.06.2024 06:01 [13:28:10]1206 (1) - 0 [13:28:10]OFD Sender: Remove packet 111749 [13:28:10]ProducePacketName [13:28:10]name=ofd_packets/00111749 [13:28:10]NVStorageDeleteData [13:28:10]OFD Sender: Processing packet 111750 [packets to send 219, broken 37] [13:28:10]ProducePacketName [13:28:10]name=ofd_packets/00111750 [13:28:10]OFD Sender: To server: 嚂鰌G, [13:28:10]CommunicateWithHost lk.salyk.kg:30040 [13:28:10]ConnectInit lk.salyk.kg [13:28:10]Connected sock=7 [13:28:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F5 94 07 01 2E FA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 C8 00 00 00 F4 03 04 00 EA 64 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B4 01 00 35 04 06 00 0D 05 96 4D 96 FE 0B 36 63 D3 D8 89 DE D7 [13:28:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 27 08 47 00 31 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B4 01 00 F4 03 04 00 25 17 75 66 B6 04 01 00 00 47 E0 BC 63 F0 8E EA 51 [13:28:11]CommunicateWithHost err = 0 [13:28:11]CheckOFDResponse [13:28:11]1017 (14) - 77093643461234 [13:28:11]1041 (16) - 0000000000875083 [13:28:11]1040 (4) - 111750 [13:28:11]1012 (4) - 21.06.2024 06:01 [13:28:11]1206 (1) - 0 [13:28:11]OFD Sender: Remove packet 111750 [13:28:11]ProducePacketName [13:28:11]name=ofd_packets/00111750 [13:28:11]NVStorageDeleteData [13:28:11]OFD Sender: Processing packet 111751 [packets to send 218, broken 37] [13:28:11]ProducePacketName [13:28:11]name=ofd_packets/00111751 [13:28:11]OFD Sender: To server: 嚂鰌G, [13:28:11]CommunicateWithHost lk.salyk.kg:30040 [13:28:11]ConnectInit lk.salyk.kg [13:28:11]Connected sock=9 [13:28:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 05 8C 04 01 E5 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 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 1E 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 C9 00 00 00 F4 03 04 00 B1 65 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B4 01 00 35 04 06 00 B0 CA 58 4D A3 7F AE 29 A0 1E 62 F6 DD 2C [13:28:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D9 66 47 00 43 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 30 38 37 35 30 38 33 10 04 04 00 87 B4 01 00 F4 03 04 00 26 17 75 66 B6 04 01 00 00 B3 FC 4B A4 64 6A 08 5F [13:28:11]CommunicateWithHost err = 0 [13:28:11]CheckOFDResponse [13:28:11]1017 (14) - 77093643461234 [13:28:11]1041 (16) - 0000000000875083 [13:28:11]1040 (4) - 111751 [13:28:11]1012 (4) - 21.06.2024 06:01 [13:28:11]1206 (1) - 0 [13:28:11]OFD Sender: Remove packet 111751 [13:28:11]ProducePacketName [13:28:11]name=ofd_packets/00111751 [13:28:11]NVStorageDeleteData [13:28:12]OFD Sender: Processing packet 111752 [packets to send 217, broken 37] [13:28:12]ProducePacketName [13:28:12]name=ofd_packets/00111752 [13:28:12]OFD Sender: To server: 嚂鰌G, [13:28:12]CommunicateWithHost lk.salyk.kg:30040 [13:28:12]ConnectInit lk.salyk.kg [13:28:12]Connected sock=7 [13:28:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4C 5C 07 01 DE 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 C6 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 7B 05 00 00 00 00 07 04 06 00 90 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 E1 65 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B4 01 00 35 04 06 00 D1 DE 22 2D C2 33 42 3D BF 36 98 44 7A DA [13:28:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CF 98 47 00 DA 4C 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 30 38 37 35 30 38 33 10 04 04 00 88 B4 01 00 F4 03 04 00 26 17 75 66 B6 04 01 00 00 5E CA 4D 3C D8 8F 27 AF [13:28:12]CommunicateWithHost err = 0 [13:28:12]CheckOFDResponse [13:28:12]1017 (14) - 77093643461234 [13:28:12]1041 (16) - 0000000000875083 [13:28:12]1040 (4) - 111752 [13:28:12]1012 (4) - 21.06.2024 06:01 [13:28:12]1206 (1) - 0 [13:28:12]OFD Sender: Remove packet 111752 [13:28:12]ProducePacketName [13:28:12]name=ofd_packets/00111752 [13:28:12]NVStorageDeleteData [13:28:13]OFD Sender: Processing packet 111753 [packets to send 216, broken 37] [13:28:13]ProducePacketName [13:28:13]name=ofd_packets/00111753 [13:28:13]OFD Sender: To server: 嚂鰌G, [13:28:13]CommunicateWithHost lk.salyk.kg:30040 [13:28:13]ConnectInit lk.salyk.kg [13:28:13]Connected sock=7 [13:28:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5B F9 07 01 71 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 8B 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 CB 00 00 00 F4 03 04 00 38 66 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B4 01 00 35 04 06 00 78 91 86 77 7E F9 2D FA 30 0D E5 C3 FA 63 [13:28:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 93 2F 47 00 7C 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B4 01 00 F4 03 04 00 27 17 75 66 B6 04 01 00 00 85 06 54 ED F1 81 82 43 [13:28:13]CommunicateWithHost err = 0 [13:28:13]CheckOFDResponse [13:28:13]1017 (14) - 77093643461234 [13:28:13]1041 (16) - 0000000000875083 [13:28:13]1040 (4) - 111753 [13:28:13]1012 (4) - 21.06.2024 06:01 [13:28:13]1206 (1) - 0 [13:28:13]OFD Sender: Remove packet 111753 [13:28:13]ProducePacketName [13:28:13]name=ofd_packets/00111753 [13:28:13]NVStorageDeleteData [13:28:13]OFD Sender: Processing packet 111754 [packets to send 215, broken 37] [13:28:13]ProducePacketName [13:28:13]name=ofd_packets/00111754 [13:28:13]OFD Sender: To server: 嚂鰌G, [13:28:13]CommunicateWithHost lk.salyk.kg:30040 [13:28:13]ConnectInit lk.salyk.kg [13:28:14]Connected sock=7 [13:28:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0C B9 07 01 BF 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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 6F 66 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B4 01 00 35 04 06 00 05 9D 9E 98 61 3B A4 34 22 BF 9E 42 A9 13 [13:28:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4C A5 47 00 50 8A 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 30 38 37 35 30 38 33 10 04 04 00 8A B4 01 00 F4 03 04 00 28 17 75 66 B6 04 01 00 00 12 AC 57 A0 7E A4 63 9D [13:28:14]CommunicateWithHost err = 0 [13:28:14]CheckOFDResponse [13:28:14]1017 (14) - 77093643461234 [13:28:14]1041 (16) - 0000000000875083 [13:28:14]1040 (4) - 111754 [13:28:14]1012 (4) - 21.06.2024 06:01 [13:28:14]1206 (1) - 0 [13:28:14]OFD Sender: Remove packet 111754 [13:28:14]ProducePacketName [13:28:14]name=ofd_packets/00111754 [13:28:14]NVStorageDeleteData [13:28:14]OFD Sender: Processing packet 111755 [packets to send 214, broken 37] [13:28:14]ProducePacketName [13:28:14]name=ofd_packets/00111755 [13:28:14]OFD Sender: To server: 嚂鰌G, [13:28:14]CommunicateWithHost lk.salyk.kg:30040 [13:28:14]ConnectInit lk.salyk.kg [13:28:14]Connected sock=7 [13:28:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8B 0E 07 01 EA 7F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 CD 00 00 00 F4 03 04 00 91 66 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B4 01 00 35 04 06 00 FD 36 50 DE F7 3F 32 0E A6 72 FD 11 E0 9B [13:28:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A9 8F 47 00 F6 0C 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 30 38 37 35 30 38 33 10 04 04 00 8B B4 01 00 F4 03 04 00 29 17 75 66 B6 04 01 00 00 FC 96 E6 F5 46 7F 8D 15 [13:28:15]CommunicateWithHost err = 0 [13:28:15]CheckOFDResponse [13:28:15]1017 (14) - 77093643461234 [13:28:15]1041 (16) - 0000000000875083 [13:28:15]1040 (4) - 111755 [13:28:15]1012 (4) - 21.06.2024 06:01 [13:28:15]1206 (1) - 0 [13:28:15]OFD Sender: Remove packet 111755 [13:28:15]ProducePacketName [13:28:15]name=ofd_packets/00111755 [13:28:15]NVStorageDeleteData [13:28:15]OFD Sender: Processing packet 111756 [packets to send 213, broken 37] [13:28:15]ProducePacketName [13:28:15]name=ofd_packets/00111756 [13:28:15]OFD Sender: To server: 嚂鰌G, [13:28:15]CommunicateWithHost lk.salyk.kg:30040 [13:28:15]ConnectInit lk.salyk.kg [13:28:15]Connected sock=7 [13:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3E A0 07 01 10 FF 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 CE 00 00 00 F4 03 04 00 CB 66 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B4 01 00 35 04 06 00 47 A1 ED 86 59 7D 27 7C AD 00 73 24 AA 59 [13:28:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 34 6A 47 00 5B E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B4 01 00 F4 03 04 00 2A 17 75 66 B6 04 01 00 00 CC DB 78 10 77 1E A3 D6 [13:28:15]CommunicateWithHost err = 0 [13:28:15]CheckOFDResponse [13:28:15]1017 (14) - 77093643461234 [13:28:15]1041 (16) - 0000000000875083 [13:28:15]1040 (4) - 111756 [13:28:15]1012 (4) - 21.06.2024 06:01 [13:28:15]1206 (1) - 0 [13:28:15]OFD Sender: Remove packet 111756 [13:28:15]ProducePacketName [13:28:15]name=ofd_packets/00111756 [13:28:15]NVStorageDeleteData [13:28:16]OFD Sender: Processing packet 111757 [packets to send 212, broken 37] [13:28:16]ProducePacketName [13:28:16]name=ofd_packets/00111757 [13:28:16]OFD Sender: To server: 嚂鰌G, [13:28:16]CommunicateWithHost lk.salyk.kg:30040 [13:28:16]ConnectInit lk.salyk.kg [13:28:16]Connected sock=7 [13:28:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E9 EE 04 01 A1 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AB 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 0F 00 00 00 00 07 04 06 00 94 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 5B 67 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B4 01 00 35 04 06 00 2D 68 0C C6 80 5D 2A EF A9 13 19 A9 42 4A [13:28:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 44 FB 47 00 46 4C 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 30 38 37 35 30 38 33 10 04 04 00 8D B4 01 00 F4 03 04 00 2A 17 75 66 B6 04 01 00 00 6C 83 97 ED 11 67 8C 59 [13:28:16]CommunicateWithHost err = 0 [13:28:16]CheckOFDResponse [13:28:16]1017 (14) - 77093643461234 [13:28:16]1041 (16) - 0000000000875083 [13:28:16]1040 (4) - 111757 [13:28:16]1012 (4) - 21.06.2024 06:01 [13:28:16]1206 (1) - 0 [13:28:16]OFD Sender: Remove packet 111757 [13:28:16]ProducePacketName [13:28:16]name=ofd_packets/00111757 [13:28:16]NVStorageDeleteData [13:28:17]OFD Sender: Processing packet 111758 [packets to send 211, broken 37] [13:28:17]ProducePacketName [13:28:17]name=ofd_packets/00111758 [13:28:17]OFD Sender: To server: 嚂鰌G, [13:28:17]CommunicateWithHost lk.salyk.kg:30040 [13:28:17]ConnectInit lk.salyk.kg [13:28:17]Connected sock=7 [13:28:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1A 7B 07 01 59 B1 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 D0 00 00 00 F4 03 04 00 8E 69 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B4 01 00 35 04 06 00 3A 5B CC 54 7C 08 D6 FC 50 EA 19 63 8F 65 [13:28:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 80 CF 47 00 91 FA 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 30 38 37 35 30 38 33 10 04 04 00 8E B4 01 00 F4 03 04 00 2B 17 75 66 B6 04 01 00 00 37 FB 41 37 87 17 0C 1C [13:28:17]CommunicateWithHost err = 0 [13:28:17]CheckOFDResponse [13:28:17]1017 (14) - 77093643461234 [13:28:17]1041 (16) - 0000000000875083 [13:28:17]1040 (4) - 111758 [13:28:17]1012 (4) - 21.06.2024 06:01 [13:28:17]1206 (1) - 0 [13:28:17]OFD Sender: Remove packet 111758 [13:28:17]ProducePacketName [13:28:17]name=ofd_packets/00111758 [13:28:17]NVStorageDeleteData [13:28:17]OFD Sender: Processing packet 111759 [packets to send 210, broken 37] [13:28:17]ProducePacketName [13:28:17]name=ofd_packets/00111759 [13:28:17]OFD Sender: To server: 嚂鰌G, [13:28:17]CommunicateWithHost lk.salyk.kg:30040 [13:28:17]ConnectInit lk.salyk.kg [13:28:18]Connected sock=7 [13:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 72 AB 07 01 5C CD 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 D1 00 00 00 F4 03 04 00 17 6A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B4 01 00 35 04 06 00 DE 33 BF D5 C2 74 6A D4 4E 0C A6 FB 71 C8 [13:28:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FC 64 47 00 A1 41 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 30 38 37 35 30 38 33 10 04 04 00 8F B4 01 00 F4 03 04 00 2C 17 75 66 B6 04 01 00 00 C2 97 0C 6D 99 23 D5 94 [13:28:18]CommunicateWithHost err = 0 [13:28:18]CheckOFDResponse [13:28:18]1017 (14) - 77093643461234 [13:28:18]1041 (16) - 0000000000875083 [13:28:18]1040 (4) - 111759 [13:28:18]1012 (4) - 21.06.2024 06:01 [13:28:18]1206 (1) - 0 [13:28:18]OFD Sender: Remove packet 111759 [13:28:18]ProducePacketName [13:28:18]name=ofd_packets/00111759 [13:28:18]NVStorageDeleteData [13:28:18]OFD Sender: Processing packet 111760 [packets to send 209, broken 37] [13:28:18]ProducePacketName [13:28:18]name=ofd_packets/00111760 [13:28:18]OFD Sender: To server: 嚂鰌G, [13:28:18]CommunicateWithHost lk.salyk.kg:30040 [13:28:18]ConnectInit lk.salyk.kg [13:28:18]Connected sock=7 [13:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 50 6E 04 01 53 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 31 72 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 72 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 72 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AE 6A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B4 01 00 35 04 06 00 E8 6C B3 A3 FF 8E 39 F0 2B 6B 61 1F 6A 5C [13:28:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0B EB 47 00 43 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B4 01 00 F4 03 04 00 2D 17 75 66 B6 04 01 00 00 2D 99 EF 9A 69 74 55 15 [13:28:19]CommunicateWithHost err = 0 [13:28:19]CheckOFDResponse [13:28:19]1017 (14) - 77093643461234 [13:28:19]1041 (16) - 0000000000875083 [13:28:19]1040 (4) - 111760 [13:28:19]1012 (4) - 21.06.2024 06:01 [13:28:19]1206 (1) - 0 [13:28:19]OFD Sender: Remove packet 111760 [13:28:19]ProducePacketName [13:28:19]name=ofd_packets/00111760 [13:28:19]NVStorageDeleteData [13:28:19]OFD Sender: Processing packet 111761 [packets to send 208, broken 37] [13:28:19]ProducePacketName [13:28:19]name=ofd_packets/00111761 [13:28:19]OFD Sender: To server: 嚂鰌G, [13:28:19]CommunicateWithHost lk.salyk.kg:30040 [13:28:19]ConnectInit lk.salyk.kg [13:28:19]Connected sock=7 [13:28:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 02 87 07 01 B8 06 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 F0 19 00 00 00 00 13 04 06 00 F3 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 8B 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 D3 00 00 00 F4 03 04 00 87 6B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B4 01 00 35 04 06 00 83 0B FC E0 C8 B5 A7 DD CB 17 54 A2 D9 6C [13:28:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EC 90 47 00 83 D9 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 30 38 37 35 30 38 33 10 04 04 00 91 B4 01 00 F4 03 04 00 2E 17 75 66 B6 04 01 00 00 CA 00 70 57 4A 76 C0 22 [13:28:19]CommunicateWithHost err = 0 [13:28:19]CheckOFDResponse [13:28:19]1017 (14) - 77093643461234 [13:28:19]1041 (16) - 0000000000875083 [13:28:19]1040 (4) - 111761 [13:28:19]1012 (4) - 21.06.2024 06:01 [13:28:19]1206 (1) - 0 [13:28:19]OFD Sender: Remove packet 111761 [13:28:19]ProducePacketName [13:28:19]name=ofd_packets/00111761 [13:28:19]NVStorageDeleteData [13:28:20]OFD Sender: Processing packet 111762 [packets to send 207, broken 37] [13:28:20]ProducePacketName [13:28:20]name=ofd_packets/00111762 [13:28:20]OFD Sender: To server: 嚂鰌G, [13:28:20]CommunicateWithHost lk.salyk.kg:30040 [13:28:20]ConnectInit lk.salyk.kg [13:28:20]Connected sock=7 [13:28:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 40 7E 07 01 15 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 D4 00 00 00 F4 03 04 00 46 6C 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B4 01 00 35 04 06 00 9F 48 14 EB E2 F8 73 27 A8 D1 CB C1 79 BF [13:28:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E7 07 47 00 86 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B4 01 00 F4 03 04 00 2E 17 75 66 B6 04 01 00 00 EB E8 CD 35 ED BE 20 65 [13:28:20]CommunicateWithHost err = 0 [13:28:20]CheckOFDResponse [13:28:20]1017 (14) - 77093643461234 [13:28:20]1041 (16) - 0000000000875083 [13:28:20]1040 (4) - 111762 [13:28:20]1012 (4) - 21.06.2024 06:01 [13:28:20]1206 (1) - 0 [13:28:20]OFD Sender: Remove packet 111762 [13:28:20]ProducePacketName [13:28:20]name=ofd_packets/00111762 [13:28:20]NVStorageDeleteData [13:28:21]OFD Sender: Processing packet 111763 [packets to send 206, broken 37] [13:28:21]ProducePacketName [13:28:21]name=ofd_packets/00111763 [13:28:21]OFD Sender: To server: 嚂鰌G, [13:28:21]CommunicateWithHost lk.salyk.kg:30040 [13:28:21]ConnectInit lk.salyk.kg [13:28:21]Connected sock=7 [13:28:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F8 69 07 01 F9 07 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 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 8E 6D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B4 01 00 35 04 06 00 C0 24 8B 53 D5 BA 32 E3 AB D7 E9 61 90 39 [13:28:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F5 92 47 00 E8 FE 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 30 38 37 35 30 38 33 10 04 04 00 93 B4 01 00 F4 03 04 00 2F 17 75 66 B6 04 01 00 00 C6 8C B7 47 EB EB 88 00 [13:28:21]CommunicateWithHost err = 0 [13:28:21]CheckOFDResponse [13:28:21]1017 (14) - 77093643461234 [13:28:21]1041 (16) - 0000000000875083 [13:28:21]1040 (4) - 111763 [13:28:21]1012 (4) - 21.06.2024 06:01 [13:28:21]1206 (1) - 0 [13:28:21]OFD Sender: Remove packet 111763 [13:28:21]ProducePacketName [13:28:21]name=ofd_packets/00111763 [13:28:21]NVStorageDeleteData [13:28:22]OFD Sender: Processing packet 111764 [packets to send 205, broken 37] [13:28:22]ProducePacketName [13:28:22]name=ofd_packets/00111764 [13:28:22]OFD Sender: To server: 嚂鰌G, [13:28:22]CommunicateWithHost lk.salyk.kg:30040 [13:28:22]ConnectInit lk.salyk.kg [13:28:57]accept exits with 11 [13:28:57]New connection [13:28:57]New thread 3067088228 created [13:28:57]Thread 3067231588 joined [13:28:57]Waiting for new connection... [13:28:57] Sock 11.Parse request [13:28:57]Sock 11.Check first char [13:28:57]Sock 11.First char is OK [13:28:57]request: POST /json_proto HTTP/1.0 [13:28:57]Method: POST [13:28:57]URL: /json_proto [13:28:57]Method is POST - this is cgi request [13:28:57]url: /json_proto [13:28:57]query_string will be loaded in cgi processing [13:28:57]execute_cgi json_proto POST (null) [13:28:57]execute_cgi path=json_proto method=POST [13:28:57]POST find Content-Length [13:28:57]Host: 172.17.59.68:8080 [13:28:57]Content-Length: 679 [13:28:57]Content-Type: application/json [13:28:57] [13:28:57]POST finish read [13:28:57]Found Content-Length = 679 [13:28:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "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" ] } } [13:28:57]execute_script... [13:28: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)320579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 16.470, "sum" : 1200.66, "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" ] } } [13:28:57]POST & json_proto [13:28:57]process_json_proto [13:28:57]json parsed OK: [13:28:57]protocol is kg_v1.0 [13:28:57]action value=close_receipt [13:28:57]process_action close_receipt [13:28:57]cmd_close_receipt [13:28:57]MH_GetDate [13:28:57]Write to MH i2c: F0 00 00 26 21 36 [13:28:57]Write i2c OK [13:28:57]MH_I2C_Read... [13:28:57]Read from MH i2c: F0 [13:28:57]MH_I2C_Read... [13:28:57]Read from MH i2c: F0 09 00 [13:28:57]MH_I2C_Read... [13:28:57]Read from MH i2c: F0 09 00 26 21 00 2B 80 75 66 BC EC 60 65 32 [13:28:57]GetLastDocTimeStamp 1718976438 [13:28:57]current date 1718976555 [13:28:57]FM_GetShiftState [13:28:57]SAM_PROTO_GetShiftState [13:28:57]wFMCommunicate request_size=4 [13:28:57]MH_SAM_APDU [13:28:57]CAPDU: 80 13 01 00 [13:28:57]Write to MH i2c: E2 08 00 27 21 80 13 01 00 00 00 00 00 C5 [13:28:57]Write i2c OK [13:28:57]MH_I2C_Read... [13:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:57]Read from MH i2c: E2 [13:28:57]MH_I2C_Read... [13:28:57]Read from MH i2c: E2 0E 00 [13:28:57]MH_I2C_Read... [13:28:57]Read from MH i2c: E2 0E 00 27 21 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 42 [13:28:57]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:28:57]wFMCommunicate OK [13:28:57]SAM_PROTO_GetShiftState done [13:28:57]FM_GetShiftState done [13:28:57]opened in 1718933695 [13:28:57]opened+sec_in_day 1719020095 [13:28:57]quantity*price = 120066 [13:28:57]sum+1 = 120067 [13:28:57]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 1200.00 袙薪械褋械薪芯: 1200.00 小袛袗效袗: 0.00 袧小袩 1% : 10.62 袧袛小 12% : 127.50 袧邪谢懈褔薪褘屑懈: 1200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 100 21.06.2024 13:29 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111932 肖袩袛: 167205502845195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T132915&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111932&fm=167205502845195&tin=02508201610067®Number=0000000000092771&sum=120000 [13:28:58]StoreToDocumentArchive [13:28:58]shift 390 fd 111932 [13:28:58]save to /storage/0390/doc_00111932 [13:28:58]save last doc name /storage/0390/doc_00111932 to /storage/kkm_last_doc_name [13:28:58]save OK [13:28:58]Clear old archive folders... [13:28:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:28:58]tlvbuf is 01D4F3F0 [13:28:58]SAM_PROTO_ClearQueue [13:28:58]wFMCommunicate request_size=4 [13:28:58]MH_SAM_APDU [13:28:58]CAPDU: 80 09 00 00 [13:28:58]Write to MH i2c: E2 08 00 34 21 80 09 00 00 00 00 00 00 C7 [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:58]Read from MH i2c: E2 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 03 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 03 00 34 21 00 90 00 C9 [13:28:58]RAPDU: 90 00 [13:28:58]wFMCommunicate OK [13:28:58]SAM_PROTO_ClearQueue done [13:28:58]KKMCreateOFDPacket [13:28:58]OFDProtocolAddRootSTLVToBuf [13:28:58]FM_MakeSignedData [13:28:58]FM_MakeSignedData [13:28:58]SAM_PROTO_SignData [13:28:58]wFMCommunicate request_size=4 [13:28:58]MH_SAM_APDU [13:28:58]CAPDU: 80 0D 01 02 [13:28:58]Write to MH i2c: E2 08 00 35 21 80 0D 01 02 00 00 00 00 CF [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:58]Read from MH i2c: E2 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 03 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 03 00 35 21 00 90 00 CA [13:28:58]RAPDU: 90 00 [13:28:58]wFMCommunicate OK [13:28:58]wFMCommunicate request_size=255 [13:28:58]MH_SAM_APDU [13:28:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 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 CE 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 64 00 00 00 F4 03 04 00 2B 80 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B5 01 00 35 04 06 00 98 12 90 9A [13:28:58]Write to MH i2c: E2 02 01 36 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 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 CE 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 64 00 00 00 F4 03 04 00 2B 80 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B5 01 00 35 04 06 00 98 12 90 9A 00 00 BA [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:58]Read from MH i2c: E2 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 03 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 03 00 36 21 00 90 00 CB [13:28:58]RAPDU: 90 00 [13:28:58]wFMCommunicate OK [13:28:58]wFMCommunicate request_size=7 [13:28:58]MH_SAM_APDU [13:28:58]CAPDU: 80 0D 02 02 02 01 0B [13:28:58]Write to MH i2c: E2 0A 00 37 21 80 0D 02 02 02 00 01 0B 00 00 E2 [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:58]Read from MH i2c: E2 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 03 00 [13:28:58]MH_I2C_Read... [13:28:58]Read from MH i2c: E2 03 00 37 21 00 90 00 CC [13:28:58]RAPDU: 90 00 [13:28:58]wFMCommunicate OK [13:28:58]wFMCommunicate request_size=4 [13:28:58]MH_SAM_APDU [13:28:58]CAPDU: 80 0D 03 02 [13:28:58]Write to MH i2c: E2 08 00 38 21 80 0D 03 02 00 00 00 00 D4 [13:28:58]Write i2c OK [13:28:58]MH_I2C_Read... [13:28:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:59]Read from MH i2c: E2 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: E2 0B 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: E2 0B 00 38 21 00 D7 CF D9 8E B9 4F 7D 65 90 00 CC [13:28:59]RAPDU: D7 CF D9 8E B9 4F 7D 65 90 00 [13:28:59]wFMCommunicate OK [13:28:59]SAM_PROTO_SignData done [13:28:59]FM_MakeSignedData done [13:28:59]CreateOFDProtocolMessage [13:28:59]wFMCommunicate request_size=4 [13:28:59]MH_SAM_APDU [13:28:59]CAPDU: 80 11 00 00 [13:28:59]Write to MH i2c: E2 08 00 39 21 80 11 00 00 00 00 00 00 D4 [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:28:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:59]Read from MH i2c: E2 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: E2 17 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: E2 17 00 39 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 26 [13:28:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:28:59]wFMCommunicate OK [13:28:59]CreateOFDProtocolMessage done [13:28:59]OFDSenderStorePacket 111932 [13:28:59]StoreOFDPacket docnum=111932 [13:28:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 3C DF 04 01 BD 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 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 CE 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 64 00 00 00 F4 03 04 00 2B 80 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B5 01 00 35 04 06 00 98 12 90 9A 01 0B D7 CF D9 8E B9 4F 7D 65 [13:28:59]CheckFolder [13:28:59]dirname=/storage/ofd_packets [13:28:59]CheckFolder done [13:28:59]ProducePacketName [13:28:59]name=ofd_packets/00111932 [13:28:59]NVStorageSaveData ofd_packets/00111932 [13:28:59]File name is /storage/ofd_packets/00111932 [13:28:59]Write 298 bytes [13:28:59]NVStorageSaveData done [13:28:59]OFDSenderStorePacket done [13:28:59]KKMCreateOFDPacket done [13:28:59]NVStorageSaveData kkm_last_timestamp [13:28:59]File name is /storage/kkm_last_timestamp [13:28:59]Write 4 bytes [13:28:59]NVStorageSaveData done [13:28:59]ExternCall_PrintAddStr [13:28:59]wPrintStart [13:28:59]Write to MH i2c: 01 00 00 3A 21 5B [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: 01 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: 01 07 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: 01 07 00 3A 21 00 00 00 00 00 FF 0F 70 [13:28:59]RasterBufferAndPrint [13:28:59]line 小褔械褌 N : (1)320579 [13:28:59]line 袠袧袧: 02508201610067 [13:28:59]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [13:28:59]line 袩袪袨袛袗袞袗 [13:28:59]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [13:28:59]line 孝芯胁邪褉: 2710194210 [13:28:59]line 袛孝-袣-5 [13:28:59]line 16.470 * 72.90 [13:28:59]line = 1200.66 [13:28:59]line 袧袛小 12% 袧小袩 1% [13:28:59]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [13:28:59]line 袨袣袪校袚袥袝袧袠袝: -0.66 [13:28:59]line 袠孝袨袚袨: 1200.00 [13:28:59]line 袙薪械褋械薪芯: 1200.00 [13:28:59]line 小袛袗效袗: 0.00 [13:28:59]line 袧小袩 1% : 10.62 [13:28:59]line 袧袛小 12% : 127.50 [13:28:59]line 袧邪谢懈褔薪褘屑懈: 1200.00 [13:28:59]line 袘械蟹薪邪谢.: 0.00 [13:28:59]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [13:28:59]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [13:28:59]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [13:28:59]line 效械泻 100 21.06.2024 13:29 [13:28:59]line 小屑械薪邪: 390 肖肖袛: 1.0 [13:28:59]line 袟袧袦: 0300000198 [13:28:59]line 袪袧袦: 0000000000092771 [13:28:59]line 袙械褉褋懈褟 袣袣袦: 001 [13:28:59]line 肖袦: 0000000000875083 [13:28:59]line 肖袛: 111932 [13:28:59]line 肖袩袛: 167205502845195 [13:28:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T132915&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111932&fm=167205502845195&tin=02508201610067®Number=0000000000092771&sum=120000 [13:28:59]written 0, free lines is 4095 [13:28:59]Write to MH i2c: 01 00 00 65 21 86 [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: 01 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: 01 07 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: 01 07 00 65 21 00 00 00 00 00 D4 0C 6D [13:28:59]RasterBufferAndPrint [13:28:59]line [13:28:59]line [13:28:59]line [13:28:59]line [13:28:59]line [13:28:59]written 0, free lines is 3290 [13:28:59]MH_Cut [13:28:59]Write to MH i2c: D1 01 00 6C 21 01 5F [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: D1 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: D1 01 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: D1 01 00 6C 21 00 5E [13:28:59]Write to MH i2c: 01 00 00 6D 21 8E [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:29:00]*** Cut start [13:29:00]*** Partial cut [13:29:00]*** CUTSNS_PIN = 1 [13:29:00]*** CUTSNS_PIN = 0 [13:29:00]*** Brake cut motor [13:29:01]Read from MH i2c: 01 [13:29:01]MH_I2C_Read... [13:29:01]*** Stop cut motor [13:29:01]*** Cut end [13:29:01]Read from MH i2c: 01 07 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 07 00 6D 21 00 00 00 00 00 FF 0F A3 [13:29:01]process_action close_receipt done [13:29:01]requested_data is exist [13:29:01]produce_requested_data [13:29:01]requested_item fm.sn is exist - process it [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 11 00 00 [13:29:01]Write to MH i2c: E2 08 00 6E 21 80 11 00 00 00 00 00 00 09 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 17 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 17 00 6E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5B [13:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:29:01]wFMCommunicate OK [13:29:01]requested_item fd.num is exist - process it [13:29:01]SAM_PROTO_GetFieldsCounters [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 13 00 00 [13:29:01]Write to MH i2c: E2 08 00 6F 21 80 13 00 00 00 00 00 00 0C [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 62 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 62 00 6F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B5 01 00 0E 04 04 00 86 01 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 D2 [13:29:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B5 01 00 0E 04 04 00 86 01 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 [13:29:01]wFMCommunicate OK [13:29:01]SAM_PROTO_GetFieldsCounters done [13:29:01]requested_item shift.num is exist - process it [13:29:01]requested_item shift.opened is exist - process it [13:29:01]req_shift_opened [13:29:01]FM_GetShiftState [13:29:01]SAM_PROTO_GetShiftState [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 13 01 00 [13:29:01]Write to MH i2c: E2 08 00 70 21 80 13 01 00 00 00 00 00 0E [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0E 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0E 00 70 21 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 8B [13:29:01]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:29:01]wFMCommunicate OK [13:29:01]SAM_PROTO_GetShiftState done [13:29:01]FM_GetShiftState done [13:29:01]req_shift_opened done [13:29:01]requested_item shift.open_date is exist - process it [13:29:01]req_shift_open_date [13:29:01]req_shift_open_date done [13:29:01]produce_requested_data done [13:29:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111932,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:29:01]process_action_free close_receipt [13:29:01]json_value_free [13:29:01]json_value_free done [13:29:01]process_json_proto returns [13:29:01]Send response to host [13:29:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111932,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:29:01]free response buf [13:29:01]execute_script done [13:29:01]execute_script returns [13:29:01]free content buf [13:29:01]Sock 11.Close socket [13:29:01]Sock 11.Thread stoped [13:29:05]accept exits with 9 [13:29:05]New connection [13:29:05]New thread 3067231588 created [13:29:05]Thread 3067088228 joined [13:29:05]Waiting for new connection... [13:29:05] Sock 9.Parse request [13:29:05]Sock 9.Check first char [13:29:05]Sock 9.First char is OK [13:29:05]request: POST /json_proto HTTP/1.0 [13:29:05]Method: POST [13:29:05]URL: /json_proto [13:29:05]Method is POST - this is cgi request [13:29:05]url: /json_proto [13:29:05]query_string will be loaded in cgi processing [13:29:05]execute_cgi json_proto POST (null) [13:29:05]execute_cgi path=json_proto method=POST [13:29:05]POST find Content-Length [13:29:05]Host: 172.17.59.68:8080 [13:29:05]Content-Length: 677 [13:29:05]Content-Type: application/json [13:29:05] [13:29:05]POST finish read [13:29:05]Found Content-Length = 677 [13:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.190, "sum" : 610.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:05]execute_script... [13:29: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)320580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.190, "sum" : 610.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:05]POST & json_proto [13:29:05]process_json_proto [13:29:05]json parsed OK: [13:29:05]protocol is kg_v1.0 [13:29:05]action value=close_receipt [13:29:05]process_action close_receipt [13:29:05]cmd_close_receipt [13:29:05]MH_GetDate [13:29:05]Write to MH i2c: F0 00 00 71 21 81 [13:29:05]Write i2c OK [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: F0 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: F0 09 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: F0 09 00 71 21 00 33 80 75 66 BC EC 60 65 85 [13:29:05]GetLastDocTimeStamp 1718976555 [13:29:05]current date 1718976563 [13:29:05]FM_GetShiftState [13:29:05]SAM_PROTO_GetShiftState [13:29:05]wFMCommunicate request_size=4 [13:29:05]MH_SAM_APDU [13:29:05]CAPDU: 80 13 01 00 [13:29:05]Write to MH i2c: E2 08 00 72 21 80 13 01 00 00 00 00 00 10 [13:29:05]Write i2c OK [13:29:05]MH_I2C_Read... [13:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:05]Read from MH i2c: E2 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 0E 00 [13:29:05]MH_I2C_Read... [13:29:05]Read from MH i2c: E2 0E 00 72 21 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 8D [13:29:05]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:29:05]wFMCommunicate OK [13:29:05]SAM_PROTO_GetShiftState done [13:29:05]FM_GetShiftState done [13:29:05]opened in 1718933695 [13:29:05]opened+sec_in_day 1719020095 [13:29:05]quantity*price = 61021 [13:29:05]sum+1 = 61023 [13:29:05]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.22 袠孝袨袚袨: 610.00 袙薪械褋械薪芯: 610.00 小袛袗效袗: 0.00 袧小袩 1% : 5.40 袧袛小 12% : 64.80 袧邪谢懈褔薪褘屑懈: 610.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 101 21.06.2024 13:29 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111933 肖袩袛: 267561518222016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T132923&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111933&fm=267561518222016&tin=02508201610067®Number=0000000000092771&sum=61000 [13:29:06]StoreToDocumentArchive [13:29:06]shift 390 fd 111933 [13:29:06]save to /storage/0390/doc_00111933 [13:29:06]save last doc name /storage/0390/doc_00111933 to /storage/kkm_last_doc_name [13:29:06]save OK [13:29:06]Clear old archive folders... [13:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:06]tlvbuf is 01DC9FD0 [13:29:06]SAM_PROTO_ClearQueue [13:29:06]wFMCommunicate request_size=4 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 09 00 00 [13:29:06]Write to MH i2c: E2 08 00 7F 21 80 09 00 00 00 00 00 00 12 [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 7F 21 00 90 00 14 [13:29:06]RAPDU: 90 00 [13:29:06]wFMCommunicate OK [13:29:06]SAM_PROTO_ClearQueue done [13:29:06]KKMCreateOFDPacket [13:29:06]OFDProtocolAddRootSTLVToBuf [13:29:06]FM_MakeSignedData [13:29:06]FM_MakeSignedData [13:29:06]SAM_PROTO_SignData [13:29:06]wFMCommunicate request_size=4 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 0D 01 02 [13:29:06]Write to MH i2c: E2 08 00 80 21 80 0D 01 02 00 00 00 00 1A [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 80 21 00 90 00 15 [13:29:06]RAPDU: 90 00 [13:29:06]wFMCommunicate OK [13:29:06]wFMCommunicate request_size=255 [13:29:06]MH_SAM_APDU [13:29: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5E EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 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 33 80 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B5 01 00 35 04 06 00 F3 [13:29:06]Write to MH i2c: E2 02 01 81 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 E6 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5E EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 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 33 80 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B5 01 00 35 04 06 00 F3 00 00 D5 [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 81 21 00 90 00 16 [13:29:06]RAPDU: 90 00 [13:29:06]wFMCommunicate OK [13:29:06]wFMCommunicate request_size=10 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 0D 02 02 05 58 85 3F CA C0 [13:29:06]Write to MH i2c: E2 0D 00 82 21 80 0D 02 02 05 00 58 85 3F CA C0 00 00 CD [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 03 00 82 21 00 90 00 17 [13:29:06]RAPDU: 90 00 [13:29:06]wFMCommunicate OK [13:29:06]wFMCommunicate request_size=4 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 0D 03 02 [13:29:06]Write to MH i2c: E2 08 00 83 21 80 0D 03 02 00 00 00 00 1F [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:07]Read from MH i2c: E2 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: E2 0B 00 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: E2 0B 00 83 21 00 DC 13 81 7D C3 08 9B 83 90 00 F6 [13:29:07]RAPDU: DC 13 81 7D C3 08 9B 83 90 00 [13:29:07]wFMCommunicate OK [13:29:07]SAM_PROTO_SignData done [13:29:07]FM_MakeSignedData done [13:29:07]CreateOFDProtocolMessage [13:29:07]wFMCommunicate request_size=4 [13:29:07]MH_SAM_APDU [13:29:07]CAPDU: 80 11 00 00 [13:29:07]Write to MH i2c: E2 08 00 84 21 80 11 00 00 00 00 00 00 1F [13:29:07]Write i2c OK [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: E2 [13:29:07]MH_I2C_Read... [13:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:07]Read from MH i2c: E2 17 00 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: E2 17 00 84 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 71 [13:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:29:07]wFMCommunicate OK [13:29:07]CreateOFDProtocolMessage done [13:29:07]OFDSenderStorePacket 111933 [13:29:07]StoreOFDPacket docnum=111933 [13:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 22 86 07 01 4B CA 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 E6 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5E EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 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 33 80 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B5 01 00 35 04 06 00 F3 58 85 3F CA C0 DC 13 81 7D C3 08 9B 83 [13:29:07]CheckFolder [13:29:07]dirname=/storage/ofd_packets [13:29:07]CheckFolder done [13:29:07]ProducePacketName [13:29:07]name=ofd_packets/00111933 [13:29:07]NVStorageSaveData ofd_packets/00111933 [13:29:07]File name is /storage/ofd_packets/00111933 [13:29:07]Write 301 bytes [13:29:07]NVStorageSaveData done [13:29:07]OFDSenderStorePacket done [13:29:07]KKMCreateOFDPacket done [13:29:07]NVStorageSaveData kkm_last_timestamp [13:29:07]File name is /storage/kkm_last_timestamp [13:29:07]Write 4 bytes [13:29:07]NVStorageSaveData done [13:29:07]ExternCall_PrintAddStr [13:29:07]wPrintStart [13:29:07]Write to MH i2c: 01 00 00 85 21 A6 [13:29:07]Write i2c OK [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: 01 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: 01 07 00 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: 01 07 00 85 21 00 00 00 00 00 FF 0F BB [13:29:07]RasterBufferAndPrint [13:29:07]line 袧械褌 褋胁褟蟹懈 褋 袨肖袛 [13:29:07]line 袛芯泻褍屑械薪褌芯胁 胁 芯褔械褉械写懈 170 [13:29:07]written 0, free lines is 4095 [13:29:07]Write to MH i2c: 01 00 00 89 21 AA [13:29:07]Write i2c OK [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: 01 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: 01 07 00 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: 01 07 00 89 21 00 00 00 00 00 C3 0F 83 [13:29:07]RasterBufferAndPrint [13:29:07]line [13:29:07]line [13:29:07]line [13:29:07]line [13:29:07]line [13:29:07]written 0, free lines is 4035 [13:29:07]MH_Cut [13:29:07]Write to MH i2c: D1 01 00 90 21 01 83 [13:29:07]Write i2c OK [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: D1 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: D1 01 00 [13:29:07]MH_I2C_Read... [13:29:07]Read from MH i2c: D1 01 00 90 21 00 82 [13:29:07]Write to MH i2c: 01 00 00 91 21 B2 [13:29:07]Write i2c OK [13:29:07]MH_I2C_Read... [13:29:07]*** Cut start [13:29:07]*** Partial cut [13:29:07]*** CUTSNS_PIN = 1 [13:29:07]*** CUTSNS_PIN = 0 [13:29:07]*** Brake cut motor [13:29:08]Read from MH i2c: 01 [13:29:08]MH_I2C_Read... [13:29:08]*** Stop cut motor [13:29:08]*** Cut end [13:29:08]Read from MH i2c: 01 07 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: 01 07 00 91 21 00 00 00 00 00 FF 0F C7 [13:29:08]ExternCall_PrintAddStr [13:29:08]wPrintStart [13:29:08]Write to MH i2c: 01 00 00 92 21 B3 [13:29:08]Write i2c OK [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: 01 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: 01 07 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: 01 07 00 92 21 00 00 00 00 00 FF 0F C8 [13:29:08]RasterBufferAndPrint [13:29:08]line 小褔械褌 N : (1)320580 [13:29:08]line 袠袧袧: 02508201610067 [13:29:08]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [13:29:08]line 袩袪袨袛袗袞袗 [13:29:08]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [13:29:08]line 孝芯胁邪褉: 2710124130 [13:29:08]line 袗懈-92-袣-5 [13:29:08]line 9.190 * 66.40 [13:29:08]line = 610.22 [13:29:08]line 袧袛小 12% 袧小袩 1% [13:29:08]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [13:29:08]line 袨袣袪校袚袥袝袧袠袝: -0.22 [13:29:08]line 袠孝袨袚袨: 610.00 [13:29:08]line 袙薪械褋械薪芯: 610.00 [13:29:08]line 小袛袗效袗: 0.00 [13:29:08]line 袧小袩 1% : 5.40 [13:29:08]line 袧袛小 12% : 64.80 [13:29:08]line 袧邪谢懈褔薪褘屑懈: 610.00 [13:29:08]line 袘械蟹薪邪谢.: 0.00 [13:29:08]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [13:29:08]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [13:29:08]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [13:29:08]line 效械泻 101 21.06.2024 13:29 [13:29:08]line 小屑械薪邪: 390 肖肖袛: 1.0 [13:29:08]line 袟袧袦: 0300000198 [13:29:08]line 袪袧袦: 0000000000092771 [13:29:08]line 袙械褉褋懈褟 袣袣袦: 001 [13:29:08]line 肖袦: 0000000000875083 [13:29:08]line 肖袛: 111933 [13:29:08]line 肖袩袛: 267561518222016 [13:29:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T132923&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111933&fm=267561518222016&tin=02508201610067®Number=0000000000092771&sum=61000 [13:29:08]written 0, free lines is 4095 [13:29:08]Write to MH i2c: 01 00 00 BD 21 DE [13:29:08]Write i2c OK [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: 01 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: 01 07 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: 01 07 00 BD 21 00 00 00 00 00 DE 0C CF [13:29:08]RasterBufferAndPrint [13:29:08]line [13:29:08]line [13:29:08]line [13:29:08]line [13:29:08]line [13:29:08]written 0, free lines is 3303 [13:29:08]MH_Cut [13:29:08]Write to MH i2c: D1 01 00 C4 21 01 B7 [13:29:08]Write i2c OK [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: D1 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: D1 01 00 [13:29:08]MH_I2C_Read... [13:29:08]Read from MH i2c: D1 01 00 C4 21 00 B6 [13:29:08]Write to MH i2c: 01 00 00 C5 21 E6 [13:29:08]Write i2c OK [13:29:08]MH_I2C_Read... [13:29:09]*** Cut start [13:29:09]*** Partial cut [13:29:09]*** CUTSNS_PIN = 1 [13:29:09]*** CUTSNS_PIN = 0 [13:29:09]*** Brake cut motor [13:29:09]Read from MH i2c: 01 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: 01 07 00 [13:29:09]MH_I2C_Read... [13:29:09]*** Stop cut motor [13:29:09]*** Cut end [13:29:09]Read from MH i2c: 01 07 00 C5 21 00 00 00 00 00 FF 0F FB [13:29:09]process_action close_receipt done [13:29:09]requested_data is exist [13:29:09]produce_requested_data [13:29:09]requested_item fm.sn is exist - process it [13:29:09]wFMCommunicate request_size=4 [13:29:09]MH_SAM_APDU [13:29:09]CAPDU: 80 11 00 00 [13:29:09]Write to MH i2c: E2 08 00 C6 21 80 11 00 00 00 00 00 00 61 [13:29:09]Write i2c OK [13:29:09]MH_I2C_Read... [13:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:09]Read from MH i2c: E2 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 17 00 [13:29:09]MH_I2C_Read... [13:29:09]Read from MH i2c: E2 17 00 C6 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B3 [13:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:29:09]wFMCommunicate OK [13:29:09]requested_item fd.num is exist - process it [13:29:09]SAM_PROTO_GetFieldsCounters [13:29:09]wFMCommunicate request_size=4 [13:29:09]MH_SAM_APDU [13:29:09]CAPDU: 80 13 00 00 [13:29:09]Write to MH i2c: E2 08 00 C7 21 80 13 00 00 00 00 00 00 64 [13:29:09]Write i2c OK [13:29:09]MH_I2C_Read... [13:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:10]Read from MH i2c: E2 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 62 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 62 00 C7 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3D B5 01 00 0E 04 04 00 86 01 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 2E [13:29:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3D B5 01 00 0E 04 04 00 86 01 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 [13:29:10]wFMCommunicate OK [13:29:10]SAM_PROTO_GetFieldsCounters done [13:29:10]requested_item shift.num is exist - process it [13:29:10]requested_item shift.opened is exist - process it [13:29:10]req_shift_opened [13:29:10]FM_GetShiftState [13:29:10]SAM_PROTO_GetShiftState [13:29:10]wFMCommunicate request_size=4 [13:29:10]MH_SAM_APDU [13:29:10]CAPDU: 80 13 01 00 [13:29:10]Write to MH i2c: E2 08 00 C8 21 80 13 01 00 00 00 00 00 66 [13:29:10]Write i2c OK [13:29:10]MH_I2C_Read... [13:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:10]Read from MH i2c: E2 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 0E 00 [13:29:10]MH_I2C_Read... [13:29:10]Read from MH i2c: E2 0E 00 C8 21 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E3 [13:29:10]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:29:10]wFMCommunicate OK [13:29:10]SAM_PROTO_GetShiftState done [13:29:10]FM_GetShiftState done [13:29:10]req_shift_opened done [13:29:10]requested_item shift.open_date is exist - process it [13:29:10]req_shift_open_date [13:29:10]req_shift_open_date done [13:29:10]produce_requested_data done [13:29:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111933,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:29:10]process_action_free close_receipt [13:29:10]json_value_free [13:29:10]json_value_free done [13:29:10]process_json_proto returns [13:29:10]Send response to host [13:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111933,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:29:10]free response buf [13:29:10]execute_script done [13:29:10]execute_script returns [13:29:10]free content buf [13:29:10]Sock 9.Close socket [13:29:10]Sock 9.Thread stoped [13:30:32]ConnectInit Can't connect to host [13:30:32]CommunicateWithHost connect error [13:30:32]CommunicateWithHost err = -1 [13:30:32]OFD Sender: Server communicate error [13:30:32]OFD Sender: Processing packet 111764 [packets to send 207, broken 37] [13:30:32]ProducePacketName [13:30:32]name=ofd_packets/00111764 [13:30:32]OFD Sender: To server: 嚂鰌G, [13:30:32]CommunicateWithHost lk.salyk.kg:30040 [13:30:32]ConnectInit lk.salyk.kg [13:30:32]Connected sock=7 [13:30:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 31 A3 07 01 0B C4 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 D6 00 00 00 F4 03 04 00 D0 6D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B4 01 00 35 04 06 00 D0 91 F1 EC 69 F2 D1 67 76 13 7D 34 E2 9A [13:30:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C0 B5 47 00 CC 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 30 38 37 35 30 38 33 10 04 04 00 94 B4 01 00 F4 03 04 00 B3 17 75 66 B6 04 01 00 00 F6 D2 C7 A5 70 33 D8 02 [13:30:32]CommunicateWithHost err = 0 [13:30:32]CheckOFDResponse [13:30:32]1017 (14) - 77093643461234 [13:30:32]1041 (16) - 0000000000875083 [13:30:32]1040 (4) - 111764 [13:30:32]1012 (4) - 21.06.2024 06:03 [13:30:32]1206 (1) - 0 [13:30:32]OFD Sender: Remove packet 111764 [13:30:32]ProducePacketName [13:30:32]name=ofd_packets/00111764 [13:30:32]NVStorageDeleteData [13:30:33]OFD Sender: Processing packet 111765 [packets to send 206, broken 37] [13:30:33]ProducePacketName [13:30:33]name=ofd_packets/00111765 [13:30:33]OFD Sender: To server: 嚂鰌G, [13:30:33]CommunicateWithHost lk.salyk.kg:30040 [13:30:33]ConnectInit lk.salyk.kg [13:30:33]Connected sock=7 [13:30:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 99 EC 07 01 1E D4 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 D7 00 00 00 F4 03 04 00 F8 6D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B4 01 00 35 04 06 00 45 CF 1B B2 D9 4C CB 64 A2 77 C7 78 9D 46 [13:30:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 47 A4 47 00 FF 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 30 38 37 35 30 38 33 10 04 04 00 95 B4 01 00 F4 03 04 00 B3 17 75 66 B6 04 01 00 00 41 2E F8 7E A4 06 8B E4 [13:30:33]CommunicateWithHost err = 0 [13:30:33]CheckOFDResponse [13:30:33]1017 (14) - 77093643461234 [13:30:33]1041 (16) - 0000000000875083 [13:30:33]1040 (4) - 111765 [13:30:33]1012 (4) - 21.06.2024 06:03 [13:30:33]1206 (1) - 0 [13:30:33]OFD Sender: Remove packet 111765 [13:30:33]ProducePacketName [13:30:33]name=ofd_packets/00111765 [13:30:33]NVStorageDeleteData [13:30:34]OFD Sender: Processing packet 111766 [packets to send 205, broken 37] [13:30:34]ProducePacketName [13:30:34]name=ofd_packets/00111766 [13:30:34]OFD Sender: To server: 嚂鰌G, [13:30:34]CommunicateWithHost lk.salyk.kg:30040 [13:30:34]ConnectInit lk.salyk.kg [13:30:34]Connected sock=7 [13:30:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0F 4A 07 01 1D 6E 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 E0 01 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 73 0C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 0C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 01 00 00 00 00 07 04 06 00 1C 0C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 F1 6E 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B4 01 00 35 04 06 00 B2 99 E7 4E 27 72 1D 3E B2 AA F4 4B 1D B8 [13:30:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 27 86 47 00 C8 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B4 01 00 F4 03 04 00 B4 17 75 66 B6 04 01 00 00 DD F1 3F 11 42 0E 0E 23 [13:30:34]CommunicateWithHost err = 0 [13:30:34]CheckOFDResponse [13:30:34]1017 (14) - 77093643461234 [13:30:34]1041 (16) - 0000000000875083 [13:30:34]1040 (4) - 111766 [13:30:34]1012 (4) - 21.06.2024 06:03 [13:30:34]1206 (1) - 0 [13:30:34]OFD Sender: Remove packet 111766 [13:30:34]ProducePacketName [13:30:34]name=ofd_packets/00111766 [13:30:34]NVStorageDeleteData [13:30:35]OFD Sender: Processing packet 111767 [packets to send 204, broken 37] [13:30:35]ProducePacketName [13:30:35]name=ofd_packets/00111767 [13:30:35]OFD Sender: To server: 嚂鰌G, [13:30:35]CommunicateWithHost lk.salyk.kg:30040 [13:30:35]ConnectInit lk.salyk.kg [13:30:35]Connected sock=7 [13:30:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 04 22 07 01 9F 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 9E 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 61 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 13 00 00 00 00 07 04 06 00 34 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 24 6F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B4 01 00 35 04 06 00 83 68 D7 57 5C 7E 97 F1 77 72 D0 67 41 2B [13:30:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 26 2E 47 00 F2 68 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 30 38 37 35 30 38 33 10 04 04 00 97 B4 01 00 F4 03 04 00 B5 17 75 66 B6 04 01 00 00 55 74 78 27 57 D9 64 FA [13:30:35]CommunicateWithHost err = 0 [13:30:35]CheckOFDResponse [13:30:35]1017 (14) - 77093643461234 [13:30:35]1041 (16) - 0000000000875083 [13:30:35]1040 (4) - 111767 [13:30:35]1012 (4) - 21.06.2024 06:03 [13:30:35]1206 (1) - 0 [13:30:35]OFD Sender: Remove packet 111767 [13:30:35]ProducePacketName [13:30:35]name=ofd_packets/00111767 [13:30:35]NVStorageDeleteData [13:30:35]OFD Sender: Processing packet 111768 [packets to send 203, broken 37] [13:30:35]ProducePacketName [13:30:35]name=ofd_packets/00111768 [13:30:35]OFD Sender: To server: 嚂鰌G, [13:30:35]CommunicateWithHost lk.salyk.kg:30040 [13:30:35]ConnectInit lk.salyk.kg [13:30:35]Connected sock=7 [13:30:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 43 8B 07 01 8B 1E 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 DA 00 00 00 F4 03 04 00 52 6F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B4 01 00 35 04 06 00 23 E1 08 42 E7 0C D6 2F 25 2E F9 B2 95 FE [13:30:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F3 5D 47 00 FF 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 30 38 37 35 30 38 33 10 04 04 00 98 B4 01 00 F4 03 04 00 B6 17 75 66 B6 04 01 00 00 25 CC 28 B1 11 05 F9 B3 [13:30:36]CommunicateWithHost err = 0 [13:30:36]CheckOFDResponse [13:30:36]1017 (14) - 77093643461234 [13:30:36]1041 (16) - 0000000000875083 [13:30:36]1040 (4) - 111768 [13:30:36]1012 (4) - 21.06.2024 06:03 [13:30:36]1206 (1) - 0 [13:30:36]OFD Sender: Remove packet 111768 [13:30:36]ProducePacketName [13:30:36]name=ofd_packets/00111768 [13:30:36]NVStorageDeleteData [13:30:36]OFD Sender: Processing packet 111769 [packets to send 202, broken 37] [13:30:36]ProducePacketName [13:30:36]name=ofd_packets/00111769 [13:30:36]OFD Sender: To server: 嚂鰌G, [13:30:36]CommunicateWithHost lk.salyk.kg:30040 [13:30:36]ConnectInit lk.salyk.kg [13:30:36]Connected sock=7 [13:30:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA A1 07 01 94 46 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 DB 00 00 00 F4 03 04 00 7B 6F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B4 01 00 35 04 06 00 22 C8 37 3C 19 23 AA 82 79 AA 46 9F 86 C9 [13:30:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 58 35 47 00 6A B6 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 30 38 37 35 30 38 33 10 04 04 00 99 B4 01 00 F4 03 04 00 B7 17 75 66 B6 04 01 00 00 FA EC 11 DC 13 5D 35 D1 [13:30:36]CommunicateWithHost err = 0 [13:30:36]CheckOFDResponse [13:30:36]1017 (14) - 77093643461234 [13:30:36]1041 (16) - 0000000000875083 [13:30:36]1040 (4) - 111769 [13:30:36]1012 (4) - 21.06.2024 06:03 [13:30:36]1206 (1) - 0 [13:30:36]OFD Sender: Remove packet 111769 [13:30:36]ProducePacketName [13:30:36]name=ofd_packets/00111769 [13:30:36]NVStorageDeleteData [13:30:37]OFD Sender: Processing packet 111770 [packets to send 201, broken 37] [13:30:37]ProducePacketName [13:30:37]name=ofd_packets/00111770 [13:30:37]OFD Sender: To server: 嚂鰌G, [13:30:37]CommunicateWithHost lk.salyk.kg:30040 [13:30:37]ConnectInit lk.salyk.kg [13:30:37]Connected sock=7 [13:30:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD C6 07 01 4D 53 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 DC 00 00 00 F4 03 04 00 AB 70 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B4 01 00 35 04 06 00 2A 69 03 8D 06 36 71 93 D0 FE AD 26 CA 82 [13:30:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 90 54 47 00 A7 2F 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 30 38 37 35 30 38 33 10 04 04 00 9A B4 01 00 F4 03 04 00 B7 17 75 66 B6 04 01 00 00 F7 6D 7D 88 6C 52 E9 5B [13:30:37]CommunicateWithHost err = 0 [13:30:37]CheckOFDResponse [13:30:37]1017 (14) - 77093643461234 [13:30:37]1041 (16) - 0000000000875083 [13:30:37]1040 (4) - 111770 [13:30:37]1012 (4) - 21.06.2024 06:03 [13:30:37]1206 (1) - 0 [13:30:37]OFD Sender: Remove packet 111770 [13:30:37]ProducePacketName [13:30:37]name=ofd_packets/00111770 [13:30:37]NVStorageDeleteData [13:30:38]OFD Sender: Processing packet 111771 [packets to send 200, broken 37] [13:30:38]ProducePacketName [13:30:38]name=ofd_packets/00111771 [13:30:38]OFD Sender: To server: 嚂鰌G, [13:30:38]CommunicateWithHost lk.salyk.kg:30040 [13:30:38]ConnectInit lk.salyk.kg [13:30:38]Connected sock=7 [13:30:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD 0F 07 01 0E 27 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 DD 00 00 00 F4 03 04 00 31 71 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B4 01 00 35 04 06 00 70 70 D0 30 1F 71 BB 21 11 93 4B 28 BE 95 [13:30:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 41 1F 47 00 1D 0B 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 30 38 37 35 30 38 33 10 04 04 00 9B B4 01 00 F4 03 04 00 B8 17 75 66 B6 04 01 00 00 CA E4 C1 DB 06 4D 72 F9 [13:30:38]CommunicateWithHost err = 0 [13:30:38]CheckOFDResponse [13:30:38]1017 (14) - 77093643461234 [13:30:38]1041 (16) - 0000000000875083 [13:30:38]1040 (4) - 111771 [13:30:38]1012 (4) - 21.06.2024 06:03 [13:30:38]1206 (1) - 0 [13:30:38]OFD Sender: Remove packet 111771 [13:30:38]ProducePacketName [13:30:38]name=ofd_packets/00111771 [13:30:38]NVStorageDeleteData [13:30:39]OFD Sender: Processing packet 111772 [packets to send 199, broken 37] [13:30:39]ProducePacketName [13:30:39]name=ofd_packets/00111772 [13:30:39]OFD Sender: To server: 嚂鰌G, [13:30:39]CommunicateWithHost lk.salyk.kg:30040 [13:30:39]ConnectInit lk.salyk.kg [13:30:39]Connected sock=7 [13:30:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 97 69 07 01 52 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 8B 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 DE 00 00 00 F4 03 04 00 DD 71 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B4 01 00 35 04 06 00 27 EC 62 08 E6 DF 94 5C BE 26 4E 4B D8 3F [13:30:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1A D7 47 00 C5 CB 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 30 38 37 35 30 38 33 10 04 04 00 9C B4 01 00 F4 03 04 00 B9 17 75 66 B6 04 01 00 00 83 4A 90 28 8D FC C1 5C [13:30:39]CommunicateWithHost err = 0 [13:30:39]CheckOFDResponse [13:30:39]1017 (14) - 77093643461234 [13:30:39]1041 (16) - 0000000000875083 [13:30:39]1040 (4) - 111772 [13:30:39]1012 (4) - 21.06.2024 06:03 [13:30:39]1206 (1) - 0 [13:30:39]OFD Sender: Remove packet 111772 [13:30:39]ProducePacketName [13:30:39]name=ofd_packets/00111772 [13:30:39]NVStorageDeleteData [13:30:39]OFD Sender: Processing packet 111773 [packets to send 198, broken 37] [13:30:39]ProducePacketName [13:30:39]name=ofd_packets/00111773 [13:30:39]OFD Sender: To server: 嚂鰌G, [13:30:39]CommunicateWithHost lk.salyk.kg:30040 [13:30:39]ConnectInit lk.salyk.kg [13:30:39]Connected sock=7 [13:30:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF 96 07 01 84 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 10 72 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B4 01 00 35 04 06 00 67 B8 57 EE 34 8C 05 0B 54 73 0A 50 6F D0 [13:30:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 87 AB 47 00 6B 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 30 38 37 35 30 38 33 10 04 04 00 9D B4 01 00 F4 03 04 00 BA 17 75 66 B6 04 01 00 00 76 DF 2F 63 5E 2C CB 83 [13:30:40]CommunicateWithHost err = 0 [13:30:40]CheckOFDResponse [13:30:40]1017 (14) - 77093643461234 [13:30:40]1041 (16) - 0000000000875083 [13:30:40]1040 (4) - 111773 [13:30:40]1012 (4) - 21.06.2024 06:03 [13:30:40]1206 (1) - 0 [13:30:40]OFD Sender: Remove packet 111773 [13:30:40]ProducePacketName [13:30:40]name=ofd_packets/00111773 [13:30:40]NVStorageDeleteData [13:30:40]OFD Sender: Processing packet 111774 [packets to send 197, broken 37] [13:30:40]ProducePacketName [13:30:40]name=ofd_packets/00111774 [13:30:40]OFD Sender: To server: 嚂鰌G, [13:30:40]CommunicateWithHost lk.salyk.kg:30040 [13:30:40]ConnectInit lk.salyk.kg [13:30:40]Connected sock=7 [13:30:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4A 09 07 01 39 B7 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 A8 4D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A3 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 9B 72 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B4 01 00 35 04 06 00 4C F6 5E 41 56 EE C6 AF 06 89 2A FF 27 99 [13:30:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 96 0E 47 00 EE 33 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 30 38 37 35 30 38 33 10 04 04 00 9E B4 01 00 F4 03 04 00 BB 17 75 66 B6 04 01 00 00 59 8C 5E 10 B4 AE 45 0B [13:30:40]CommunicateWithHost err = 0 [13:30:40]CheckOFDResponse [13:30:40]1017 (14) - 77093643461234 [13:30:40]1041 (16) - 0000000000875083 [13:30:40]1040 (4) - 111774 [13:30:40]1012 (4) - 21.06.2024 06:03 [13:30:40]1206 (1) - 0 [13:30:40]OFD Sender: Remove packet 111774 [13:30:40]ProducePacketName [13:30:40]name=ofd_packets/00111774 [13:30:40]NVStorageDeleteData [13:30:41]OFD Sender: Processing packet 111775 [packets to send 196, broken 37] [13:30:41]ProducePacketName [13:30:41]name=ofd_packets/00111775 [13:30:41]OFD Sender: To server: 嚂鰌G, [13:30:41]CommunicateWithHost lk.salyk.kg:30040 [13:30:41]ConnectInit lk.salyk.kg [13:30:41]Connected sock=7 [13:30:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 14 1F 07 01 0B 5F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E1 00 00 00 F4 03 04 00 FA 72 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B4 01 00 35 04 06 00 8B D4 EF 2A BC D4 95 60 50 AA 01 26 05 19 [13:30:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7D B6 47 00 9E 68 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 30 38 37 35 30 38 33 10 04 04 00 9F B4 01 00 F4 03 04 00 BB 17 75 66 B6 04 01 00 00 16 6E 4C 99 C3 5B 77 D5 [13:30:41]CommunicateWithHost err = 0 [13:30:41]CheckOFDResponse [13:30:41]1017 (14) - 77093643461234 [13:30:41]1041 (16) - 0000000000875083 [13:30:41]1040 (4) - 111775 [13:30:41]1012 (4) - 21.06.2024 06:03 [13:30:41]1206 (1) - 0 [13:30:41]OFD Sender: Remove packet 111775 [13:30:41]ProducePacketName [13:30:41]name=ofd_packets/00111775 [13:30:41]NVStorageDeleteData [13:30:42]OFD Sender: Processing packet 111776 [packets to send 195, broken 37] [13:30:42]ProducePacketName [13:30:42]name=ofd_packets/00111776 [13:30:42]OFD Sender: To server: 嚂鰌G, [13:30:42]CommunicateWithHost lk.salyk.kg:30040 [13:30:42]ConnectInit lk.salyk.kg [13:30:42]Connected sock=7 [13:30:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 97 B4 07 01 6A DE 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 E2 00 00 00 F4 03 04 00 DF 74 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B4 01 00 35 04 06 00 1C E5 5D 3C 55 0E ED 8E E7 1D 07 C4 A7 E7 [13:30:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4C 9A 47 00 D3 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 30 38 37 35 30 38 33 10 04 04 00 A0 B4 01 00 F4 03 04 00 BC 17 75 66 B6 04 01 00 00 3A 92 1E 4B 69 14 02 48 [13:30:42]CommunicateWithHost err = 0 [13:30:42]CheckOFDResponse [13:30:42]1017 (14) - 77093643461234 [13:30:42]1041 (16) - 0000000000875083 [13:30:42]1040 (4) - 111776 [13:30:42]1012 (4) - 21.06.2024 06:03 [13:30:42]1206 (1) - 0 [13:30:42]OFD Sender: Remove packet 111776 [13:30:42]ProducePacketName [13:30:42]name=ofd_packets/00111776 [13:30:42]NVStorageDeleteData [13:30:43]OFD Sender: Processing packet 111777 [packets to send 194, broken 37] [13:30:43]ProducePacketName [13:30:43]name=ofd_packets/00111777 [13:30:43]OFD Sender: To server: 嚂鰌G, [13:30:43]CommunicateWithHost lk.salyk.kg:30040 [13:30:43]ConnectInit lk.salyk.kg [13:30:43]Connected sock=7 [13:30:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 58 7B 07 01 C5 AD 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 F4 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 93 54 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 54 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 AC 00 00 00 00 07 04 06 00 50 54 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 8E 75 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B4 01 00 35 04 06 00 83 73 70 FD C4 B0 1C A0 D1 5D 75 2F 1C 99 [13:30:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4F C6 47 00 D8 11 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 30 38 37 35 30 38 33 10 04 04 00 A1 B4 01 00 F4 03 04 00 BD 17 75 66 B6 04 01 00 00 CC F2 A3 C4 F8 6E F0 0A [13:30:43]CommunicateWithHost err = 0 [13:30:43]CheckOFDResponse [13:30:43]1017 (14) - 77093643461234 [13:30:43]1041 (16) - 0000000000875083 [13:30:43]1040 (4) - 111777 [13:30:43]1012 (4) - 21.06.2024 06:03 [13:30:43]1206 (1) - 0 [13:30:43]OFD Sender: Remove packet 111777 [13:30:43]ProducePacketName [13:30:43]name=ofd_packets/00111777 [13:30:43]NVStorageDeleteData [13:30:43]OFD Sender: Processing packet 111778 [packets to send 193, broken 37] [13:30:43]ProducePacketName [13:30:43]name=ofd_packets/00111778 [13:30:43]OFD Sender: To server: 嚂鰌G, [13:30:43]CommunicateWithHost lk.salyk.kg:30040 [13:30:43]ConnectInit lk.salyk.kg [13:30:43]Connected sock=7 [13:30:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E4 2C 04 01 58 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 14 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A2 98 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 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 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 E4 00 00 00 F4 03 04 00 9C 75 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B4 01 00 35 04 06 00 59 8B 76 C6 68 96 FD C3 E8 F6 EE DB B7 87 [13:30:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 03 1C 47 00 3A 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B4 01 00 F4 03 04 00 BE 17 75 66 B6 04 01 00 00 61 44 EC 03 06 F8 F2 B6 [13:30:44]CommunicateWithHost err = 0 [13:30:44]CheckOFDResponse [13:30:44]1017 (14) - 77093643461234 [13:30:44]1041 (16) - 0000000000875083 [13:30:44]1040 (4) - 111778 [13:30:44]1012 (4) - 21.06.2024 06:03 [13:30:44]1206 (1) - 0 [13:30:44]OFD Sender: Remove packet 111778 [13:30:44]ProducePacketName [13:30:44]name=ofd_packets/00111778 [13:30:44]NVStorageDeleteData [13:30:44]OFD Sender: Processing packet 111779 [packets to send 192, broken 37] [13:30:44]ProducePacketName [13:30:44]name=ofd_packets/00111779 [13:30:44]OFD Sender: To server: 嚂鰌G, [13:30:44]CommunicateWithHost lk.salyk.kg:30040 [13:30:44]ConnectInit lk.salyk.kg [13:30:44]Connected sock=7 [13:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0A F1 07 01 D2 FD 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 E5 00 00 00 F4 03 04 00 2A 76 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B4 01 00 35 04 06 00 A3 AD 55 28 EF 53 80 4B 14 9D 96 13 32 CB [13:30:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BB 62 47 00 30 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 30 38 37 35 30 38 33 10 04 04 00 A3 B4 01 00 F4 03 04 00 BF 17 75 66 B6 04 01 00 00 82 79 C5 68 B6 61 4D 2B [13:30:44]CommunicateWithHost err = 0 [13:30:44]CheckOFDResponse [13:30:44]1017 (14) - 77093643461234 [13:30:44]1041 (16) - 0000000000875083 [13:30:44]1040 (4) - 111779 [13:30:44]1012 (4) - 21.06.2024 06:03 [13:30:44]1206 (1) - 0 [13:30:44]OFD Sender: Remove packet 111779 [13:30:44]ProducePacketName [13:30:44]name=ofd_packets/00111779 [13:30:44]NVStorageDeleteData [13:30:45]OFD Sender: Processing packet 111780 [packets to send 191, broken 37] [13:30:45]ProducePacketName [13:30:45]name=ofd_packets/00111780 [13:30:45]OFD Sender: To server: 嚂鰌G, [13:30:45]CommunicateWithHost lk.salyk.kg:30040 [13:30:45]ConnectInit lk.salyk.kg [13:30:45]Connected sock=9 [13:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 17 32 07 01 08 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 C6 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9E 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 7B 05 00 00 00 00 07 04 06 00 90 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 D3 76 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B4 01 00 35 04 06 00 9D B2 8F CD 6B 43 10 B7 8A 91 C5 E1 D1 A9 [13:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 66 BA 47 00 8E 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B4 01 00 F4 03 04 00 BF 17 75 66 B6 04 01 00 00 EE E6 99 0E 45 7E 50 B7 [13:30:45]CommunicateWithHost err = 0 [13:30:45]CheckOFDResponse [13:30:45]1017 (14) - 77093643461234 [13:30:45]1041 (16) - 0000000000875083 [13:30:45]1040 (4) - 111780 [13:30:45]1012 (4) - 21.06.2024 06:03 [13:30:45]1206 (1) - 0 [13:30:45]OFD Sender: Remove packet 111780 [13:30:45]ProducePacketName [13:30:45]name=ofd_packets/00111780 [13:30:45]NVStorageDeleteData [13:30:46]OFD Sender: Processing packet 111781 [packets to send 190, broken 37] [13:30:46]ProducePacketName [13:30:46]name=ofd_packets/00111781 [13:30:46]OFD Sender: To server: 嚂鰌G, [13:30:46]CommunicateWithHost lk.salyk.kg:30040 [13:30:46]ConnectInit lk.salyk.kg [13:30:46]Connected sock=7 [13:30:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 BD 07 01 67 A0 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 4A 77 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B4 01 00 35 04 06 00 48 5A D0 B0 B6 4E E3 AA B1 0F BA E0 D8 C1 [13:30:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3B B2 47 00 CB 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 30 38 37 35 30 38 33 10 04 04 00 A5 B4 01 00 F4 03 04 00 C0 17 75 66 B6 04 01 00 00 9A E3 90 0B 56 4D 6B 24 [13:30:46]CommunicateWithHost err = 0 [13:30:46]CheckOFDResponse [13:30:46]1017 (14) - 77093643461234 [13:30:46]1041 (16) - 0000000000875083 [13:30:46]1040 (4) - 111781 [13:30:46]1012 (4) - 21.06.2024 06:03 [13:30:46]1206 (1) - 0 [13:30:46]OFD Sender: Remove packet 111781 [13:30:46]ProducePacketName [13:30:46]name=ofd_packets/00111781 [13:30:46]NVStorageDeleteData [13:30:47]OFD Sender: Processing packet 111782 [packets to send 189, broken 37] [13:30:47]ProducePacketName [13:30:47]name=ofd_packets/00111782 [13:30:47]OFD Sender: To server: 嚂鰌G, [13:30:47]CommunicateWithHost lk.salyk.kg:30040 [13:30:47]ConnectInit lk.salyk.kg [13:30:47]Connected sock=7 [13:30:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6D 7D 07 01 3C EF 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 E8 00 00 00 F4 03 04 00 3B 78 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B4 01 00 35 04 06 00 95 9F 28 52 89 2B 8B F6 0F EF BD 0D 3B F3 [13:30:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 17 75 47 00 9D 17 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 30 38 37 35 30 38 33 10 04 04 00 A6 B4 01 00 F4 03 04 00 C1 17 75 66 B6 04 01 00 00 8E 0E D3 CE 31 86 94 43 [13:30:47]CommunicateWithHost err = 0 [13:30:47]CheckOFDResponse [13:30:47]1017 (14) - 77093643461234 [13:30:47]1041 (16) - 0000000000875083 [13:30:47]1040 (4) - 111782 [13:30:47]1012 (4) - 21.06.2024 06:03 [13:30:47]1206 (1) - 0 [13:30:47]OFD Sender: Remove packet 111782 [13:30:47]ProducePacketName [13:30:47]name=ofd_packets/00111782 [13:30:47]NVStorageDeleteData [13:30:47]OFD Sender: Processing packet 111783 [packets to send 188, broken 37] [13:30:47]ProducePacketName [13:30:47]name=ofd_packets/00111783 [13:30:47]OFD Sender: To server: 嚂鰌G, [13:30:47]CommunicateWithHost lk.salyk.kg:30040 [13:30:47]ConnectInit lk.salyk.kg [13:30:47]Connected sock=7 [13:30:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C C0 07 01 6D 57 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 E9 00 00 00 F4 03 04 00 5A 79 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B4 01 00 35 04 06 00 67 2E C7 16 C8 7E DB 1B E7 18 BD 63 55 7E [13:30:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AE 5A 47 00 76 C4 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 30 38 37 35 30 38 33 10 04 04 00 A7 B4 01 00 F4 03 04 00 C2 17 75 66 B6 04 01 00 00 8B D6 B5 19 CF CC 12 09 [13:30:48]CommunicateWithHost err = 0 [13:30:48]CheckOFDResponse [13:30:48]1017 (14) - 77093643461234 [13:30:48]1041 (16) - 0000000000875083 [13:30:48]1040 (4) - 111783 [13:30:48]1012 (4) - 21.06.2024 06:03 [13:30:48]1206 (1) - 0 [13:30:48]OFD Sender: Remove packet 111783 [13:30:48]ProducePacketName [13:30:48]name=ofd_packets/00111783 [13:30:48]NVStorageDeleteData [13:30:48]OFD Sender: Processing packet 111784 [packets to send 187, broken 37] [13:30:48]ProducePacketName [13:30:48]name=ofd_packets/00111784 [13:30:48]OFD Sender: To server: 嚂鰌G, [13:30:48]CommunicateWithHost lk.salyk.kg:30040 [13:30:48]ConnectInit lk.salyk.kg [13:30:48]Connected sock=7 [13:30:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 86 B2 07 01 DE 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 EA 00 00 00 F4 03 04 00 E7 7A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B4 01 00 35 04 06 00 E7 D6 C7 6D 6A 50 DE C8 7D AD B4 1E FC 2F [13:30:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CC D3 47 00 08 B7 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 30 38 37 35 30 38 33 10 04 04 00 A8 B4 01 00 F4 03 04 00 C3 17 75 66 B6 04 01 00 00 57 58 25 C7 D8 32 E5 3B [13:30:48]CommunicateWithHost err = 0 [13:30:48]CheckOFDResponse [13:30:48]1017 (14) - 77093643461234 [13:30:48]1041 (16) - 0000000000875083 [13:30:48]1040 (4) - 111784 [13:30:48]1012 (4) - 21.06.2024 06:03 [13:30:48]1206 (1) - 0 [13:30:48]OFD Sender: Remove packet 111784 [13:30:48]ProducePacketName [13:30:48]name=ofd_packets/00111784 [13:30:48]NVStorageDeleteData [13:30:49]OFD Sender: Processing packet 111785 [packets to send 186, broken 37] [13:30:49]ProducePacketName [13:30:49]name=ofd_packets/00111785 [13:30:49]OFD Sender: To server: 嚂鰌G, [13:30:49]CommunicateWithHost lk.salyk.kg:30040 [13:30:49]ConnectInit lk.salyk.kg [13:30:49]Connected sock=7 [13:30:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E FB 07 01 9F F3 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 EB 00 00 00 F4 03 04 00 8B 7D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B4 01 00 35 04 06 00 89 BA 6A E5 DD 34 69 34 88 D5 C8 8C CC AE [13:30:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 41 43 47 00 F4 21 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 30 38 37 35 30 38 33 10 04 04 00 A9 B4 01 00 F4 03 04 00 C3 17 75 66 B6 04 01 00 00 67 80 82 E9 E5 99 B5 43 [13:30:49]CommunicateWithHost err = 0 [13:30:49]CheckOFDResponse [13:30:49]1017 (14) - 77093643461234 [13:30:49]1041 (16) - 0000000000875083 [13:30:49]1040 (4) - 111785 [13:30:49]1012 (4) - 21.06.2024 06:03 [13:30:49]1206 (1) - 0 [13:30:49]OFD Sender: Remove packet 111785 [13:30:49]ProducePacketName [13:30:49]name=ofd_packets/00111785 [13:30:49]NVStorageDeleteData [13:30:50]OFD Sender: Processing packet 111786 [packets to send 185, broken 37] [13:30:50]ProducePacketName [13:30:50]name=ofd_packets/00111786 [13:30:50]OFD Sender: To server: 嚂鰌G, [13:30:50]CommunicateWithHost lk.salyk.kg:30040 [13:30:50]ConnectInit lk.salyk.kg [13:30:50]Connected sock=7 [13:30:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E8 49 07 01 60 DA 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 EC 00 00 00 F4 03 04 00 15 80 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B4 01 00 35 04 06 00 CF 3C FF 54 EF 2A 93 1A 6F BF E8 23 89 AC [13:30:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E1 7A 47 00 59 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B4 01 00 F4 03 04 00 C4 17 75 66 B6 04 01 00 00 D5 AD 16 56 00 1B 05 8D [13:30:50]CommunicateWithHost err = 0 [13:30:50]CheckOFDResponse [13:30:50]1017 (14) - 77093643461234 [13:30:50]1041 (16) - 0000000000875083 [13:30:50]1040 (4) - 111786 [13:30:50]1012 (4) - 21.06.2024 06:03 [13:30:50]1206 (1) - 0 [13:30:50]OFD Sender: Remove packet 111786 [13:30:50]ProducePacketName [13:30:50]name=ofd_packets/00111786 [13:30:50]NVStorageDeleteData [13:30:51]OFD Sender: Processing packet 111787 [packets to send 184, broken 37] [13:30:51]ProducePacketName [13:30:51]name=ofd_packets/00111787 [13:30:51]OFD Sender: To server: 嚂鰌G, [13:30:51]CommunicateWithHost lk.salyk.kg:30040 [13:30:51]ConnectInit lk.salyk.kg [13:30:51]Connected sock=7 [13:30:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C6 B3 07 01 04 0E 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 ED 00 00 00 F4 03 04 00 32 80 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B4 01 00 35 04 06 00 82 62 55 EF D6 2A E2 B4 51 71 E9 32 DE A1 [13:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D4 31 47 00 9D 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 30 38 37 35 30 38 33 10 04 04 00 AB B4 01 00 F4 03 04 00 C5 17 75 66 B6 04 01 00 00 1B 5C 16 71 3D 9B 72 36 [13:30:51]CommunicateWithHost err = 0 [13:30:51]CheckOFDResponse [13:30:51]1017 (14) - 77093643461234 [13:30:51]1041 (16) - 0000000000875083 [13:30:51]1040 (4) - 111787 [13:30:51]1012 (4) - 21.06.2024 06:03 [13:30:51]1206 (1) - 0 [13:30:51]OFD Sender: Remove packet 111787 [13:30:51]ProducePacketName [13:30:51]name=ofd_packets/00111787 [13:30:51]NVStorageDeleteData [13:30:51]OFD Sender: Processing packet 111788 [packets to send 183, broken 37] [13:30:51]ProducePacketName [13:30:51]name=ofd_packets/00111788 [13:30:51]OFD Sender: To server: 嚂鰌G, [13:30:51]CommunicateWithHost lk.salyk.kg:30040 [13:30:51]ConnectInit lk.salyk.kg [13:30:51]Connected sock=7 [13:30:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 67 CF 07 01 80 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 60 80 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B4 01 00 35 04 06 00 CE F3 F8 45 F0 E5 34 2C C1 78 DD 4B 9D E6 [13:30:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 84 46 47 00 1A 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 30 38 37 35 30 38 33 10 04 04 00 AC B4 01 00 F4 03 04 00 C6 17 75 66 B6 04 01 00 00 3A 26 1F 1E 12 86 76 95 [13:30:52]CommunicateWithHost err = 0 [13:30:52]CheckOFDResponse [13:30:52]1017 (14) - 77093643461234 [13:30:52]1041 (16) - 0000000000875083 [13:30:52]1040 (4) - 111788 [13:30:52]1012 (4) - 21.06.2024 06:03 [13:30:52]1206 (1) - 0 [13:30:52]OFD Sender: Remove packet 111788 [13:30:52]ProducePacketName [13:30:52]name=ofd_packets/00111788 [13:30:52]NVStorageDeleteData [13:30:52]OFD Sender: Processing packet 111789 [packets to send 182, broken 37] [13:30:52]ProducePacketName [13:30:52]name=ofd_packets/00111789 [13:30:52]OFD Sender: To server: 嚂鰌G, [13:30:52]CommunicateWithHost lk.salyk.kg:30040 [13:30:52]ConnectInit lk.salyk.kg [13:30:52]Connected sock=7 [13:30:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 49 63 07 01 62 A4 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 EF 00 00 00 F4 03 04 00 8D 80 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B4 01 00 35 04 06 00 D7 29 AE F4 A7 51 CF 9E 8E 7A 19 83 56 E5 [13:30:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 70 0C 47 00 F0 94 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 30 38 37 35 30 38 33 10 04 04 00 AD B4 01 00 F4 03 04 00 C7 17 75 66 B6 04 01 00 00 57 55 0D 10 1C 58 C4 30 [13:30:52]CommunicateWithHost err = 0 [13:30:52]CheckOFDResponse [13:30:52]1017 (14) - 77093643461234 [13:30:52]1041 (16) - 0000000000875083 [13:30:52]1040 (4) - 111789 [13:30:52]1012 (4) - 21.06.2024 06:03 [13:30:52]1206 (1) - 0 [13:30:52]OFD Sender: Remove packet 111789 [13:30:52]ProducePacketName [13:30:52]name=ofd_packets/00111789 [13:30:52]NVStorageDeleteData [13:30:53]OFD Sender: Processing packet 111790 [packets to send 181, broken 37] [13:30:53]ProducePacketName [13:30:53]name=ofd_packets/00111790 [13:30:53]OFD Sender: To server: 嚂鰌G, [13:30:53]CommunicateWithHost lk.salyk.kg:30040 [13:30:53]ConnectInit lk.salyk.kg [13:30:53]Connected sock=7 [13:30:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A8 5C 07 01 46 E2 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 F0 00 00 00 F4 03 04 00 19 82 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B4 01 00 35 04 06 00 4E D8 F7 45 81 2B 76 0F F3 B2 C3 15 D8 C3 [13:30:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 63 D3 47 00 FB 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 30 38 37 35 30 38 33 10 04 04 00 AE B4 01 00 F4 03 04 00 C8 17 75 66 B6 04 01 00 00 32 79 24 EF 64 3E 6A E6 [13:30:53]CommunicateWithHost err = 0 [13:30:53]CheckOFDResponse [13:30:53]1017 (14) - 77093643461234 [13:30:53]1041 (16) - 0000000000875083 [13:30:53]1040 (4) - 111790 [13:30:53]1012 (4) - 21.06.2024 06:03 [13:30:53]1206 (1) - 0 [13:30:53]OFD Sender: Remove packet 111790 [13:30:53]ProducePacketName [13:30:53]name=ofd_packets/00111790 [13:30:53]NVStorageDeleteData [13:30:54]OFD Sender: Processing packet 111791 [packets to send 180, broken 37] [13:30:54]ProducePacketName [13:30:54]name=ofd_packets/00111791 [13:30:54]OFD Sender: To server: 嚂鰌G, [13:30:54]CommunicateWithHost lk.salyk.kg:30040 [13:30:54]ConnectInit lk.salyk.kg [13:30:54]Connected sock=7 [13:30:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 40 BB 07 01 02 FE 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 31 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 F1 00 00 00 F4 03 04 00 68 82 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B4 01 00 35 04 06 00 0E B3 25 5F AC 96 A2 D3 AA 26 C1 30 48 9B [13:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5C 83 47 00 62 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B4 01 00 F4 03 04 00 C8 17 75 66 B6 04 01 00 00 C3 DF BE 5E 96 06 F7 2C [13:30:54]CommunicateWithHost err = 0 [13:30:54]CheckOFDResponse [13:30:54]1017 (14) - 77093643461234 [13:30:54]1041 (16) - 0000000000875083 [13:30:54]1040 (4) - 111791 [13:30:54]1012 (4) - 21.06.2024 06:03 [13:30:54]1206 (1) - 0 [13:30:54]OFD Sender: Remove packet 111791 [13:30:54]ProducePacketName [13:30:54]name=ofd_packets/00111791 [13:30:54]NVStorageDeleteData [13:30:55]OFD Sender: Processing packet 111792 [packets to send 179, broken 37] [13:30:55]ProducePacketName [13:30:55]name=ofd_packets/00111792 [13:30:55]OFD Sender: To server: 嚂鰌G, [13:30:55]CommunicateWithHost lk.salyk.kg:30040 [13:30:55]ConnectInit lk.salyk.kg [13:30:55]Connected sock=7 [13:30:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 03 73 07 01 60 54 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 7D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 C7 82 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B4 01 00 35 04 06 00 18 AA 5D C1 2A 74 CA EB EE 67 99 EA 8E 90 [13:30:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 98 66 47 00 34 83 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 30 38 37 35 30 38 33 10 04 04 00 B0 B4 01 00 F4 03 04 00 C9 17 75 66 B6 04 01 00 00 FC 2B 32 DA 86 E8 F1 9C [13:30:55]CommunicateWithHost err = 0 [13:30:55]CheckOFDResponse [13:30:55]1017 (14) - 77093643461234 [13:30:55]1041 (16) - 0000000000875083 [13:30:55]1040 (4) - 111792 [13:30:55]1012 (4) - 21.06.2024 06:03 [13:30:55]1206 (1) - 0 [13:30:55]OFD Sender: Remove packet 111792 [13:30:55]ProducePacketName [13:30:55]name=ofd_packets/00111792 [13:30:55]NVStorageDeleteData [13:30:55]OFD Sender: Processing packet 111793 [packets to send 178, broken 37] [13:30:55]ProducePacketName [13:30:55]name=ofd_packets/00111793 [13:30:55]OFD Sender: To server: 嚂鰌G, [13:30:55]CommunicateWithHost lk.salyk.kg:30040 [13:30:55]ConnectInit lk.salyk.kg [13:30:56]Connected sock=9 [13:30:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 56 F7 07 01 FF C3 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 D8 82 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B4 01 00 35 04 06 00 D0 B4 AE 87 09 32 1B 67 31 81 76 21 8B BB [13:30:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 65 2C 47 00 80 8C 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 30 38 37 35 30 38 33 10 04 04 00 B1 B4 01 00 F4 03 04 00 CA 17 75 66 B6 04 01 00 00 3E DA 6B BF 28 20 28 8D [13:30:56]CommunicateWithHost err = 0 [13:30:56]CheckOFDResponse [13:30:56]1017 (14) - 77093643461234 [13:30:56]1041 (16) - 0000000000875083 [13:30:56]1040 (4) - 111793 [13:30:56]1012 (4) - 21.06.2024 06:03 [13:30:56]1206 (1) - 0 [13:30:56]OFD Sender: Remove packet 111793 [13:30:56]ProducePacketName [13:30:56]name=ofd_packets/00111793 [13:30:56]NVStorageDeleteData [13:30:56]OFD Sender: Processing packet 111794 [packets to send 177, broken 37] [13:30:56]ProducePacketName [13:30:56]name=ofd_packets/00111794 [13:30:56]OFD Sender: To server: 嚂鰌G, [13:30:56]CommunicateWithHost lk.salyk.kg:30040 [13:30:56]ConnectInit lk.salyk.kg [13:30:56]Connected sock=7 [13:30:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 45 F9 07 01 FC 8C 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 38 83 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B4 01 00 35 04 06 00 53 99 10 BE 0E B4 1D CC 99 BF FF 26 49 1E [13:30:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BF 84 47 00 CA 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 30 38 37 35 30 38 33 10 04 04 00 B2 B4 01 00 F4 03 04 00 CB 17 75 66 B6 04 01 00 00 28 2D E5 EE 70 DD FA 2E [13:30:57]CommunicateWithHost err = 0 [13:30:57]CheckOFDResponse [13:30:57]1017 (14) - 77093643461234 [13:30:57]1041 (16) - 0000000000875083 [13:30:57]1040 (4) - 111794 [13:30:57]1012 (4) - 21.06.2024 06:03 [13:30:57]1206 (1) - 0 [13:30:57]OFD Sender: Remove packet 111794 [13:30:57]ProducePacketName [13:30:57]name=ofd_packets/00111794 [13:30:57]NVStorageDeleteData [13:30:57]OFD Sender: Processing packet 111795 [packets to send 176, broken 37] [13:30:57]ProducePacketName [13:30:57]name=ofd_packets/00111795 [13:30:57]OFD Sender: To server: 嚂鰌G, [13:30:57]CommunicateWithHost lk.salyk.kg:30040 [13:30:57]ConnectInit lk.salyk.kg [13:30:57]Connected sock=7 [13:30:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 32 6C 07 01 8F 01 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 C4 87 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B4 01 00 35 04 06 00 3E FA DE 20 D5 C4 B6 FC A9 0F F2 29 36 5A [13:30:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5A 07 47 00 45 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 30 38 37 35 30 38 33 10 04 04 00 B3 B4 01 00 F4 03 04 00 CC 17 75 66 B6 04 01 00 00 9D 1D 0E 2A 1F 37 A8 20 [13:30:57]CommunicateWithHost err = 0 [13:30:57]CheckOFDResponse [13:30:57]1017 (14) - 77093643461234 [13:30:57]1041 (16) - 0000000000875083 [13:30:57]1040 (4) - 111795 [13:30:57]1012 (4) - 21.06.2024 06:03 [13:30:57]1206 (1) - 0 [13:30:57]OFD Sender: Remove packet 111795 [13:30:57]ProducePacketName [13:30:57]name=ofd_packets/00111795 [13:30:57]NVStorageDeleteData [13:30:58]OFD Sender: Processing packet 111796 [packets to send 175, broken 37] [13:30:58]ProducePacketName [13:30:58]name=ofd_packets/00111796 [13:30:58]OFD Sender: To server: 嚂鰌G, [13:30:58]CommunicateWithHost lk.salyk.kg:30040 [13:30:58]ConnectInit lk.salyk.kg [13:30:58]Connected sock=7 [13:30:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 60 07 01 C7 B0 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 F6 00 00 00 F4 03 04 00 B2 8A 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B4 01 00 35 04 06 00 9A 57 B4 E1 D3 47 9E 49 B8 9E 96 DE A2 78 [13:30:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 74 CE 47 00 0D 77 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 30 38 37 35 30 38 33 10 04 04 00 B4 B4 01 00 F4 03 04 00 CC 17 75 66 B6 04 01 00 00 01 61 F3 60 FA 76 94 F3 [13:30:58]CommunicateWithHost err = 0 [13:30:58]CheckOFDResponse [13:30:58]1017 (14) - 77093643461234 [13:30:58]1041 (16) - 0000000000875083 [13:30:58]1040 (4) - 111796 [13:30:58]1012 (4) - 21.06.2024 06:03 [13:30:58]1206 (1) - 0 [13:30:58]OFD Sender: Remove packet 111796 [13:30:58]ProducePacketName [13:30:58]name=ofd_packets/00111796 [13:30:58]NVStorageDeleteData [13:30:59]OFD Sender: Processing packet 111797 [packets to send 174, broken 37] [13:30:59]ProducePacketName [13:30:59]name=ofd_packets/00111797 [13:30:59]OFD Sender: To server: 嚂鰌G, [13:30:59]CommunicateWithHost lk.salyk.kg:30040 [13:30:59]ConnectInit lk.salyk.kg [13:30:59]Connected sock=7 [13:30:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E2 04 07 01 56 B6 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 5E 8B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B4 01 00 35 04 06 00 89 BE CB 51 AE 27 91 3D C2 D4 46 55 36 AC [13:30:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 70 F5 47 00 08 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 30 38 37 35 30 38 33 10 04 04 00 B5 B4 01 00 F4 03 04 00 CD 17 75 66 B6 04 01 00 00 77 57 3E F1 6B DB F4 AE [13:30:59]CommunicateWithHost err = 0 [13:30:59]CheckOFDResponse [13:30:59]1017 (14) - 77093643461234 [13:30:59]1041 (16) - 0000000000875083 [13:30:59]1040 (4) - 111797 [13:30:59]1012 (4) - 21.06.2024 06:03 [13:30:59]1206 (1) - 0 [13:30:59]OFD Sender: Remove packet 111797 [13:30:59]ProducePacketName [13:30:59]name=ofd_packets/00111797 [13:30:59]NVStorageDeleteData [13:30:59]OFD Sender: Processing packet 111798 [packets to send 173, broken 37] [13:30:59]ProducePacketName [13:30:59]name=ofd_packets/00111798 [13:30:59]OFD Sender: To server: 嚂鰌G, [13:30:59]CommunicateWithHost lk.salyk.kg:30040 [13:30:59]ConnectInit lk.salyk.kg [13:31:00]Connected sock=7 [13:31:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0D 4B 07 01 DC 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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 95 8B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B4 01 00 35 04 06 00 90 E6 92 24 60 71 63 B9 25 FA 7C A5 35 57 [13:31:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C0 2F 47 00 7D E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B4 01 00 F4 03 04 00 CE 17 75 66 B6 04 01 00 00 3B 5D 69 87 FF B1 5A CD [13:31:00]CommunicateWithHost err = 0 [13:31:00]CheckOFDResponse [13:31:00]1017 (14) - 77093643461234 [13:31:00]1041 (16) - 0000000000875083 [13:31:00]1040 (4) - 111798 [13:31:00]1012 (4) - 21.06.2024 06:03 [13:31:00]1206 (1) - 0 [13:31:00]OFD Sender: Remove packet 111798 [13:31:00]ProducePacketName [13:31:00]name=ofd_packets/00111798 [13:31:00]NVStorageDeleteData [13:31:00]OFD Sender: Processing packet 111799 [packets to send 172, broken 37] [13:31:00]ProducePacketName [13:31:00]name=ofd_packets/00111799 [13:31:00]OFD Sender: To server: 嚂鰌G, [13:31:00]CommunicateWithHost lk.salyk.kg:30040 [13:31:00]ConnectInit lk.salyk.kg [13:31:00]Connected sock=7 [13:31:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 89 63 04 01 93 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 F9 00 00 00 F4 03 04 00 40 8D 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B4 01 00 35 04 06 00 02 52 87 B6 F1 5E BE 92 64 42 E2 CA 49 03 [13:31:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 56 5E 47 00 02 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 30 38 37 35 30 38 33 10 04 04 00 B7 B4 01 00 F4 03 04 00 CF 17 75 66 B6 04 01 00 00 4D 4C B9 45 2C A2 C9 0E [13:31:01]CommunicateWithHost err = 0 [13:31:01]CheckOFDResponse [13:31:01]1017 (14) - 77093643461234 [13:31:01]1041 (16) - 0000000000875083 [13:31:01]1040 (4) - 111799 [13:31:01]1012 (4) - 21.06.2024 06:03 [13:31:01]1206 (1) - 0 [13:31:01]OFD Sender: Remove packet 111799 [13:31:01]ProducePacketName [13:31:01]name=ofd_packets/00111799 [13:31:01]NVStorageDeleteData [13:31:01]OFD Sender: Processing packet 111800 [packets to send 171, broken 37] [13:31:01]ProducePacketName [13:31:01]name=ofd_packets/00111800 [13:31:01]OFD Sender: To server: 嚂鰌G, [13:31:01]CommunicateWithHost lk.salyk.kg:30040 [13:31:01]ConnectInit lk.salyk.kg [13:31:01]Connected sock=7 [13:31:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 7E 07 01 7E 4E 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 98 92 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B4 01 00 35 04 06 00 28 2C 70 6C F4 67 B0 EE 11 E9 C4 62 A9 C0 [13:31:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7E 04 47 00 97 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 30 38 37 35 30 38 33 10 04 04 00 B8 B4 01 00 F4 03 04 00 D0 17 75 66 B6 04 01 00 00 40 43 FD E2 AE 2B 28 5A [13:31:01]CommunicateWithHost err = 0 [13:31:01]CheckOFDResponse [13:31:01]1017 (14) - 77093643461234 [13:31:01]1041 (16) - 0000000000875083 [13:31:01]1040 (4) - 111800 [13:31:01]1012 (4) - 21.06.2024 06:04 [13:31:01]1206 (1) - 0 [13:31:01]OFD Sender: Remove packet 111800 [13:31:01]ProducePacketName [13:31:01]name=ofd_packets/00111800 [13:31:01]NVStorageDeleteData [13:31:02]OFD Sender: Processing packet 111801 [packets to send 170, broken 37] [13:31:02]ProducePacketName [13:31:02]name=ofd_packets/00111801 [13:31:02]OFD Sender: To server: 嚂鰌G, [13:31:02]CommunicateWithHost lk.salyk.kg:30040 [13:31:02]ConnectInit lk.salyk.kg [13:31:02]Connected sock=7 [13:31:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 3E 07 01 08 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 FB 00 00 00 F4 03 04 00 69 93 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B4 01 00 35 04 06 00 CE D6 00 DC 27 16 27 43 1D 35 A4 4F 95 45 [13:31:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5E FA 47 00 7D 70 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 30 38 37 35 30 38 33 10 04 04 00 B9 B4 01 00 F4 03 04 00 D1 17 75 66 B6 04 01 00 00 45 5C 35 90 D6 C8 29 79 [13:31:02]CommunicateWithHost err = 0 [13:31:02]CheckOFDResponse [13:31:02]1017 (14) - 77093643461234 [13:31:02]1041 (16) - 0000000000875083 [13:31:02]1040 (4) - 111801 [13:31:02]1012 (4) - 21.06.2024 06:04 [13:31:02]1206 (1) - 0 [13:31:02]OFD Sender: Remove packet 111801 [13:31:02]ProducePacketName [13:31:02]name=ofd_packets/00111801 [13:31:02]NVStorageDeleteData [13:31:03]OFD Sender: Processing packet 111802 [packets to send 169, broken 37] [13:31:03]ProducePacketName [13:31:03]name=ofd_packets/00111802 [13:31:03]OFD Sender: To server: 嚂鰌G, [13:31:03]CommunicateWithHost lk.salyk.kg:30040 [13:31:03]ConnectInit lk.salyk.kg [13:31:03]Connected sock=7 [13:31:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 68 6C 04 01 75 BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 6C 94 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B4 01 00 35 04 06 00 DE 97 4F BE 15 C2 54 F6 46 36 62 9A A6 DD [13:31:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D6 53 47 00 06 9B 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 30 38 37 35 30 38 33 10 04 04 00 BA B4 01 00 F4 03 04 00 D1 17 75 66 B6 04 01 00 00 C8 6C 87 DE FE E1 6D 69 [13:31:03]CommunicateWithHost err = 0 [13:31:03]CheckOFDResponse [13:31:03]1017 (14) - 77093643461234 [13:31:03]1041 (16) - 0000000000875083 [13:31:03]1040 (4) - 111802 [13:31:03]1012 (4) - 21.06.2024 06:04 [13:31:03]1206 (1) - 0 [13:31:03]OFD Sender: Remove packet 111802 [13:31:03]ProducePacketName [13:31:03]name=ofd_packets/00111802 [13:31:03]NVStorageDeleteData [13:31:04]OFD Sender: Processing packet 111803 [packets to send 168, broken 37] [13:31:04]ProducePacketName [13:31:04]name=ofd_packets/00111803 [13:31:04]OFD Sender: To server: 嚂鰌G, [13:31:04]CommunicateWithHost lk.salyk.kg:30040 [13:31:04]ConnectInit lk.salyk.kg [13:31:04]Connected sock=7 [13:31:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F5 D5 04 01 EE 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 94 95 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B4 01 00 35 04 06 00 20 83 3B 61 BE DD 2D E7 60 7E 66 E2 30 DC [13:31:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E7 E6 47 00 6B C4 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 30 38 37 35 30 38 33 10 04 04 00 BB B4 01 00 F4 03 04 00 D2 17 75 66 B6 04 01 00 00 BA 49 F4 28 63 76 48 61 [13:31:04]CommunicateWithHost err = 0 [13:31:04]CheckOFDResponse [13:31:04]1017 (14) - 77093643461234 [13:31:04]1041 (16) - 0000000000875083 [13:31:04]1040 (4) - 111803 [13:31:04]1012 (4) - 21.06.2024 06:04 [13:31:04]1206 (1) - 0 [13:31:04]OFD Sender: Remove packet 111803 [13:31:04]ProducePacketName [13:31:04]name=ofd_packets/00111803 [13:31:04]NVStorageDeleteData [13:31:04]OFD Sender: Processing packet 111804 [packets to send 167, broken 37] [13:31:04]ProducePacketName [13:31:04]name=ofd_packets/00111804 [13:31:04]OFD Sender: To server: 嚂鰌G, [13:31:04]CommunicateWithHost lk.salyk.kg:30040 [13:31:04]ConnectInit lk.salyk.kg [13:31:05]Connected sock=7 [13:31:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 35 46 07 01 89 C0 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 FE 00 00 00 F4 03 04 00 F1 95 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B4 01 00 35 04 06 00 28 9A A0 A9 7A B8 0E 03 1C B5 28 1D 35 D5 [13:31:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 96 DF 47 00 4C 9E 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 30 38 37 35 30 38 33 10 04 04 00 BC B4 01 00 F4 03 04 00 D3 17 75 66 B6 04 01 00 00 B5 54 67 FE 7C 37 99 94 [13:31:05]CommunicateWithHost err = 0 [13:31:05]CheckOFDResponse [13:31:05]1017 (14) - 77093643461234 [13:31:05]1041 (16) - 0000000000875083 [13:31:05]1040 (4) - 111804 [13:31:05]1012 (4) - 21.06.2024 06:04 [13:31:05]1206 (1) - 0 [13:31:05]OFD Sender: Remove packet 111804 [13:31:05]ProducePacketName [13:31:05]name=ofd_packets/00111804 [13:31:05]NVStorageDeleteData [13:31:05]OFD Sender: Processing packet 111805 [packets to send 166, broken 37] [13:31:05]ProducePacketName [13:31:05]name=ofd_packets/00111805 [13:31:05]OFD Sender: To server: 嚂鰌G, [13:31:05]CommunicateWithHost lk.salyk.kg:30040 [13:31:05]ConnectInit lk.salyk.kg [13:31:05]Connected sock=7 [13:31:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 78 A2 07 01 AB 20 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 FF 00 00 00 F4 03 04 00 CA 99 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B4 01 00 35 04 06 00 1A F6 B5 82 87 5B 39 5C 3F 25 F3 5E 93 39 [13:31:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 65 20 47 00 DD 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 30 38 37 35 30 38 33 10 04 04 00 BD B4 01 00 F4 03 04 00 D4 17 75 66 B6 04 01 00 00 ED 79 62 3E 1A 96 73 B8 [13:31:06]CommunicateWithHost err = 0 [13:31:06]CheckOFDResponse [13:31:06]1017 (14) - 77093643461234 [13:31:06]1041 (16) - 0000000000875083 [13:31:06]1040 (4) - 111805 [13:31:06]1012 (4) - 21.06.2024 06:04 [13:31:06]1206 (1) - 0 [13:31:06]OFD Sender: Remove packet 111805 [13:31:06]ProducePacketName [13:31:06]name=ofd_packets/00111805 [13:31:06]NVStorageDeleteData [13:31:06]OFD Sender: Processing packet 111806 [packets to send 165, broken 37] [13:31:06]ProducePacketName [13:31:06]name=ofd_packets/00111806 [13:31:06]OFD Sender: To server: 嚂鰌G, [13:31:06]CommunicateWithHost lk.salyk.kg:30040 [13:31:06]ConnectInit lk.salyk.kg [13:31:06]Connected sock=9 [13:31:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 04 60 07 01 62 D7 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 00 01 00 00 F4 03 04 00 60 9B 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B4 01 00 35 04 06 00 38 DA C7 D3 A8 FC DF 85 AB 37 D5 7B 62 C5 [13:31:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 34 5A 47 00 37 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 30 38 37 35 30 38 33 10 04 04 00 BE B4 01 00 F4 03 04 00 D5 17 75 66 B6 04 01 00 00 C4 77 42 95 83 CC F9 E7 [13:31:06]CommunicateWithHost err = 0 [13:31:06]CheckOFDResponse [13:31:06]1017 (14) - 77093643461234 [13:31:06]1041 (16) - 0000000000875083 [13:31:06]1040 (4) - 111806 [13:31:06]1012 (4) - 21.06.2024 06:04 [13:31:06]1206 (1) - 0 [13:31:06]OFD Sender: Remove packet 111806 [13:31:06]ProducePacketName [13:31:06]name=ofd_packets/00111806 [13:31:06]NVStorageDeleteData [13:31:07]OFD Sender: Processing packet 111807 [packets to send 164, broken 37] [13:31:07]ProducePacketName [13:31:07]name=ofd_packets/00111807 [13:31:07]OFD Sender: To server: 嚂鰌G, [13:31:07]CommunicateWithHost lk.salyk.kg:30040 [13:31:07]ConnectInit lk.salyk.kg [13:31:07]Connected sock=7 [13:31:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 13 0F 04 01 AD CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 05 9F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B4 01 00 35 04 06 00 F2 5E 2F A0 FA 98 5C 01 A0 5B E3 19 6D 19 [13:31:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F5 9E 47 00 B5 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 30 38 37 35 30 38 33 10 04 04 00 BF B4 01 00 F4 03 04 00 D5 17 75 66 B6 04 01 00 00 22 81 3D 26 9B 05 9F E3 [13:31:07]CommunicateWithHost err = 0 [13:31:07]CheckOFDResponse [13:31:07]1017 (14) - 77093643461234 [13:31:07]1041 (16) - 0000000000875083 [13:31:07]1040 (4) - 111807 [13:31:07]1012 (4) - 21.06.2024 06:04 [13:31:07]1206 (1) - 0 [13:31:07]OFD Sender: Remove packet 111807 [13:31:07]ProducePacketName [13:31:07]name=ofd_packets/00111807 [13:31:07]NVStorageDeleteData [13:31:08]OFD Sender: Processing packet 111808 [packets to send 163, broken 37] [13:31:08]ProducePacketName [13:31:08]name=ofd_packets/00111808 [13:31:08]OFD Sender: To server: 嚂鰌G, [13:31:08]CommunicateWithHost lk.salyk.kg:30040 [13:31:08]ConnectInit lk.salyk.kg [13:31:08]Connected sock=7 [13:31:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 67 07 01 04 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 02 01 00 00 F4 03 04 00 09 9F 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B4 01 00 35 04 06 00 94 B8 BA 0D 75 16 28 EF 8D 63 4E FA FF CD [13:31:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8D EF 47 00 08 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B4 01 00 F4 03 04 00 D6 17 75 66 B6 04 01 00 00 0C C3 E5 84 FA B9 E8 9D [13:31:08]CommunicateWithHost err = 0 [13:31:08]CheckOFDResponse [13:31:08]1017 (14) - 77093643461234 [13:31:08]1041 (16) - 0000000000875083 [13:31:08]1040 (4) - 111808 [13:31:08]1012 (4) - 21.06.2024 06:04 [13:31:08]1206 (1) - 0 [13:31:08]OFD Sender: Remove packet 111808 [13:31:08]ProducePacketName [13:31:08]name=ofd_packets/00111808 [13:31:08]NVStorageDeleteData [13:31:09]OFD Sender: Processing packet 111809 [packets to send 162, broken 37] [13:31:09]ProducePacketName [13:31:09]name=ofd_packets/00111809 [13:31:09]OFD Sender: To server: 嚂鰌G, [13:31:09]CommunicateWithHost lk.salyk.kg:30040 [13:31:09]ConnectInit lk.salyk.kg [13:31:09]Connected sock=7 [13:31:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A2 6A 07 01 89 89 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 B8 A0 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B4 01 00 35 04 06 00 FA BF 9D 57 7F 4A 33 3E E6 21 41 EE 53 8C [13:31:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4E 32 47 00 0B C5 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 30 38 37 35 30 38 33 10 04 04 00 C1 B4 01 00 F4 03 04 00 D7 17 75 66 B6 04 01 00 00 11 44 8E B5 A2 00 B1 91 [13:31:09]CommunicateWithHost err = 0 [13:31:09]CheckOFDResponse [13:31:09]1017 (14) - 77093643461234 [13:31:09]1041 (16) - 0000000000875083 [13:31:09]1040 (4) - 111809 [13:31:09]1012 (4) - 21.06.2024 06:04 [13:31:09]1206 (1) - 0 [13:31:09]OFD Sender: Remove packet 111809 [13:31:09]ProducePacketName [13:31:09]name=ofd_packets/00111809 [13:31:09]NVStorageDeleteData [13:31:09]OFD Sender: Processing packet 111810 [packets to send 161, broken 37] [13:31:09]ProducePacketName [13:31:09]name=ofd_packets/00111810 [13:31:09]OFD Sender: To server: 嚂鰌G, [13:31:09]CommunicateWithHost lk.salyk.kg:30040 [13:31:09]ConnectInit lk.salyk.kg [13:31:10]Connected sock=7 [13:31:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D9 30 07 01 7B 98 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 99 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 59 A1 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B4 01 00 35 04 06 00 9A B5 39 89 A4 DC 96 45 E4 6D 8A 6F E7 36 [13:31:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 75 AF 47 00 C6 83 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 30 38 37 35 30 38 33 10 04 04 00 C2 B4 01 00 F4 03 04 00 D8 17 75 66 B6 04 01 00 00 DE 1D 61 75 07 D3 1C 81 [13:31:10]CommunicateWithHost err = 0 [13:31:10]CheckOFDResponse [13:31:10]1017 (14) - 77093643461234 [13:31:10]1041 (16) - 0000000000875083 [13:31:10]1040 (4) - 111810 [13:31:10]1012 (4) - 21.06.2024 06:04 [13:31:10]1206 (1) - 0 [13:31:10]OFD Sender: Remove packet 111810 [13:31:10]ProducePacketName [13:31:10]name=ofd_packets/00111810 [13:31:10]NVStorageDeleteData [13:31:10]OFD Sender: Processing packet 111811 [packets to send 160, broken 37] [13:31:10]ProducePacketName [13:31:10]name=ofd_packets/00111811 [13:31:10]OFD Sender: To server: 嚂鰌G, [13:31:10]CommunicateWithHost lk.salyk.kg:30040 [13:31:10]ConnectInit lk.salyk.kg [13:31:10]Connected sock=7 [13:31:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 FD 8B 04 01 3C 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 05 01 00 00 F4 03 04 00 25 A5 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B4 01 00 35 04 06 00 3A A3 66 B4 61 DB 51 3C 46 AB BA 74 9B 6F [13:31:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 59 54 47 00 E7 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 30 38 37 35 30 38 33 10 04 04 00 C3 B4 01 00 F4 03 04 00 D9 17 75 66 B6 04 01 00 00 4F FC 4E 06 71 01 A9 AF [13:31:11]CommunicateWithHost err = 0 [13:31:11]CheckOFDResponse [13:31:11]1017 (14) - 77093643461234 [13:31:11]1041 (16) - 0000000000875083 [13:31:11]1040 (4) - 111811 [13:31:11]1012 (4) - 21.06.2024 06:04 [13:31:11]1206 (1) - 0 [13:31:11]OFD Sender: Remove packet 111811 [13:31:11]ProducePacketName [13:31:11]name=ofd_packets/00111811 [13:31:11]NVStorageDeleteData [13:31:11]OFD Sender: Processing packet 111812 [packets to send 159, broken 37] [13:31:11]ProducePacketName [13:31:11]name=ofd_packets/00111812 [13:31:11]OFD Sender: To server: 嚂鰌G, [13:31:11]CommunicateWithHost lk.salyk.kg:30040 [13:31:11]ConnectInit lk.salyk.kg [13:31:11]Connected sock=7 [13:31:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 93 61 04 01 C0 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 1C A6 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B4 01 00 35 04 06 00 12 0B F7 FC A3 32 9C 77 AC 7A 46 25 1C F8 [13:31:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5B 22 47 00 72 1A 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 30 38 37 35 30 38 33 10 04 04 00 C4 B4 01 00 F4 03 04 00 DA 17 75 66 B6 04 01 00 00 94 6B 95 6C 5F 28 4E BE [13:31:11]CommunicateWithHost err = 0 [13:31:11]CheckOFDResponse [13:31:11]1017 (14) - 77093643461234 [13:31:11]1041 (16) - 0000000000875083 [13:31:11]1040 (4) - 111812 [13:31:11]1012 (4) - 21.06.2024 06:04 [13:31:11]1206 (1) - 0 [13:31:11]OFD Sender: Remove packet 111812 [13:31:11]ProducePacketName [13:31:11]name=ofd_packets/00111812 [13:31:11]NVStorageDeleteData [13:31:12]OFD Sender: Processing packet 111813 [packets to send 158, broken 37] [13:31:12]ProducePacketName [13:31:12]name=ofd_packets/00111813 [13:31:12]OFD Sender: To server: 嚂鰌G, [13:31:12]CommunicateWithHost lk.salyk.kg:30040 [13:31:12]ConnectInit lk.salyk.kg [13:31:12]Connected sock=7 [13:31:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D8 52 07 01 10 EB 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 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 AC 20 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 2B A9 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B4 01 00 35 04 06 00 E5 B8 EF 97 57 AA C8 73 C4 B3 FF 37 C4 8C [13:31:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 60 D3 47 00 19 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B4 01 00 F4 03 04 00 DA 17 75 66 B6 04 01 00 00 BA 81 32 80 AC 7F 0F 20 [13:31:12]CommunicateWithHost err = 0 [13:31:12]CheckOFDResponse [13:31:12]1017 (14) - 77093643461234 [13:31:12]1041 (16) - 0000000000875083 [13:31:12]1040 (4) - 111813 [13:31:12]1012 (4) - 21.06.2024 06:04 [13:31:12]1206 (1) - 0 [13:31:12]OFD Sender: Remove packet 111813 [13:31:12]ProducePacketName [13:31:12]name=ofd_packets/00111813 [13:31:12]NVStorageDeleteData [13:31:13]OFD Sender: Processing packet 111814 [packets to send 157, broken 37] [13:31:13]ProducePacketName [13:31:13]name=ofd_packets/00111814 [13:31:13]OFD Sender: To server: 嚂鰌G, [13:31:13]CommunicateWithHost lk.salyk.kg:30040 [13:31:13]ConnectInit lk.salyk.kg [13:31:13]Connected sock=7 [13:31:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 8F E1 04 01 71 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 08 01 00 00 F4 03 04 00 2F A9 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B4 01 00 35 04 06 00 D2 EF 9F 53 EF A4 61 D4 2A 4F 8A 5B 92 CC [13:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A7 C0 47 00 DF 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B4 01 00 F4 03 04 00 DB 17 75 66 B6 04 01 00 00 06 56 9C 0D 2F CD 4A 18 [13:31:13]CommunicateWithHost err = 0 [13:31:13]CheckOFDResponse [13:31:13]1017 (14) - 77093643461234 [13:31:13]1041 (16) - 0000000000875083 [13:31:13]1040 (4) - 111814 [13:31:13]1012 (4) - 21.06.2024 06:04 [13:31:13]1206 (1) - 0 [13:31:13]OFD Sender: Remove packet 111814 [13:31:13]ProducePacketName [13:31:13]name=ofd_packets/00111814 [13:31:13]NVStorageDeleteData [13:31:14]OFD Sender: Processing packet 111815 [packets to send 156, broken 37] [13:31:14]ProducePacketName [13:31:14]name=ofd_packets/00111815 [13:31:14]OFD Sender: To server: 嚂鰌G, [13:31:14]CommunicateWithHost lk.salyk.kg:30040 [13:31:14]ConnectInit lk.salyk.kg [13:31:14]Connected sock=7 [13:31:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F2 E8 07 01 29 ED 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 09 01 00 00 F4 03 04 00 93 A9 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B4 01 00 35 04 06 00 B8 4E CC 14 A9 20 C1 32 32 85 BE 47 AB 82 [13:31:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 51 2E 47 00 B0 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 30 38 37 35 30 38 33 10 04 04 00 C7 B4 01 00 F4 03 04 00 DC 17 75 66 B6 04 01 00 00 78 42 47 E6 39 F3 DB 6F [13:31:14]CommunicateWithHost err = 0 [13:31:14]CheckOFDResponse [13:31:14]1017 (14) - 77093643461234 [13:31:14]1041 (16) - 0000000000875083 [13:31:14]1040 (4) - 111815 [13:31:14]1012 (4) - 21.06.2024 06:04 [13:31:14]1206 (1) - 0 [13:31:14]OFD Sender: Remove packet 111815 [13:31:14]ProducePacketName [13:31:14]name=ofd_packets/00111815 [13:31:14]NVStorageDeleteData [13:31:14]OFD Sender: Processing packet 111816 [packets to send 155, broken 37] [13:31:14]ProducePacketName [13:31:14]name=ofd_packets/00111816 [13:31:14]OFD Sender: To server: 嚂鰌G, [13:31:14]CommunicateWithHost lk.salyk.kg:30040 [13:31:14]ConnectInit lk.salyk.kg [13:31:14]Connected sock=7 [13:31:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8C A3 07 01 81 AA 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 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 A9 AA 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B4 01 00 35 04 06 00 EA CB B6 0D A9 69 03 1B 94 2A 45 30 4A 92 [13:31:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8C A6 47 00 FC 85 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 30 38 37 35 30 38 33 10 04 04 00 C8 B4 01 00 F4 03 04 00 DD 17 75 66 B6 04 01 00 00 AC F0 46 3D A8 3D 6D 7B [13:31:15]CommunicateWithHost err = 0 [13:31:15]CheckOFDResponse [13:31:15]1017 (14) - 77093643461234 [13:31:15]1041 (16) - 0000000000875083 [13:31:15]1040 (4) - 111816 [13:31:15]1012 (4) - 21.06.2024 06:04 [13:31:15]1206 (1) - 0 [13:31:15]OFD Sender: Remove packet 111816 [13:31:15]ProducePacketName [13:31:15]name=ofd_packets/00111816 [13:31:15]NVStorageDeleteData [13:31:15]OFD Sender: Processing packet 111817 [packets to send 154, broken 37] [13:31:15]ProducePacketName [13:31:15]name=ofd_packets/00111817 [13:31:15]OFD Sender: To server: 嚂鰌G, [13:31:15]CommunicateWithHost lk.salyk.kg:30040 [13:31:15]ConnectInit lk.salyk.kg [13:31:15]Connected sock=7 [13:31:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 55 0D 07 01 AC 61 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 0B 01 00 00 F4 03 04 00 50 AC 74 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B4 01 00 35 04 06 00 92 05 73 FE FA BB 06 52 D4 0B 23 B2 CF C9 [13:31:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1D FB 47 00 FB 34 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 30 38 37 35 30 38 33 10 04 04 00 C9 B4 01 00 F4 03 04 00 DE 17 75 66 B6 04 01 00 00 F7 DF DC 71 F3 EA E0 3F [13:31:16]CommunicateWithHost err = 0 [13:31:16]CheckOFDResponse [13:31:16]1017 (14) - 77093643461234 [13:31:16]1041 (16) - 0000000000875083 [13:31:16]1040 (4) - 111817 [13:31:16]1012 (4) - 21.06.2024 06:04 [13:31:16]1206 (1) - 0 [13:31:16]OFD Sender: Remove packet 111817 [13:31:16]ProducePacketName [13:31:16]name=ofd_packets/00111817 [13:31:16]NVStorageDeleteData [13:31:16]OFD Sender: Processing packet 111818 [packets to send 153, broken 37] [13:31:16]ProducePacketName [13:31:16]name=ofd_packets/00111818 [13:31:16]OFD Sender: To server: 嚂鰌G, [13:31:16]CommunicateWithHost lk.salyk.kg:30040 [13:31:16]ConnectInit lk.salyk.kg [13:31:16]Connected sock=7 [13:31:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5E 8B 07 01 7A D9 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 [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 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 E4 [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]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [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]Read from MH i2c: A0 01 00 02 00 00 A2 [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 540000000057253F (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: 18125967+1700850876=1718976843 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [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 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 E5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [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 4C 81 75 66 BC EC 60 65 14 [13:34:04]Current date/time: 21.06.2024 13:34 [13:34:04]FM_Init [13:34:04]wFMConnect [13:34:04]MH_SAM_On [13:34:04]Write to MH i2c: E0 00 00 08 00 E7 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_init finished! [13:34:04]*** atr: [13:34:04]*** 0F 3B D5 18 FF 81 91 FE [13:34:04]*** 1F C3 80 73 C8 21 10 0A [13:34:04]*** 00 00 00 00 00 00 00 00 [13:34:04]*** 00 00 00 00 00 00 00 00 [13:34:04]*** 00 00 00 00 00 00 00 00 [13:34:04]Read from MH i2c: E0 [13:34:04]MH_I2C_Read... [13:34:04]*** 00 00 00 00 00 00 00 00 [13:34:04]*** 00 00 00 00 00 00 00 00 [13:34:04]*** 00 00 00 00 00 00 00 00 [13:34:04]Read from MH i2c: E0 10 00 [13:34:04]MH_I2C_Read... [13:34:04]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 [13:34:04]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:34:04]wFMCommunicate request_size=10 [13:34:04]MH_SAM_APDU [13:34:04]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:34:04]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:34:04]Read from MH i2c: E2 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:34:04]RAPDU: 90 00 [13:34:04]wFMCommunicate OK [13:34:04]wFMCommunicate request_size=4 [13:34:04]MH_SAM_APDU [13:34:04]CAPDU: 80 11 00 00 [13:34:04]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:04]Read from MH i2c: E2 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 17 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [13:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:34:04]wFMCommunicate OK [13:34:04]Detected FM SN is 0000000000875083 [13:34:04]Stored FM SN is 0000000000875083 [13:34:04]wFMCommunicate request_size=9 [13:34:04]MH_SAM_APDU [13:34:04]CAPDU: 80 16 00 00 04 46 5F 00 00 [13:34:04]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 46 5F 00 00 00 00 37 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:34:04]Read from MH i2c: E2 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:34:04]RAPDU: 90 00 [13:34:04]wFMCommunicate OK [13:34:04]FM PIN OK [13:34:04]wFMCommunicate request_size=8 [13:34:04]MH_SAM_APDU [13:34:04]CAPDU: 80 14 04 00 03 02 00 01 [13:34:04]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:34:04]Read from MH i2c: E2 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:34:04]RAPDU: 90 00 [13:34:04]wFMCommunicate OK [13:34:04]wFMCommunicate request_size=13 [13:34:04]MH_SAM_APDU [13:34:04]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:34:04]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 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:34:04]Read from MH i2c: E2 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:34:04]RAPDU: 90 00 [13:34:04]wFMCommunicate OK [13:34:04]wFMCommunicate request_size=4 [13:34:04]MH_SAM_APDU [13:34:04]CAPDU: 80 11 00 00 [13:34:04]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:04]Read from MH i2c: E2 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 17 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [13:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:34:04]wFMCommunicate OK [13:34:04]DocumentArchiveInit [13:34:04]Start Httpd... [13:34:04]Httpd thread 3067161956 created [13:34:04]Write to MH i2c: 01 00 00 0F 00 0F [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: 01 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: 01 07 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:34:04]MH Int Process started [13:34:04]Allocated Socket 8 [13:34:04]Bind OK [13:34:04]Listen OK [13:34:04]httpd running on port 8080 [13:34:04]Waiting for new connection... [13:34:04]OFD Sender: Processing packet 111831 [packets to send 140, broken 37] [13:34:04]ProducePacketName [13:34:04]name=ofd_packets/00111831 [13:34:04]OFD Sender: To server: 嚂鰌G, [13:34:04]CommunicateWithHost lk.salyk.kg:30040 [13:34:04]ConnectInit lk.salyk.kg [13:34:04]Connected sock=7 [13:34:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 80 05 00 00 C8 60 78 05 A6 4C 5A 05 01 00 05 00 6C 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 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 BB D6 74 66 0E 04 04 00 85 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 18 01 00 00 57 04 04 00 1A 01 00 00 AA 04 D8 04 6E 04 04 00 18 01 00 00 69 04 A5 00 6F 04 04 00 18 01 00 00 B1 04 04 00 27 5E 58 01 70 04 04 00 D4 D7 3E 01 72 04 03 00 53 86 19 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 4A 96 24 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 6D 0C 03 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 D7 B4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 44 FE B7 FD A0 A5 45 62 80 54 3B 2F E4 AC [13:34:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F3 C4 47 00 99 8F 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 30 38 37 35 30 38 33 10 04 04 00 D7 B4 01 00 F4 03 04 00 75 18 75 66 B6 04 01 00 00 10 3B C8 B4 3C 3C 28 4E [13:34:04]CommunicateWithHost err = 0 [13:34:04]CheckOFDResponse [13:34:04]1017 (14) - 77093643461234 [13:34:04]1041 (16) - 0000000000875083 [13:34:04]1040 (4) - 111831 [13:34:04]1012 (4) - 21.06.2024 06:06 [13:34:04]1206 (1) - 0 [13:34:04]OFD Sender: Remove packet 111831 [13:34:04]ProducePacketName [13:34:04]name=ofd_packets/00111831 [13:34:04]NVStorageDeleteData [13:34:05]OFD Sender: Processing packet 111832 [packets to send 139, broken 37] [13:34:05]ProducePacketName [13:34:05]name=ofd_packets/00111832 [13:34:05]OFD Sender: To server: 嚂鰌G, [13:34:05]CommunicateWithHost lk.salyk.kg:30040 [13:34:05]ConnectInit lk.salyk.kg [13:34:05]Connected sock=7 [13:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 15 01 00 00 44 81 0D 01 E8 F9 5A 02 01 00 02 00 01 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 17 00 D0 96 D0 B0 D0 BD D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 20 D0 9A 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 BF D8 74 66 0E 04 04 00 86 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D8 B4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 F0 EB B8 8B 07 E2 C3 73 00 74 77 55 E5 D7 [13:34:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 06 01 47 00 BA 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B4 01 00 F4 03 04 00 75 18 75 66 B6 04 01 00 00 FE B6 98 87 6E A4 91 A1 [13:34:05]CommunicateWithHost err = 0 [13:34:05]CheckOFDResponse [13:34:05]1017 (14) - 77093643461234 [13:34:05]1041 (16) - 0000000000875083 [13:34:05]1040 (4) - 111832 [13:34:05]1012 (4) - 21.06.2024 06:06 [13:34:05]1206 (1) - 0 [13:34:05]OFD Sender: Remove packet 111832 [13:34:05]ProducePacketName [13:34:05]name=ofd_packets/00111832 [13:34:05]NVStorageDeleteData [13:34:06]OFD Sender: Processing packet 111833 [packets to send 138, broken 37] [13:34:06]ProducePacketName [13:34:06]name=ofd_packets/00111833 [13:34:06]OFD Sender: To server: 嚂鰌G, [13:34:06]CommunicateWithHost lk.salyk.kg:30040 [13:34:06]ConnectInit lk.salyk.kg [13:34:06]Connected sock=7 [13:34:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 56 D6 07 01 53 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 01 00 00 00 F4 03 04 00 07 D9 74 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B4 01 00 35 04 06 00 31 05 80 D8 A2 C1 B3 B6 A8 A8 58 09 15 E3 [13:34:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6A 52 47 00 B3 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B4 01 00 F4 03 04 00 76 18 75 66 B6 04 01 00 00 DB 55 CA C6 3E 36 CB 95 [13:34:06]CommunicateWithHost err = 0 [13:34:06]CheckOFDResponse [13:34:06]1017 (14) - 77093643461234 [13:34:06]1041 (16) - 0000000000875083 [13:34:06]1040 (4) - 111833 [13:34:06]1012 (4) - 21.06.2024 06:06 [13:34:06]1206 (1) - 0 [13:34:06]OFD Sender: Remove packet 111833 [13:34:06]ProducePacketName [13:34:06]name=ofd_packets/00111833 [13:34:06]NVStorageDeleteData [13:34:07]OFD Sender: Processing packet 111834 [packets to send 137, broken 37] [13:34:07]ProducePacketName [13:34:07]name=ofd_packets/00111834 [13:34:07]OFD Sender: To server: 嚂鰌G, [13:34:07]CommunicateWithHost lk.salyk.kg:30040 [13:34:07]ConnectInit lk.salyk.kg [13:34:07]Connected sock=7 [13:34:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 99 E0 04 01 63 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F2 1C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 03 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 68 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 02 00 00 00 F4 03 04 00 36 D9 74 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B4 01 00 35 04 06 00 15 B0 DA 1B EF E0 93 18 83 AD 00 CC F7 51 [13:34:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 44 79 47 00 87 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 30 38 37 35 30 38 33 10 04 04 00 DA B4 01 00 F4 03 04 00 77 18 75 66 B6 04 01 00 00 18 13 84 FD 2A CA 9F AD [13:34:07]CommunicateWithHost err = 0 [13:34:07]CheckOFDResponse [13:34:07]1017 (14) - 77093643461234 [13:34:07]1041 (16) - 0000000000875083 [13:34:07]1040 (4) - 111834 [13:34:07]1012 (4) - 21.06.2024 06:06 [13:34:07]1206 (1) - 0 [13:34:07]OFD Sender: Remove packet 111834 [13:34:07]ProducePacketName [13:34:07]name=ofd_packets/00111834 [13:34:07]NVStorageDeleteData [13:34:07]OFD Sender: Processing packet 111835 [packets to send 136, broken 37] [13:34:07]ProducePacketName [13:34:07]name=ofd_packets/00111835 [13:34:07]OFD Sender: To server: 嚂鰌G, [13:34:07]CommunicateWithHost lk.salyk.kg:30040 [13:34:07]ConnectInit lk.salyk.kg [13:34:07]Connected sock=7 [13:34:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 FD 07 01 E3 34 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 EA 0C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B4 01 00 35 04 06 00 DB B2 BD C3 F9 F7 43 0F 48 70 3B E3 A8 7C [13:34:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 00 B5 47 00 F1 AA 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 30 38 37 35 30 38 33 10 04 04 00 DB B4 01 00 F4 03 04 00 78 18 75 66 B6 04 01 00 00 5C 57 C8 00 13 21 00 F7 [13:34:08]CommunicateWithHost err = 0 [13:34:08]CheckOFDResponse [13:34:08]1017 (14) - 77093643461234 [13:34:08]1041 (16) - 0000000000875083 [13:34:08]1040 (4) - 111835 [13:34:08]1012 (4) - 21.06.2024 06:06 [13:34:08]1206 (1) - 0 [13:34:08]OFD Sender: Remove packet 111835 [13:34:08]ProducePacketName [13:34:08]name=ofd_packets/00111835 [13:34:08]NVStorageDeleteData [13:34:08]OFD Sender: Processing packet 111836 [packets to send 135, broken 37] [13:34:08]ProducePacketName [13:34:08]name=ofd_packets/00111836 [13:34:08]OFD Sender: To server: 嚂鰌G, [13:34:08]CommunicateWithHost lk.salyk.kg:30040 [13:34:08]ConnectInit lk.salyk.kg [13:34:08]Connected sock=7 [13:34:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D4 20 07 01 E6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 04 00 00 00 F4 03 04 00 57 29 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B4 01 00 35 04 06 00 2E 57 89 B8 0F E2 42 5D 98 74 BB 2B 87 B1 [13:34:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 05 D3 47 00 2D A7 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 30 38 37 35 30 38 33 10 04 04 00 DC B4 01 00 F4 03 04 00 79 18 75 66 B6 04 01 00 00 D8 6C 99 E8 D2 1D 69 17 [13:34:08]CommunicateWithHost err = 0 [13:34:08]CheckOFDResponse [13:34:08]1017 (14) - 77093643461234 [13:34:08]1041 (16) - 0000000000875083 [13:34:08]1040 (4) - 111836 [13:34:08]1012 (4) - 21.06.2024 06:06 [13:34:08]1206 (1) - 0 [13:34:08]OFD Sender: Remove packet 111836 [13:34:08]ProducePacketName [13:34:08]name=ofd_packets/00111836 [13:34:08]NVStorageDeleteData [13:34:09]OFD Sender: Processing packet 111837 [packets to send 134, broken 37] [13:34:09]ProducePacketName [13:34:09]name=ofd_packets/00111837 [13:34:09]OFD Sender: To server: 嚂鰌G, [13:34:09]CommunicateWithHost lk.salyk.kg:30040 [13:34:09]ConnectInit lk.salyk.kg [13:34:09]Connected sock=7 [13:34:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E7 F2 04 01 98 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 7D 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 05 00 00 00 F4 03 04 00 C6 29 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B4 01 00 35 04 06 00 08 81 67 FF 7B 0D 57 A9 76 41 69 60 55 E9 [13:34:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BB C4 47 00 B0 3C 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 30 38 37 35 30 38 33 10 04 04 00 DD B4 01 00 F4 03 04 00 7A 18 75 66 B6 04 01 00 00 D5 42 51 16 3E AE AA D2 [13:34:09]CommunicateWithHost err = 0 [13:34:09]CheckOFDResponse [13:34:09]1017 (14) - 77093643461234 [13:34:09]1041 (16) - 0000000000875083 [13:34:09]1040 (4) - 111837 [13:34:09]1012 (4) - 21.06.2024 06:06 [13:34:09]1206 (1) - 0 [13:34:09]OFD Sender: Remove packet 111837 [13:34:09]ProducePacketName [13:34:09]name=ofd_packets/00111837 [13:34:09]NVStorageDeleteData [13:34:10]OFD Sender: Processing packet 111838 [packets to send 133, broken 37] [13:34:10]ProducePacketName [13:34:10]name=ofd_packets/00111838 [13:34:10]OFD Sender: To server: 嚂鰌G, [13:34:10]CommunicateWithHost lk.salyk.kg:30040 [13:34:10]ConnectInit lk.salyk.kg [13:34:10]Connected sock=7 [13:34:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1D 01 07 01 62 62 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 24 2F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B4 01 00 35 04 06 00 B3 60 E7 5E A4 4D D1 89 21 F9 00 0C 85 0D [13:34:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A3 5E 47 00 8D A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B4 01 00 F4 03 04 00 7A 18 75 66 B6 04 01 00 00 B3 E7 8B 0D FE D5 6F A0 [13:34:10]CommunicateWithHost err = 0 [13:34:10]CheckOFDResponse [13:34:10]1017 (14) - 77093643461234 [13:34:10]1041 (16) - 0000000000875083 [13:34:10]1040 (4) - 111838 [13:34:10]1012 (4) - 21.06.2024 06:06 [13:34:10]1206 (1) - 0 [13:34:10]OFD Sender: Remove packet 111838 [13:34:10]ProducePacketName [13:34:10]name=ofd_packets/00111838 [13:34:10]NVStorageDeleteData [13:34:11]OFD Sender: Processing packet 111839 [packets to send 132, broken 37] [13:34:11]ProducePacketName [13:34:11]name=ofd_packets/00111839 [13:34:11]OFD Sender: To server: 嚂鰌G, [13:34:11]CommunicateWithHost lk.salyk.kg:30040 [13:34:11]ConnectInit lk.salyk.kg [13:34:11]Connected sock=7 [13:34:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 04 A6 07 01 6B B0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 07 00 00 00 F4 03 04 00 3F 35 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B4 01 00 35 04 06 00 A2 DA 6C 93 00 EF 4A 7F 22 00 24 60 84 E9 [13:34:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8D FB 47 00 25 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 30 38 37 35 30 38 33 10 04 04 00 DF B4 01 00 F4 03 04 00 7B 18 75 66 B6 04 01 00 00 DB 24 F6 6A 52 56 E4 5F [13:34:11]CommunicateWithHost err = 0 [13:34:11]CheckOFDResponse [13:34:11]1017 (14) - 77093643461234 [13:34:11]1041 (16) - 0000000000875083 [13:34:11]1040 (4) - 111839 [13:34:11]1012 (4) - 21.06.2024 06:06 [13:34:11]1206 (1) - 0 [13:34:11]OFD Sender: Remove packet 111839 [13:34:11]ProducePacketName [13:34:11]name=ofd_packets/00111839 [13:34:11]NVStorageDeleteData [13:34:11]OFD Sender: Processing packet 111840 [packets to send 131, broken 37] [13:34:11]ProducePacketName [13:34:11]name=ofd_packets/00111840 [13:34:11]OFD Sender: To server: 嚂鰌G, [13:34:11]CommunicateWithHost lk.salyk.kg:30040 [13:34:11]ConnectInit lk.salyk.kg [13:34:12]Connected sock=7 [13:34:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6E 3C 07 01 24 BD 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 14 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 85 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FC 3A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B4 01 00 35 04 06 00 42 66 D5 CD 63 8E 19 E4 80 B5 EE 6D 6E D4 [13:34:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FB 78 47 00 B5 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 30 38 37 35 30 38 33 10 04 04 00 E0 B4 01 00 F4 03 04 00 7C 18 75 66 B6 04 01 00 00 4F CF 68 15 0F F7 16 D4 [13:34:12]CommunicateWithHost err = 0 [13:34:12]CheckOFDResponse [13:34:12]1017 (14) - 77093643461234 [13:34:12]1041 (16) - 0000000000875083 [13:34:12]1040 (4) - 111840 [13:34:12]1012 (4) - 21.06.2024 06:06 [13:34:12]1206 (1) - 0 [13:34:12]OFD Sender: Remove packet 111840 [13:34:12]ProducePacketName [13:34:12]name=ofd_packets/00111840 [13:34:12]NVStorageDeleteData [13:34:12]OFD Sender: Processing packet 111841 [packets to send 130, broken 37] [13:34:12]ProducePacketName [13:34:12]name=ofd_packets/00111841 [13:34:12]OFD Sender: To server: 嚂鰌G, [13:34:12]CommunicateWithHost lk.salyk.kg:30040 [13:34:12]ConnectInit lk.salyk.kg [13:34:12]Connected sock=7 [13:34:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 A3 07 01 67 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 C0 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 85 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 29 00 00 00 00 07 04 06 00 D8 85 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 3E 3B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B4 01 00 35 04 06 00 31 E0 DA 07 23 0F 65 23 B2 1D B4 59 8C 49 [13:34:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0E 95 47 00 8A 87 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 30 38 37 35 30 38 33 10 04 04 00 E1 B4 01 00 F4 03 04 00 7D 18 75 66 B6 04 01 00 00 35 60 AD F4 FF 97 D8 F8 [13:34:13]CommunicateWithHost err = 0 [13:34:13]CheckOFDResponse [13:34:13]1017 (14) - 77093643461234 [13:34:13]1041 (16) - 0000000000875083 [13:34:13]1040 (4) - 111841 [13:34:13]1012 (4) - 21.06.2024 06:06 [13:34:13]1206 (1) - 0 [13:34:13]OFD Sender: Remove packet 111841 [13:34:13]ProducePacketName [13:34:13]name=ofd_packets/00111841 [13:34:13]NVStorageDeleteData [13:34:13]OFD Sender: Processing packet 111842 [packets to send 129, broken 37] [13:34:13]ProducePacketName [13:34:13]name=ofd_packets/00111842 [13:34:13]OFD Sender: To server: 嚂鰌G, [13:34:13]CommunicateWithHost lk.salyk.kg:30040 [13:34:13]ConnectInit lk.salyk.kg [13:34:13]Connected sock=7 [13:34:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5A 02 07 01 64 7F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 0A 00 00 00 F4 03 04 00 69 3B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B4 01 00 35 04 06 00 3E 0B 87 60 8B 40 2C A7 17 77 7E F9 87 3C [13:34:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3B 03 47 00 92 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 30 38 37 35 30 38 33 10 04 04 00 E2 B4 01 00 F4 03 04 00 7E 18 75 66 B6 04 01 00 00 CD A5 0E 02 75 B7 C2 24 [13:34:13]CommunicateWithHost err = 0 [13:34:13]CheckOFDResponse [13:34:13]1017 (14) - 77093643461234 [13:34:13]1041 (16) - 0000000000875083 [13:34:13]1040 (4) - 111842 [13:34:13]1012 (4) - 21.06.2024 06:06 [13:34:13]1206 (1) - 0 [13:34:13]OFD Sender: Remove packet 111842 [13:34:13]ProducePacketName [13:34:13]name=ofd_packets/00111842 [13:34:13]NVStorageDeleteData [13:34:14]OFD Sender: Processing packet 111843 [packets to send 128, broken 37] [13:34:14]ProducePacketName [13:34:14]name=ofd_packets/00111843 [13:34:14]OFD Sender: To server: 嚂鰌G, [13:34:14]CommunicateWithHost lk.salyk.kg:30040 [13:34:14]ConnectInit lk.salyk.kg [13:34:14]Connected sock=7 [13:34:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6B 6F 07 01 04 FA 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 0B 00 00 00 F4 03 04 00 00 3C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B4 01 00 35 04 06 00 98 AD 86 F1 D5 A3 BF 76 23 B1 79 95 7D 06 [13:34:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4C 14 47 00 2A A7 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 30 38 37 35 30 38 33 10 04 04 00 E3 B4 01 00 F4 03 04 00 7E 18 75 66 B6 04 01 00 00 D8 A6 69 5E BC A8 E9 5A [13:34:14]CommunicateWithHost err = 0 [13:34:14]CheckOFDResponse [13:34:14]1017 (14) - 77093643461234 [13:34:14]1041 (16) - 0000000000875083 [13:34:14]1040 (4) - 111843 [13:34:14]1012 (4) - 21.06.2024 06:06 [13:34:14]1206 (1) - 0 [13:34:14]OFD Sender: Remove packet 111843 [13:34:14]ProducePacketName [13:34:14]name=ofd_packets/00111843 [13:34:14]NVStorageDeleteData [13:34:15]OFD Sender: Processing packet 111844 [packets to send 127, broken 37] [13:34:15]ProducePacketName [13:34:15]name=ofd_packets/00111844 [13:34:15]OFD Sender: To server: 嚂鰌G, [13:34:15]CommunicateWithHost lk.salyk.kg:30040 [13:34:15]ConnectInit lk.salyk.kg [13:34:15]Connected sock=7 [13:34:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AF 46 07 01 32 B6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 0C 00 00 00 F4 03 04 00 64 3C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B4 01 00 35 04 06 00 96 0B 6B 88 5E B4 F3 B8 D0 AB 84 A2 FC B5 [13:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 42 9D 47 00 5B 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 30 38 37 35 30 38 33 10 04 04 00 E4 B4 01 00 F4 03 04 00 7F 18 75 66 B6 04 01 00 00 08 87 D9 76 49 99 B2 5B [13:34:15]CommunicateWithHost err = 0 [13:34:15]CheckOFDResponse [13:34:15]1017 (14) - 77093643461234 [13:34:15]1041 (16) - 0000000000875083 [13:34:15]1040 (4) - 111844 [13:34:15]1012 (4) - 21.06.2024 06:06 [13:34:15]1206 (1) - 0 [13:34:15]OFD Sender: Remove packet 111844 [13:34:15]ProducePacketName [13:34:15]name=ofd_packets/00111844 [13:34:15]NVStorageDeleteData [13:34:16]OFD Sender: Processing packet 111845 [packets to send 126, broken 37] [13:34:16]ProducePacketName [13:34:16]name=ofd_packets/00111845 [13:34:16]OFD Sender: To server: 嚂鰌G, [13:34:16]CommunicateWithHost lk.salyk.kg:30040 [13:34:16]ConnectInit lk.salyk.kg [13:34:16]Connected sock=7 [13:34:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0C 83 07 01 22 3B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 0D 00 00 00 F4 03 04 00 E6 3F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B4 01 00 35 04 06 00 07 74 C9 1D 2F 4F 00 8F 41 CE CC 76 59 90 [13:34:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 75 3A 47 00 98 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 30 38 37 35 30 38 33 10 04 04 00 E5 B4 01 00 F4 03 04 00 80 18 75 66 B6 04 01 00 00 40 50 EE 17 CB 9B 9E ED [13:34:16]CommunicateWithHost err = 0 [13:34:16]CheckOFDResponse [13:34:16]1017 (14) - 77093643461234 [13:34:16]1041 (16) - 0000000000875083 [13:34:16]1040 (4) - 111845 [13:34:16]1012 (4) - 21.06.2024 06:06 [13:34:16]1206 (1) - 0 [13:34:16]OFD Sender: Remove packet 111845 [13:34:16]ProducePacketName [13:34:16]name=ofd_packets/00111845 [13:34:16]NVStorageDeleteData [13:34:16]OFD Sender: Processing packet 111846 [packets to send 125, broken 37] [13:34:16]ProducePacketName [13:34:16]name=ofd_packets/00111846 [13:34:16]OFD Sender: To server: 嚂鰌G, [13:34:16]CommunicateWithHost lk.salyk.kg:30040 [13:34:16]ConnectInit lk.salyk.kg [13:34:16]Connected sock=7 [13:34:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FA 75 07 01 35 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 0E 00 00 00 F4 03 04 00 43 42 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B4 01 00 35 04 06 00 33 2B E2 1B 2A 8C 29 64 DD E9 3D AE B5 1D [13:34:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BB EC 47 00 AC 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 30 38 37 35 30 38 33 10 04 04 00 E6 B4 01 00 F4 03 04 00 81 18 75 66 B6 04 01 00 00 B1 B6 9A D0 08 9E 04 E6 [13:34:17]CommunicateWithHost err = 0 [13:34:17]CheckOFDResponse [13:34:17]1017 (14) - 77093643461234 [13:34:17]1041 (16) - 0000000000875083 [13:34:17]1040 (4) - 111846 [13:34:17]1012 (4) - 21.06.2024 06:06 [13:34:17]1206 (1) - 0 [13:34:17]OFD Sender: Remove packet 111846 [13:34:17]ProducePacketName [13:34:17]name=ofd_packets/00111846 [13:34:17]NVStorageDeleteData [13:34:17]OFD Sender: Processing packet 111847 [packets to send 124, broken 37] [13:34:17]ProducePacketName [13:34:17]name=ofd_packets/00111847 [13:34:17]OFD Sender: To server: 嚂鰌G, [13:34:17]CommunicateWithHost lk.salyk.kg:30040 [13:34:17]ConnectInit lk.salyk.kg [13:34:18]Connected sock=7 [13:34:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 82 19 07 01 F5 95 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 0F 00 00 00 F4 03 04 00 B1 42 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B4 01 00 35 04 06 00 7B 58 36 DD E3 82 0F 7B B8 B7 F5 79 4C 1D [13:34:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6D 7D 47 00 79 FA 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 30 38 37 35 30 38 33 10 04 04 00 E7 B4 01 00 F4 03 04 00 82 18 75 66 B6 04 01 00 00 05 14 A0 1B 97 C2 56 90 [13:34:18]CommunicateWithHost err = 0 [13:34:18]CheckOFDResponse [13:34:18]1017 (14) - 77093643461234 [13:34:18]1041 (16) - 0000000000875083 [13:34:18]1040 (4) - 111847 [13:34:18]1012 (4) - 21.06.2024 06:06 [13:34:18]1206 (1) - 0 [13:34:18]OFD Sender: Remove packet 111847 [13:34:18]ProducePacketName [13:34:18]name=ofd_packets/00111847 [13:34:18]NVStorageDeleteData [13:34:18]OFD Sender: Processing packet 111848 [packets to send 123, broken 37] [13:34:18]ProducePacketName [13:34:18]name=ofd_packets/00111848 [13:34:18]OFD Sender: To server: 嚂鰌G, [13:34:18]CommunicateWithHost lk.salyk.kg:30040 [13:34:18]ConnectInit lk.salyk.kg [13:34:18]Connected sock=7 [13:34:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC 00 07 01 CC 8B 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 77 43 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B4 01 00 35 04 06 00 96 FB 33 EA F7 09 83 F4 2B EA F6 B5 4B 6B [13:34:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C8 8B 47 00 67 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B4 01 00 F4 03 04 00 83 18 75 66 B6 04 01 00 00 9F BF 91 A3 44 3C 04 2F [13:34:19]CommunicateWithHost err = 0 [13:34:19]CheckOFDResponse [13:34:19]1017 (14) - 77093643461234 [13:34:19]1041 (16) - 0000000000875083 [13:34:19]1040 (4) - 111848 [13:34:19]1012 (4) - 21.06.2024 06:06 [13:34:19]1206 (1) - 0 [13:34:19]OFD Sender: Remove packet 111848 [13:34:19]ProducePacketName [13:34:19]name=ofd_packets/00111848 [13:34:19]NVStorageDeleteData [13:34:19]OFD Sender: Processing packet 111849 [packets to send 122, broken 37] [13:34:19]ProducePacketName [13:34:19]name=ofd_packets/00111849 [13:34:19]OFD Sender: To server: 嚂鰌G, [13:34:19]CommunicateWithHost lk.salyk.kg:30040 [13:34:19]ConnectInit lk.salyk.kg [13:34:19]Connected sock=7 [13:34:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 76 14 07 01 8B 6E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 11 00 00 00 F4 03 04 00 E5 44 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B4 01 00 35 04 06 00 38 69 3B B1 45 D3 B6 FE 38 25 41 A1 83 A4 [13:34:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4E A7 47 00 13 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B4 01 00 F4 03 04 00 84 18 75 66 B6 04 01 00 00 79 45 D5 64 83 2B 7B E9 [13:34:20]CommunicateWithHost err = 0 [13:34:20]CheckOFDResponse [13:34:20]1017 (14) - 77093643461234 [13:34:20]1041 (16) - 0000000000875083 [13:34:20]1040 (4) - 111849 [13:34:20]1012 (4) - 21.06.2024 06:07 [13:34:20]1206 (1) - 0 [13:34:20]OFD Sender: Remove packet 111849 [13:34:20]ProducePacketName [13:34:20]name=ofd_packets/00111849 [13:34:20]NVStorageDeleteData [13:34:20]OFD Sender: Processing packet 111850 [packets to send 121, broken 37] [13:34:20]ProducePacketName [13:34:20]name=ofd_packets/00111850 [13:34:20]OFD Sender: To server: 嚂鰌G, [13:34:20]CommunicateWithHost lk.salyk.kg:30040 [13:34:20]ConnectInit lk.salyk.kg [13:34:20]Connected sock=7 [13:34:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D4 C7 07 01 C4 D0 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 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 82 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 12 00 00 00 F4 03 04 00 36 46 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B4 01 00 35 04 06 00 16 15 BF 17 8B 8A BB 71 C4 0E 66 27 95 23 [13:34:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EC A0 47 00 8A 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 30 38 37 35 30 38 33 10 04 04 00 EA B4 01 00 F4 03 04 00 85 18 75 66 B6 04 01 00 00 0F F0 4C 36 17 03 38 72 [13:34:20]CommunicateWithHost err = 0 [13:34:20]CheckOFDResponse [13:34:20]1017 (14) - 77093643461234 [13:34:20]1041 (16) - 0000000000875083 [13:34:20]1040 (4) - 111850 [13:34:20]1012 (4) - 21.06.2024 06:07 [13:34:20]1206 (1) - 0 [13:34:20]OFD Sender: Remove packet 111850 [13:34:20]ProducePacketName [13:34:20]name=ofd_packets/00111850 [13:34:20]NVStorageDeleteData [13:34:21]OFD Sender: Processing packet 111851 [packets to send 120, broken 37] [13:34:21]ProducePacketName [13:34:21]name=ofd_packets/00111851 [13:34:21]OFD Sender: To server: 嚂鰌G, [13:34:21]CommunicateWithHost lk.salyk.kg:30040 [13:34:21]ConnectInit lk.salyk.kg [13:34:21]Connected sock=7 [13:34:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A 2B 07 01 CA 90 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 D3 46 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B4 01 00 35 04 06 00 68 07 31 0B 6A E1 F9 DD D8 2F A1 3F DD 57 [13:34:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 57 CA 47 00 2A 75 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 30 38 37 35 30 38 33 10 04 04 00 EB B4 01 00 F4 03 04 00 85 18 75 66 B6 04 01 00 00 40 07 24 C6 41 6C 3A B2 [13:34:21]CommunicateWithHost err = 0 [13:34:21]CheckOFDResponse [13:34:21]1017 (14) - 77093643461234 [13:34:21]1041 (16) - 0000000000875083 [13:34:21]1040 (4) - 111851 [13:34:21]1012 (4) - 21.06.2024 06:07 [13:34:21]1206 (1) - 0 [13:34:21]OFD Sender: Remove packet 111851 [13:34:21]ProducePacketName [13:34:21]name=ofd_packets/00111851 [13:34:21]NVStorageDeleteData [13:34:22]OFD Sender: Processing packet 111852 [packets to send 119, broken 37] [13:34:22]ProducePacketName [13:34:22]name=ofd_packets/00111852 [13:34:22]OFD Sender: To server: 嚂鰌G, [13:34:22]CommunicateWithHost lk.salyk.kg:30040 [13:34:22]ConnectInit lk.salyk.kg [13:34:22]Connected sock=7 [13:34:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 44 9E 04 01 0C 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 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 10 47 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B4 01 00 35 04 06 00 E6 D5 2C E4 26 5B 13 AD E0 0C A5 D1 11 CF [13:34:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 74 F2 47 00 3C 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 30 38 37 35 30 38 33 10 04 04 00 EC B4 01 00 F4 03 04 00 86 18 75 66 B6 04 01 00 00 78 7E C3 50 3F 03 57 1B [13:34:22]CommunicateWithHost err = 0 [13:34:22]CheckOFDResponse [13:34:22]1017 (14) - 77093643461234 [13:34:22]1041 (16) - 0000000000875083 [13:34:22]1040 (4) - 111852 [13:34:22]1012 (4) - 21.06.2024 06:07 [13:34:22]1206 (1) - 0 [13:34:22]OFD Sender: Remove packet 111852 [13:34:22]ProducePacketName [13:34:22]name=ofd_packets/00111852 [13:34:22]NVStorageDeleteData [13:34:23]OFD Sender: Processing packet 111853 [packets to send 118, broken 37] [13:34:23]ProducePacketName [13:34:23]name=ofd_packets/00111853 [13:34:23]OFD Sender: To server: 嚂鰌G, [13:34:23]CommunicateWithHost lk.salyk.kg:30040 [13:34:23]ConnectInit lk.salyk.kg [13:34:23]Connected sock=7 [13:34:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 29 30 07 01 EF 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 21 47 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B4 01 00 35 04 06 00 07 47 98 17 0F FE FF C4 C0 35 16 91 67 A0 [13:34:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EC CC 47 00 2C 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 30 38 37 35 30 38 33 10 04 04 00 ED B4 01 00 F4 03 04 00 87 18 75 66 B6 04 01 00 00 F1 A0 B2 95 33 89 63 7E [13:34:23]CommunicateWithHost err = 0 [13:34:23]CheckOFDResponse [13:34:23]1017 (14) - 77093643461234 [13:34:23]1041 (16) - 0000000000875083 [13:34:23]1040 (4) - 111853 [13:34:23]1012 (4) - 21.06.2024 06:07 [13:34:23]1206 (1) - 0 [13:34:23]OFD Sender: Remove packet 111853 [13:34:23]ProducePacketName [13:34:23]name=ofd_packets/00111853 [13:34:23]NVStorageDeleteData [13:34:23]OFD Sender: Processing packet 111854 [packets to send 117, broken 37] [13:34:23]ProducePacketName [13:34:23]name=ofd_packets/00111854 [13:34:23]OFD Sender: To server: 嚂鰌G, [13:34:23]CommunicateWithHost lk.salyk.kg:30040 [13:34:23]ConnectInit lk.salyk.kg [13:34:24]Connected sock=10 [13:34:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 11 68 07 01 22 4A 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 16 00 00 00 F4 03 04 00 2B 4C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B4 01 00 35 04 06 00 2D 6E E9 97 D1 AE C6 29 DC A5 80 0E BE 90 [13:34:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 26 88 47 00 17 2F 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 30 38 37 35 30 38 33 10 04 04 00 EE B4 01 00 F4 03 04 00 88 18 75 66 B6 04 01 00 00 4C 27 00 D0 04 30 1D C7 [13:34:24]CommunicateWithHost err = 0 [13:34:24]CheckOFDResponse [13:34:24]1017 (14) - 77093643461234 [13:34:24]1041 (16) - 0000000000875083 [13:34:24]1040 (4) - 111854 [13:34:24]1012 (4) - 21.06.2024 06:07 [13:34:24]1206 (1) - 0 [13:34:24]OFD Sender: Remove packet 111854 [13:34:24]ProducePacketName [13:34:24]name=ofd_packets/00111854 [13:34:24]NVStorageDeleteData [13:34:24]OFD Sender: Processing packet 111855 [packets to send 116, broken 37] [13:34:24]ProducePacketName [13:34:24]name=ofd_packets/00111855 [13:34:24]OFD Sender: To server: 嚂鰌G, [13:34:24]CommunicateWithHost lk.salyk.kg:30040 [13:34:24]ConnectInit lk.salyk.kg [13:34:24]Connected sock=7 [13:34:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6F 2F 07 01 59 28 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 28 4D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B4 01 00 35 04 06 00 6F D8 5F AE 2C AB 7D 27 B5 AC 26 F8 F9 DC [13:34:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C0 FE 47 00 FC 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 30 38 37 35 30 38 33 10 04 04 00 EF B4 01 00 F4 03 04 00 89 18 75 66 B6 04 01 00 00 32 7E C9 21 14 9A 5C CE [13:34:25]CommunicateWithHost err = 0 [13:34:25]CheckOFDResponse [13:34:25]1017 (14) - 77093643461234 [13:34:25]1041 (16) - 0000000000875083 [13:34:25]1040 (4) - 111855 [13:34:25]1012 (4) - 21.06.2024 06:07 [13:34:25]1206 (1) - 0 [13:34:25]OFD Sender: Remove packet 111855 [13:34:25]ProducePacketName [13:34:25]name=ofd_packets/00111855 [13:34:25]NVStorageDeleteData [13:34:25]OFD Sender: Processing packet 111856 [packets to send 115, broken 37] [13:34:25]ProducePacketName [13:34:25]name=ofd_packets/00111856 [13:34:25]OFD Sender: To server: 嚂鰌G, [13:34:25]CommunicateWithHost lk.salyk.kg:30040 [13:34:25]ConnectInit lk.salyk.kg [13:34:25]Connected sock=7 [13:34:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B7 4C 07 01 2F A7 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 50 4D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B4 01 00 35 04 06 00 16 D8 5B 64 97 93 76 75 FE A7 7A 84 C3 9E [13:34:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6B F5 47 00 66 EB 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 30 38 37 35 30 38 33 10 04 04 00 F0 B4 01 00 F4 03 04 00 8A 18 75 66 B6 04 01 00 00 DE AC 89 A5 73 1D DB 82 [13:34:25]CommunicateWithHost err = 0 [13:34:25]CheckOFDResponse [13:34:25]1017 (14) - 77093643461234 [13:34:25]1041 (16) - 0000000000875083 [13:34:25]1040 (4) - 111856 [13:34:25]1012 (4) - 21.06.2024 06:07 [13:34:25]1206 (1) - 0 [13:34:25]OFD Sender: Remove packet 111856 [13:34:25]ProducePacketName [13:34:25]name=ofd_packets/00111856 [13:34:25]NVStorageDeleteData [13:34:26]OFD Sender: Processing packet 111857 [packets to send 114, broken 37] [13:34:26]ProducePacketName [13:34:26]name=ofd_packets/00111857 [13:34:26]OFD Sender: To server: 嚂鰌G, [13:34:26]CommunicateWithHost lk.salyk.kg:30040 [13:34:26]ConnectInit lk.salyk.kg [13:34:26]Connected sock=7 [13:34:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 72 B3 07 01 F4 2F 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 FB 4E 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B4 01 00 35 04 06 00 B8 D3 B7 F5 13 74 84 FC B8 B3 86 6B 77 F9 [13:34:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7E 9E 47 00 05 34 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 30 38 37 35 30 38 33 10 04 04 00 F1 B4 01 00 F4 03 04 00 8A 18 75 66 B6 04 01 00 00 1B 74 EF 65 74 A5 9E 7D [13:34:26]CommunicateWithHost err = 0 [13:34:26]CheckOFDResponse [13:34:26]1017 (14) - 77093643461234 [13:34:26]1041 (16) - 0000000000875083 [13:34:26]1040 (4) - 111857 [13:34:26]1012 (4) - 21.06.2024 06:07 [13:34:26]1206 (1) - 0 [13:34:26]OFD Sender: Remove packet 111857 [13:34:26]ProducePacketName [13:34:26]name=ofd_packets/00111857 [13:34:26]NVStorageDeleteData [13:34:27]OFD Sender: Processing packet 111858 [packets to send 113, broken 37] [13:34:27]ProducePacketName [13:34:27]name=ofd_packets/00111858 [13:34:27]OFD Sender: To server: 嚂鰌G, [13:34:27]CommunicateWithHost lk.salyk.kg:30040 [13:34:27]ConnectInit lk.salyk.kg [13:34:27]Connected sock=7 [13:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7B F2 07 01 EA 13 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 1A 00 00 00 F4 03 04 00 37 4F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B4 01 00 35 04 06 00 D1 13 DA AB D3 08 F9 87 CF 8A BA 73 D7 D4 [13:34:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 30 0D 47 00 D2 6B 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 30 38 37 35 30 38 33 10 04 04 00 F2 B4 01 00 F4 03 04 00 8B 18 75 66 B6 04 01 00 00 4B 95 50 58 E9 22 5A E3 [13:34:27]CommunicateWithHost err = 0 [13:34:27]CheckOFDResponse [13:34:27]1017 (14) - 77093643461234 [13:34:27]1041 (16) - 0000000000875083 [13:34:27]1040 (4) - 111858 [13:34:27]1012 (4) - 21.06.2024 06:07 [13:34:27]1206 (1) - 0 [13:34:27]OFD Sender: Remove packet 111858 [13:34:27]ProducePacketName [13:34:27]name=ofd_packets/00111858 [13:34:27]NVStorageDeleteData [13:34:28]OFD Sender: Processing packet 111859 [packets to send 112, broken 37] [13:34:28]ProducePacketName [13:34:28]name=ofd_packets/00111859 [13:34:28]OFD Sender: To server: 嚂鰌G, [13:34:28]CommunicateWithHost lk.salyk.kg:30040 [13:34:28]ConnectInit lk.salyk.kg [13:34:28]Connected sock=7 [13:34:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 54 07 01 68 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 D4 0D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 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 1B 00 00 00 F4 03 04 00 71 52 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B4 01 00 35 04 06 00 2A 16 8B EE 27 36 6C FC E2 E1 A1 E3 14 0E [13:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1D D0 47 00 55 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 30 38 37 35 30 38 33 10 04 04 00 F3 B4 01 00 F4 03 04 00 8C 18 75 66 B6 04 01 00 00 2C D6 DE D3 32 FB 83 9D [13:34:28]CommunicateWithHost err = 0 [13:34:28]CheckOFDResponse [13:34:28]1017 (14) - 77093643461234 [13:34:28]1041 (16) - 0000000000875083 [13:34:28]1040 (4) - 111859 [13:34:28]1012 (4) - 21.06.2024 06:07 [13:34:28]1206 (1) - 0 [13:34:28]OFD Sender: Remove packet 111859 [13:34:28]ProducePacketName [13:34:28]name=ofd_packets/00111859 [13:34:28]NVStorageDeleteData [13:34:28]OFD Sender: Processing packet 111860 [packets to send 111, broken 37] [13:34:28]ProducePacketName [13:34:28]name=ofd_packets/00111860 [13:34:28]OFD Sender: To server: 嚂鰌G, [13:34:28]CommunicateWithHost lk.salyk.kg:30040 [13:34:28]ConnectInit lk.salyk.kg [13:34:29]Connected sock=7 [13:34:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 27 CD 07 01 C3 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 1C 00 00 00 F4 03 04 00 69 53 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B4 01 00 35 04 06 00 31 1B F7 2B C1 53 89 0E E2 C8 C4 5C 39 19 [13:34:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9D C5 47 00 44 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 30 38 37 35 30 38 33 10 04 04 00 F4 B4 01 00 F4 03 04 00 8D 18 75 66 B6 04 01 00 00 3C 47 AC 43 A9 B8 F7 4F [13:34:29]CommunicateWithHost err = 0 [13:34:29]CheckOFDResponse [13:34:29]1017 (14) - 77093643461234 [13:34:29]1041 (16) - 0000000000875083 [13:34:29]1040 (4) - 111860 [13:34:29]1012 (4) - 21.06.2024 06:07 [13:34:29]1206 (1) - 0 [13:34:29]OFD Sender: Remove packet 111860 [13:34:29]ProducePacketName [13:34:29]name=ofd_packets/00111860 [13:34:29]NVStorageDeleteData [13:34:29]OFD Sender: Processing packet 111861 [packets to send 110, broken 37] [13:34:29]ProducePacketName [13:34:29]name=ofd_packets/00111861 [13:34:29]OFD Sender: To server: 嚂鰌G, [13:34:29]CommunicateWithHost lk.salyk.kg:30040 [13:34:29]ConnectInit lk.salyk.kg [13:34:29]Connected sock=7 [13:34:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E3 14 07 01 35 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 1D 00 00 00 F4 03 04 00 B8 53 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B4 01 00 35 04 06 00 F0 55 24 79 05 1C DA ED A5 41 B8 BB D1 83 [13:34:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C0 B9 47 00 D7 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 30 38 37 35 30 38 33 10 04 04 00 F5 B4 01 00 F4 03 04 00 8E 18 75 66 B6 04 01 00 00 91 C5 A1 43 68 CA 61 A1 [13:34:30]CommunicateWithHost err = 0 [13:34:30]CheckOFDResponse [13:34:30]1017 (14) - 77093643461234 [13:34:30]1041 (16) - 0000000000875083 [13:34:30]1040 (4) - 111861 [13:34:30]1012 (4) - 21.06.2024 06:07 [13:34:30]1206 (1) - 0 [13:34:30]OFD Sender: Remove packet 111861 [13:34:30]ProducePacketName [13:34:30]name=ofd_packets/00111861 [13:34:30]NVStorageDeleteData [13:34:30]OFD Sender: Processing packet 111862 [packets to send 109, broken 37] [13:34:30]ProducePacketName [13:34:30]name=ofd_packets/00111862 [13:34:30]OFD Sender: To server: 嚂鰌G, [13:34:30]CommunicateWithHost lk.salyk.kg:30040 [13:34:30]ConnectInit lk.salyk.kg [13:34:30]Connected sock=7 [13:34:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 3E 42 04 01 DC 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 22 F1 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 DC 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 AD 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 1E 00 00 00 F4 03 04 00 6F 54 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B4 01 00 35 04 06 00 A1 4A F4 C8 7C DC C9 15 D6 F1 D0 20 FB B3 [13:34:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 21 0E 47 00 91 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 30 38 37 35 30 38 33 10 04 04 00 F6 B4 01 00 F4 03 04 00 8F 18 75 66 B6 04 01 00 00 61 87 A1 35 96 B0 59 DD [13:34:31]CommunicateWithHost err = 0 [13:34:31]CheckOFDResponse [13:34:31]1017 (14) - 77093643461234 [13:34:31]1041 (16) - 0000000000875083 [13:34:31]1040 (4) - 111862 [13:34:31]1012 (4) - 21.06.2024 06:07 [13:34:31]1206 (1) - 0 [13:34:31]OFD Sender: Remove packet 111862 [13:34:31]ProducePacketName [13:34:31]name=ofd_packets/00111862 [13:34:31]NVStorageDeleteData [13:34:31]OFD Sender: Processing packet 111863 [packets to send 108, broken 37] [13:34:31]ProducePacketName [13:34:31]name=ofd_packets/00111863 [13:34:31]OFD Sender: To server: 嚂鰌G, [13:34:31]CommunicateWithHost lk.salyk.kg:30040 [13:34:31]ConnectInit lk.salyk.kg [13:34:31]Connected sock=7 [13:34:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2F 59 07 01 A9 A1 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 54 1F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 D0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 CF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 16 00 00 00 00 07 04 06 00 D0 CF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7E 54 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B4 01 00 35 04 06 00 BE 44 5D 11 88 44 43 9E 6D C4 F3 17 07 40 [13:34:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 67 41 47 00 D7 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 30 38 37 35 30 38 33 10 04 04 00 F7 B4 01 00 F4 03 04 00 90 18 75 66 B6 04 01 00 00 98 2E DD 94 1B 50 AE 6F [13:34:31]CommunicateWithHost err = 0 [13:34:31]CheckOFDResponse [13:34:31]1017 (14) - 77093643461234 [13:34:31]1041 (16) - 0000000000875083 [13:34:31]1040 (4) - 111863 [13:34:31]1012 (4) - 21.06.2024 06:07 [13:34:31]1206 (1) - 0 [13:34:31]OFD Sender: Remove packet 111863 [13:34:31]ProducePacketName [13:34:31]name=ofd_packets/00111863 [13:34:31]NVStorageDeleteData [13:34:32]OFD Sender: Processing packet 111864 [packets to send 107, broken 37] [13:34:32]ProducePacketName [13:34:32]name=ofd_packets/00111864 [13:34:32]OFD Sender: To server: 嚂鰌G, [13:34:32]CommunicateWithHost lk.salyk.kg:30040 [13:34:32]ConnectInit lk.salyk.kg [13:34:32]Connected sock=7 [13:34:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 60 19 07 01 95 74 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 C4 54 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B4 01 00 35 04 06 00 3A 04 4F CB D8 40 F1 54 FC 4B CE 04 EA 3E [13:34:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2A A6 47 00 17 00 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 30 38 37 35 30 38 33 10 04 04 00 F8 B4 01 00 F4 03 04 00 90 18 75 66 B6 04 01 00 00 53 0B BF 00 EA 15 92 45 [13:34:32]CommunicateWithHost err = 0 [13:34:32]CheckOFDResponse [13:34:32]1017 (14) - 77093643461234 [13:34:32]1041 (16) - 0000000000875083 [13:34:32]1040 (4) - 111864 [13:34:32]1012 (4) - 21.06.2024 06:07 [13:34:32]1206 (1) - 0 [13:34:32]OFD Sender: Remove packet 111864 [13:34:32]ProducePacketName [13:34:32]name=ofd_packets/00111864 [13:34:32]NVStorageDeleteData [13:34:33]OFD Sender: Processing packet 111865 [packets to send 106, broken 37] [13:34:33]ProducePacketName [13:34:33]name=ofd_packets/00111865 [13:34:33]OFD Sender: To server: 嚂鰌G, [13:34:33]CommunicateWithHost lk.salyk.kg:30040 [13:34:33]ConnectInit lk.salyk.kg [13:34:33]Connected sock=7 [13:34:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 26 E4 04 01 09 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 21 00 00 00 F4 03 04 00 25 55 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B4 01 00 35 04 06 00 28 6B B1 5F D9 AB 72 EC 3B D5 56 53 34 4E [13:34:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 41 A1 47 00 AB EB 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 30 38 37 35 30 38 33 10 04 04 00 F9 B4 01 00 F4 03 04 00 91 18 75 66 B6 04 01 00 00 76 5B 8A 5F 6C D6 26 21 [13:34:33]CommunicateWithHost err = 0 [13:34:33]CheckOFDResponse [13:34:33]1017 (14) - 77093643461234 [13:34:33]1041 (16) - 0000000000875083 [13:34:33]1040 (4) - 111865 [13:34:33]1012 (4) - 21.06.2024 06:07 [13:34:33]1206 (1) - 0 [13:34:33]OFD Sender: Remove packet 111865 [13:34:33]ProducePacketName [13:34:33]name=ofd_packets/00111865 [13:34:33]NVStorageDeleteData [13:34:34]OFD Sender: Processing packet 111866 [packets to send 105, broken 37] [13:34:34]ProducePacketName [13:34:34]name=ofd_packets/00111866 [13:34:34]OFD Sender: To server: 嚂鰌G, [13:34:34]CommunicateWithHost lk.salyk.kg:30040 [13:34:34]ConnectInit lk.salyk.kg [13:34:34]Connected sock=7 [13:34:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F0 92 07 01 96 5D 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 24 2C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 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 20 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 22 00 00 00 F4 03 04 00 A6 55 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B4 01 00 35 04 06 00 B5 97 A9 85 30 9E F9 D6 17 9B 6B 78 4A ED [13:34:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E3 28 47 00 E8 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 30 38 37 35 30 38 33 10 04 04 00 FA B4 01 00 F4 03 04 00 92 18 75 66 B6 04 01 00 00 7B DC 97 B7 40 B1 92 E5 [13:34:34]CommunicateWithHost err = 0 [13:34:34]CheckOFDResponse [13:34:34]1017 (14) - 77093643461234 [13:34:34]1041 (16) - 0000000000875083 [13:34:34]1040 (4) - 111866 [13:34:34]1012 (4) - 21.06.2024 06:07 [13:34:34]1206 (1) - 0 [13:34:34]OFD Sender: Remove packet 111866 [13:34:34]ProducePacketName [13:34:34]name=ofd_packets/00111866 [13:34:34]NVStorageDeleteData [13:34:34]OFD Sender: Processing packet 111867 [packets to send 104, broken 37] [13:34:34]ProducePacketName [13:34:34]name=ofd_packets/00111867 [13:34:34]OFD Sender: To server: 嚂鰌G, [13:34:34]CommunicateWithHost lk.salyk.kg:30040 [13:34:34]ConnectInit lk.salyk.kg [13:34:35]Connected sock=7 [13:34:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A AF 07 01 3E B2 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F 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 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 29 56 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B4 01 00 35 04 06 00 7F DE 5C 0A C7 BE 53 05 20 98 94 5F 4B B6 [13:34:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 82 07 47 00 B2 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 30 38 37 35 30 38 33 10 04 04 00 FB B4 01 00 F4 03 04 00 93 18 75 66 B6 04 01 00 00 50 62 21 ED 2A 94 56 FD [13:34:35]CommunicateWithHost err = 0 [13:34:35]CheckOFDResponse [13:34:35]1017 (14) - 77093643461234 [13:34:35]1041 (16) - 0000000000875083 [13:34:35]1040 (4) - 111867 [13:34:35]1012 (4) - 21.06.2024 06:07 [13:34:35]1206 (1) - 0 [13:34:35]OFD Sender: Remove packet 111867 [13:34:35]ProducePacketName [13:34:35]name=ofd_packets/00111867 [13:34:35]NVStorageDeleteData [13:34:35]OFD Sender: Processing packet 111868 [packets to send 103, broken 37] [13:34:35]ProducePacketName [13:34:35]name=ofd_packets/00111868 [13:34:35]OFD Sender: To server: 嚂鰌G, [13:34:35]CommunicateWithHost lk.salyk.kg:30040 [13:34:35]ConnectInit lk.salyk.kg [13:34:35]Connected sock=7 [13:34:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F5 79 07 01 64 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 24 00 00 00 F4 03 04 00 6D 56 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B4 01 00 35 04 06 00 C6 2D 16 E5 C5 12 E4 A1 5D 13 B5 63 AB 56 [13:34:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E5 CF 47 00 A5 16 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 30 38 37 35 30 38 33 10 04 04 00 FC B4 01 00 F4 03 04 00 94 18 75 66 B6 04 01 00 00 95 EC 37 CA 70 D1 1F AE [13:34:36]CommunicateWithHost err = 0 [13:34:36]CheckOFDResponse [13:34:36]1017 (14) - 77093643461234 [13:34:36]1041 (16) - 0000000000875083 [13:34:36]1040 (4) - 111868 [13:34:36]1012 (4) - 21.06.2024 06:07 [13:34:36]1206 (1) - 0 [13:34:36]OFD Sender: Remove packet 111868 [13:34:36]ProducePacketName [13:34:36]name=ofd_packets/00111868 [13:34:36]NVStorageDeleteData [13:34:36]OFD Sender: Processing packet 111869 [packets to send 102, broken 37] [13:34:36]ProducePacketName [13:34:36]name=ofd_packets/00111869 [13:34:36]OFD Sender: To server: 嚂鰌G, [13:34:36]CommunicateWithHost lk.salyk.kg:30040 [13:34:36]ConnectInit lk.salyk.kg [13:34:36]Connected sock=7 [13:34:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4C 53 07 01 94 52 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 25 00 00 00 F4 03 04 00 B1 56 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B4 01 00 35 04 06 00 EC 2B AC 6D D8 CC 7B 40 E1 4C 4E 8A 60 9E [13:34:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AF D6 47 00 4B 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 30 38 37 35 30 38 33 10 04 04 00 FD B4 01 00 F4 03 04 00 95 18 75 66 B6 04 01 00 00 0A 82 EA 23 66 D1 2E 62 [13:34:37]CommunicateWithHost err = 0 [13:34:37]CheckOFDResponse [13:34:37]1017 (14) - 77093643461234 [13:34:37]1041 (16) - 0000000000875083 [13:34:37]1040 (4) - 111869 [13:34:37]1012 (4) - 21.06.2024 06:07 [13:34:37]1206 (1) - 0 [13:34:37]OFD Sender: Remove packet 111869 [13:34:37]ProducePacketName [13:34:37]name=ofd_packets/00111869 [13:34:37]NVStorageDeleteData [13:34:37]OFD Sender: Processing packet 111870 [packets to send 101, broken 37] [13:34:37]ProducePacketName [13:34:37]name=ofd_packets/00111870 [13:34:37]OFD Sender: To server: 嚂鰌G, [13:34:37]CommunicateWithHost lk.salyk.kg:30040 [13:34:37]ConnectInit lk.salyk.kg [13:34:37]Connected sock=7 [13:34:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D3 CF 04 01 D9 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 26 00 00 00 F4 03 04 00 33 57 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B4 01 00 35 04 06 00 7A E8 64 FA 51 FD 50 66 75 E2 91 F6 B9 5B [13:34:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5B 8B 47 00 1D 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 30 38 37 35 30 38 33 10 04 04 00 FE B4 01 00 F4 03 04 00 96 18 75 66 B6 04 01 00 00 5E BA 67 59 CB AC 87 C9 [13:34:37]CommunicateWithHost err = 0 [13:34:37]CheckOFDResponse [13:34:37]1017 (14) - 77093643461234 [13:34:37]1041 (16) - 0000000000875083 [13:34:37]1040 (4) - 111870 [13:34:37]1012 (4) - 21.06.2024 06:07 [13:34:37]1206 (1) - 0 [13:34:37]OFD Sender: Remove packet 111870 [13:34:37]ProducePacketName [13:34:37]name=ofd_packets/00111870 [13:34:37]NVStorageDeleteData [13:34:38]OFD Sender: Processing packet 111871 [packets to send 100, broken 37] [13:34:38]ProducePacketName [13:34:38]name=ofd_packets/00111871 [13:34:38]OFD Sender: To server: 嚂鰌G, [13:34:38]CommunicateWithHost lk.salyk.kg:30040 [13:34:38]ConnectInit lk.salyk.kg [13:34:38]Connected sock=7 [13:34:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A7 D2 07 01 58 78 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 27 00 00 00 F4 03 04 00 72 57 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B4 01 00 35 04 06 00 02 B9 89 3B 0F 24 6A 14 96 F6 11 A0 3E A2 [13:34:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 62 00 47 00 DB 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 30 38 37 35 30 38 33 10 04 04 00 FF B4 01 00 F4 03 04 00 96 18 75 66 B6 04 01 00 00 FC B8 55 4E EA 38 00 50 [13:34:38]CommunicateWithHost err = 0 [13:34:38]CheckOFDResponse [13:34:38]1017 (14) - 77093643461234 [13:34:38]1041 (16) - 0000000000875083 [13:34:38]1040 (4) - 111871 [13:34:38]1012 (4) - 21.06.2024 06:07 [13:34:38]1206 (1) - 0 [13:34:38]OFD Sender: Remove packet 111871 [13:34:38]ProducePacketName [13:34:38]name=ofd_packets/00111871 [13:34:38]NVStorageDeleteData [13:34:39]OFD Sender: Processing packet 111872 [packets to send 99, broken 37] [13:34:39]ProducePacketName [13:34:39]name=ofd_packets/00111872 [13:34:39]OFD Sender: To server: 嚂鰌G, [13:34:39]CommunicateWithHost lk.salyk.kg:30040 [13:34:39]ConnectInit lk.salyk.kg [13:34:39]Connected sock=7 [13:34:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4C 48 07 01 A5 86 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 31 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 28 00 00 00 F4 03 04 00 DC 57 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B5 01 00 35 04 06 00 3F E8 40 A1 CD E9 EE E7 B0 6C 4D 8E 77 18 [13:34:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E3 6C 47 00 14 C7 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 30 38 37 35 30 38 33 10 04 04 00 00 B5 01 00 F4 03 04 00 97 18 75 66 B6 04 01 00 00 BA EB 55 6D EB DE 99 9F [13:34:39]CommunicateWithHost err = 0 [13:34:39]CheckOFDResponse [13:34:39]1017 (14) - 77093643461234 [13:34:39]1041 (16) - 0000000000875083 [13:34:39]1040 (4) - 111872 [13:34:39]1012 (4) - 21.06.2024 06:07 [13:34:39]1206 (1) - 0 [13:34:39]OFD Sender: Remove packet 111872 [13:34:39]ProducePacketName [13:34:39]name=ofd_packets/00111872 [13:34:39]NVStorageDeleteData [13:34:40]OFD Sender: Processing packet 111873 [packets to send 98, broken 37] [13:34:40]ProducePacketName [13:34:40]name=ofd_packets/00111873 [13:34:40]OFD Sender: To server: 嚂鰌G, [13:34:40]CommunicateWithHost lk.salyk.kg:30040 [13:34:40]ConnectInit lk.salyk.kg [13:34:40]Connected sock=7 [13:34:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E E6 07 01 92 E3 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 29 00 00 00 F4 03 04 00 4A 58 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B5 01 00 35 04 06 00 15 4B D7 FA 22 69 0D 34 2C 46 28 6F 3F F5 [13:34:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E5 7D 47 00 2B 9B 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 30 38 37 35 30 38 33 10 04 04 00 01 B5 01 00 F4 03 04 00 98 18 75 66 B6 04 01 00 00 19 F2 EA F9 5D D7 D6 44 [13:34:40]CommunicateWithHost err = 0 [13:34:40]CheckOFDResponse [13:34:40]1017 (14) - 77093643461234 [13:34:40]1041 (16) - 0000000000875083 [13:34:40]1040 (4) - 111873 [13:34:40]1012 (4) - 21.06.2024 06:07 [13:34:40]1206 (1) - 0 [13:34:40]OFD Sender: Remove packet 111873 [13:34:40]ProducePacketName [13:34:40]name=ofd_packets/00111873 [13:34:40]NVStorageDeleteData [13:34:40]OFD Sender: Processing packet 111874 [packets to send 97, broken 37] [13:34:40]ProducePacketName [13:34:40]name=ofd_packets/00111874 [13:34:40]OFD Sender: To server: 嚂鰌G, [13:34:40]CommunicateWithHost lk.salyk.kg:30040 [13:34:40]ConnectInit lk.salyk.kg [13:34:41]Connected sock=7 [13:34:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 13 11 07 01 83 98 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 2A 00 00 00 F4 03 04 00 75 58 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B5 01 00 35 04 06 00 FB AA DB 8C BA 92 7C 9C DF AE 01 A9 D7 20 [13:34:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8C 03 47 00 CE 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 30 38 37 35 30 38 33 10 04 04 00 02 B5 01 00 F4 03 04 00 99 18 75 66 B6 04 01 00 00 01 16 9E 3F 3B 24 49 C0 [13:34:41]CommunicateWithHost err = 0 [13:34:41]CheckOFDResponse [13:34:41]1017 (14) - 77093643461234 [13:34:41]1041 (16) - 0000000000875083 [13:34:41]1040 (4) - 111874 [13:34:41]1012 (4) - 21.06.2024 06:07 [13:34:41]1206 (1) - 0 [13:34:41]OFD Sender: Remove packet 111874 [13:34:41]ProducePacketName [13:34:41]name=ofd_packets/00111874 [13:34:41]NVStorageDeleteData [13:34:41]OFD Sender: Processing packet 111875 [packets to send 96, broken 37] [13:34:41]ProducePacketName [13:34:41]name=ofd_packets/00111875 [13:34:41]OFD Sender: To server: 嚂鰌G, [13:34:41]CommunicateWithHost lk.salyk.kg:30040 [13:34:41]ConnectInit lk.salyk.kg [13:34:46]ConnectInit Can't take IP for lk.salyk.kg [13:34:46]CommunicateWithHost connect error [13:34:46]CommunicateWithHost err = -1 [13:34:46]OFD Sender: Server communicate error [13:34:48]accept exits with 9 [13:34:48]New connection [13:34:48]New thread 3066875236 created [13:34:48]Waiting for new connection... [13:34:48] Sock 9.Parse request [13:34:48]Sock 9.Check first char [13:34:48]Sock 9.First char is OK [13:34:48]request: POST /json_proto HTTP/1.0 [13:34:48]Method: POST [13:34:48]URL: /json_proto [13:34:48]Method is POST - this is cgi request [13:34:48]url: /json_proto [13:34:48]query_string will be loaded in cgi processing [13:34:48]execute_cgi json_proto POST (null) [13:34:48]execute_cgi path=json_proto method=POST [13:34:48]POST find Content-Length [13:34:48]Host: 172.17.59.68:8080 [13:34:48]Content-Length: 215 [13:34:48]Content-Type: application/json [13:34:48] [13:34:48]POST finish read [13:34:48]Found Content-Length = 215 [13:34:48]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" ] } } [13:34:48]execute_script... [13:34:48]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" ] } } [13:34:48]POST & json_proto [13:34:48]process_json_proto [13:34:48]json parsed OK: [13:34:48]protocol is kg_v1.0 [13:34:48]action value=get_value [13:34:48]process_action get_value [13:34:48]cmd_get_value [13:34:48]process_action get_value done [13:34:48]requested_data is exist [13:34:48]produce_requested_data [13:34:48]requested_item kkm.sn is exist - process it [13:34:48]requested_item kkm.ver is exist - process it [13:34:48]requested_item fm.sn is exist - process it [13:34:48]wFMCommunicate request_size=4 [13:34:48]MH_SAM_APDU [13:34:48]CAPDU: 80 11 00 00 [13:34:48]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:34:48]Write i2c OK [13:34:48]MH_I2C_Read... [13:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:48]Read from MH i2c: E2 [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: E2 17 00 [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DC [13:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:34:48]wFMCommunicate OK [13:34:48]requested_item fd.num is exist - process it [13:34:48]SAM_PROTO_GetFieldsCounters [13:34:48]wFMCommunicate request_size=4 [13:34:48]MH_SAM_APDU [13:34:48]CAPDU: 80 13 00 00 [13:34:48]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:34:48]Write i2c OK [13:34:48]MH_I2C_Read... [13:34:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:48]Read from MH i2c: E2 [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: E2 62 00 [13:34:48]MH_I2C_Read... [13:34:48]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 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3D B5 01 00 0E 04 04 00 86 01 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 57 [13:34:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3D B5 01 00 0E 04 04 00 86 01 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 [13:34:48]wFMCommunicate OK [13:34:49]SAM_PROTO_GetFieldsCounters done [13:34:49]requested_item shift.num is exist - process it [13:34:49]requested_item shift.opened is exist - process it [13:34:49]req_shift_opened [13:34:49]FM_GetShiftState [13:34:49]SAM_PROTO_GetShiftState [13:34:49]wFMCommunicate request_size=4 [13:34:49]MH_SAM_APDU [13:34:49]CAPDU: 80 13 01 00 [13:34:49]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:34:49]Write i2c OK [13:34:49]MH_I2C_Read... [13:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:49]Read from MH i2c: E2 [13:34:49]MH_I2C_Read... [13:34:49]Read from MH i2c: E2 0E 00 [13:34:49]MH_I2C_Read... [13:34:49]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0C [13:34:49]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:34:49]wFMCommunicate OK [13:34:49]SAM_PROTO_GetShiftState done [13:34:49]FM_GetShiftState done [13:34:49]req_shift_opened done [13:34:49]requested_item shift.open_date is exist - process it [13:34:49]req_shift_open_date [13:34:49]req_shift_open_date done [13:34:49]produce_requested_data done [13:34:49]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111933,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:34:49]process_action_free get_value [13:34:49]json_value_free [13:34:49]json_value_free done [13:34:49]process_json_proto returns [13:34:49]Send response to host [13:34:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111933,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:34:49]free response buf [13:34:49]execute_script done [13:34:49]execute_script returns [13:34:49]free content buf [13:34:49]Sock 9.Close socket [13:34:49]Sock 9.Thread stoped [13:34:49]accept exits with 7 [13:34:49]New connection [13:34:49]New thread 3066731876 created [13:34:49]Thread 3066875236 joined [13:34:49]Waiting for new connection... [13:34:49] Sock 7.Parse request [13:34:49]Sock 7.Check first char [13:34:49]Sock 7.First char is OK [13:34:49]request: POST /json_proto HTTP/1.0 [13:34:49]Method: POST [13:34:49]URL: /json_proto [13:34:49]Method is POST - this is cgi request [13:34:49]url: /json_proto [13:34:49]query_string will be loaded in cgi processing [13:34:49]execute_cgi json_proto POST (null) [13:34:49]execute_cgi path=json_proto method=POST [13:34:49]POST find Content-Length [13:34:49]Host: 172.17.59.68:8080 [13:34:49]Content-Length: 331 [13:34:49]Content-Type: application/json [13:34:49] [13:34:49]POST finish read [13:34:49]Found Content-Length = 331 [13:34:49]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" ] } } [13:34:49]execute_script... [13:34:49]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" ] } } [13:34:49]POST & json_proto [13:34:49]process_json_proto [13:34:49]json parsed OK: [13:34:49]protocol is kg_v1.0 [13:34:49]action value=get_value [13:34:49]process_action get_value [13:34:49]cmd_get_value [13:34:49]process_action get_value done [13:34:49]requested_data is exist [13:34:49]produce_requested_data [13:34:49]requested_item fm.sale.total is exist - process it [13:34:49]SAM_PROTO_GetFMData [13:34:49]wFMCommunicate request_size=4 [13:34:49]MH_SAM_APDU [13:34:49]CAPDU: 80 13 03 00 [13:34:49]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:34:49]Write i2c OK [13:34:49]MH_I2C_Read... [13:34:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:34:49]Read from MH i2c: E2 [13:34:49]MH_I2C_Read... [13:34:49]Read from MH i2c: E2 FD 00 [13:34:49]MH_I2C_Read... [13:34:49]Read from MH i2c: E2 FD 00 13 00 00 BD 04 85 04 B9 04 6E 04 04 00 32 B2 01 00 69 04 A3 00 6F 04 04 00 30 B2 01 00 B1 04 05 00 4C 5E CB F5 01 70 04 05 00 04 53 40 E4 01 72 04 04 00 48 0B 8B 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 22 90 4E 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 12 15 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 01 [13:34:49]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 32 B2 01 00 69 04 A3 00 6F 04 04 00 30 B2 01 00 B1 04 05 00 4C 5E CB F5 01 70 04 05 00 04 53 40 E4 01 72 04 04 00 48 0B 8B 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 22 90 4E 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 12 15 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [13:34:49]wFMCommunicate OK [13:34:49]wFMCommunicate request_size=4 [13:34:49]MH_SAM_APDU [13:34:49]CAPDU: 80 17 00 00 [13:34:49]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:34:49]Write i2c OK [13:34:49]MH_I2C_Read... [13:34:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:34:49]Read from MH i2c: E2 [13:34:49]MH_I2C_Read... [13:34:49]Read from MH i2c: E2 FD 00 [13:34:49]MH_I2C_Read... [13:34:49]Read from MH i2c: E2 FD 00 14 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [13:34:49]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:34:49]wFMCommunicate OK [13:34:49]wFMCommunicate request_size=4 [13:34:49]MH_SAM_APDU [13:34:49]CAPDU: 80 17 00 00 [13:34:49]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:34:49]Write i2c OK [13:34:49]MH_I2C_Read... [13:34:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:34:50]Read from MH i2c: E2 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: E2 FD 00 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [13:34:50]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:34:50]wFMCommunicate OK [13:34:50]wFMCommunicate request_size=4 [13:34:50]MH_SAM_APDU [13:34:50]CAPDU: 80 17 00 00 [13:34:50]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:34:50]Write i2c OK [13:34:50]MH_I2C_Read... [13:34:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:34:50]Read from MH i2c: E2 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: E2 FD 00 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: E2 FD 00 16 00 00 F7 03 00 00 EF 03 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 90 00 0D [13:34:50]RAPDU: F7 03 00 00 EF 03 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 90 00 [13:34:50]wFMCommunicate OK [13:34:50]wFMCommunicate request_size=4 [13:34:50]MH_SAM_APDU [13:34:50]CAPDU: 80 17 00 00 [13:34:50]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:34:50]Write i2c OK [13:34:50]MH_I2C_Read... [13:34:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [13:34:50]Read from MH i2c: E2 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: E2 DA 00 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: E2 DA 00 17 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [13:34:51]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:34:51]wFMCommunicate OK [13:34:51]SAM_PROTO_GetFMData done [13:34:51]requested_item fm.sale_refund.total is exist - process it [13:34:51]requested_item fm.buy.total is exist - process it [13:34:51]requested_item shift.sale.total is exist - process it [13:34:51]SAM_PROTO_GetShiftData [13:34:51]wFMCommunicate request_size=4 [13:34:51]MH_SAM_APDU [13:34:51]CAPDU: 80 13 02 00 [13:34:51]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:34:51]Write i2c OK [13:34:51]MH_I2C_Read... [13:34:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:34:51]Read from MH i2c: E2 [13:34:51]MH_I2C_Read... [13:34:51]Read from MH i2c: E2 FD 00 [13:34:51]MH_I2C_Read... [13:34:51]Read from MH i2c: E2 FD 00 18 00 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 B6 B5 7D 70 04 03 00 D4 71 6E 72 04 03 00 E2 43 0F 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 42 5B 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 E0 1C 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 A6 [13:34:51]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 B6 B5 7D 70 04 03 00 D4 71 6E 72 04 03 00 E2 43 0F 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 42 5B 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 E0 1C 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 [13:34:51]wFMCommunicate OK [13:34:51]wFMCommunicate request_size=4 [13:34:51]MH_SAM_APDU [13:34:51]CAPDU: 80 17 00 00 [13:34:51]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:34:51]Write i2c OK [13:34:51]MH_I2C_Read... [13:34:51]OFD Sender: Processing packet 111875 [packets to send 96, broken 37] [13:34:51]ProducePacketName [13:34:51]name=ofd_packets/00111875 [13:34:51]OFD Sender: To server: 嚂鰌G, [13:34:51]CommunicateWithHost lk.salyk.kg:30040 [13:34:51]ConnectInit lk.salyk.kg [13:34:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:34:52]Connected sock=10 [13:34:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B9 D8 07 01 BD 2B 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 95 58 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B5 01 00 35 04 06 00 E6 26 9A 64 CC 7B 83 06 81 28 26 0B 09 26 [13:34:52]Read from MH i2c: E2 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 FD 00 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 FD 00 19 00 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 B2 [13:34:52]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 [13:34:52]wFMCommunicate OK [13:34:52]wFMCommunicate request_size=4 [13:34:52]MH_SAM_APDU [13:34:52]CAPDU: 80 17 00 00 [13:34:52]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:34:52]Write i2c OK [13:34:52]MH_I2C_Read... [13:34:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:34:52]Read from MH i2c: E2 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 FD 00 [13:34:52]MH_I2C_Read... [13:34:52]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4E [13:34:52]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 [13:34:52]wFMCommunicate OK [13:34:52]wFMCommunicate request_size=4 [13:34:52]MH_SAM_APDU [13:34:52]CAPDU: 80 17 00 00 [13:34:52]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:34:52]Write i2c OK [13:34:52]MH_I2C_Read... [13:34:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:34:53]Read from MH i2c: E2 [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: E2 FD 00 [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: E2 FD 00 1B 00 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 19 [13:34:53]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 [13:34:53]wFMCommunicate OK [13:34:53]wFMCommunicate request_size=4 [13:34:53]MH_SAM_APDU [13:34:53]CAPDU: 80 17 00 00 [13:34:53]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:34:53]Write i2c OK [13:34:53]MH_I2C_Read... [13:34:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [13:34:53]Read from MH i2c: E2 [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: E2 CC 00 [13:34:53]MH_I2C_Read... [13:34:53]Read from MH i2c: E2 CC 00 1C 00 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 7D [13:34:53]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 [13:34:53]wFMCommunicate OK [13:34:53]SAM_PROTO_GetShiftData done [13:34:53]requested_item shift.sale.total_cash is exist - process it [13:34:53]requested_item shift.sale_refund.total is exist - process it [13:34:53]requested_item shift.sale_refund.total_cash is exist - process it [13:34:53]requested_item shift.buy.total is exist - process it [13:34:53]requested_item shift.buy.total_cash is exist - process it [13:34:53]produce_requested_data done [13:34:53]produce_requested_data return {"fm.sale.total":84187131.64,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":82385.18,"shift.sale.total_cash":72381.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} [13:34:53]process_action_free get_value [13:34:53]json_value_free [13:34:53]json_value_free done [13:34:53]process_json_proto returns [13:34:53]Send response to host [13:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84187131.64,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":82385.18,"shift.sale.total_cash":72381.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}}} [13:34:53]free response buf [13:34:53]execute_script done [13:34:53]execute_script returns [13:34:53]free content buf [13:34:53]Sock 7.Close socket [13:34:53]Sock 7.Thread stoped [13:34:54]accept exits with 9 [13:34:54]New connection [13:34:54]New thread 3066875236 created [13:34:54]Thread 3066731876 joined [13:34:54]Waiting for new connection... [13:34:54] Sock 9.Parse request [13:34:54]Sock 9.Check first char [13:34:54]Sock 9.First char is OK [13:34:54]request: POST /json_proto HTTP/1.0 [13:34:54]Method: POST [13:34:54]URL: /json_proto [13:34:54]Method is POST - this is cgi request [13:34:54]url: /json_proto [13:34:54]query_string will be loaded in cgi processing [13:34:54]execute_cgi json_proto POST (null) [13:34:54]execute_cgi path=json_proto method=POST [13:34:54]POST find Content-Length [13:34:54]Host: 172.17.59.68:8080 [13:34:54]Content-Length: 642 [13:34:54]Content-Type: application/json [13:34:54] [13:34:54]POST finish read [13:34:54]Found Content-Length = 642 [13:34:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 30.000, "sum" : 2217.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2217.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:54]execute_script... [13:34: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 : (1)320581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 30.000, "sum" : 2217.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2217.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:54]POST & json_proto [13:34:54]process_json_proto [13:34:54]json parsed OK: [13:34:54]protocol is kg_v1.0 [13:34:54]action value=close_receipt [13:34:54]process_action close_receipt [13:34:54]cmd_close_receipt [13:34:54]MH_GetDate [13:34:54]Write to MH i2c: F0 00 00 1D 00 0C [13:34:54]Write i2c OK [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: F0 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: F0 09 00 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: F0 09 00 1D 00 00 7E 81 75 66 BC EC 60 65 5C [13:34:54]GetLastDocTimeStamp 1718976563 [13:34:54]current date 1718976894 [13:34:54]FM_GetShiftState [13:34:54]SAM_PROTO_GetShiftState [13:34:54]wFMCommunicate request_size=4 [13:34:54]MH_SAM_APDU [13:34:54]CAPDU: 80 13 01 00 [13:34:54]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [13:34:54]Write i2c OK [13:34:54]MH_I2C_Read... [13:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:54]Read from MH i2c: E2 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 0E 00 [13:34:54]MH_I2C_Read... [13:34:54]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 18 [13:34:54]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:34:54]wFMCommunicate OK [13:34:54]SAM_PROTO_GetShiftState done [13:34:54]FM_GetShiftState done [13:34:54]opened in 1718933695 [13:34:54]opened+sec_in_day 1719020095 [13:34:54]quantity*price = 221700 [13:34:54]sum+1 = 221701 [13:34:54]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 2217.00 袧小袩 1% : 19.62 袧袛小 12% : 235.43 袧邪谢懈褔薪褘屑懈: 2217.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 102 21.06.2024 13:34 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111934 肖袩袛: 257797721975707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T133454&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111934&fm=257797721975707&tin=02508201610067®Number=0000000000092771&sum=221700 [13:34:55]StoreToDocumentArchive [13:34:55]shift 390 fd 111934 [13:34:55]save to /storage/0390/doc_00111934 [13:34:55]save last doc name /storage/0390/doc_00111934 to /storage/kkm_last_doc_name [13:34:55]save OK [13:34:55]Clear old archive folders... [13:34:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:55]tlvbuf is 003CC200 [13:34:55]SAM_PROTO_ClearQueue [13:34:55]wFMCommunicate request_size=4 [13:34:55]MH_SAM_APDU [13:34:55]CAPDU: 80 09 00 00 [13:34:55]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [13:34:55]Write i2c OK [13:34:55]MH_I2C_Read... [13:34:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:55]Read from MH i2c: E2 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 03 00 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [13:34:55]RAPDU: 90 00 [13:34:55]wFMCommunicate OK [13:34:55]SAM_PROTO_ClearQueue done [13:34:55]KKMCreateOFDPacket [13:34:55]OFDProtocolAddRootSTLVToBuf [13:34:55]FM_MakeSignedData [13:34:55]FM_MakeSignedData [13:34:55]SAM_PROTO_SignData [13:34:55]wFMCommunicate request_size=4 [13:34:55]MH_SAM_APDU [13:34:55]CAPDU: 80 0D 01 02 [13:34:55]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [13:34:55]Write i2c OK [13:34:55]MH_I2C_Read... [13:34:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:55]Read from MH i2c: E2 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 03 00 [13:34:55]MH_I2C_Read... [13:34:55]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [13:34:55]RAPDU: 90 00 [13:34:55]wFMCommunicate OK [13:34:55]wFMCommunicate request_size=255 [13:34:55]MH_SAM_APDU [13:34:55]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 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 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 7E 81 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B5 01 00 35 04 06 00 EA [13:34:55]Write to MH i2c: E2 02 01 2D 00 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 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 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 7E 81 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B5 01 00 35 04 06 00 EA 00 00 35 [13:34:56]Write i2c OK [13:34:56]MH_I2C_Read... [13:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:56]Read from MH i2c: E2 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 03 00 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [13:34:56]RAPDU: 90 00 [13:34:56]wFMCommunicate OK [13:34:56]wFMCommunicate request_size=10 [13:34:56]MH_SAM_APDU [13:34:56]CAPDU: 80 0D 02 02 05 77 35 A4 6B 9B [13:34:56]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 77 35 A4 6B 9B 00 00 08 [13:34:56]Write i2c OK [13:34:56]MH_I2C_Read... [13:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:56]Read from MH i2c: E2 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 03 00 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [13:34:56]RAPDU: 90 00 [13:34:56]wFMCommunicate OK [13:34:56]wFMCommunicate request_size=4 [13:34:56]MH_SAM_APDU [13:34:56]CAPDU: 80 0D 03 02 [13:34:56]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [13:34:56]Write i2c OK [13:34:56]MH_I2C_Read... [13:34:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:56]Read from MH i2c: E2 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 0B 00 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 0B 00 2F 00 00 D2 78 56 81 97 6C 1E B7 90 00 A4 [13:34:56]RAPDU: D2 78 56 81 97 6C 1E B7 90 00 [13:34:56]wFMCommunicate OK [13:34:56]SAM_PROTO_SignData done [13:34:56]FM_MakeSignedData done [13:34:56]CreateOFDProtocolMessage [13:34:56]wFMCommunicate request_size=4 [13:34:56]MH_SAM_APDU [13:34:56]CAPDU: 80 11 00 00 [13:34:56]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [13:34:56]Write i2c OK [13:34:56]MH_I2C_Read... [13:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:56]Read from MH i2c: E2 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 17 00 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FC [13:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:34:56]wFMCommunicate OK [13:34:56]CreateOFDProtocolMessage done [13:34:56]OFDSenderStorePacket 111934 [13:34:56]StoreOFDPacket docnum=111934 [13:34:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D4 15 07 01 31 24 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 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 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 7E 81 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B5 01 00 35 04 06 00 EA 77 35 A4 6B 9B D2 78 56 81 97 6C 1E B7 [13:34:56]CheckFolder [13:34:56]dirname=/storage/ofd_packets [13:34:56]CheckFolder done [13:34:56]ProducePacketName [13:34:56]name=ofd_packets/00111934 [13:34:56]NVStorageSaveData ofd_packets/00111934 [13:34:56]File name is /storage/ofd_packets/00111934 [13:34:56]Write 301 bytes [13:34:56]NVStorageSaveData done [13:34:56]OFDSenderStorePacket done [13:34:56]KKMCreateOFDPacket done [13:34:56]NVStorageSaveData kkm_last_timestamp [13:34:56]File name is /storage/kkm_last_timestamp [13:34:56]Write 4 bytes [13:34:56]NVStorageSaveData done [13:34:56]ExternCall_PrintAddStr [13:34:56]wPrintStart [13:34:56]Write to MH i2c: 01 00 00 31 00 31 [13:34:56]Write i2c OK [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: 01 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: 01 07 00 [13:34:56]MH_I2C_Read... [13:34:56]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [13:34:56]RasterBufferAndPrint [13:34:56]line 小褔械褌 N : (1)320581 [13:34:56]line 袠袧袧: 02508201610067 [13:34:56]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [13:34:56]line 袩袪袨袛袗袞袗 [13:34:56]line 孝袪袣 (袦袪袣, 袚袧袣) : 12 [13:34:56]line 孝芯胁邪褉: 2710124500 [13:34:56]line 袗懈-95-袣-5 [13:34:56]line 30.000 * 73.90 [13:34:56]line = 2217.00 [13:34:56]line 袧袛小 12% 袧小袩 1% [13:34:56]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [13:34:56]line 袠孝袨袚袨: 2217.00 [13:34:56]line 袧小袩 1% : 19.62 [13:34:56]line 袧袛小 12% : 235.43 [13:34:56]line 袧邪谢懈褔薪褘屑懈: 2217.00 [13:34:56]line 袘械蟹薪邪谢.: 0.00 [13:34:56]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [13:34:56]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [13:34:56]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [13:34:56]line 效械泻 102 21.06.2024 13:34 [13:34:56]line 小屑械薪邪: 390 肖肖袛: 1.0 [13:34:56]line 袟袧袦: 0300000198 [13:34:56]line 袪袧袦: 0000000000092771 [13:34:56]line 袙械褉褋懈褟 袣袣袦: 001 [13:34:56]line 肖袦: 0000000000875083 [13:34:56]line 肖袛: 111934 [13:34:56]line 肖袩袛: 257797721975707 [13:34:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T133454&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111934&fm=257797721975707&tin=02508201610067®Number=0000000000092771&sum=221700 [13:34:56]written 0, free lines is 4095 [13:34:57]Write to MH i2c: 01 00 00 59 00 59 [13:34:57]Write i2c OK [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: 01 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: 01 07 00 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 18 0D 85 [13:34:57]RasterBufferAndPrint [13:34:57]line [13:34:57]line [13:34:57]line [13:34:57]line [13:34:57]line [13:34:57]written 0, free lines is 3380 [13:34:57]MH_Cut [13:34:57]Write to MH i2c: D1 01 00 60 00 01 32 [13:34:57]Write i2c OK [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: D1 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: D1 01 00 [13:34:57]MH_I2C_Read... [13:34:57]Read from MH i2c: D1 01 00 60 00 00 31 [13:34:57]Write to MH i2c: 01 00 00 61 00 61 [13:34:57]Write i2c OK [13:34:57]MH_I2C_Read... [13:34:57]recv_with_timeout no data received [13:34:57]CommunicateWithHost answer receiving error [13:34:57]CommunicateWithHost err = -3 [13:34:57]OFD Sender: Server communicate error [13:34:57]OFD Sender: Processing packet 111875 [packets to send 97, broken 37] [13:34:57]ProducePacketName [13:34:57]name=ofd_packets/00111875 [13:34:57]OFD Sender: To server: 嚂鰌G, [13:34:57]CommunicateWithHost lk.salyk.kg:30040 [13:34:57]ConnectInit lk.salyk.kg [13:34:57]*** Cut start [13:34:57]*** Partial cut [13:34:57]*** CUTSNS_PIN = 1 [13:34:57]*** CUTSNS_PIN = 0 [13:34:58]*** Brake cut motor [13:34:58]Read from MH i2c: 01 [13:34:58]MH_I2C_Read... [13:34:58]*** Stop cut motor [13:34:58]*** Cut end [13:34:58]Read from MH i2c: 01 07 00 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [13:34:58]process_action close_receipt done [13:34:58]requested_data is exist [13:34:58]produce_requested_data [13:34:58]requested_item fm.sn is exist - process it [13:34:58]wFMCommunicate request_size=4 [13:34:58]MH_SAM_APDU [13:34:58]CAPDU: 80 11 00 00 [13:34:58]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [13:34:58]Write i2c OK [13:34:58]MH_I2C_Read... [13:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:58]Read from MH i2c: E2 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: E2 17 00 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2E [13:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:34:58]wFMCommunicate OK [13:34:58]requested_item fd.num is exist - process it [13:34:58]SAM_PROTO_GetFieldsCounters [13:34:58]wFMCommunicate request_size=4 [13:34:58]MH_SAM_APDU [13:34:58]CAPDU: 80 13 00 00 [13:34:58]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [13:34:58]Write i2c OK [13:34:58]MH_I2C_Read... [13:34:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:58]Read from MH i2c: E2 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: E2 62 00 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: E2 62 00 63 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3E B5 01 00 0E 04 04 00 86 01 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 AD [13:34:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3E B5 01 00 0E 04 04 00 86 01 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 [13:34:58]wFMCommunicate OK [13:34:58]SAM_PROTO_GetFieldsCounters done [13:34:58]requested_item shift.num is exist - process it [13:34:58]requested_item shift.opened is exist - process it [13:34:58]req_shift_opened [13:34:58]FM_GetShiftState [13:34:58]SAM_PROTO_GetShiftState [13:34:58]wFMCommunicate request_size=4 [13:34:58]MH_SAM_APDU [13:34:58]CAPDU: 80 13 01 00 [13:34:58]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [13:34:58]Write i2c OK [13:34:58]MH_I2C_Read... [13:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:58]Read from MH i2c: E2 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: E2 0E 00 [13:34:58]MH_I2C_Read... [13:34:58]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 5E [13:34:58]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:34:58]wFMCommunicate OK [13:34:58]SAM_PROTO_GetShiftState done [13:34:58]FM_GetShiftState done [13:34:58]req_shift_opened done [13:34:58]requested_item shift.open_date is exist - process it [13:34:58]req_shift_open_date [13:34:58]req_shift_open_date done [13:34:58]produce_requested_data done [13:34:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111934,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:34:58]process_action_free close_receipt [13:34:58]json_value_free [13:34:58]json_value_free done [13:34:58]process_json_proto returns [13:34:58]Send response to host [13:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111934,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:34:58]free response buf [13:34:58]execute_script done [13:34:58]execute_script returns [13:34:58]free content buf [13:34:58]Sock 9.Close socket [13:34:58]Sock 9.Thread stoped [13:35:02]Connected sock=10 [13:35:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B9 D8 07 01 BD 2B 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 95 58 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B5 01 00 35 04 06 00 E6 26 9A 64 CC 7B 83 06 81 28 26 0B 09 26 [13:35:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0F 02 47 00 10 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 30 38 37 35 30 38 33 10 04 04 00 03 B5 01 00 F4 03 04 00 AE 18 75 66 B6 04 01 00 00 A6 14 38 A9 54 9C D8 07 [13:35:02]CommunicateWithHost err = 0 [13:35:02]CheckOFDResponse [13:35:02]1017 (14) - 77093643461234 [13:35:02]1041 (16) - 0000000000875083 [13:35:02]1040 (4) - 111875 [13:35:02]1012 (4) - 21.06.2024 06:07 [13:35:02]1206 (1) - 0 [13:35:02]OFD Sender: Remove packet 111875 [13:35:02]ProducePacketName [13:35:02]name=ofd_packets/00111875 [13:35:02]NVStorageDeleteData [13:35:03]OFD Sender: Processing packet 111876 [packets to send 96, broken 37] [13:35:03]ProducePacketName [13:35:03]name=ofd_packets/00111876 [13:35:03]OFD Sender: To server: 嚂鰌G, [13:35:03]CommunicateWithHost lk.salyk.kg:30040 [13:35:03]ConnectInit lk.salyk.kg [13:35:03]Connected sock=9 [13:35:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3A 4A 07 01 5F BC 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 2C 00 00 00 F4 03 04 00 D1 58 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B5 01 00 35 04 06 00 65 0D 3D 58 28 69 D9 B2 AF 05 01 89 9A 83 [13:35:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3A 16 47 00 C9 EF 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 30 38 37 35 30 38 33 10 04 04 00 04 B5 01 00 F4 03 04 00 AF 18 75 66 B6 04 01 00 00 B3 D8 C9 61 78 09 5F 71 [13:35:03]CommunicateWithHost err = 0 [13:35:03]CheckOFDResponse [13:35:03]1017 (14) - 77093643461234 [13:35:03]1041 (16) - 0000000000875083 [13:35:03]1040 (4) - 111876 [13:35:03]1012 (4) - 21.06.2024 06:07 [13:35:03]1206 (1) - 0 [13:35:03]OFD Sender: Remove packet 111876 [13:35:03]ProducePacketName [13:35:03]name=ofd_packets/00111876 [13:35:03]NVStorageDeleteData [13:35:04]OFD Sender: Processing packet 111877 [packets to send 95, broken 37] [13:35:04]ProducePacketName [13:35:04]name=ofd_packets/00111877 [13:35:04]OFD Sender: To server: 嚂鰌G, [13:35:04]CommunicateWithHost lk.salyk.kg:30040 [13:35:04]ConnectInit lk.salyk.kg [13:35:04]Connected sock=9 [13:35:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 97 07 01 83 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 25 59 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B5 01 00 35 04 06 00 51 6D 1A 1B 7F DC 87 7D C3 9E 11 81 8B AD [13:35:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 05 B3 47 00 90 A0 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 30 38 37 35 30 38 33 10 04 04 00 05 B5 01 00 F4 03 04 00 B0 18 75 66 B6 04 01 00 00 DD 86 AE 11 EC 4C EF DE [13:35:04]CommunicateWithHost err = 0 [13:35:04]CheckOFDResponse [13:35:04]1017 (14) - 77093643461234 [13:35:04]1041 (16) - 0000000000875083 [13:35:04]1040 (4) - 111877 [13:35:04]1012 (4) - 21.06.2024 06:07 [13:35:04]1206 (1) - 0 [13:35:04]OFD Sender: Remove packet 111877 [13:35:04]ProducePacketName [13:35:04]name=ofd_packets/00111877 [13:35:04]NVStorageDeleteData [13:35:05]OFD Sender: Processing packet 111878 [packets to send 94, broken 37] [13:35:05]ProducePacketName [13:35:05]name=ofd_packets/00111878 [13:35:05]OFD Sender: To server: 嚂鰌G, [13:35:05]CommunicateWithHost lk.salyk.kg:30040 [13:35:05]ConnectInit lk.salyk.kg [13:35:05]Connected sock=9 [13:35:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DC 18 07 01 25 8C 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 2E 00 00 00 F4 03 04 00 0B 5A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B5 01 00 35 04 06 00 60 EB 3A F9 B8 DC 41 55 C6 1C C2 8F 11 5A [13:35:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B4 10 47 00 18 C5 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 30 38 37 35 30 38 33 10 04 04 00 06 B5 01 00 F4 03 04 00 B1 18 75 66 B6 04 01 00 00 FE E5 6A B7 2E 64 32 22 [13:35:05]CommunicateWithHost err = 0 [13:35:05]CheckOFDResponse [13:35:05]1017 (14) - 77093643461234 [13:35:05]1041 (16) - 0000000000875083 [13:35:05]1040 (4) - 111878 [13:35:05]1012 (4) - 21.06.2024 06:07 [13:35:05]1206 (1) - 0 [13:35:05]OFD Sender: Remove packet 111878 [13:35:05]ProducePacketName [13:35:05]name=ofd_packets/00111878 [13:35:05]NVStorageDeleteData [13:35:06]OFD Sender: Processing packet 111879 [packets to send 93, broken 37] [13:35:06]ProducePacketName [13:35:06]name=ofd_packets/00111879 [13:35:06]OFD Sender: To server: 嚂鰌G, [13:35:06]CommunicateWithHost lk.salyk.kg:30040 [13:35:06]ConnectInit lk.salyk.kg [13:35:06]Connected sock=9 [13:35:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8B 08 07 01 D6 BB 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 76 5A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B5 01 00 35 04 06 00 04 EE 1E 63 B7 2F D9 5C C6 0E 0F 37 F5 2F [13:35:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BB 9B 47 00 AD B6 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 30 38 37 35 30 38 33 10 04 04 00 07 B5 01 00 F4 03 04 00 B2 18 75 66 B6 04 01 00 00 91 2B B3 49 5A FA D6 CE [13:35:06]CommunicateWithHost err = 0 [13:35:06]CheckOFDResponse [13:35:06]1017 (14) - 77093643461234 [13:35:06]1041 (16) - 0000000000875083 [13:35:06]1040 (4) - 111879 [13:35:06]1012 (4) - 21.06.2024 06:07 [13:35:06]1206 (1) - 0 [13:35:06]OFD Sender: Remove packet 111879 [13:35:06]ProducePacketName [13:35:06]name=ofd_packets/00111879 [13:35:06]NVStorageDeleteData [13:35:07]OFD Sender: Processing packet 111880 [packets to send 92, broken 37] [13:35:07]ProducePacketName [13:35:07]name=ofd_packets/00111880 [13:35:07]OFD Sender: To server: 嚂鰌G, [13:35:07]CommunicateWithHost lk.salyk.kg:30040 [13:35:07]ConnectInit lk.salyk.kg [13:35:07]Connected sock=9 [13:35:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 35 07 01 CC A7 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 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 B6 5A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B5 01 00 35 04 06 00 69 7E 6D E0 27 46 80 C2 61 3D 9C 1C 4C D4 [13:35:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9D 5C 47 00 64 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 30 38 37 35 30 38 33 10 04 04 00 08 B5 01 00 F4 03 04 00 B3 18 75 66 B6 04 01 00 00 52 4F C6 FA DF 8E 31 96 [13:35:07]CommunicateWithHost err = 0 [13:35:07]CheckOFDResponse [13:35:07]1017 (14) - 77093643461234 [13:35:07]1041 (16) - 0000000000875083 [13:35:07]1040 (4) - 111880 [13:35:07]1012 (4) - 21.06.2024 06:07 [13:35:07]1206 (1) - 0 [13:35:07]OFD Sender: Remove packet 111880 [13:35:07]ProducePacketName [13:35:07]name=ofd_packets/00111880 [13:35:07]NVStorageDeleteData [13:35:08]OFD Sender: Processing packet 111881 [packets to send 91, broken 37] [13:35:08]ProducePacketName [13:35:08]name=ofd_packets/00111881 [13:35:08]OFD Sender: To server: 嚂鰌G, [13:35:08]CommunicateWithHost lk.salyk.kg:30040 [13:35:08]ConnectInit lk.salyk.kg [13:35:08]Connected sock=9 [13:35:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 04 56 07 01 AB D2 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 31 00 00 00 F4 03 04 00 C6 5B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B5 01 00 35 04 06 00 E4 6E 1F DC 36 CA AC F1 A0 66 31 F9 20 7D [13:35:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FD B8 47 00 28 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B5 01 00 F4 03 04 00 B4 18 75 66 B6 04 01 00 00 E0 89 40 41 7C D4 04 CB [13:35:08]CommunicateWithHost err = 0 [13:35:08]CheckOFDResponse [13:35:08]1017 (14) - 77093643461234 [13:35:08]1041 (16) - 0000000000875083 [13:35:08]1040 (4) - 111881 [13:35:08]1012 (4) - 21.06.2024 06:07 [13:35:08]1206 (1) - 0 [13:35:08]OFD Sender: Remove packet 111881 [13:35:08]ProducePacketName [13:35:08]name=ofd_packets/00111881 [13:35:08]NVStorageDeleteData [13:35:09]OFD Sender: Processing packet 111882 [packets to send 90, broken 37] [13:35:09]ProducePacketName [13:35:09]name=ofd_packets/00111882 [13:35:09]OFD Sender: To server: 嚂鰌G, [13:35:09]CommunicateWithHost lk.salyk.kg:30040 [13:35:09]ConnectInit lk.salyk.kg [13:35:09]Connected sock=9 [13:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 78 C2 04 01 41 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 32 00 00 00 F4 03 04 00 2A 5C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B5 01 00 35 04 06 00 8B 44 7F C8 69 F2 D6 BF C4 33 7B 1E 53 2A [13:35:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 69 D3 47 00 22 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 30 38 37 35 30 38 33 10 04 04 00 0A B5 01 00 F4 03 04 00 B5 18 75 66 B6 04 01 00 00 13 21 9D 0C 5B AD DF E5 [13:35:09]CommunicateWithHost err = 0 [13:35:09]CheckOFDResponse [13:35:09]1017 (14) - 77093643461234 [13:35:09]1041 (16) - 0000000000875083 [13:35:09]1040 (4) - 111882 [13:35:09]1012 (4) - 21.06.2024 06:07 [13:35:09]1206 (1) - 0 [13:35:09]OFD Sender: Remove packet 111882 [13:35:09]ProducePacketName [13:35:09]name=ofd_packets/00111882 [13:35:09]NVStorageDeleteData [13:35:09]OFD Sender: Processing packet 111883 [packets to send 89, broken 37] [13:35:09]ProducePacketName [13:35:09]name=ofd_packets/00111883 [13:35:09]OFD Sender: To server: 嚂鰌G, [13:35:10]CommunicateWithHost lk.salyk.kg:30040 [13:35:10]ConnectInit lk.salyk.kg [13:35:10]Connected sock=9 [13:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA 11 07 01 82 7E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 33 00 00 00 F4 03 04 00 A6 5C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B5 01 00 35 04 06 00 CC 3C 9F E3 92 77 F1 B1 07 70 07 6E D1 10 [13:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B8 FB 47 00 F2 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B5 01 00 F4 03 04 00 B6 18 75 66 B6 04 01 00 00 CD 86 89 30 7E C0 77 77 [13:35:10]CommunicateWithHost err = 0 [13:35:10]CheckOFDResponse [13:35:10]1017 (14) - 77093643461234 [13:35:10]1041 (16) - 0000000000875083 [13:35:10]1040 (4) - 111883 [13:35:10]1012 (4) - 21.06.2024 06:07 [13:35:10]1206 (1) - 0 [13:35:10]OFD Sender: Remove packet 111883 [13:35:10]ProducePacketName [13:35:10]name=ofd_packets/00111883 [13:35:10]NVStorageDeleteData [13:35:10]OFD Sender: Processing packet 111884 [packets to send 88, broken 37] [13:35:10]ProducePacketName [13:35:10]name=ofd_packets/00111884 [13:35:10]OFD Sender: To server: 嚂鰌G, [13:35:10]CommunicateWithHost lk.salyk.kg:30040 [13:35:10]ConnectInit lk.salyk.kg [13:35:11]Connected sock=9 [13:35:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 93 1F 07 01 C6 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 34 00 00 00 F4 03 04 00 10 5F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B5 01 00 35 04 06 00 DC 55 F2 99 50 04 D5 4B CD 6F 73 5B 06 F8 [13:35:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 14 98 47 00 EC 51 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 30 38 37 35 30 38 33 10 04 04 00 0C B5 01 00 F4 03 04 00 B7 18 75 66 B6 04 01 00 00 AB 56 84 41 68 B0 0D 0C [13:35:11]CommunicateWithHost err = 0 [13:35:11]CheckOFDResponse [13:35:11]1017 (14) - 77093643461234 [13:35:11]1041 (16) - 0000000000875083 [13:35:11]1040 (4) - 111884 [13:35:11]1012 (4) - 21.06.2024 06:07 [13:35:11]1206 (1) - 0 [13:35:11]OFD Sender: Remove packet 111884 [13:35:11]ProducePacketName [13:35:11]name=ofd_packets/00111884 [13:35:11]NVStorageDeleteData [13:35:11]OFD Sender: Processing packet 111885 [packets to send 87, broken 37] [13:35:11]ProducePacketName [13:35:11]name=ofd_packets/00111885 [13:35:11]OFD Sender: To server: 嚂鰌G, [13:35:11]CommunicateWithHost lk.salyk.kg:30040 [13:35:11]ConnectInit lk.salyk.kg [13:35:12]Connected sock=9 [13:35:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 86 36 07 01 AD D3 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 35 00 00 00 F4 03 04 00 5F 60 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B5 01 00 35 04 06 00 EF 2B 2E E6 DD FE 02 40 3C 17 82 97 A8 23 [13:35:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 64 B7 47 00 01 EF 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 30 38 37 35 30 38 33 10 04 04 00 0D B5 01 00 F4 03 04 00 B8 18 75 66 B6 04 01 00 00 61 C3 AB E6 04 61 CB A4 [13:35:12]CommunicateWithHost err = 0 [13:35:12]CheckOFDResponse [13:35:12]1017 (14) - 77093643461234 [13:35:12]1041 (16) - 0000000000875083 [13:35:12]1040 (4) - 111885 [13:35:12]1012 (4) - 21.06.2024 06:07 [13:35:12]1206 (1) - 0 [13:35:12]OFD Sender: Remove packet 111885 [13:35:12]ProducePacketName [13:35:12]name=ofd_packets/00111885 [13:35:12]NVStorageDeleteData [13:35:12]OFD Sender: Processing packet 111886 [packets to send 86, broken 37] [13:35:12]ProducePacketName [13:35:12]name=ofd_packets/00111886 [13:35:12]OFD Sender: To server: 嚂鰌G, [13:35:12]CommunicateWithHost lk.salyk.kg:30040 [13:35:12]ConnectInit lk.salyk.kg [13:35:13]Connected sock=10 [13:35:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D4 5D 07 01 23 80 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C4 60 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B5 01 00 35 04 06 00 5A B3 88 F2 9D 6A D6 63 15 5A D5 4A E7 AD [13:35:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E4 B9 47 00 B7 72 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 30 38 37 35 30 38 33 10 04 04 00 0E B5 01 00 F4 03 04 00 B9 18 75 66 B6 04 01 00 00 EF 1A 15 DF 9B 18 74 DF [13:35:13]CommunicateWithHost err = 0 [13:35:13]CheckOFDResponse [13:35:13]1017 (14) - 77093643461234 [13:35:13]1041 (16) - 0000000000875083 [13:35:13]1040 (4) - 111886 [13:35:13]1012 (4) - 21.06.2024 06:07 [13:35:13]1206 (1) - 0 [13:35:13]OFD Sender: Remove packet 111886 [13:35:13]ProducePacketName [13:35:13]name=ofd_packets/00111886 [13:35:13]NVStorageDeleteData [13:35:13]OFD Sender: Processing packet 111887 [packets to send 85, broken 37] [13:35:13]ProducePacketName [13:35:13]name=ofd_packets/00111887 [13:35:13]OFD Sender: To server: 嚂鰌G, [13:35:13]CommunicateWithHost lk.salyk.kg:30040 [13:35:13]ConnectInit lk.salyk.kg [13:35:14]Connected sock=9 [13:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 33 EF 04 01 B2 51 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 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 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 A7 61 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B5 01 00 35 04 06 00 B6 35 75 1A F8 F9 97 8E 13 0A 0D D4 87 43 [13:35:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9E 0C 47 00 32 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 30 38 37 35 30 38 33 10 04 04 00 0F B5 01 00 F4 03 04 00 BA 18 75 66 B6 04 01 00 00 08 5D 9B A6 F3 B6 2C 0F [13:35:14]CommunicateWithHost err = 0 [13:35:14]CheckOFDResponse [13:35:14]1017 (14) - 77093643461234 [13:35:14]1041 (16) - 0000000000875083 [13:35:14]1040 (4) - 111887 [13:35:14]1012 (4) - 21.06.2024 06:07 [13:35:14]1206 (1) - 0 [13:35:14]OFD Sender: Remove packet 111887 [13:35:14]ProducePacketName [13:35:14]name=ofd_packets/00111887 [13:35:14]NVStorageDeleteData [13:35:14]OFD Sender: Processing packet 111888 [packets to send 84, broken 37] [13:35:14]ProducePacketName [13:35:14]name=ofd_packets/00111888 [13:35:14]OFD Sender: To server: 嚂鰌G, [13:35:14]CommunicateWithHost lk.salyk.kg:30040 [13:35:14]ConnectInit lk.salyk.kg [13:35:14]Connected sock=9 [13:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3E C0 07 01 5F 78 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 38 00 00 00 F4 03 04 00 AB 61 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B5 01 00 35 04 06 00 F1 FA 58 E5 0D FE 01 64 E6 6E 53 6F 34 E7 [13:35:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7D E5 47 00 BB 8F 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 30 38 37 35 30 38 33 10 04 04 00 10 B5 01 00 F4 03 04 00 BB 18 75 66 B6 04 01 00 00 7E 87 51 48 01 32 5E 39 [13:35:15]CommunicateWithHost err = 0 [13:35:15]CheckOFDResponse [13:35:15]1017 (14) - 77093643461234 [13:35:15]1041 (16) - 0000000000875083 [13:35:15]1040 (4) - 111888 [13:35:15]1012 (4) - 21.06.2024 06:07 [13:35:15]1206 (1) - 0 [13:35:15]OFD Sender: Remove packet 111888 [13:35:15]ProducePacketName [13:35:15]name=ofd_packets/00111888 [13:35:15]NVStorageDeleteData [13:35:15]OFD Sender: Processing packet 111889 [packets to send 83, broken 37] [13:35:15]ProducePacketName [13:35:15]name=ofd_packets/00111889 [13:35:15]OFD Sender: To server: 嚂鰌G, [13:35:15]CommunicateWithHost lk.salyk.kg:30040 [13:35:15]ConnectInit lk.salyk.kg [13:35:15]Connected sock=9 [13:35:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CD 3A 07 01 98 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 39 00 00 00 F4 03 04 00 39 62 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B5 01 00 35 04 06 00 BA 89 A0 66 32 0A 1A 50 5E 28 DD 9E C4 72 [13:35:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 19 8B 47 00 88 5A 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 30 38 37 35 30 38 33 10 04 04 00 11 B5 01 00 F4 03 04 00 BC 18 75 66 B6 04 01 00 00 D9 F8 6A 3D 39 53 EC A1 [13:35:16]CommunicateWithHost err = 0 [13:35:16]CheckOFDResponse [13:35:16]1017 (14) - 77093643461234 [13:35:16]1041 (16) - 0000000000875083 [13:35:16]1040 (4) - 111889 [13:35:16]1012 (4) - 21.06.2024 06:07 [13:35:16]1206 (1) - 0 [13:35:16]OFD Sender: Remove packet 111889 [13:35:16]ProducePacketName [13:35:16]name=ofd_packets/00111889 [13:35:16]NVStorageDeleteData [13:35:16]OFD Sender: Processing packet 111890 [packets to send 82, broken 37] [13:35:16]ProducePacketName [13:35:16]name=ofd_packets/00111890 [13:35:16]OFD Sender: To server: 嚂鰌G, [13:35:16]CommunicateWithHost lk.salyk.kg:30040 [13:35:16]ConnectInit lk.salyk.kg [13:35:16]Connected sock=9 [13:35:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E F1 07 01 70 12 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 3A 00 00 00 F4 03 04 00 70 62 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B5 01 00 35 04 06 00 B4 8D 0D 51 04 F3 63 46 1B B3 D8 51 A3 1E [13:35:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CD 44 47 00 F7 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B5 01 00 F4 03 04 00 BD 18 75 66 B6 04 01 00 00 FE 4C 46 C5 BF 1C 3C 8A [13:35:17]CommunicateWithHost err = 0 [13:35:17]CheckOFDResponse [13:35:17]1017 (14) - 77093643461234 [13:35:17]1041 (16) - 0000000000875083 [13:35:17]1040 (4) - 111890 [13:35:17]1012 (4) - 21.06.2024 06:07 [13:35:17]1206 (1) - 0 [13:35:17]OFD Sender: Remove packet 111890 [13:35:17]ProducePacketName [13:35:17]name=ofd_packets/00111890 [13:35:17]NVStorageDeleteData [13:35:17]OFD Sender: Processing packet 111891 [packets to send 81, broken 37] [13:35:17]ProducePacketName [13:35:17]name=ofd_packets/00111891 [13:35:17]OFD Sender: To server: 嚂鰌G, [13:35:17]CommunicateWithHost lk.salyk.kg:30040 [13:35:17]ConnectInit lk.salyk.kg [13:35:18]Connected sock=9 [13:35:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 90 CE 07 01 D6 59 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 3B 00 00 00 F4 03 04 00 B6 62 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B5 01 00 35 04 06 00 D3 55 1B 06 67 60 D1 47 E0 62 FF E2 1D AF [13:35:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 43 3A 47 00 C8 C9 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 30 38 37 35 30 38 33 10 04 04 00 13 B5 01 00 F4 03 04 00 BE 18 75 66 B6 04 01 00 00 DE 25 18 EF DF 58 EE CA [13:35:18]CommunicateWithHost err = 0 [13:35:18]CheckOFDResponse [13:35:18]1017 (14) - 77093643461234 [13:35:18]1041 (16) - 0000000000875083 [13:35:18]1040 (4) - 111891 [13:35:18]1012 (4) - 21.06.2024 06:07 [13:35:18]1206 (1) - 0 [13:35:18]OFD Sender: Remove packet 111891 [13:35:18]ProducePacketName [13:35:18]name=ofd_packets/00111891 [13:35:18]NVStorageDeleteData [13:35:18]OFD Sender: Processing packet 111892 [packets to send 80, broken 37] [13:35:18]ProducePacketName [13:35:18]name=ofd_packets/00111892 [13:35:18]OFD Sender: To server: 嚂鰌G, [13:35:18]CommunicateWithHost lk.salyk.kg:30040 [13:35:18]ConnectInit lk.salyk.kg [13:35:18]Connected sock=9 [13:35:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DE 51 07 01 F6 CB 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 7C 4C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 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 3C 00 00 00 F4 03 04 00 0A 63 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B5 01 00 35 04 06 00 6F B7 24 13 2E 96 1E 2E 8B E0 A1 3F FB 3E [13:35:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 97 EE 47 00 75 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 30 38 37 35 30 38 33 10 04 04 00 14 B5 01 00 F4 03 04 00 BF 18 75 66 B6 04 01 00 00 43 52 2F BD A7 38 3B 12 [13:35:19]CommunicateWithHost err = 0 [13:35:19]CheckOFDResponse [13:35:19]1017 (14) - 77093643461234 [13:35:19]1041 (16) - 0000000000875083 [13:35:19]1040 (4) - 111892 [13:35:19]1012 (4) - 21.06.2024 06:07 [13:35:19]1206 (1) - 0 [13:35:19]OFD Sender: Remove packet 111892 [13:35:19]ProducePacketName [13:35:19]name=ofd_packets/00111892 [13:35:19]NVStorageDeleteData [13:35:19]OFD Sender: Processing packet 111893 [packets to send 79, broken 37] [13:35:19]ProducePacketName [13:35:19]name=ofd_packets/00111893 [13:35:19]OFD Sender: To server: 嚂鰌G, [13:35:19]CommunicateWithHost lk.salyk.kg:30040 [13:35:19]ConnectInit lk.salyk.kg [13:35:19]Connected sock=9 [13:35:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 43 A0 07 01 4F 0B 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 3D 00 00 00 F4 03 04 00 34 63 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B5 01 00 35 04 06 00 7A C7 F4 30 3D 67 B2 BF 32 F3 E1 3F 15 BD [13:35:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 77 D6 47 00 9F EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B5 01 00 F4 03 04 00 C0 18 75 66 B6 04 01 00 00 40 23 B2 CC D2 A9 DE 4B [13:35:20]CommunicateWithHost err = 0 [13:35:20]CheckOFDResponse [13:35:20]1017 (14) - 77093643461234 [13:35:20]1041 (16) - 0000000000875083 [13:35:20]1040 (4) - 111893 [13:35:20]1012 (4) - 21.06.2024 06:08 [13:35:20]1206 (1) - 0 [13:35:20]OFD Sender: Remove packet 111893 [13:35:20]ProducePacketName [13:35:20]name=ofd_packets/00111893 [13:35:20]NVStorageDeleteData [13:35:20]OFD Sender: Processing packet 111894 [packets to send 78, broken 37] [13:35:20]ProducePacketName [13:35:20]name=ofd_packets/00111894 [13:35:20]OFD Sender: To server: 嚂鰌G, [13:35:20]CommunicateWithHost lk.salyk.kg:30040 [13:35:20]ConnectInit lk.salyk.kg [13:35:20]Connected sock=9 [13:35:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 36 67 07 01 59 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 3E 00 00 00 F4 03 04 00 90 63 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B5 01 00 35 04 06 00 6E E2 D3 65 AA D5 3F C8 F5 51 A2 95 1D 4C [13:35:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 37 87 47 00 2A 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 30 38 37 35 30 38 33 10 04 04 00 16 B5 01 00 F4 03 04 00 C1 18 75 66 B6 04 01 00 00 A6 AA 1C 29 F8 5A 77 75 [13:35:21]CommunicateWithHost err = 0 [13:35:21]CheckOFDResponse [13:35:21]1017 (14) - 77093643461234 [13:35:21]1041 (16) - 0000000000875083 [13:35:21]1040 (4) - 111894 [13:35:21]1012 (4) - 21.06.2024 06:08 [13:35:21]1206 (1) - 0 [13:35:21]OFD Sender: Remove packet 111894 [13:35:21]ProducePacketName [13:35:21]name=ofd_packets/00111894 [13:35:21]NVStorageDeleteData [13:35:21]OFD Sender: Processing packet 111895 [packets to send 77, broken 37] [13:35:21]ProducePacketName [13:35:21]name=ofd_packets/00111895 [13:35:21]OFD Sender: To server: 嚂鰌G, [13:35:21]CommunicateWithHost lk.salyk.kg:30040 [13:35:21]ConnectInit lk.salyk.kg [13:35:22]Connected sock=9 [13:35:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 15 07 01 7D 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 E3 63 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B5 01 00 35 04 06 00 A4 58 FE 54 C9 22 A7 7B 9D F9 6A 8E E8 C8 [13:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B3 AA 47 00 CA 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 30 38 37 35 30 38 33 10 04 04 00 17 B5 01 00 F4 03 04 00 C2 18 75 66 B6 04 01 00 00 57 0A 5C FC 2C 68 28 46 [13:35:22]CommunicateWithHost err = 0 [13:35:22]CheckOFDResponse [13:35:22]1017 (14) - 77093643461234 [13:35:22]1041 (16) - 0000000000875083 [13:35:22]1040 (4) - 111895 [13:35:22]1012 (4) - 21.06.2024 06:08 [13:35:22]1206 (1) - 0 [13:35:22]OFD Sender: Remove packet 111895 [13:35:22]ProducePacketName [13:35:22]name=ofd_packets/00111895 [13:35:22]NVStorageDeleteData [13:35:23]OFD Sender: Processing packet 111896 [packets to send 76, broken 37] [13:35:23]ProducePacketName [13:35:23]name=ofd_packets/00111896 [13:35:23]OFD Sender: To server: 嚂鰌G, [13:35:23]CommunicateWithHost lk.salyk.kg:30040 [13:35:23]ConnectInit lk.salyk.kg [13:35:23]Connected sock=9 [13:35:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8D 4A 07 01 D3 BC 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 12 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F2 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 FC 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 40 00 00 00 F4 03 04 00 5D 65 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B5 01 00 35 04 06 00 3D 65 E7 3D CB 0E 52 5A 8C 46 30 FB 5A 7B [13:35:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 45 3F 47 00 DA A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B5 01 00 F4 03 04 00 C3 18 75 66 B6 04 01 00 00 5E 32 07 A1 A8 E5 A5 A4 [13:35:23]CommunicateWithHost err = 0 [13:35:23]CheckOFDResponse [13:35:23]1017 (14) - 77093643461234 [13:35:23]1041 (16) - 0000000000875083 [13:35:23]1040 (4) - 111896 [13:35:23]1012 (4) - 21.06.2024 06:08 [13:35:23]1206 (1) - 0 [13:35:23]OFD Sender: Remove packet 111896 [13:35:23]ProducePacketName [13:35:23]name=ofd_packets/00111896 [13:35:23]NVStorageDeleteData [13:35:24]OFD Sender: Processing packet 111897 [packets to send 75, broken 37] [13:35:24]ProducePacketName [13:35:24]name=ofd_packets/00111897 [13:35:24]OFD Sender: To server: 嚂鰌G, [13:35:24]CommunicateWithHost lk.salyk.kg:30040 [13:35:24]ConnectInit lk.salyk.kg [13:35:24]Connected sock=9 [13:35:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5D 8D 07 01 3A 3C 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 F6 65 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B5 01 00 35 04 06 00 B1 E8 20 B8 86 8D ED B8 06 96 EA D4 97 CF [13:35:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 66 D6 47 00 28 5A 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 30 38 37 35 30 38 33 10 04 04 00 19 B5 01 00 F4 03 04 00 C4 18 75 66 B6 04 01 00 00 81 A4 1D E2 3E 1E 0E 7C [13:35:24]CommunicateWithHost err = 0 [13:35:24]CheckOFDResponse [13:35:24]1017 (14) - 77093643461234 [13:35:24]1041 (16) - 0000000000875083 [13:35:24]1040 (4) - 111897 [13:35:24]1012 (4) - 21.06.2024 06:08 [13:35:24]1206 (1) - 0 [13:35:24]OFD Sender: Remove packet 111897 [13:35:24]ProducePacketName [13:35:24]name=ofd_packets/00111897 [13:35:24]NVStorageDeleteData [13:35:25]OFD Sender: Processing packet 111898 [packets to send 74, broken 37] [13:35:25]ProducePacketName [13:35:25]name=ofd_packets/00111898 [13:35:25]OFD Sender: To server: 嚂鰌G, [13:35:25]CommunicateWithHost lk.salyk.kg:30040 [13:35:25]ConnectInit lk.salyk.kg [13:35:25]Connected sock=9 [13:35:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 4A 07 01 04 F7 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 42 00 00 00 F4 03 04 00 BD 66 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B5 01 00 35 04 06 00 01 7F 7D E8 DA F5 6A D8 92 37 01 73 80 82 [13:35:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 16 BD 47 00 5C 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 30 38 37 35 30 38 33 10 04 04 00 1A B5 01 00 F4 03 04 00 C5 18 75 66 B6 04 01 00 00 48 1E 72 88 13 F2 1D A8 [13:35:25]CommunicateWithHost err = 0 [13:35:25]CheckOFDResponse [13:35:25]1017 (14) - 77093643461234 [13:35:25]1041 (16) - 0000000000875083 [13:35:25]1040 (4) - 111898 [13:35:25]1012 (4) - 21.06.2024 06:08 [13:35:25]1206 (1) - 0 [13:35:25]OFD Sender: Remove packet 111898 [13:35:25]ProducePacketName [13:35:25]name=ofd_packets/00111898 [13:35:25]NVStorageDeleteData [13:35:26]OFD Sender: Processing packet 111899 [packets to send 73, broken 37] [13:35:26]ProducePacketName [13:35:26]name=ofd_packets/00111899 [13:35:26]OFD Sender: To server: 嚂鰌G, [13:35:26]CommunicateWithHost lk.salyk.kg:30040 [13:35:26]ConnectInit lk.salyk.kg [13:35:26]Connected sock=9 [13:35:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 18 26 07 01 76 65 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 2E 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 27 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 A0 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 43 00 00 00 F4 03 04 00 00 67 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B5 01 00 35 04 06 00 50 E2 00 47 29 31 EB 3A B5 C2 17 76 81 A9 [13:35:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2A 14 47 00 99 8D 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 30 38 37 35 30 38 33 10 04 04 00 1B B5 01 00 F4 03 04 00 C6 18 75 66 B6 04 01 00 00 91 98 CE 0D CA BD 83 67 [13:35:26]CommunicateWithHost err = 0 [13:35:26]CheckOFDResponse [13:35:26]1017 (14) - 77093643461234 [13:35:26]1041 (16) - 0000000000875083 [13:35:26]1040 (4) - 111899 [13:35:26]1012 (4) - 21.06.2024 06:08 [13:35:26]1206 (1) - 0 [13:35:26]OFD Sender: Remove packet 111899 [13:35:26]ProducePacketName [13:35:26]name=ofd_packets/00111899 [13:35:26]NVStorageDeleteData [13:35:27]OFD Sender: Processing packet 111900 [packets to send 72, broken 37] [13:35:27]ProducePacketName [13:35:27]name=ofd_packets/00111900 [13:35:27]OFD Sender: To server: 嚂鰌G, [13:35:27]CommunicateWithHost lk.salyk.kg:30040 [13:35:27]ConnectInit lk.salyk.kg [13:35:27]Connected sock=9 [13:35:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1F 8D 07 01 A6 20 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 74 67 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B5 01 00 35 04 06 00 36 CD 84 96 06 79 36 A3 11 2C 6D FD E8 DE [13:35:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FB 17 47 00 82 34 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 30 38 37 35 30 38 33 10 04 04 00 1C B5 01 00 F4 03 04 00 C7 18 75 66 B6 04 01 00 00 33 C3 46 5D B3 47 A5 8B [13:35:27]CommunicateWithHost err = 0 [13:35:27]CheckOFDResponse [13:35:27]1017 (14) - 77093643461234 [13:35:27]1041 (16) - 0000000000875083 [13:35:27]1040 (4) - 111900 [13:35:27]1012 (4) - 21.06.2024 06:08 [13:35:27]1206 (1) - 0 [13:35:27]OFD Sender: Remove packet 111900 [13:35:27]ProducePacketName [13:35:27]name=ofd_packets/00111900 [13:35:27]NVStorageDeleteData [13:35:28]OFD Sender: Processing packet 111901 [packets to send 71, broken 37] [13:35:28]ProducePacketName [13:35:28]name=ofd_packets/00111901 [13:35:28]OFD Sender: To server: 嚂鰌G, [13:35:28]CommunicateWithHost lk.salyk.kg:30040 [13:35:28]ConnectInit lk.salyk.kg [13:35:28]Connected sock=9 [13:35:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 3D 07 01 93 CD 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 45 00 00 00 F4 03 04 00 E3 67 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B5 01 00 35 04 06 00 2E 38 2D 5D 4F F6 59 97 DF 68 D9 89 B4 1D [13:35:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AF 2C 47 00 64 A0 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 30 38 37 35 30 38 33 10 04 04 00 1D B5 01 00 F4 03 04 00 C8 18 75 66 B6 04 01 00 00 98 B3 67 8C 58 93 0B 8B [13:35:28]CommunicateWithHost err = 0 [13:35:28]CheckOFDResponse [13:35:28]1017 (14) - 77093643461234 [13:35:28]1041 (16) - 0000000000875083 [13:35:28]1040 (4) - 111901 [13:35:28]1012 (4) - 21.06.2024 06:08 [13:35:28]1206 (1) - 0 [13:35:28]OFD Sender: Remove packet 111901 [13:35:28]ProducePacketName [13:35:28]name=ofd_packets/00111901 [13:35:28]NVStorageDeleteData [13:35:29]OFD Sender: Processing packet 111902 [packets to send 70, broken 37] [13:35:29]ProducePacketName [13:35:29]name=ofd_packets/00111902 [13:35:29]OFD Sender: To server: 嚂鰌G, [13:35:29]CommunicateWithHost lk.salyk.kg:30040 [13:35:29]ConnectInit lk.salyk.kg [13:35:29]Connected sock=9 [13:35:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 63 64 07 01 AB 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 8D 68 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B5 01 00 35 04 06 00 54 94 FE B9 C0 58 5F 12 88 AA 78 1C 7F C9 [13:35:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C0 58 47 00 5F 85 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 30 38 37 35 30 38 33 10 04 04 00 1E B5 01 00 F4 03 04 00 C9 18 75 66 B6 04 01 00 00 6C 17 D5 B5 5C C7 F4 98 [13:35:29]CommunicateWithHost err = 0 [13:35:29]CheckOFDResponse [13:35:29]1017 (14) - 77093643461234 [13:35:29]1041 (16) - 0000000000875083 [13:35:29]1040 (4) - 111902 [13:35:29]1012 (4) - 21.06.2024 06:08 [13:35:29]1206 (1) - 0 [13:35:29]OFD Sender: Remove packet 111902 [13:35:29]ProducePacketName [13:35:29]name=ofd_packets/00111902 [13:35:29]NVStorageDeleteData [13:35:30]OFD Sender: Processing packet 111903 [packets to send 69, broken 37] [13:35:30]ProducePacketName [13:35:30]name=ofd_packets/00111903 [13:35:30]OFD Sender: To server: 嚂鰌G, [13:35:30]CommunicateWithHost lk.salyk.kg:30040 [13:35:30]ConnectInit lk.salyk.kg [13:35:30]Connected sock=9 [13:35:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0D 6A 07 01 70 2D 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 3E 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 EC 68 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B5 01 00 35 04 06 00 AC 44 E6 D3 EF DC B1 57 0F 47 87 9F 51 27 [13:35:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FD 71 47 00 9F 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 30 38 37 35 30 38 33 10 04 04 00 1F B5 01 00 F4 03 04 00 CA 18 75 66 B6 04 01 00 00 79 FA B6 AC 4D D0 ED 72 [13:35:30]CommunicateWithHost err = 0 [13:35:30]CheckOFDResponse [13:35:30]1017 (14) - 77093643461234 [13:35:30]1041 (16) - 0000000000875083 [13:35:30]1040 (4) - 111903 [13:35:30]1012 (4) - 21.06.2024 06:08 [13:35:30]1206 (1) - 0 [13:35:30]OFD Sender: Remove packet 111903 [13:35:30]ProducePacketName [13:35:30]name=ofd_packets/00111903 [13:35:30]NVStorageDeleteData [13:35:31]OFD Sender: Processing packet 111904 [packets to send 68, broken 37] [13:35:31]ProducePacketName [13:35:31]name=ofd_packets/00111904 [13:35:31]OFD Sender: To server: 嚂鰌G, [13:35:31]CommunicateWithHost lk.salyk.kg:30040 [13:35:31]ConnectInit lk.salyk.kg [13:35:31]Connected sock=9 [13:35:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 95 26 04 01 6C 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 48 00 00 00 F4 03 04 00 F6 68 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B5 01 00 35 04 06 00 09 E3 13 1E C3 85 ED EB FE 66 2E F4 94 99 [13:35:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3D 71 47 00 C7 AA 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 30 38 37 35 30 38 33 10 04 04 00 20 B5 01 00 F4 03 04 00 CB 18 75 66 B6 04 01 00 00 21 72 DC F5 67 C9 48 0E [13:35:31]CommunicateWithHost err = 0 [13:35:31]CheckOFDResponse [13:35:31]1017 (14) - 77093643461234 [13:35:31]1041 (16) - 0000000000875083 [13:35:31]1040 (4) - 111904 [13:35:31]1012 (4) - 21.06.2024 06:08 [13:35:31]1206 (1) - 0 [13:35:31]OFD Sender: Remove packet 111904 [13:35:31]ProducePacketName [13:35:31]name=ofd_packets/00111904 [13:35:31]NVStorageDeleteData [13:35:32]OFD Sender: Processing packet 111905 [packets to send 67, broken 37] [13:35:32]ProducePacketName [13:35:32]name=ofd_packets/00111905 [13:35:32]OFD Sender: To server: 嚂鰌G, [13:35:32]CommunicateWithHost lk.salyk.kg:30040 [13:35:32]ConnectInit lk.salyk.kg [13:35:32]Connected sock=9 [13:35:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 13 39 07 01 DE BB 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 49 00 00 00 F4 03 04 00 B7 6A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B5 01 00 35 04 06 00 21 C0 2B 7E 3E EA 3C A7 44 86 E7 E5 59 98 [13:35:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 54 4B 47 00 98 A3 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 30 38 37 35 30 38 33 10 04 04 00 21 B5 01 00 F4 03 04 00 CC 18 75 66 B6 04 01 00 00 B3 F6 39 32 F0 3F 02 9C [13:35:32]CommunicateWithHost err = 0 [13:35:32]CheckOFDResponse [13:35:32]1017 (14) - 77093643461234 [13:35:32]1041 (16) - 0000000000875083 [13:35:32]1040 (4) - 111905 [13:35:32]1012 (4) - 21.06.2024 06:08 [13:35:32]1206 (1) - 0 [13:35:32]OFD Sender: Remove packet 111905 [13:35:32]ProducePacketName [13:35:32]name=ofd_packets/00111905 [13:35:32]NVStorageDeleteData [13:35:33]OFD Sender: Processing packet 111906 [packets to send 66, broken 37] [13:35:33]ProducePacketName [13:35:33]name=ofd_packets/00111906 [13:35:33]OFD Sender: To server: 嚂鰌G, [13:35:33]CommunicateWithHost lk.salyk.kg:30040 [13:35:33]ConnectInit lk.salyk.kg [13:35:33]Connected sock=9 [13:35:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 A7 E7 04 01 7F C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 98 AC 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 AC 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 B5 00 00 00 00 07 04 06 00 98 AC 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 F1 6A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B5 01 00 35 04 06 00 08 CC DC A3 E4 AF 7C 43 20 E4 6F 61 E6 84 [13:35:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 62 30 47 00 D2 33 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 30 38 37 35 30 38 33 10 04 04 00 22 B5 01 00 F4 03 04 00 CD 18 75 66 B6 04 01 00 00 02 3A 11 BB B4 CA 7C 0E [13:35:33]CommunicateWithHost err = 0 [13:35:33]CheckOFDResponse [13:35:33]1017 (14) - 77093643461234 [13:35:33]1041 (16) - 0000000000875083 [13:35:33]1040 (4) - 111906 [13:35:33]1012 (4) - 21.06.2024 06:08 [13:35:33]1206 (1) - 0 [13:35:33]OFD Sender: Remove packet 111906 [13:35:33]ProducePacketName [13:35:33]name=ofd_packets/00111906 [13:35:33]NVStorageDeleteData [13:35:34]OFD Sender: Processing packet 111907 [packets to send 65, broken 37] [13:35:34]ProducePacketName [13:35:34]name=ofd_packets/00111907 [13:35:34]OFD Sender: To server: 嚂鰌G, [13:35:34]CommunicateWithHost lk.salyk.kg:30040 [13:35:34]ConnectInit lk.salyk.kg [13:35:34]Connected sock=10 [13:35:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 0A 13 04 01 B1 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 2A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AC 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 34 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 4B 00 00 00 F4 03 04 00 23 6B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B5 01 00 35 04 06 00 49 D8 00 CD 56 11 DF 48 80 93 E6 5E 72 1D [13:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 72 25 47 00 78 BC 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 30 38 37 35 30 38 33 10 04 04 00 23 B5 01 00 F4 03 04 00 CE 18 75 66 B6 04 01 00 00 34 EC 44 62 51 CA 0A DC [13:35:34]CommunicateWithHost err = 0 [13:35:34]CheckOFDResponse [13:35:34]1017 (14) - 77093643461234 [13:35:34]1041 (16) - 0000000000875083 [13:35:34]1040 (4) - 111907 [13:35:34]1012 (4) - 21.06.2024 06:08 [13:35:34]1206 (1) - 0 [13:35:34]OFD Sender: Remove packet 111907 [13:35:34]ProducePacketName [13:35:34]name=ofd_packets/00111907 [13:35:34]NVStorageDeleteData [13:35:35]OFD Sender: Processing packet 111908 [packets to send 64, broken 37] [13:35:35]ProducePacketName [13:35:35]name=ofd_packets/00111908 [13:35:35]OFD Sender: To server: 嚂鰌G, [13:35:35]CommunicateWithHost lk.salyk.kg:30040 [13:35:35]ConnectInit lk.salyk.kg [13:35:35]Connected sock=9 [13:35:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2B 91 07 01 54 20 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 76 6B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B5 01 00 35 04 06 00 00 68 62 79 40 58 F2 0C DF CD A5 2D E5 D5 [13:35:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 70 77 47 00 EA 94 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 30 38 37 35 30 38 33 10 04 04 00 24 B5 01 00 F4 03 04 00 CF 18 75 66 B6 04 01 00 00 66 89 46 BB C3 3A 9E 61 [13:35:35]CommunicateWithHost err = 0 [13:35:35]CheckOFDResponse [13:35:35]1017 (14) - 77093643461234 [13:35:35]1041 (16) - 0000000000875083 [13:35:35]1040 (4) - 111908 [13:35:35]1012 (4) - 21.06.2024 06:08 [13:35:35]1206 (1) - 0 [13:35:35]OFD Sender: Remove packet 111908 [13:35:35]ProducePacketName [13:35:35]name=ofd_packets/00111908 [13:35:35]NVStorageDeleteData [13:35:36]OFD Sender: Processing packet 111909 [packets to send 63, broken 37] [13:35:36]ProducePacketName [13:35:36]name=ofd_packets/00111909 [13:35:36]OFD Sender: To server: 嚂鰌G, [13:35:36]CommunicateWithHost lk.salyk.kg:30040 [13:35:36]ConnectInit lk.salyk.kg [13:35:36]Connected sock=9 [13:35:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 65 16 07 01 5B 04 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 4D 00 00 00 F4 03 04 00 18 6D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B5 01 00 35 04 06 00 32 AC D6 EB 81 8D E8 CA 6E 1A 37 0E C8 C9 [13:35:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 23 17 47 00 33 EF 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 30 38 37 35 30 38 33 10 04 04 00 25 B5 01 00 F4 03 04 00 D1 18 75 66 B6 04 01 00 00 E9 ED FC 7D B7 95 3B 3A [13:35:36]CommunicateWithHost err = 0 [13:35:36]CheckOFDResponse [13:35:36]1017 (14) - 77093643461234 [13:35:36]1041 (16) - 0000000000875083 [13:35:36]1040 (4) - 111909 [13:35:36]1012 (4) - 21.06.2024 06:08 [13:35:36]1206 (1) - 0 [13:35:36]OFD Sender: Remove packet 111909 [13:35:36]ProducePacketName [13:35:36]name=ofd_packets/00111909 [13:35:36]NVStorageDeleteData [13:35:37]OFD Sender: Processing packet 111910 [packets to send 62, broken 37] [13:35:37]ProducePacketName [13:35:37]name=ofd_packets/00111910 [13:35:37]OFD Sender: To server: 嚂鰌G, [13:35:37]CommunicateWithHost lk.salyk.kg:30040 [13:35:37]ConnectInit lk.salyk.kg [13:35:37]Connected sock=9 [13:35:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F7 6F 07 01 47 CE 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 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 3E 6D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B5 01 00 35 04 06 00 A2 C7 14 66 86 EA 18 40 2B 79 D3 EF 45 45 [13:35:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C8 2D 47 00 C4 FE 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 30 38 37 35 30 38 33 10 04 04 00 26 B5 01 00 F4 03 04 00 D2 18 75 66 B6 04 01 00 00 FC C6 4B 6B 0D 37 FC BB [13:35:37]CommunicateWithHost err = 0 [13:35:37]CheckOFDResponse [13:35:37]1017 (14) - 77093643461234 [13:35:37]1041 (16) - 0000000000875083 [13:35:37]1040 (4) - 111910 [13:35:37]1012 (4) - 21.06.2024 06:08 [13:35:37]1206 (1) - 0 [13:35:37]OFD Sender: Remove packet 111910 [13:35:37]ProducePacketName [13:35:37]name=ofd_packets/00111910 [13:35:37]NVStorageDeleteData [13:35:38]OFD Sender: Processing packet 111911 [packets to send 61, broken 37] [13:35:38]ProducePacketName [13:35:38]name=ofd_packets/00111911 [13:35:38]OFD Sender: To server: 嚂鰌G, [13:35:38]CommunicateWithHost lk.salyk.kg:30040 [13:35:38]ConnectInit lk.salyk.kg [13:35:38]Connected sock=9 [13:35:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 85 35 07 01 CF 90 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 4F 00 00 00 F4 03 04 00 D2 6D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B5 01 00 35 04 06 00 4A 0C CB B3 6D 9C 77 A9 65 34 40 6D 7E 87 [13:35:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 81 E6 47 00 9E 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 30 38 37 35 30 38 33 10 04 04 00 27 B5 01 00 F4 03 04 00 D3 18 75 66 B6 04 01 00 00 A7 F9 F3 3E 37 36 B9 B8 [13:35:38]CommunicateWithHost err = 0 [13:35:38]CheckOFDResponse [13:35:38]1017 (14) - 77093643461234 [13:35:38]1041 (16) - 0000000000875083 [13:35:38]1040 (4) - 111911 [13:35:38]1012 (4) - 21.06.2024 06:08 [13:35:38]1206 (1) - 0 [13:35:38]OFD Sender: Remove packet 111911 [13:35:38]ProducePacketName [13:35:38]name=ofd_packets/00111911 [13:35:38]NVStorageDeleteData [13:35:39]OFD Sender: Processing packet 111912 [packets to send 60, broken 37] [13:35:39]ProducePacketName [13:35:39]name=ofd_packets/00111912 [13:35:39]OFD Sender: To server: 嚂鰌G, [13:35:39]CommunicateWithHost lk.salyk.kg:30040 [13:35:39]ConnectInit lk.salyk.kg [13:35:39]Connected sock=10 [13:35:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 02 82 07 01 9A A0 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 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 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 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 E2 6D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B5 01 00 35 04 06 00 BF C6 0D C8 36 B5 AD 11 9C 23 53 38 2D D3 [13:35:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AB 5C 47 00 17 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B5 01 00 F4 03 04 00 D4 18 75 66 B6 04 01 00 00 23 92 F8 E5 92 E0 A3 A8 [13:35:40]CommunicateWithHost err = 0 [13:35:40]CheckOFDResponse [13:35:40]1017 (14) - 77093643461234 [13:35:40]1041 (16) - 0000000000875083 [13:35:40]1040 (4) - 111912 [13:35:40]1012 (4) - 21.06.2024 06:08 [13:35:40]1206 (1) - 0 [13:35:40]OFD Sender: Remove packet 111912 [13:35:40]ProducePacketName [13:35:40]name=ofd_packets/00111912 [13:35:40]NVStorageDeleteData [13:35:40]OFD Sender: Processing packet 111913 [packets to send 59, broken 37] [13:35:40]ProducePacketName [13:35:40]name=ofd_packets/00111913 [13:35:40]OFD Sender: To server: 嚂鰌G, [13:35:40]CommunicateWithHost lk.salyk.kg:30040 [13:35:40]ConnectInit lk.salyk.kg [13:35:40]Connected sock=9 [13:35:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 91 88 07 01 B4 78 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 51 00 00 00 F4 03 04 00 40 6E 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B5 01 00 35 04 06 00 7E 09 FA CA 75 AF 05 B0 1E 5F 23 97 37 35 [13:35:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 18 54 47 00 F5 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 30 38 37 35 30 38 33 10 04 04 00 29 B5 01 00 F4 03 04 00 D5 18 75 66 B6 04 01 00 00 F9 5C 0A 60 D3 60 8C ED [13:35:41]CommunicateWithHost err = 0 [13:35:41]CheckOFDResponse [13:35:41]1017 (14) - 77093643461234 [13:35:41]1041 (16) - 0000000000875083 [13:35:41]1040 (4) - 111913 [13:35:41]1012 (4) - 21.06.2024 06:08 [13:35:41]1206 (1) - 0 [13:35:41]OFD Sender: Remove packet 111913 [13:35:41]ProducePacketName [13:35:41]name=ofd_packets/00111913 [13:35:41]NVStorageDeleteData [13:35:41]OFD Sender: Processing packet 111914 [packets to send 58, broken 37] [13:35:41]ProducePacketName [13:35:41]name=ofd_packets/00111914 [13:35:41]OFD Sender: To server: 嚂鰌G, [13:35:41]CommunicateWithHost lk.salyk.kg:30040 [13:35:41]ConnectInit lk.salyk.kg [13:35:41]Connected sock=9 [13:35:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 07 27 07 01 C1 15 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 52 00 00 00 F4 03 04 00 8A 6E 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B5 01 00 35 04 06 00 54 81 38 81 AD 92 1E A8 D3 16 5F 5C 99 05 [13:35:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 26 69 47 00 9F 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 30 38 37 35 30 38 33 10 04 04 00 2A B5 01 00 F4 03 04 00 D6 18 75 66 B6 04 01 00 00 EA 5F 07 19 1A 44 F5 58 [13:35:42]CommunicateWithHost err = 0 [13:35:42]CheckOFDResponse [13:35:42]1017 (14) - 77093643461234 [13:35:42]1041 (16) - 0000000000875083 [13:35:42]1040 (4) - 111914 [13:35:42]1012 (4) - 21.06.2024 06:08 [13:35:42]1206 (1) - 0 [13:35:42]OFD Sender: Remove packet 111914 [13:35:42]ProducePacketName [13:35:42]name=ofd_packets/00111914 [13:35:42]NVStorageDeleteData [13:35:42]OFD Sender: Processing packet 111915 [packets to send 57, broken 37] [13:35:42]ProducePacketName [13:35:42]name=ofd_packets/00111915 [13:35:42]OFD Sender: To server: 嚂鰌G, [13:35:42]CommunicateWithHost lk.salyk.kg:30040 [13:35:42]ConnectInit lk.salyk.kg [13:35:42]Connected sock=9 [13:35:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 85 A5 07 01 C7 21 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 CB 6E 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B5 01 00 35 04 06 00 17 CF 86 92 DA 89 7C EC 3C 80 26 98 8A 4E [13:35:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FA AB 47 00 F0 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 30 38 37 35 30 38 33 10 04 04 00 2B B5 01 00 F4 03 04 00 D7 18 75 66 B6 04 01 00 00 12 18 62 03 F5 0C 5A 5B [13:35:43]CommunicateWithHost err = 0 [13:35:43]CheckOFDResponse [13:35:43]1017 (14) - 77093643461234 [13:35:43]1041 (16) - 0000000000875083 [13:35:43]1040 (4) - 111915 [13:35:43]1012 (4) - 21.06.2024 06:08 [13:35:43]1206 (1) - 0 [13:35:43]OFD Sender: Remove packet 111915 [13:35:43]ProducePacketName [13:35:43]name=ofd_packets/00111915 [13:35:43]NVStorageDeleteData [13:35:43]OFD Sender: Processing packet 111916 [packets to send 56, broken 37] [13:35:43]ProducePacketName [13:35:43]name=ofd_packets/00111916 [13:35:43]OFD Sender: To server: 嚂鰌G, [13:35:43]CommunicateWithHost lk.salyk.kg:30040 [13:35:43]ConnectInit lk.salyk.kg [13:35:43]Connected sock=9 [13:35:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 07 D4 07 01 98 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 54 00 00 00 F4 03 04 00 9F 6F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B5 01 00 35 04 06 00 C5 10 1B 58 F5 33 F3 C1 45 28 FA EF 49 9A [13:35:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4E 15 47 00 BE 15 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 30 38 37 35 30 38 33 10 04 04 00 2C B5 01 00 F4 03 04 00 D8 18 75 66 B6 04 01 00 00 42 1C 15 3E 43 76 9A D0 [13:35:44]CommunicateWithHost err = 0 [13:35:44]CheckOFDResponse [13:35:44]1017 (14) - 77093643461234 [13:35:44]1041 (16) - 0000000000875083 [13:35:44]1040 (4) - 111916 [13:35:44]1012 (4) - 21.06.2024 06:08 [13:35:44]1206 (1) - 0 [13:35:44]OFD Sender: Remove packet 111916 [13:35:44]ProducePacketName [13:35:44]name=ofd_packets/00111916 [13:35:44]NVStorageDeleteData [13:35:44]OFD Sender: Processing packet 111917 [packets to send 55, broken 37] [13:35:44]ProducePacketName [13:35:44]name=ofd_packets/00111917 [13:35:44]OFD Sender: To server: 嚂鰌G, [13:35:44]CommunicateWithHost lk.salyk.kg:30040 [13:35:44]ConnectInit lk.salyk.kg [13:35:44]Connected sock=10 [13:35:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D9 DE 07 01 A8 88 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 55 00 00 00 F4 03 04 00 17 70 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B5 01 00 35 04 06 00 2F 42 7D D4 FF 19 02 AB D3 78 D4 87 A1 90 [13:35:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1C 0C 47 00 9A 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 30 38 37 35 30 38 33 10 04 04 00 2D B5 01 00 F4 03 04 00 D9 18 75 66 B6 04 01 00 00 5D D6 C0 7D C2 91 9C 60 [13:35:45]CommunicateWithHost err = 0 [13:35:45]CheckOFDResponse [13:35:45]1017 (14) - 77093643461234 [13:35:45]1041 (16) - 0000000000875083 [13:35:45]1040 (4) - 111917 [13:35:45]1012 (4) - 21.06.2024 06:08 [13:35:45]1206 (1) - 0 [13:35:45]OFD Sender: Remove packet 111917 [13:35:45]ProducePacketName [13:35:45]name=ofd_packets/00111917 [13:35:45]NVStorageDeleteData [13:35:45]OFD Sender: Processing packet 111918 [packets to send 54, broken 37] [13:35:45]ProducePacketName [13:35:45]name=ofd_packets/00111918 [13:35:45]OFD Sender: To server: 嚂鰌G, [13:35:45]CommunicateWithHost lk.salyk.kg:30040 [13:35:45]ConnectInit lk.salyk.kg [13:35:45]Connected sock=9 [13:35:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 56 B3 07 01 B9 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 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 DB 71 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B5 01 00 35 04 06 00 E7 6B E8 F6 22 FA 15 DF 02 B8 4B D1 C4 8E [13:35:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 92 59 47 00 28 8D 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 30 38 37 35 30 38 33 10 04 04 00 2E B5 01 00 F4 03 04 00 DA 18 75 66 B6 04 01 00 00 B8 FB B6 61 9A F0 B2 B8 [13:35:46]CommunicateWithHost err = 0 [13:35:46]CheckOFDResponse [13:35:46]1017 (14) - 77093643461234 [13:35:46]1041 (16) - 0000000000875083 [13:35:46]1040 (4) - 111918 [13:35:46]1012 (4) - 21.06.2024 06:08 [13:35:46]1206 (1) - 0 [13:35:46]OFD Sender: Remove packet 111918 [13:35:46]ProducePacketName [13:35:46]name=ofd_packets/00111918 [13:35:46]NVStorageDeleteData [13:35:46]OFD Sender: Processing packet 111919 [packets to send 53, broken 37] [13:35:46]ProducePacketName [13:35:46]name=ofd_packets/00111919 [13:35:46]OFD Sender: To server: 嚂鰌G, [13:35:46]CommunicateWithHost lk.salyk.kg:30040 [13:35:46]ConnectInit lk.salyk.kg [13:35:46]Connected sock=9 [13:35:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 32 07 01 DB 0F 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 E4 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 65 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 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 90 05 00 00 00 00 07 04 06 00 58 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 57 00 00 00 F4 03 04 00 0F 72 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B5 01 00 35 04 06 00 77 D0 6D 86 4B 80 11 4E F4 AC 1A A8 C0 AA [13:35:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BD 38 47 00 5A 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 30 38 37 35 30 38 33 10 04 04 00 2F B5 01 00 F4 03 04 00 DB 18 75 66 B6 04 01 00 00 C0 62 64 D1 15 8C 49 01 [13:35:47]CommunicateWithHost err = 0 [13:35:47]CheckOFDResponse [13:35:47]1017 (14) - 77093643461234 [13:35:47]1041 (16) - 0000000000875083 [13:35:47]1040 (4) - 111919 [13:35:47]1012 (4) - 21.06.2024 06:08 [13:35:47]1206 (1) - 0 [13:35:47]OFD Sender: Remove packet 111919 [13:35:47]ProducePacketName [13:35:47]name=ofd_packets/00111919 [13:35:47]NVStorageDeleteData [13:35:47]OFD Sender: Processing packet 111920 [packets to send 52, broken 37] [13:35:47]ProducePacketName [13:35:47]name=ofd_packets/00111920 [13:35:47]OFD Sender: To server: 嚂鰌G, [13:35:47]CommunicateWithHost lk.salyk.kg:30040 [13:35:47]ConnectInit lk.salyk.kg [13:35:47]Connected sock=9 [13:35:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E6 A5 04 01 59 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 45 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 FC 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 F3 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 58 00 00 00 F4 03 04 00 01 73 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B5 01 00 35 04 06 00 C5 0D FB 11 75 46 9B A9 BD FA 3A 92 52 B4 [13:35:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F5 C1 47 00 CD 19 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 30 38 37 35 30 38 33 10 04 04 00 30 B5 01 00 F4 03 04 00 DC 18 75 66 B6 04 01 00 00 B7 F1 73 54 D0 37 A3 B8 [13:35:48]CommunicateWithHost err = 0 [13:35:48]CheckOFDResponse [13:35:48]1017 (14) - 77093643461234 [13:35:48]1041 (16) - 0000000000875083 [13:35:48]1040 (4) - 111920 [13:35:48]1012 (4) - 21.06.2024 06:08 [13:35:48]1206 (1) - 0 [13:35:48]OFD Sender: Remove packet 111920 [13:35:48]ProducePacketName [13:35:48]name=ofd_packets/00111920 [13:35:48]NVStorageDeleteData [13:35:48]OFD Sender: Processing packet 111921 [packets to send 51, broken 37] [13:35:48]ProducePacketName [13:35:48]name=ofd_packets/00111921 [13:35:48]OFD Sender: To server: 嚂鰌G, [13:35:48]CommunicateWithHost lk.salyk.kg:30040 [13:35:48]ConnectInit lk.salyk.kg [13:35:48]Connected sock=9 [13:35:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B1 1F 07 01 73 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 59 00 00 00 F4 03 04 00 26 74 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B5 01 00 35 04 06 00 F7 A6 0D A4 52 28 4C 70 98 D9 47 03 B6 7B [13:35:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C0 43 47 00 BE 78 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 30 38 37 35 30 38 33 10 04 04 00 31 B5 01 00 F4 03 04 00 DD 18 75 66 B6 04 01 00 00 38 D3 1B 1E C5 D6 12 8B [13:35:49]CommunicateWithHost err = 0 [13:35:49]CheckOFDResponse [13:35:49]1017 (14) - 77093643461234 [13:35:49]1041 (16) - 0000000000875083 [13:35:49]1040 (4) - 111921 [13:35:49]1012 (4) - 21.06.2024 06:08 [13:35:49]1206 (1) - 0 [13:35:49]OFD Sender: Remove packet 111921 [13:35:49]ProducePacketName [13:35:49]name=ofd_packets/00111921 [13:35:49]NVStorageDeleteData [13:35:49]OFD Sender: Processing packet 111922 [packets to send 50, broken 37] [13:35:49]ProducePacketName [13:35:49]name=ofd_packets/00111922 [13:35:49]OFD Sender: To server: 嚂鰌G, [13:35:49]CommunicateWithHost lk.salyk.kg:30040 [13:35:49]ConnectInit lk.salyk.kg [13:35:50]Connected sock=9 [13:35:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9C E5 07 01 EC 60 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 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 B9 75 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B5 01 00 35 04 06 00 3C 40 F3 CD 98 3D F1 1C 47 91 13 47 E1 64 [13:35:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 10 0A 47 00 A5 72 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 30 38 37 35 30 38 33 10 04 04 00 32 B5 01 00 F4 03 04 00 DE 18 75 66 B6 04 01 00 00 E0 9A F8 DF 83 EC 64 FD [13:35:50]CommunicateWithHost err = 0 [13:35:50]CheckOFDResponse [13:35:50]1017 (14) - 77093643461234 [13:35:50]1041 (16) - 0000000000875083 [13:35:50]1040 (4) - 111922 [13:35:50]1012 (4) - 21.06.2024 06:08 [13:35:50]1206 (1) - 0 [13:35:50]OFD Sender: Remove packet 111922 [13:35:50]ProducePacketName [13:35:50]name=ofd_packets/00111922 [13:35:50]NVStorageDeleteData [13:35:50]OFD Sender: Processing packet 111923 [packets to send 49, broken 37] [13:35:50]ProducePacketName [13:35:50]name=ofd_packets/00111923 [13:35:50]OFD Sender: To server: 嚂鰌G, [13:35:50]CommunicateWithHost lk.salyk.kg:30040 [13:35:50]ConnectInit lk.salyk.kg [13:35:51]Connected sock=9 [13:35:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF C0 07 01 02 5D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 5B 00 00 00 F4 03 04 00 81 76 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B5 01 00 35 04 06 00 A2 F4 B7 38 32 58 62 62 09 B8 34 6B 6A BB [13:35:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2F 71 47 00 92 5D 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 30 38 37 35 30 38 33 10 04 04 00 33 B5 01 00 F4 03 04 00 DF 18 75 66 B6 04 01 00 00 BC 80 F0 A0 C4 63 F8 D9 [13:35:51]CommunicateWithHost err = 0 [13:35:51]CheckOFDResponse [13:35:51]1017 (14) - 77093643461234 [13:35:51]1041 (16) - 0000000000875083 [13:35:51]1040 (4) - 111923 [13:35:51]1012 (4) - 21.06.2024 06:08 [13:35:51]1206 (1) - 0 [13:35:51]OFD Sender: Remove packet 111923 [13:35:51]ProducePacketName [13:35:51]name=ofd_packets/00111923 [13:35:51]NVStorageDeleteData [13:35:51]OFD Sender: Processing packet 111924 [packets to send 48, broken 37] [13:35:51]ProducePacketName [13:35:51]name=ofd_packets/00111924 [13:35:51]OFD Sender: To server: 嚂鰌G, [13:35:51]CommunicateWithHost lk.salyk.kg:30040 [13:35:51]ConnectInit lk.salyk.kg [13:35:52]Connected sock=9 [13:35:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 25 36 07 01 AA 5B 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 F0 19 00 00 00 00 13 04 06 00 F3 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 8B 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 5C 00 00 00 F4 03 04 00 89 77 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B5 01 00 35 04 06 00 C0 4D D9 7B 5B 52 6A DF 1E 40 14 45 7D A0 [13:35:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C8 9C 47 00 DB 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B5 01 00 F4 03 04 00 E0 18 75 66 B6 04 01 00 00 FC AD 7D 56 FC 97 9F 9D [13:35:52]CommunicateWithHost err = 0 [13:35:52]CheckOFDResponse [13:35:52]1017 (14) - 77093643461234 [13:35:52]1041 (16) - 0000000000875083 [13:35:52]1040 (4) - 111924 [13:35:52]1012 (4) - 21.06.2024 06:08 [13:35:52]1206 (1) - 0 [13:35:52]OFD Sender: Remove packet 111924 [13:35:52]ProducePacketName [13:35:52]name=ofd_packets/00111924 [13:35:52]NVStorageDeleteData [13:35:52]OFD Sender: Processing packet 111925 [packets to send 47, broken 37] [13:35:52]ProducePacketName [13:35:52]name=ofd_packets/00111925 [13:35:52]OFD Sender: To server: 嚂鰌G, [13:35:53]CommunicateWithHost lk.salyk.kg:30040 [13:35:53]ConnectInit lk.salyk.kg [13:35:53]Connected sock=9 [13:35:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 81 31 07 01 D4 97 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 12 78 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B5 01 00 35 04 06 00 2A 5B 61 CA 3A 1D 2F 1E D3 9C 3B CE 21 1C [13:35:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 34 B4 47 00 73 72 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 30 38 37 35 30 38 33 10 04 04 00 35 B5 01 00 F4 03 04 00 E1 18 75 66 B6 04 01 00 00 69 EF 37 0C 6D FE 1B C1 [13:35:53]CommunicateWithHost err = 0 [13:35:53]CheckOFDResponse [13:35:53]1017 (14) - 77093643461234 [13:35:53]1041 (16) - 0000000000875083 [13:35:53]1040 (4) - 111925 [13:35:53]1012 (4) - 21.06.2024 06:08 [13:35:53]1206 (1) - 0 [13:35:53]OFD Sender: Remove packet 111925 [13:35:53]ProducePacketName [13:35:53]name=ofd_packets/00111925 [13:35:53]NVStorageDeleteData [13:35:54]OFD Sender: Processing packet 111926 [packets to send 46, broken 37] [13:35:54]ProducePacketName [13:35:54]name=ofd_packets/00111926 [13:35:54]OFD Sender: To server: 嚂鰌G, [13:35:54]CommunicateWithHost lk.salyk.kg:30040 [13:35:54]ConnectInit lk.salyk.kg [13:35:54]accept exits with 7 [13:35:54]New connection [13:35:54]New thread 3066731876 created [13:35:54]Thread 3066875236 joined [13:35:54]Waiting for new connection... [13:35:54] Sock 7.Parse request [13:35:54]Sock 7.Check first char [13:35:54]Sock 7.First char is OK [13:35:54]request: POST /json_proto HTTP/1.0 [13:35:54]Method: POST [13:35:54]URL: /json_proto [13:35:54]Method is POST - this is cgi request [13:35:54]url: /json_proto [13:35:54]query_string will be loaded in cgi processing [13:35:54]execute_cgi json_proto POST (null) [13:35:54]execute_cgi path=json_proto method=POST [13:35:54]POST find Content-Length [13:35:54]Host: 172.17.59.68:8080 [13:35:54]Content-Length: 682 [13:35:54]Content-Type: application/json [13:35:54] [13:35:54]POST finish read [13:35:54]Found Content-Length = 682 [13:35:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:54]execute_script... [13:35: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 : (1)320582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:54]POST & json_proto [13:35:54]process_json_proto [13:35:54]json parsed OK: [13:35:54]protocol is kg_v1.0 [13:35:54]action value=close_receipt [13:35:54]process_action close_receipt [13:35:54]cmd_close_receipt [13:35:54]MH_GetDate [13:35:54]Write to MH i2c: F0 00 00 65 00 54 [13:35:54]Connected sock=9 [13:35:54]Data to sent: 87 95 F6 70 47 2C 01 00 Write i2c OK [13:35:54]30 MH_I2C_Read... [13:35:54]30 Read from MH i2c: 30 F0 30 [13:35:54]30 MH_I2C_Read... [13:35:54]30 Read from MH i2c: 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F0 FE 09 93 00 07 [13:35:54]01 MH_I2C_Read... [13:35:54]2E C6 5A 03 01 Read from MH i2c: 00 F0 03 09 00 00 FB 65 00 00 1E 00 04 BA 01 81 00 75 01 66 23 BC 04 EC 4D 60 00 65 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 E0 1F [13:35:54]04 GetLastDocTimeStamp 1718976894 [13:35:54]02 current date 1718976954 [13:35:54]00 FM_GetShiftState [13:35:54]01 SAM_PROTO_GetShiftState [13:35:54]00 wFMCommunicate request_size=4 [13:35:54]MH_SAM_APDU [13:35:54]CAPDU: 80 13 01 00 [13:35:54]Write to MH i2c: E2 08 00 66 00 80 12 13 04 01 04 00 00 00 5E 00 00 00 00 00 00 E3 F4 [13:35:54]03 04 Write i2c OK [13:35:54]00 MH_I2C_Read... [13:35:54]B7 78 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 Read from MH i2c: 38 E2 33 [13:35:54]10 MH_I2C_Read... [13:35:54]04 04 00 36 B5 01 00 Read from MH i2c: 35 E2 04 0E 06 00 00 35 C2 98 C7 3C 62 90 [13:35:54]A0 MH_I2C_Read... [13:35:54]6B 87 27 22 E2 F4 [13:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:54]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 60 [13:35:54]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:35:54]wFMCommunicate OK [13:35:54]SAM_PROTO_GetShiftState done [13:35:54]FM_GetShiftState done [13:35:54]opened in 1718933695 [13:35:54]opened+sec_in_day 1719020095 [13:35:54]quantity*price = 140037 [13:35:54]sum+1 = 140039 [13:35:54]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.38 袠孝袨袚袨: 1400.00 袙薪械褋械薪芯: 1400.00 小袛袗效袗: 0.00 袧小袩 1% : 12.39 袧袛小 12% : 148.71 袧邪谢懈褔薪褘屑懈: 1400.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 103 21.06.2024 13:35 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111935 肖袩袛: 69772690739282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T133555&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111935&fm=69772690739282&tin=02508201610067®Number=0000000000092771&sum=140000 [13:35:56]StoreToDocumentArchive [13:35:56]shift 390 fd 111935 [13:35:56]save to /storage/0390/doc_00111935 [13:35:56]save last doc name /storage/0390/doc_00111935 to /storage/kkm_last_doc_name [13:35:56]save OK [13:35:56]Clear old archive folders... [13:35:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:56]tlvbuf is 003CBEF0 [13:35:56]SAM_PROTO_ClearQueue [13:35:56]wFMCommunicate request_size=4 [13:35:56]MH_SAM_APDU [13:35:56]CAPDU: 80 09 00 00 [13:35:56]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [13:35:56]OFD Sender: Processing packet 111928 [packets to send 44, broken 37] [13:35:56]ProducePacketName [13:35:56]name=ofd_packets/00111928 [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]OFD Sender: To server: 嚂鰌G, [13:35:56]CommunicateWithHost lk.salyk.kg:30040 [13:35:56]ConnectInit lk.salyk.kg [13:35:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:56]Read from MH i2c: E2 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 03 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [13:35:56]RAPDU: 90 00 [13:35:56]wFMCommunicate OK [13:35:56]SAM_PROTO_ClearQueue done [13:35:56]KKMCreateOFDPacket [13:35:56]OFDProtocolAddRootSTLVToBuf [13:35:56]FM_MakeSignedData [13:35:56]FM_MakeSignedData [13:35:56]SAM_PROTO_SignData [13:35:56]wFMCommunicate request_size=4 [13:35:56]MH_SAM_APDU [13:35:56]CAPDU: 80 0D 01 02 [13:35:56]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:57]Read from MH i2c: E2 [13:35:57]MH_I2C_Read... [13:35:57]Connected sock=9 [13:35:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 07 BD 07 01 26 45 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 Read from MH i2c: 70 E2 11 03 01 00 00 [13:35:57]00 00 MH_I2C_Read... [13:35:57]39 04 06 00 00 00 00 00 00 00 1F 04 02 Read from MH i2c: 00 E2 01 03 00 00 12 74 04 00 04 00 00 90 60 00 00 E8 00 [13:35:57]00 RAPDU: F4 90 03 00 04 [13:35:57]00 wFMCommunicate OK [13:35:57]42 wFMCommunicate request_size=255 [13:35:57]79 MH_SAM_APDU [13:35:57]75 CAPDU: 66 80 0E 0D 04 02 04 02 00 FA 86 03 01 00 00 FB 00 00 B9 1E 04 04 01 01 00 00 01 01 0D 23 04 04 10 4D 00 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 8A 11 04 04 0A 10 00 00 32 30 37 30 31 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B5 01 00 35 04 06 00 9D 9C 1A EF 4D F4 DC 7E 34 DB 96 36 35 80 [13:35:57]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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 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 BB 81 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B5 01 00 35 04 06 00 3F [13:35:57]Write to MH i2c: E2 02 01 75 00 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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 Received data: 03 87 01 95 00 F6 01 70 F3 47 03 2C 06 01 00 00 17 30 3A 30 00 30 00 30 00 30 00 30 07 30 04 30 06 30 00 30 E0 38 22 37 02 35 00 30 38 33 4F 00 00 00 C5 B3 47 00 EB 72 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 00 30 00 30 39 30 04 30 06 30 00 30 00 00 30 00 30 00 30 00 30 00 38 1F 37 04 35 02 30 38 33 10 04 04 00 38 B5 01 00 F4 03 04 00 00 01 E5 00 18 12 75 04 66 04 B6 00 04 01 00 00 28 FE 9B 1D 7E 79 62 12 [13:35:58]CommunicateWithHost err = 0 [13:35:58]CheckOFDResponse [13:35:58]67 1017 (14) - 77093643461234 [13:35:58]00 1041 (16) - 0000000000875083 [13:35:58]00 1040 (4) - 111928 [13:35:58]00 1012 (4) - 21.06.2024 06:08 [13:35:58]F4 1206 (1) - 0 [13:35:58]03 OFD Sender: Remove packet 111928 [13:35:58]ProducePacketName [13:35:58]name=ofd_packets/00111928 [13:35:58]NVStorageDeleteData [13:35:58]04 00 BB 81 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B5 01 00 35 04 06 00 3F 00 00 4C [13:35:58]Write i2c OK [13:35:58]MH_I2C_Read... [13:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:58]Read from MH i2c: E2 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 03 00 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [13:35:58]RAPDU: 90 00 [13:35:58]wFMCommunicate OK [13:35:58]wFMCommunicate request_size=10 [13:35:58]MH_SAM_APDU [13:35:58]CAPDU: 80 0D 02 02 05 75 38 72 50 52 [13:35:58]Write to MH i2c: E2 0D 00 76 00 80 0D 02 02 05 00 75 38 72 50 52 00 00 BB [13:35:58]Write i2c OK [13:35:58]MH_I2C_Read... [13:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:58]Read from MH i2c: E2 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 03 00 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [13:35:58]RAPDU: 90 00 [13:35:58]wFMCommunicate OK [13:35:58]wFMCommunicate request_size=4 [13:35:58]MH_SAM_APDU [13:35:58]CAPDU: 80 0D 03 02 [13:35:58]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [13:35:58]Write i2c OK [13:35:58]MH_I2C_Read... [13:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:58]Read from MH i2c: E2 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 0B 00 [13:35:58]MH_I2C_Read... [13:35:58]OFD Sender: Processing packet 111929 [packets to send 43, broken 37] [13:35:58]ProducePacketName [13:35:58]name=ofd_packets/00111929 [13:35:58]Read from MH i2c: E2 0B 00 77 00 00 90 58 72 EA 75 47 18 9E 90 00 A9 [13:35:58]RAPDU: 90 58 72 EA 75 47 18 9E 90 00 [13:35:58]wFMCommunicate OK [13:35:58]SAM_PROTO_SignData done [13:35:58]FM_MakeSignedData done [13:35:58]CreateOFDProtocolMessage [13:35:58]wFMCommunicate request_size=4 [13:35:58]MH_SAM_APDU [13:35:58]CAPDU: 80 11 00 00 [13:35:58]Write to MH i2c: E2 08 OFD Sender: To server: 嚂鰌G, [13:35:58]00 CommunicateWithHost lk.salyk.kg:30040 [13:35:58]78 ConnectInit lk.salyk.kg [13:35:58]00 80 11 00 00 00 00 00 00 F2 [13:35:58]Write i2c OK [13:35:58]MH_I2C_Read... [13:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:58]Read from MH i2c: E2 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 17 00 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 Connected sock=10 [13:35:58]38 Data to sent: 33 87 90 95 00 F6 44 70 [13:35:58]47 RAPDU: 2C 11 04 10 00 30 30 30 30 30 30 30 30 30 30 01 38 00 37 30 35 30 30 30 38 30 33 30 90 00 [13:35:58]wFMCommunicate OK [13:35:58]CreateOFDProtocolMessage done [13:35:58]OFDSenderStorePacket 111935 [13:35:58]StoreOFDPacket docnum=111935 [13:35:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8A ED 07 01 D0 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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 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 BB 81 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B5 01 00 35 04 06 00 3F 75 38 72 50 52 90 58 72 EA 75 47 18 9E [13:35:58]CheckFolder [13:35:58]dirname=/storage/ofd_packets [13:35:58]CheckFolder done [13:35:58]ProducePacketName [13:35:58]name=ofd_packets/00111935 [13:35:58]NVStorageSaveData ofd_packets/00111935 [13:35:58]File name is /storage/ofd_packets/00111935 [13:35:58]Write 301 bytes [13:35:58]NVStorageSaveData done [13:35:58]OFDSenderStorePacket done [13:35:58]KKMCreateOFDPacket done [13:35:58]NVStorageSaveData kkm_last_timestamp [13:35:58]File name is /storage/kkm_last_timestamp [13:35:58]Write 4 bytes [13:35:58]NVStorageSaveData done [13:35:58]ExternCall_PrintAddStr [13:35:58]wPrintStart [13:35:58]Write to MH i2c: 01 00 00 79 00 79 [13:35:58]30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 02 5A 04 01 7D 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 Write i2c OK [13:35:59]03 MH_I2C_Read... [13:35:59]26 00 EF 03 0F 00 F6 Read from MH i2c: 03 01 01 [13:35:59]00 MH_I2C_Read... [13:35:59]01 F7 03 06 00 75 Read from MH i2c: 03 01 00 07 00 00 00 [13:35:59]00 MH_I2C_Read... [13:35:59]EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 Read from MH i2c: 00 01 00 07 00 00 00 79 07 00 04 00 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 00 00 00 00 1F FF 04 0F 02 8E 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 [13:35:59]00 RasterBufferAndPrint [13:35:59]F1 line 小褔械褌 N : (1)320582 [13:35:59]79 line 袠袧袧: 02508201610067 [13:35:59]75 line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [13:35:59]66 line 袩袪袨袛袗袞袗 [13:35:59]0E line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [13:35:59]04 line 孝芯胁邪褉: 2710124130 [13:35:59]04 line 袗懈-92-袣-5 [13:35:59]00 line 21.090 * 66.40 [13:35:59]86 line = 1400.38 [13:35:59]01 line 袧袛小 12% 袧小袩 1% [13:35:59]00 line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [13:35:59]00 line 袨袣袪校袚袥袝袧袠袝: -0.38 [13:35:59]B9 line 袠孝袨袚袨: 1400.00 [13:35:59]04 line 袙薪械褋械薪芯: 1400.00 [13:35:59]01 line 小袛袗效袗: 0.00 [13:35:59]00 line 袧小袩 1% : 12.39 [13:35:59]01 line 袧袛小 12% : 148.71 [13:35:59]0D line 袧邪谢懈褔薪褘屑懈: 1400.00 [13:35:59]04 line 袘械蟹薪邪谢.: 0.00 [13:35:59]10 line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [13:35:59]00 line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [13:35:59]30 line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [13:35:59]30 line 效械泻 103 21.06.2024 13:35 [13:35:59]30 line 小屑械薪邪: 390 肖肖袛: 1.0 [13:35:59]30 line 袟袧袦: 0300000198 [13:35:59]30 line 袪袧袦: 0000000000092771 [13:35:59]30 line 袙械褉褋懈褟 袣袣袦: 001 [13:35:59]30 line 肖袦: 0000000000875083 [13:35:59]30 line 肖袛: 111935 [13:35:59]30 line 肖袩袛: 69772690739282 [13:35:59]30 line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T133555&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111935&fm=69772690739282&tin=02508201610067®Number=0000000000092771&sum=140000 [13:35:59]30 39 32 37 37 31 11 written 0, free lines is 4095 [13:35:59]04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B5 01 00 35 04 06 00 DD FA 1D EC CA 82 2F F2 81 C5 D5 06 70 8F [13:35:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1C 78 47 00 0A 8D 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 30 38 37 35 30 38 33 10 04 04 00 39 B5 01 00 F4 03 04 00 E7 18 75 66 B6 04 01 00 00 75 EA 9F 87 17 24 A0 17 [13:35:59]CommunicateWithHost err = 0 [13:35:59]CheckOFDResponse [13:35:59]1017 (14) - 77093643461234 [13:35:59]1041 (16) - 0000000000875083 [13:35:59]1040 (4) - 111929 [13:35:59]1012 (4) - 21.06.2024 06:08 [13:35:59]1206 (1) - 0 [13:35:59]OFD Sender: Remove packet 111929 [13:35:59]ProducePacketName [13:35:59]name=ofd_packets/00111929 [13:35:59]NVStorageDeleteData [13:35:59]Write to MH i2c: 01 00 00 A4 00 A4 [13:35:59]Write i2c OK [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: 01 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: 01 07 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 EA 0C A1 [13:35:59]RasterBufferAndPrint [13:35:59]line [13:35:59]line [13:35:59]line [13:35:59]line [13:35:59]line [13:35:59]written 0, free lines is 3356 [13:35:59]MH_Cut [13:35:59]Write to MH i2c: D1 01 00 AB 00 01 7D [13:35:59]Write i2c OK [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: D1 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: D1 01 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: D1 01 00 AB 00 00 7C [13:35:59]Write to MH i2c: 01 00 00 AC 00 AC [13:35:59]Write i2c OK [13:35:59]MH_I2C_Read... [13:36:00]OFD Sender: Processing packet 111930 [packets to send 43, broken 37] [13:36:00]ProducePacketName [13:36:00]name=ofd_packets/00111930 [13:36:00]OFD Sender: To server: 嚂鰌G, [13:36:00]CommunicateWithHost lk.salyk.kg:30040 [13:36:00]ConnectInit lk.salyk.kg [13:36:00]Connected sock=9 [13:36:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AF CB 07 01 37 17 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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 *** Cut start [13:36:00]EF *** Partial cut [13:36:00]03 *** CUTSNS_PIN = 1 [13:36:00]0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE *** CUTSNS_PIN = 0 [13:36:00]03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 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 45 7A 75 66 0E 04 04 00 86 01 00 00 B9 *** Brake cut motor [13:36:00]04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B5 01 00 35 04 06 00 85 80 22 CA BB 8F 85 34 27 B8 69 18 1E AA [13:36:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 *** Stop cut motor [13:36:00]30 *** Cut end [13:36:00]38 37 35 30 38 33 4F 00 00 00 4C 00 47 00 62 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B5 01 00 F4 03 04 00 E9 18 75 66 B6 04 01 00 00 8F 8F 06 4A 69 D0 17 FE [13:36:01]CommunicateWithHost err = 0 [13:36:01]Read from MH i2c: CheckOFDResponse [13:36:01]01 1017 (14) - 77093643461234 [13:36:01] [13:36:01]1041 (16) - 0000000000875083 [13:36:01]MH_I2C_Read... [13:36:01]1040 (4) - 111930 [13:36:01]Read from MH i2c: 1012 (4) - 21.06.2024 06:08 [13:36:01]01 1206 (1) - 0 [13:36:01]07 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 OFD Sender: Remove packet 111930 [13:36:01]00 ProducePacketName [13:36:01]FF name=ofd_packets/00111930 [13:36:01]0F NVStorageDeleteData [13:36:01]C1 [13:36:01]process_action close_receipt done [13:36:01]requested_data is exist [13:36:01]produce_requested_data [13:36:01]requested_item fm.sn is exist - process it [13:36:01]wFMCommunicate request_size=4 [13:36:01]MH_SAM_APDU [13:36:01]CAPDU: 80 11 00 00 [13:36:01]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:01]Read from MH i2c: E2 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 17 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 79 [13:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:36:01]wFMCommunicate OK [13:36:01]requested_item fd.num is exist - process it [13:36:01]SAM_PROTO_GetFieldsCounters [13:36:01]wFMCommunicate request_size=4 [13:36:01]MH_SAM_APDU [13:36:01]CAPDU: 80 13 00 00 [13:36:01]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:01]Read from MH i2c: E2 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 62 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 62 00 AE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3F B5 01 00 0E 04 04 00 86 01 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 FC [13:36:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3F B5 01 00 0E 04 04 00 86 01 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 [13:36:01]wFMCommunicate OK [13:36:01]SAM_PROTO_GetFieldsCounters done [13:36:01]requested_item shift.num is exist - process it [13:36:01]requested_item shift.opened is exist - process it [13:36:01]req_shift_opened [13:36:01]FM_GetShiftState [13:36:01]SAM_PROTO_GetShiftState [13:36:01]wFMCommunicate request_size=4 [13:36:01]MH_SAM_APDU [13:36:01]CAPDU: 80 13 01 00 [13:36:01]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:01]Read from MH i2c: E2 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 0E 00 [13:36:01]MH_I2C_Read... [13:36:01]OFD Sender: Processing packet 111931 [packets to send 42, broken 37] [13:36:01]ProducePacketName [13:36:01]name=ofd_packets/00111931 [13:36:01]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A9 [13:36:01]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:36:01]wFMCommunicate OK [13:36:01]SAM_PROTO_GetShiftState done [13:36:01]FM_GetShiftState done [13:36:01]req_shift_opened done [13:36:01]requested_item shift.open_date is exist - process it [13:36:01]req_shift_open_date [13:36:01]req_shift_open_date done [13:36:01]produce_requested_data done [13:36:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111935,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:36:01]process_action_free close_receipt [13:36:01]json_value_free [13:36:01]json_value_free done [13:36:01]process_json_proto returns [13:36:01]Send response to host [13:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111935,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:36:01]free response buf [13:36:01]execute_script done [13:36:01]execute_script returns [13:36:01]free content buf [13:36:01]Sock 7.Close socket [13:36:01]Sock 7.Thread stoped [13:36:01]OFD Sender: To server: 嚂鰌G, [13:36:01]CommunicateWithHost lk.salyk.kg:30040 [13:36:01]ConnectInit lk.salyk.kg [13:36:01]Connected sock=7 [13:36:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7C 30 07 01 03 06 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B6 7F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B5 01 00 35 04 06 00 E1 53 4F D8 C6 4A 3B 94 A4 E6 1B 0E A9 95 [13:36:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B4 20 47 00 57 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 30 38 37 35 30 38 33 10 04 04 00 3B B5 01 00 F4 03 04 00 EA 18 75 66 B6 04 01 00 00 18 CF 19 EF D8 47 25 3B [13:36:02]CommunicateWithHost err = 0 [13:36:02]CheckOFDResponse [13:36:02]1017 (14) - 77093643461234 [13:36:02]1041 (16) - 0000000000875083 [13:36:02]1040 (4) - 111931 [13:36:02]1012 (4) - 21.06.2024 06:08 [13:36:02]1206 (1) - 0 [13:36:02]OFD Sender: Remove packet 111931 [13:36:02]ProducePacketName [13:36:02]name=ofd_packets/00111931 [13:36:02]NVStorageDeleteData [13:36:02]OFD Sender: Processing packet 111932 [packets to send 41, broken 37] [13:36:02]ProducePacketName [13:36:02]name=ofd_packets/00111932 [13:36:02]OFD Sender: To server: 嚂鰌G, [13:36:02]CommunicateWithHost lk.salyk.kg:30040 [13:36:02]ConnectInit lk.salyk.kg [13:36:02]Connected sock=7 [13:36:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 3C DF 04 01 BD 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 02 D5 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 CE 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 64 00 00 00 F4 03 04 00 2B 80 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B5 01 00 35 04 06 00 98 12 90 9A 01 0B D7 CF D9 8E B9 4F 7D 65 [13:36:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F0 15 47 00 BC E4 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 30 38 37 35 30 38 33 10 04 04 00 3C B5 01 00 F4 03 04 00 EB 18 75 66 B6 04 01 00 00 88 A8 23 66 03 2D E9 93 [13:36:03]CommunicateWithHost err = 0 [13:36:03]CheckOFDResponse [13:36:03]1017 (14) - 77093643461234 [13:36:03]1041 (16) - 0000000000875083 [13:36:03]1040 (4) - 111932 [13:36:03]1012 (4) - 21.06.2024 06:08 [13:36:03]1206 (1) - 0 [13:36:03]OFD Sender: Remove packet 111932 [13:36:03]ProducePacketName [13:36:03]name=ofd_packets/00111932 [13:36:03]NVStorageDeleteData [13:36:03]OFD Sender: Processing packet 111933 [packets to send 40, broken 37] [13:36:03]ProducePacketName [13:36:03]name=ofd_packets/00111933 [13:36:03]OFD Sender: To server: 嚂鰌G, [13:36:03]CommunicateWithHost lk.salyk.kg:30040 [13:36:03]ConnectInit lk.salyk.kg [13:36:04]Connected sock=7 [13:36:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 22 86 07 01 4B CA 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 E6 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 5E EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 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 33 80 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B5 01 00 35 04 06 00 F3 58 85 3F CA C0 DC 13 81 7D C3 08 9B 83 [13:36:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 74 91 47 00 56 07 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 30 38 37 35 30 38 33 10 04 04 00 3D B5 01 00 F4 03 04 00 EC 18 75 66 B6 04 01 00 00 1D 17 08 54 2E C0 73 12 [13:36:04]CommunicateWithHost err = 0 [13:36:04]CheckOFDResponse [13:36:04]1017 (14) - 77093643461234 [13:36:04]1041 (16) - 0000000000875083 [13:36:04]1040 (4) - 111933 [13:36:04]1012 (4) - 21.06.2024 06:08 [13:36:04]1206 (1) - 0 [13:36:04]OFD Sender: Remove packet 111933 [13:36:04]ProducePacketName [13:36:04]name=ofd_packets/00111933 [13:36:04]NVStorageDeleteData [13:36:05]OFD Sender: Processing packet 111934 [packets to send 39, broken 37] [13:36:05]ProducePacketName [13:36:05]name=ofd_packets/00111934 [13:36:05]OFD Sender: To server: 嚂鰌G, [13:36:05]CommunicateWithHost lk.salyk.kg:30040 [13:36:05]ConnectInit lk.salyk.kg [13:36:05]Connected sock=7 [13:36:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D4 15 07 01 31 24 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 30 75 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 04 62 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 62 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 5B 00 00 00 00 07 04 06 00 04 62 03 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 7E 81 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B5 01 00 35 04 06 00 EA 77 35 A4 6B 9B D2 78 56 81 97 6C 1E B7 [13:36:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FD CF 47 00 6F 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 30 38 37 35 30 38 33 10 04 04 00 3E B5 01 00 F4 03 04 00 ED 18 75 66 B6 04 01 00 00 17 69 C7 65 7C 05 B7 81 [13:36:05]CommunicateWithHost err = 0 [13:36:05]CheckOFDResponse [13:36:05]1017 (14) - 77093643461234 [13:36:05]1041 (16) - 0000000000875083 [13:36:05]1040 (4) - 111934 [13:36:05]1012 (4) - 21.06.2024 06:08 [13:36:05]1206 (1) - 0 [13:36:05]OFD Sender: Remove packet 111934 [13:36:05]ProducePacketName [13:36:05]name=ofd_packets/00111934 [13:36:05]NVStorageDeleteData [13:36:06]OFD Sender: Processing packet 111935 [packets to send 38, broken 37] [13:36:06]ProducePacketName [13:36:06]name=ofd_packets/00111935 [13:36:06]OFD Sender: To server: 嚂鰌G, [13:36:06]CommunicateWithHost lk.salyk.kg:30040 [13:36:06]ConnectInit lk.salyk.kg [13:36:06]Connected sock=9 [13:36:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8A ED 07 01 D0 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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 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 BB 81 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B5 01 00 35 04 06 00 3F 75 38 72 50 52 90 58 72 EA 75 47 18 9E [13:36:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C6 D0 47 00 63 E9 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 30 38 37 35 30 38 33 10 04 04 00 3F B5 01 00 F4 03 04 00 EE 18 75 66 B6 04 01 00 00 6C 43 65 76 3F 80 B6 F8 [13:36:06]CommunicateWithHost err = 0 [13:36:06]CheckOFDResponse [13:36:06]1017 (14) - 77093643461234 [13:36:06]1041 (16) - 0000000000875083 [13:36:06]1040 (4) - 111935 [13:36:06]1012 (4) - 21.06.2024 06:08 [13:36:06]1206 (1) - 0 [13:36:06]OFD Sender: Remove packet 111935 [13:36:06]ProducePacketName [13:36:06]name=ofd_packets/00111935 [13:36:06]NVStorageDeleteData [13:36:07]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:17]accept exits with 11 [13:37:17]New connection [13:37:17]New thread 3066875236 created [13:37:17]Thread 3066731876 joined [13:37:17]Waiting for new connection... [13:37:17] Sock 11.Parse request [13:37:17]Sock 11.Check first char [13:37:17]Sock 11.First char is OK [13:37:17]request: POST /json_proto HTTP/1.0 [13:37:17]Method: POST [13:37:17]URL: /json_proto [13:37:17]Method is POST - this is cgi request [13:37:17]url: /json_proto [13:37:17]query_string will be loaded in cgi processing [13:37:17]execute_cgi json_proto POST (null) [13:37:17]execute_cgi path=json_proto method=POST [13:37:17]POST find Content-Length [13:37:17]Host: 172.17.59.68:8080 [13:37:17]Content-Length: 677 [13:37:17]Content-Type: application/json [13:37:17] [13:37:17]POST finish read [13:37:17]Found Content-Length = 677 [13:37:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:37:17]execute_script... [13:37: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)320583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:37:17]POST & json_proto [13:37:17]process_json_proto [13:37:17]json parsed OK: [13:37:17]protocol is kg_v1.0 [13:37:17]action value=close_receipt [13:37:17]process_action close_receipt [13:37:17]cmd_close_receipt [13:37:17]MH_GetDate [13:37:17]Write to MH i2c: F0 00 00 B0 00 9F [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: F0 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: F0 09 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: F0 09 00 B0 00 00 0D 82 75 66 BC EC 60 65 7F [13:37:17]GetLastDocTimeStamp 1718976955 [13:37:17]current date 1718977037 [13:37:17]FM_GetShiftState [13:37:17]SAM_PROTO_GetShiftState [13:37:17]wFMCommunicate request_size=4 [13:37:17]MH_SAM_APDU [13:37:17]CAPDU: 80 13 01 00 [13:37:17]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:17]Read from MH i2c: E2 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 0E 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 AB [13:37:17]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:37:17]wFMCommunicate OK [13:37:17]SAM_PROTO_GetShiftState done [13:37:17]FM_GetShiftState done [13:37:17]opened in 1718933695 [13:37:17]opened+sec_in_day 1719020095 [13:37:17]quantity*price = 40039 [13:37:17]sum+1 = 40040 [13:37:17]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.39 袠孝袨袚袨: 400.00 袙薪械褋械薪芯: 400.00 小袛袗效袗: 0.00 袧小袩 1% : 3.54 袧袛小 12% : 42.52 袧邪谢懈褔薪褘屑懈: 400.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 104 21.06.2024 13:37 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111936 肖袩袛: 197980514986383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T133717&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111936&fm=197980514986383&tin=02508201610067®Number=0000000000092771&sum=40000 [13:37:18]StoreToDocumentArchive [13:37:18]shift 390 fd 111936 [13:37:18]save to /storage/0390/doc_00111936 [13:37:18]save last doc name /storage/0390/doc_00111936 to /storage/kkm_last_doc_name [13:37:18]save OK [13:37:18]Clear old archive folders... [13:37:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:18]tlvbuf is 00444370 [13:37:18]SAM_PROTO_ClearQueue [13:37:18]wFMCommunicate request_size=4 [13:37:18]MH_SAM_APDU [13:37:18]CAPDU: 80 09 00 00 [13:37:18]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [13:37:18]Write i2c OK [13:37:18]MH_I2C_Read... [13:37:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:18]Read from MH i2c: E2 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 03 00 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [13:37:18]RAPDU: 90 00 [13:37:18]wFMCommunicate OK [13:37:18]SAM_PROTO_ClearQueue done [13:37:18]KKMCreateOFDPacket [13:37:18]OFDProtocolAddRootSTLVToBuf [13:37:18]FM_MakeSignedData [13:37:18]FM_MakeSignedData [13:37:18]SAM_PROTO_SignData [13:37:18]wFMCommunicate request_size=4 [13:37:18]MH_SAM_APDU [13:37:18]CAPDU: 80 0D 01 02 [13:37:18]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [13:37:18]Write i2c OK [13:37:18]MH_I2C_Read... [13:37:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:18]Read from MH i2c: E2 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 03 00 [13:37:18]MH_I2C_Read... [13:37:18]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [13:37:18]RAPDU: 90 00 [13:37:18]wFMCommunicate OK [13:37:18]wFMCommunicate request_size=255 [13:37:18]MH_SAM_APDU [13:37: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 68 00 00 00 F4 03 04 00 0D 82 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B5 01 00 35 04 06 00 B4 [13:37:18]Write to MH i2c: E2 02 01 C0 00 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 68 00 00 00 F4 03 04 00 0D 82 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B5 01 00 35 04 06 00 B4 00 00 BD [13:37:18]Write i2c OK [13:37:18]MH_I2C_Read... [13:37:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:19]Read from MH i2c: E2 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 03 00 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [13:37:19]RAPDU: 90 00 [13:37:19]wFMCommunicate OK [13:37:19]wFMCommunicate request_size=10 [13:37:19]MH_SAM_APDU [13:37:19]CAPDU: 80 0D 02 02 05 0F EE 44 A9 8F [13:37:19]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 0F EE 44 A9 8F 00 00 BE [13:37:19]Write i2c OK [13:37:19]MH_I2C_Read... [13:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:19]Read from MH i2c: E2 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 03 00 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [13:37:19]RAPDU: 90 00 [13:37:19]wFMCommunicate OK [13:37:19]wFMCommunicate request_size=4 [13:37:19]MH_SAM_APDU [13:37:19]CAPDU: 80 0D 03 02 [13:37:19]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [13:37:19]Write i2c OK [13:37:19]MH_I2C_Read... [13:37:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:19]Read from MH i2c: E2 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 0B 00 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 0B 00 C2 00 00 9B 58 08 40 39 C0 7B 82 90 00 6F [13:37:19]RAPDU: 9B 58 08 40 39 C0 7B 82 90 00 [13:37:19]wFMCommunicate OK [13:37:19]SAM_PROTO_SignData done [13:37:19]FM_MakeSignedData done [13:37:19]CreateOFDProtocolMessage [13:37:19]wFMCommunicate request_size=4 [13:37:19]MH_SAM_APDU [13:37:19]CAPDU: 80 11 00 00 [13:37:19]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [13:37:19]Write i2c OK [13:37:19]MH_I2C_Read... [13:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:19]Read from MH i2c: E2 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 17 00 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8F [13:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:37:19]wFMCommunicate OK [13:37:19]CreateOFDProtocolMessage done [13:37:19]OFDSenderStorePacket 111936 [13:37:19]StoreOFDPacket docnum=111936 [13:37:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0E 9F 07 01 EE C8 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 68 00 00 00 F4 03 04 00 0D 82 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B5 01 00 35 04 06 00 B4 0F EE 44 A9 8F 9B 58 08 40 39 C0 7B 82 [13:37:19]CheckFolder [13:37:19]dirname=/storage/ofd_packets [13:37:19]CheckFolder done [13:37:19]ProducePacketName [13:37:19]name=ofd_packets/00111936 [13:37:19]NVStorageSaveData ofd_packets/00111936 [13:37:19]File name is /storage/ofd_packets/00111936 [13:37:19]Write 301 bytes [13:37:19]NVStorageSaveData done [13:37:19]OFDSenderStorePacket done [13:37:19]KKMCreateOFDPacket done [13:37:19]NVStorageSaveData kkm_last_timestamp [13:37:19]File name is /storage/kkm_last_timestamp [13:37:19]Write 4 bytes [13:37:19]NVStorageSaveData done [13:37:19]ExternCall_PrintAddStr [13:37:19]wPrintStart [13:37:19]Write to MH i2c: 01 00 00 C4 00 C4 [13:37:19]Write i2c OK [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: 01 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: 01 07 00 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [13:37:19]RasterBufferAndPrint [13:37:19]line 小褔械褌 N : (1)320583 [13:37:19]line 袠袧袧: 02508201610067 [13:37:19]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [13:37:19]line 袩袪袨袛袗袞袗 [13:37:19]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [13:37:19]line 孝芯胁邪褉: 2710124130 [13:37:19]line 袗懈-92-袣-5 [13:37:19]line 6.030 * 66.40 [13:37:19]line = 400.39 [13:37:19]line 袧袛小 12% 袧小袩 1% [13:37:19]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [13:37:19]line 袨袣袪校袚袥袝袧袠袝: -0.39 [13:37:19]line 袠孝袨袚袨: 400.00 [13:37:19]line 袙薪械褋械薪芯: 400.00 [13:37:19]line 小袛袗效袗: 0.00 [13:37:19]line 袧小袩 1% : 3.54 [13:37:19]line 袧袛小 12% : 42.52 [13:37:19]line 袧邪谢懈褔薪褘屑懈: 400.00 [13:37:19]line 袘械蟹薪邪谢.: 0.00 [13:37:19]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [13:37:19]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [13:37:19]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [13:37:19]line 效械泻 104 21.06.2024 13:37 [13:37:19]line 小屑械薪邪: 390 肖肖袛: 1.0 [13:37:19]line 袟袧袦: 0300000198 [13:37:19]line 袪袧袦: 0000000000092771 [13:37:19]line 袙械褉褋懈褟 袣袣袦: 001 [13:37:19]line 肖袦: 0000000000875083 [13:37:19]line 肖袛: 111936 [13:37:19]line 肖袩袛: 197980514986383 [13:37:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T133717&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111936&fm=197980514986383&tin=02508201610067®Number=0000000000092771&sum=40000 [13:37:19]OFD Sender: Processing packet 111936 [packets to send 38, broken 37] [13:37:19]ProducePacketName [13:37:19]name=ofd_packets/00111936 [13:37:19]OFD Sender: To server: 嚂鰌G, [13:37:19]CommunicateWithHost lk.salyk.kg:30040 [13:37:19]ConnectInit lk.salyk.kg [13:37:19]written 0, free lines is 4095 [13:37:19]Connected sock=9 [13:37:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0E 9F 07 01 EE C8 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 68 00 00 00 F4 03 04 00 0D 82 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B5 01 00 35 04 06 00 B4 0F EE 44 A9 8F 9B 58 08 40 39 C0 7B 82 [13:37:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 10 B4 47 00 30 EF 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 30 38 37 35 30 38 33 10 04 04 00 40 B5 01 00 F4 03 04 00 38 19 75 66 B6 04 01 00 00 0B 3D 2A 1C 7D 07 93 52 [13:37:19]CommunicateWithHost err = 0 [13:37:19]CheckOFDResponse [13:37:19]1017 (14) - 77093643461234 [13:37:19]1041 (16) - 0000000000875083 [13:37:19]1040 (4) - 111936 [13:37:19]1012 (4) - 21.06.2024 06:10 [13:37:19]1206 (1) - 0 [13:37:19]OFD Sender: Remove packet 111936 [13:37:19]ProducePacketName [13:37:19]name=ofd_packets/00111936 [13:37:19]NVStorageDeleteData [13:37:19]Write to MH i2c: 01 00 00 EF 00 EF [13:37:19]Write i2c OK [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: 01 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: 01 07 00 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 D9 0C DB [13:37:19]RasterBufferAndPrint [13:37:19]line [13:37:19]line [13:37:19]line [13:37:19]line [13:37:19]line [13:37:19]written 0, free lines is 3296 [13:37:19]MH_Cut [13:37:19]Write to MH i2c: D1 01 00 F6 00 01 C8 [13:37:19]Write i2c OK [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: D1 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: D1 01 00 [13:37:19]MH_I2C_Read... [13:37:19]Read from MH i2c: D1 01 00 F6 00 00 C7 [13:37:19]Write to MH i2c: 01 00 00 F7 00 F7 [13:37:19]Write i2c OK [13:37:19]MH_I2C_Read... [13:37:20]OFD Sender: No OFD packet to send [13:37:20]*** Cut start [13:37:20]*** Partial cut [13:37:20]*** CUTSNS_PIN = 1 [13:37:20]*** CUTSNS_PIN = 0 [13:37:20]*** Brake cut motor [13:37:21]Read from MH i2c: 01 [13:37:21]MH_I2C_Read... [13:37:21]*** Stop cut motor [13:37:21]*** Cut end [13:37:21]Read from MH i2c: 01 07 00 [13:37:21]MH_I2C_Read... [13:37:21]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [13:37:21]process_action close_receipt done [13:37:21]requested_data is exist [13:37:21]produce_requested_data [13:37:21]requested_item fm.sn is exist - process it [13:37:21]wFMCommunicate request_size=4 [13:37:21]MH_SAM_APDU [13:37:21]CAPDU: 80 11 00 00 [13:37:21]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [13:37:21]Write i2c OK [13:37:21]MH_I2C_Read... [13:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:21]Read from MH i2c: E2 [13:37:21]MH_I2C_Read... [13:37:21]Read from MH i2c: E2 17 00 [13:37:21]MH_I2C_Read... [13:37:21]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C4 [13:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:37:21]wFMCommunicate OK [13:37:21]requested_item fd.num is exist - process it [13:37:21]SAM_PROTO_GetFieldsCounters [13:37:21]wFMCommunicate request_size=4 [13:37:21]MH_SAM_APDU [13:37:21]CAPDU: 80 13 00 00 [13:37:21]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [13:37:21]Write i2c OK [13:37:21]MH_I2C_Read... [13:37:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:21]Read from MH i2c: E2 [13:37:21]MH_I2C_Read... [13:37:21]Read from MH i2c: E2 62 00 [13:37:21]MH_I2C_Read... [13:37:21]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 40 B5 01 00 0E 04 04 00 86 01 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 4B [13:37:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 40 B5 01 00 0E 04 04 00 86 01 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 [13:37:21]wFMCommunicate OK [13:37:21]SAM_PROTO_GetFieldsCounters done [13:37:21]requested_item shift.num is exist - process it [13:37:21]requested_item shift.opened is exist - process it [13:37:21]req_shift_opened [13:37:21]FM_GetShiftState [13:37:21]SAM_PROTO_GetShiftState [13:37:21]wFMCommunicate request_size=4 [13:37:21]MH_SAM_APDU [13:37:21]CAPDU: 80 13 01 00 [13:37:21]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [13:37:21]Write i2c OK [13:37:21]MH_I2C_Read... [13:37:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:21]Read from MH i2c: E2 [13:37:21]MH_I2C_Read... [13:37:21]Read from MH i2c: E2 0E 00 [13:37:21]MH_I2C_Read... [13:37:21]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F4 [13:37:21]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:37:21]wFMCommunicate OK [13:37:21]SAM_PROTO_GetShiftState done [13:37:21]FM_GetShiftState done [13:37:21]req_shift_opened done [13:37:21]requested_item shift.open_date is exist - process it [13:37:21]req_shift_open_date [13:37:21]req_shift_open_date done [13:37:21]produce_requested_data done [13:37:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111936,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:37:21]process_action_free close_receipt [13:37:21]json_value_free [13:37:21]json_value_free done [13:37:21]process_json_proto returns [13:37:21]Send response to host [13:37:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111936,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:37:21]free response buf [13:37:21]execute_script done [13:37:21]execute_script returns [13:37:21]free content buf [13:37:21]Sock 11.Close socket [13:37:21]Sock 11.Thread stoped [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:54]accept exits with 7 [13:44:54]New connection [13:44:54]New thread 3066731876 created [13:44:54]Thread 3066875236 joined [13:44:54]Waiting for new connection... [13:44:54] Sock 7.Parse request [13:44:54]Sock 7.Check first char [13:44:54]Sock 7.First char is OK [13:44:54]request: POST /json_proto HTTP/1.0 [13:44:54]Method: POST [13:44:54]URL: /json_proto [13:44:54]Method is POST - this is cgi request [13:44:54]url: /json_proto [13:44:54]query_string will be loaded in cgi processing [13:44:54]execute_cgi json_proto POST (null) [13:44:54]execute_cgi path=json_proto method=POST [13:44:54]POST find Content-Length [13:44:54]Host: 172.17.59.68:8080 [13:44:54]Content-Length: 682 [13:44:54]Content-Type: application/json [13:44:54] [13:44:54]POST finish read [13:44:54]Found Content-Length = 682 [13:44:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:44:54]execute_script... [13:44: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 : (1)320584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:44:54]POST & json_proto [13:44:54]process_json_proto [13:44:54]json parsed OK: [13:44:54]protocol is kg_v1.0 [13:44:54]action value=close_receipt [13:44:54]process_action close_receipt [13:44:54]cmd_close_receipt [13:44:54]MH_GetDate [13:44:54]Write to MH i2c: F0 00 00 FB 00 EA [13:44:54]Write i2c OK [13:44:54]MH_I2C_Read... [13:44:54]Read from MH i2c: F0 [13:44:54]MH_I2C_Read... [13:44:54]Read from MH i2c: F0 09 00 [13:44:54]MH_I2C_Read... [13:44:54]Read from MH i2c: F0 09 00 FB 00 00 D7 83 75 66 BC EC 60 65 95 [13:44:54]GetLastDocTimeStamp 1718977037 [13:44:54]current date 1718977495 [13:44:54]FM_GetShiftState [13:44:54]SAM_PROTO_GetShiftState [13:44:54]wFMCommunicate request_size=4 [13:44:54]MH_SAM_APDU [13:44:54]CAPDU: 80 13 01 00 [13:44:54]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [13:44:54]Write i2c OK [13:44:54]MH_I2C_Read... [13:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:54]Read from MH i2c: E2 [13:44:54]MH_I2C_Read... [13:44:54]Read from MH i2c: E2 0E 00 [13:44:54]MH_I2C_Read... [13:44:54]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F6 [13:44:54]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:44:54]wFMCommunicate OK [13:44:54]SAM_PROTO_GetShiftState done [13:44:54]FM_GetShiftState done [13:44:54]opened in 1718933695 [13:44:54]opened+sec_in_day 1719020095 [13:44:54]quantity*price = 100064 [13:44:54]sum+1 = 100066 [13:44:54]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 105 21.06.2024 13:44 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111937 肖袩袛: 256433753660925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111937&fm=256433753660925&tin=02508201610067®Number=0000000000092771&sum=100000 [13:44:55]StoreToDocumentArchive [13:44:55]shift 390 fd 111937 [13:44:55]save to /storage/0390/doc_00111937 [13:44:55]save last doc name /storage/0390/doc_00111937 to /storage/kkm_last_doc_name [13:44:55]save OK [13:44:55]Clear old archive folders... [13:44:55]OFD Sender: No OFD packet to send [13:44:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:55]tlvbuf is 00343630 [13:44:55]SAM_PROTO_ClearQueue [13:44:55]wFMCommunicate request_size=4 [13:44:55]MH_SAM_APDU [13:44:55]CAPDU: 80 09 00 00 [13:44:55]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [13:44:55]Write i2c OK [13:44:55]MH_I2C_Read... [13:44:55]Read from MH i2c: E2 [13:44:55]MH_I2C_Read... [13:44:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:55]Read from MH i2c: E2 03 00 [13:44:55]MH_I2C_Read... [13:44:55]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [13:44:55]RAPDU: 90 00 [13:44:55]wFMCommunicate OK [13:44:55]SAM_PROTO_ClearQueue done [13:44:55]KKMCreateOFDPacket [13:44:55]OFDProtocolAddRootSTLVToBuf [13:44:55]FM_MakeSignedData [13:44:55]FM_MakeSignedData [13:44:55]SAM_PROTO_SignData [13:44:55]wFMCommunicate request_size=4 [13:44:55]MH_SAM_APDU [13:44:55]CAPDU: 80 0D 01 02 [13:44:55]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [13:44:55]Write i2c OK [13:44:55]MH_I2C_Read... [13:44:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:55]Read from MH i2c: E2 [13:44:55]MH_I2C_Read... [13:44:55]Read from MH i2c: E2 03 00 [13:44:55]MH_I2C_Read... [13:44:55]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [13:44:55]RAPDU: 90 00 [13:44:55]wFMCommunicate OK [13:44:55]wFMCommunicate request_size=255 [13:44:55]MH_SAM_APDU [13:44:55]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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 69 00 00 00 F4 03 04 00 D7 83 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B5 01 00 35 04 06 00 E9 [13:44:55]Write to MH i2c: E2 02 01 0B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 69 00 00 00 F4 03 04 00 D7 83 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B5 01 00 35 04 06 00 E9 00 00 8D [13:44:55]Write i2c OK [13:44:55]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 [13:44:56]MH_I2C_Read... [13:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:56]Read from MH i2c: E2 03 00 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [13:44:56]RAPDU: 90 00 [13:44:56]wFMCommunicate OK [13:44:56]wFMCommunicate request_size=10 [13:44:56]MH_SAM_APDU [13:44:56]CAPDU: 80 0D 02 02 05 39 A2 CB 9D FD [13:44:56]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 39 A2 CB 9D FD 00 00 D1 [13:44:56]Write i2c OK [13:44:56]MH_I2C_Read... [13:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:56]Read from MH i2c: E2 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 03 00 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [13:44:56]RAPDU: 90 00 [13:44:56]wFMCommunicate OK [13:44:56]wFMCommunicate request_size=4 [13:44:56]MH_SAM_APDU [13:44:56]CAPDU: 80 0D 03 02 [13:44:56]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [13:44:56]Write i2c OK [13:44:56]MH_I2C_Read... [13:44:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:56]Read from MH i2c: E2 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 0B 00 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 0B 00 0D 01 00 F3 26 3D 2B 35 92 70 B2 90 00 F4 [13:44:56]RAPDU: F3 26 3D 2B 35 92 70 B2 90 00 [13:44:56]wFMCommunicate OK [13:44:56]SAM_PROTO_SignData done [13:44:56]FM_MakeSignedData done [13:44:56]CreateOFDProtocolMessage [13:44:56]wFMCommunicate request_size=4 [13:44:56]MH_SAM_APDU [13:44:56]CAPDU: 80 11 00 00 [13:44:56]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [13:44:56]Write i2c OK [13:44:56]MH_I2C_Read... [13:44:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:56]Read from MH i2c: E2 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 17 00 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DB [13:44:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:44:56]wFMCommunicate OK [13:44:56]CreateOFDProtocolMessage done [13:44:56]OFDSenderStorePacket 111937 [13:44:56]StoreOFDPacket docnum=111937 [13:44:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F8 17 07 01 A5 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 69 00 00 00 F4 03 04 00 D7 83 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B5 01 00 35 04 06 00 E9 39 A2 CB 9D FD F3 26 3D 2B 35 92 70 B2 [13:44:56]CheckFolder [13:44:56]dirname=/storage/ofd_packets [13:44:56]CheckFolder done [13:44:56]ProducePacketName [13:44:56]name=ofd_packets/00111937 [13:44:56]NVStorageSaveData ofd_packets/00111937 [13:44:56]File name is /storage/ofd_packets/00111937 [13:44:56]Write 301 bytes [13:44:56]NVStorageSaveData done [13:44:56]OFDSenderStorePacket done [13:44:56]KKMCreateOFDPacket done [13:44:56]NVStorageSaveData kkm_last_timestamp [13:44:56]File name is /storage/kkm_last_timestamp [13:44:56]Write 4 bytes [13:44:56]NVStorageSaveData done [13:44:56]ExternCall_PrintAddStr [13:44:56]wPrintStart [13:44:56]Write to MH i2c: 01 00 00 0F 01 10 [13:44:56]Write i2c OK [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: 01 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: 01 07 00 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [13:44:56]RasterBufferAndPrint [13:44:56]line 小褔械褌 N : (1)320584 [13:44:56]line 袠袧袧: 02508201610067 [13:44:56]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [13:44:56]line 袩袪袨袛袗袞袗 [13:44:56]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [13:44:56]line 孝芯胁邪褉: 2710124130 [13:44:56]line 袗懈-92-袣-5 [13:44:56]line 15.070 * 66.40 [13:44:56]line = 1000.65 [13:44:56]line 袧袛小 12% 袧小袩 1% [13:44:56]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [13:44:56]line 袨袣袪校袚袥袝袧袠袝: -0.65 [13:44:56]line 袠孝袨袚袨: 1000.00 [13:44:56]line 袙薪械褋械薪芯: 1000.00 [13:44:56]line 小袛袗效袗: 0.00 [13:44:56]line 袧小袩 1% : 8.85 [13:44:56]line 袧袛小 12% : 106.26 [13:44:56]line 袧邪谢懈褔薪褘屑懈: 1000.00 [13:44:56]line 袘械蟹薪邪谢.: 0.00 [13:44:56]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [13:44:56]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [13:44:56]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [13:44:56]line 效械泻 105 21.06.2024 13:44 [13:44:56]line 小屑械薪邪: 390 肖肖袛: 1.0 [13:44:56]line 袟袧袦: 0300000198 [13:44:56]line 袪袧袦: 0000000000092771 [13:44:56]line 袙械褉褋懈褟 袣袣袦: 001 [13:44:56]line 肖袦: 0000000000875083 [13:44:56]line 肖袛: 111937 [13:44:56]line 肖袩袛: 256433753660925 [13:44:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111937&fm=256433753660925&tin=02508201610067®Number=0000000000092771&sum=100000 [13:44:56]OFD Sender: Processing packet 111937 [packets to send 38, broken 37] [13:44:56]ProducePacketName [13:44:56]name=ofd_packets/00111937 [13:44:56]OFD Sender: To server: 嚂鰌G, [13:44:56]CommunicateWithHost lk.salyk.kg:30040 [13:44:56]ConnectInit lk.salyk.kg [13:44:56]written 0, free lines is 4095 [13:44:56]Connected sock=10 [13:44:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F8 17 07 01 A5 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 69 00 00 00 F4 03 04 00 D7 83 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B5 01 00 35 04 06 00 E9 39 A2 CB 9D FD F3 26 3D 2B 35 92 70 B2 [13:44:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 17 BF 47 00 98 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 30 38 37 35 30 38 33 10 04 04 00 41 B5 01 00 F4 03 04 00 01 1B 75 66 B6 04 01 00 00 7E 37 7F 98 8A 5F 40 16 [13:44:56]CommunicateWithHost err = 0 [13:44:56]CheckOFDResponse [13:44:56]1017 (14) - 77093643461234 [13:44:56]1041 (16) - 0000000000875083 [13:44:56]1040 (4) - 111937 [13:44:56]1012 (4) - 21.06.2024 06:17 [13:44:56]1206 (1) - 0 [13:44:56]OFD Sender: Remove packet 111937 [13:44:56]ProducePacketName [13:44:56]name=ofd_packets/00111937 [13:44:56]NVStorageDeleteData [13:44:57]Write to MH i2c: 01 00 00 3A 01 3B [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: 01 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: 01 07 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 DD 0C 2B [13:44:57]RasterBufferAndPrint [13:44:57]line [13:44:57]line [13:44:57]line [13:44:57]line [13:44:57]line [13:44:57]written 0, free lines is 3299 [13:44:57]MH_Cut [13:44:57]Write to MH i2c: D1 01 00 41 01 01 14 [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: D1 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: D1 01 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: D1 01 00 41 01 00 13 [13:44:57]Write to MH i2c: 01 00 00 42 01 43 [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]OFD Sender: No OFD packet to send [13:44:57]*** Cut start [13:44:57]*** Partial cut [13:44:57]*** CUTSNS_PIN = 1 [13:44:57]*** CUTSNS_PIN = 0 [13:44:57]*** Brake cut motor [13:44:58]Read from MH i2c: 01 [13:44:58]MH_I2C_Read... [13:44:58]*** Stop cut motor [13:44:58]*** Cut end [13:44:58]Read from MH i2c: 01 07 00 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [13:44:58]process_action close_receipt done [13:44:58]requested_data is exist [13:44:58]produce_requested_data [13:44:58]requested_item fm.sn is exist - process it [13:44:58]wFMCommunicate request_size=4 [13:44:58]MH_SAM_APDU [13:44:58]CAPDU: 80 11 00 00 [13:44:58]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:58]Read from MH i2c: E2 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: E2 17 00 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 10 [13:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:44:58]wFMCommunicate OK [13:44:58]requested_item fd.num is exist - process it [13:44:58]SAM_PROTO_GetFieldsCounters [13:44:58]wFMCommunicate request_size=4 [13:44:58]MH_SAM_APDU [13:44:58]CAPDU: 80 13 00 00 [13:44:58]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:58]Read from MH i2c: E2 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: E2 62 00 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 41 B5 01 00 0E 04 04 00 86 01 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 9B [13:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 41 B5 01 00 0E 04 04 00 86 01 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 [13:44:58]wFMCommunicate OK [13:44:58]SAM_PROTO_GetFieldsCounters done [13:44:58]requested_item shift.num is exist - process it [13:44:58]requested_item shift.opened is exist - process it [13:44:58]req_shift_opened [13:44:58]FM_GetShiftState [13:44:58]SAM_PROTO_GetShiftState [13:44:58]wFMCommunicate request_size=4 [13:44:58]MH_SAM_APDU [13:44:58]CAPDU: 80 13 01 00 [13:44:58]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:58]Read from MH i2c: E2 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: E2 0E 00 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 40 [13:44:58]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:44:58]wFMCommunicate OK [13:44:58]SAM_PROTO_GetShiftState done [13:44:58]FM_GetShiftState done [13:44:58]req_shift_opened done [13:44:58]requested_item shift.open_date is exist - process it [13:44:58]req_shift_open_date [13:44:58]req_shift_open_date done [13:44:58]produce_requested_data done [13:44:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111937,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:44:58]process_action_free close_receipt [13:44:58]json_value_free [13:44:58]json_value_free done [13:44:58]process_json_proto returns [13:44:58]Send response to host [13:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111937,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:44:58]free response buf [13:44:58]execute_script done [13:44:58]execute_script returns [13:44:58]free content buf [13:44:58]Sock 7.Close socket [13:44:58]Sock 7.Thread stoped [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:47]accept exits with 9 [13:45:47]New connection [13:45:47]New thread 3066875236 created [13:45:47]Thread 3066731876 joined [13:45:47]Waiting for new connection... [13:45:47] Sock 9.Parse request [13:45:47]Sock 9.Check first char [13:45:47]Sock 9.First char is OK [13:45:47]request: POST /json_proto HTTP/1.0 [13:45:47]Method: POST [13:45:47]URL: /json_proto [13:45:47]Method is POST - this is cgi request [13:45:47]url: /json_proto [13:45:47]query_string will be loaded in cgi processing [13:45:47]execute_cgi json_proto POST (null) [13:45:47]execute_cgi path=json_proto method=POST [13:45:47]POST find Content-Length [13:45:47]Host: 172.17.59.68:8080 [13:45:47]Content-Length: 639 [13:45:47]Content-Type: application/json [13:45:47] [13:45:47]POST finish read [13:45:47]Found Content-Length = 639 [13:45:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:47]execute_script... [13:45: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)320585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:47]POST & json_proto [13:45:47]process_json_proto [13:45:47]json parsed OK: [13:45:47]protocol is kg_v1.0 [13:45:47]action value=close_receipt [13:45:47]process_action close_receipt [13:45:47]cmd_close_receipt [13:45:47]MH_GetDate [13:45:47]Write to MH i2c: F0 00 00 46 01 36 [13:45:47]Write i2c OK [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: F0 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: F0 09 00 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: F0 09 00 46 01 00 0C 84 75 66 BC EC 60 65 17 [13:45:47]GetLastDocTimeStamp 1718977495 [13:45:47]current date 1718977548 [13:45:47]FM_GetShiftState [13:45:47]SAM_PROTO_GetShiftState [13:45:47]wFMCommunicate request_size=4 [13:45:47]MH_SAM_APDU [13:45:47]CAPDU: 80 13 01 00 [13:45:47]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [13:45:47]Write i2c OK [13:45:47]MH_I2C_Read... [13:45:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:47]Read from MH i2c: E2 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: E2 0E 00 [13:45:47]MH_I2C_Read... [13:45:47]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 42 [13:45:47]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:45:47]wFMCommunicate OK [13:45:47]SAM_PROTO_GetShiftState done [13:45:47]FM_GetShiftState done [13:45:47]opened in 1718933695 [13:45:47]opened+sec_in_day 1719020095 [13:45:47]quantity*price = 33200 [13:45:47]sum+1 = 33201 [13:45:47]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 332.00 袧小袩 1% : 2.94 袧袛小 12% : 35.26 袧邪谢懈褔薪褘屑懈: 332.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 106 21.06.2024 13:45 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111938 肖袩袛: 234190533689458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134548&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111938&fm=234190533689458&tin=02508201610067®Number=0000000000092771&sum=33200 [13:45:48]StoreToDocumentArchive [13:45:48]shift 390 fd 111938 [13:45:48]save to /storage/0390/doc_00111938 [13:45:48]save last doc name /storage/0390/doc_00111938 to /storage/kkm_last_doc_name [13:45:48]save OK [13:45:48]Clear old archive folders... [13:45:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:48]tlvbuf is 0033E9F0 [13:45:48]SAM_PROTO_ClearQueue [13:45:48]wFMCommunicate request_size=4 [13:45:48]MH_SAM_APDU [13:45:48]CAPDU: 80 09 00 00 [13:45:48]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [13:45:48]Write i2c OK [13:45:48]MH_I2C_Read... [13:45:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:48]Read from MH i2c: E2 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 03 00 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [13:45:48]RAPDU: 90 00 [13:45:48]wFMCommunicate OK [13:45:48]SAM_PROTO_ClearQueue done [13:45:48]KKMCreateOFDPacket [13:45:48]OFDProtocolAddRootSTLVToBuf [13:45:48]FM_MakeSignedData [13:45:48]FM_MakeSignedData [13:45:48]SAM_PROTO_SignData [13:45:48]wFMCommunicate request_size=4 [13:45:48]MH_SAM_APDU [13:45:48]CAPDU: 80 0D 01 02 [13:45:48]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [13:45:48]Write i2c OK [13:45:48]MH_I2C_Read... [13:45:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:48]Read from MH i2c: E2 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 03 00 [13:45:48]MH_I2C_Read... [13:45:48]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [13:45:48]RAPDU: 90 00 [13:45:48]wFMCommunicate OK [13:45:48]wFMCommunicate request_size=255 [13:45:48]MH_SAM_APDU [13:45:48]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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 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 0C 84 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B5 01 00 35 04 06 00 D4 [13:45:48]Write to MH i2c: E2 02 01 56 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 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 0C 84 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B5 01 00 35 04 06 00 D4 00 00 32 [13:45:48]Write i2c OK [13:45:48]MH_I2C_Read... [13:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:49]Read from MH i2c: E2 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 03 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [13:45:49]RAPDU: 90 00 [13:45:49]wFMCommunicate OK [13:45:49]wFMCommunicate request_size=10 [13:45:49]MH_SAM_APDU [13:45:49]CAPDU: 80 0D 02 02 05 FE BB 92 00 72 [13:45:49]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 FE BB 92 00 72 00 00 99 [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:49]Read from MH i2c: E2 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 03 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [13:45:49]RAPDU: 90 00 [13:45:49]wFMCommunicate OK [13:45:49]wFMCommunicate request_size=4 [13:45:49]MH_SAM_APDU [13:45:49]CAPDU: 80 0D 03 02 [13:45:49]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:49]Read from MH i2c: E2 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 0B 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 0B 00 58 01 00 75 0A 7A 2C 91 86 72 C3 90 00 46 [13:45:49]RAPDU: 75 0A 7A 2C 91 86 72 C3 90 00 [13:45:49]wFMCommunicate OK [13:45:49]SAM_PROTO_SignData done [13:45:49]FM_MakeSignedData done [13:45:49]CreateOFDProtocolMessage [13:45:49]wFMCommunicate request_size=4 [13:45:49]MH_SAM_APDU [13:45:49]CAPDU: 80 11 00 00 [13:45:49]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:49]Read from MH i2c: E2 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 17 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 26 [13:45:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:45:49]wFMCommunicate OK [13:45:49]CreateOFDProtocolMessage done [13:45:49]OFDSenderStorePacket 111938 [13:45:49]StoreOFDPacket docnum=111938 [13:45:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 06 07 01 1E 7F 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 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 0C 84 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B5 01 00 35 04 06 00 D4 FE BB 92 00 72 75 0A 7A 2C 91 86 72 C3 [13:45:49]CheckFolder [13:45:49]dirname=/storage/ofd_packets [13:45:49]CheckFolder done [13:45:49]ProducePacketName [13:45:49]name=ofd_packets/00111938 [13:45:49]NVStorageSaveData ofd_packets/00111938 [13:45:49]File name is /storage/ofd_packets/00111938 [13:45:49]Write 301 bytes [13:45:49]NVStorageSaveData done [13:45:49]OFDSenderStorePacket done [13:45:49]KKMCreateOFDPacket done [13:45:49]NVStorageSaveData kkm_last_timestamp [13:45:49]File name is /storage/kkm_last_timestamp [13:45:49]Write 4 bytes [13:45:49]NVStorageSaveData done [13:45:49]ExternCall_PrintAddStr [13:45:49]wPrintStart [13:45:49]Write to MH i2c: 01 00 00 5A 01 5B [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: 01 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: 01 07 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [13:45:49]RasterBufferAndPrint [13:45:49]line 小褔械褌 N : (1)320585 [13:45:49]line 袠袧袧: 02508201610067 [13:45:49]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [13:45:49]line 袩袪袨袛袗袞袗 [13:45:49]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [13:45:49]line 孝芯胁邪褉: 2710124130 [13:45:49]line 袗懈-92-袣-5 [13:45:49]line 5.000 * 66.40 [13:45:49]line = 332.00 [13:45:49]line 袧袛小 12% 袧小袩 1% [13:45:49]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [13:45:49]line 袠孝袨袚袨: 332.00 [13:45:49]line 袧小袩 1% : 2.94 [13:45:49]line 袧袛小 12% : 35.26 [13:45:49]line 袧邪谢懈褔薪褘屑懈: 332.00 [13:45:49]line 袘械蟹薪邪谢.: 0.00 [13:45:49]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [13:45:49]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [13:45:49]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [13:45:49]line 效械泻 106 21.06.2024 13:45 [13:45:49]line 小屑械薪邪: 390 肖肖袛: 1.0 [13:45:49]line 袟袧袦: 0300000198 [13:45:49]line 袪袧袦: 0000000000092771 [13:45:49]line 袙械褉褋懈褟 袣袣袦: 001 [13:45:49]line 肖袦: 0000000000875083 [13:45:49]line 肖袛: 111938 [13:45:49]line 肖袩袛: 234190533689458 [13:45:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T134548&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111938&fm=234190533689458&tin=02508201610067®Number=0000000000092771&sum=33200 [13:45:49]OFD Sender: Processing packet 111938 [packets to send 38, broken 37] [13:45:49]ProducePacketName [13:45:49]name=ofd_packets/00111938 [13:45:49]OFD Sender: To server: 嚂鰌G, [13:45:49]CommunicateWithHost lk.salyk.kg:30040 [13:45:49]ConnectInit lk.salyk.kg [13:45:49]written 0, free lines is 4095 [13:45:49]Connected sock=10 [13:45:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 06 07 01 1E 7F 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 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 0C 84 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B5 01 00 35 04 06 00 D4 FE BB 92 00 72 75 0A 7A 2C 91 86 72 C3 [13:45:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 33 C7 47 00 50 07 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 30 38 37 35 30 38 33 10 04 04 00 42 B5 01 00 F4 03 04 00 36 1B 75 66 B6 04 01 00 00 64 2F 67 28 E2 33 D6 3D [13:45:49]CommunicateWithHost err = 0 [13:45:49]CheckOFDResponse [13:45:49]1017 (14) - 77093643461234 [13:45:49]1041 (16) - 0000000000875083 [13:45:49]1040 (4) - 111938 [13:45:49]1012 (4) - 21.06.2024 06:18 [13:45:49]1206 (1) - 0 [13:45:49]OFD Sender: Remove packet 111938 [13:45:49]ProducePacketName [13:45:49]name=ofd_packets/00111938 [13:45:49]NVStorageDeleteData [13:45:49]Write to MH i2c: 01 00 00 82 01 83 [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: 01 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: 01 07 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 0B 0D A2 [13:45:49]RasterBufferAndPrint [13:45:49]line [13:45:49]line [13:45:49]line [13:45:49]line [13:45:49]line [13:45:49]written 0, free lines is 3345 [13:45:49]MH_Cut [13:45:49]Write to MH i2c: D1 01 00 89 01 01 5C [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: D1 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: D1 01 00 [13:45:49]MH_I2C_Read... [13:45:49]Read from MH i2c: D1 01 00 89 01 00 5B [13:45:49]Write to MH i2c: 01 00 00 8A 01 8B [13:45:49]Write i2c OK [13:45:49]MH_I2C_Read... [13:45:50]OFD Sender: No OFD packet to send [13:45:50]*** Cut start [13:45:50]*** Partial cut [13:45:50]*** CUTSNS_PIN = 1 [13:45:50]*** CUTSNS_PIN = 0 [13:45:50]*** Brake cut motor [13:45:51]Read from MH i2c: 01 [13:45:51]MH_I2C_Read... [13:45:51]*** Stop cut motor [13:45:51]*** Cut end [13:45:51]Read from MH i2c: 01 07 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [13:45:51]process_action close_receipt done [13:45:51]requested_data is exist [13:45:51]produce_requested_data [13:45:51]requested_item fm.sn is exist - process it [13:45:51]wFMCommunicate request_size=4 [13:45:51]MH_SAM_APDU [13:45:51]CAPDU: 80 11 00 00 [13:45:51]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:51]Read from MH i2c: E2 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 17 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 58 [13:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:45:51]wFMCommunicate OK [13:45:51]requested_item fd.num is exist - process it [13:45:51]SAM_PROTO_GetFieldsCounters [13:45:51]wFMCommunicate request_size=4 [13:45:51]MH_SAM_APDU [13:45:51]CAPDU: 80 13 00 00 [13:45:51]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:51]Read from MH i2c: E2 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 62 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 62 00 8C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 42 B5 01 00 0E 04 04 00 86 01 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 E7 [13:45:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 42 B5 01 00 0E 04 04 00 86 01 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 [13:45:51]wFMCommunicate OK [13:45:51]SAM_PROTO_GetFieldsCounters done [13:45:51]requested_item shift.num is exist - process it [13:45:51]requested_item shift.opened is exist - process it [13:45:51]req_shift_opened [13:45:51]FM_GetShiftState [13:45:51]SAM_PROTO_GetShiftState [13:45:51]wFMCommunicate request_size=4 [13:45:51]MH_SAM_APDU [13:45:51]CAPDU: 80 13 01 00 [13:45:51]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [13:45:51]Write i2c OK [13:45:51]MH_I2C_Read... [13:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:51]Read from MH i2c: E2 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 0E 00 [13:45:51]MH_I2C_Read... [13:45:51]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 88 [13:45:51]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:45:51]wFMCommunicate OK [13:45:51]SAM_PROTO_GetShiftState done [13:45:51]FM_GetShiftState done [13:45:51]req_shift_opened done [13:45:51]requested_item shift.open_date is exist - process it [13:45:51]req_shift_open_date [13:45:51]req_shift_open_date done [13:45:51]produce_requested_data done [13:45:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111938,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:45:51]process_action_free close_receipt [13:45:51]json_value_free [13:45:51]json_value_free done [13:45:51]process_json_proto returns [13:45:51]Send response to host [13:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111938,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:45:51]free response buf [13:45:51]execute_script done [13:45:51]execute_script returns [13:45:51]free content buf [13:45:51]Sock 9.Close socket [13:45:51]Sock 9.Thread stoped [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:06]accept exits with 7 [13:51:06]New connection [13:51:06]New thread 3066731876 created [13:51:06]Thread 3066875236 joined [13:51:06]Waiting for new connection... [13:51:06] Sock 7.Parse request [13:51:06]Sock 7.Check first char [13:51:06]Sock 7.First char is OK [13:51:06]request: POST /json_proto HTTP/1.0 [13:51:06]Method: POST [13:51:06]URL: /json_proto [13:51:06]Method is POST - this is cgi request [13:51:06]url: /json_proto [13:51:06]query_string will be loaded in cgi processing [13:51:06]execute_cgi json_proto POST (null) [13:51:06]execute_cgi path=json_proto method=POST [13:51:06]POST find Content-Length [13:51:06]Host: 172.17.59.68:8080 [13:51:06]Content-Length: 677 [13:51:06]Content-Type: application/json [13:51:06] [13:51:06]POST finish read [13:51:06]Found Content-Length = 677 [13:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:06]execute_script... [13:51: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)320586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:06]POST & json_proto [13:51:06]process_json_proto [13:51:06]json parsed OK: [13:51:06]protocol is kg_v1.0 [13:51:06]action value=close_receipt [13:51:06]process_action close_receipt [13:51:06]cmd_close_receipt [13:51:06]MH_GetDate [13:51:06]Write to MH i2c: F0 00 00 8E 01 7E [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: F0 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: F0 09 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: F0 09 00 8E 01 00 4A 85 75 66 BC EC 60 65 9E [13:51:06]GetLastDocTimeStamp 1718977548 [13:51:06]current date 1718977866 [13:51:06]FM_GetShiftState [13:51:06]SAM_PROTO_GetShiftState [13:51:06]wFMCommunicate request_size=4 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 13 01 00 [13:51:06]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 0E 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 8A [13:51:06]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:51:06]wFMCommunicate OK [13:51:06]SAM_PROTO_GetShiftState done [13:51:06]FM_GetShiftState done [13:51:06]opened in 1718933695 [13:51:06]opened+sec_in_day 1719020095 [13:51:06]quantity*price = 35059 [13:51:06]sum+1 = 35060 [13:51:06]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.59 袠孝袨袚袨: 350.00 袙薪械褋械薪芯: 350.00 小袛袗效袗: 0.00 袧小袩 1% : 3.10 袧袛小 12% : 37.23 袧邪谢懈褔薪褘屑懈: 350.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 107 21.06.2024 13:51 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111939 肖袩袛: 196067320513410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135106&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111939&fm=196067320513410&tin=02508201610067®Number=0000000000092771&sum=35000 [13:51:07]StoreToDocumentArchive [13:51:07]shift 390 fd 111939 [13:51:07]save to /storage/0390/doc_00111939 [13:51:07]save last doc name /storage/0390/doc_00111939 to /storage/kkm_last_doc_name [13:51:07]save OK [13:51:07]Clear old archive folders... [13:51:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:07]tlvbuf is 003421F0 [13:51:07]SAM_PROTO_ClearQueue [13:51:07]wFMCommunicate request_size=4 [13:51:07]MH_SAM_APDU [13:51:07]CAPDU: 80 09 00 00 [13:51:07]Write to MH i2c: E2 08 00 9C 01 80 09 00 00 00 00 00 00 0F [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:07]Read from MH i2c: E2 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [13:51:07]RAPDU: 90 00 [13:51:07]wFMCommunicate OK [13:51:07]SAM_PROTO_ClearQueue done [13:51:07]KKMCreateOFDPacket [13:51:07]OFDProtocolAddRootSTLVToBuf [13:51:07]FM_MakeSignedData [13:51:07]FM_MakeSignedData [13:51:07]SAM_PROTO_SignData [13:51:07]wFMCommunicate request_size=4 [13:51:07]MH_SAM_APDU [13:51:07]CAPDU: 80 0D 01 02 [13:51:07]Write to MH i2c: E2 08 00 9D 01 80 0D 01 02 00 00 00 00 17 [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:07]Read from MH i2c: E2 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [13:51:07]RAPDU: 90 00 [13:51:07]wFMCommunicate OK [13:51:07]wFMCommunicate request_size=255 [13:51:07]MH_SAM_APDU [13:51: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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 8B 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 6B 00 00 00 F4 03 04 00 4A 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B5 01 00 35 04 06 00 B2 [13:51:07]Write to MH i2c: E2 02 01 9E 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 8B 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 6B 00 00 00 F4 03 04 00 4A 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B5 01 00 35 04 06 00 B2 00 00 F0 [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:07]Read from MH i2c: E2 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [13:51:07]RAPDU: 90 00 [13:51:07]wFMCommunicate OK [13:51:07]wFMCommunicate request_size=10 [13:51:07]MH_SAM_APDU [13:51:07]CAPDU: 80 0D 02 02 05 52 7A FD C3 82 [13:51:07]Write to MH i2c: E2 0D 00 9F 01 80 0D 02 02 05 00 52 7A FD C3 82 00 00 32 [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:07]Read from MH i2c: E2 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [13:51:07]RAPDU: 90 00 [13:51:07]wFMCommunicate OK [13:51:07]wFMCommunicate request_size=4 [13:51:07]MH_SAM_APDU [13:51:07]CAPDU: 80 0D 03 02 [13:51:07]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:07]Read from MH i2c: E2 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 0B 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 0B 00 A0 01 00 B2 C9 CE 56 AC C7 7E 12 90 00 BF [13:51:07]RAPDU: B2 C9 CE 56 AC C7 7E 12 90 00 [13:51:07]wFMCommunicate OK [13:51:07]SAM_PROTO_SignData done [13:51:07]FM_MakeSignedData done [13:51:07]CreateOFDProtocolMessage [13:51:07]wFMCommunicate request_size=4 [13:51:07]MH_SAM_APDU [13:51:07]CAPDU: 80 11 00 00 [13:51:07]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:07]Read from MH i2c: E2 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 17 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6E [13:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:51:07]wFMCommunicate OK [13:51:07]CreateOFDProtocolMessage done [13:51:07]OFDSenderStorePacket 111939 [13:51:07]StoreOFDPacket docnum=111939 [13:51:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BB DF 07 01 C7 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 8B 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 6B 00 00 00 F4 03 04 00 4A 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B5 01 00 35 04 06 00 B2 52 7A FD C3 82 B2 C9 CE 56 AC C7 7E 12 [13:51:07]CheckFolder [13:51:07]dirname=/storage/ofd_packets [13:51:07]CheckFolder done [13:51:07]ProducePacketName [13:51:07]name=ofd_packets/00111939 [13:51:07]NVStorageSaveData ofd_packets/00111939 [13:51:07]File name is /storage/ofd_packets/00111939 [13:51:07]Write 301 bytes [13:51:07]NVStorageSaveData done [13:51:07]OFDSenderStorePacket done [13:51:07]KKMCreateOFDPacket done [13:51:07]NVStorageSaveData kkm_last_timestamp [13:51:07]File name is /storage/kkm_last_timestamp [13:51:07]Write 4 bytes [13:51:07]NVStorageSaveData done [13:51:07]ExternCall_PrintAddStr [13:51:07]wPrintStart [13:51:07]Write to MH i2c: 01 00 00 A2 01 A3 [13:51:07]Write i2c OK [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 07 00 [13:51:07]MH_I2C_Read... [13:51:07]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [13:51:07]RasterBufferAndPrint [13:51:07]line 小褔械褌 N : (1)320586 [13:51:07]line 袠袧袧: 02508201610067 [13:51:07]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [13:51:07]line 袩袪袨袛袗袞袗 [13:51:07]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [13:51:07]line 孝芯胁邪褉: 2710124130 [13:51:07]line 袗懈-92-袣-5 [13:51:07]line 5.280 * 66.40 [13:51:07]line = 350.59 [13:51:07]line 袧袛小 12% 袧小袩 1% [13:51:07]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [13:51:07]line 袨袣袪校袚袥袝袧袠袝: -0.59 [13:51:07]line 袠孝袨袚袨: 350.00 [13:51:07]line 袙薪械褋械薪芯: 350.00 [13:51:07]line 小袛袗效袗: 0.00 [13:51:07]line 袧小袩 1% : 3.10 [13:51:07]line 袧袛小 12% : 37.23 [13:51:07]line 袧邪谢懈褔薪褘屑懈: 350.00 [13:51:07]line 袘械蟹薪邪谢.: 0.00 [13:51:07]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [13:51:07]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [13:51:07]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [13:51:07]line 效械泻 107 21.06.2024 13:51 [13:51:07]line 小屑械薪邪: 390 肖肖袛: 1.0 [13:51:07]line 袟袧袦: 0300000198 [13:51:07]line 袪袧袦: 0000000000092771 [13:51:07]line 袙械褉褋懈褟 袣袣袦: 001 [13:51:07]line 肖袦: 0000000000875083 [13:51:07]line 肖袛: 111939 [13:51:07]line 肖袩袛: 196067320513410 [13:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135106&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111939&fm=196067320513410&tin=02508201610067®Number=0000000000092771&sum=35000 [13:51:08]OFD Sender: Processing packet 111939 [packets to send 38, broken 37] [13:51:08]ProducePacketName [13:51:08]name=ofd_packets/00111939 [13:51:08]OFD Sender: To server: 嚂鰌G, [13:51:08]CommunicateWithHost lk.salyk.kg:30040 [13:51:08]ConnectInit lk.salyk.kg [13:51:08]written 0, free lines is 4095 [13:51:08]Connected sock=10 [13:51:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BB DF 07 01 C7 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 8B 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 6B 00 00 00 F4 03 04 00 4A 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B5 01 00 35 04 06 00 B2 52 7A FD C3 82 B2 C9 CE 56 AC C7 7E 12 [13:51:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A6 68 47 00 C6 15 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 30 38 37 35 30 38 33 10 04 04 00 43 B5 01 00 F4 03 04 00 74 1C 75 66 B6 04 01 00 00 CF EC 0D 8D D6 1E 7F 57 [13:51:08]CommunicateWithHost err = 0 [13:51:08]CheckOFDResponse [13:51:08]1017 (14) - 77093643461234 [13:51:08]1041 (16) - 0000000000875083 [13:51:08]1040 (4) - 111939 [13:51:08]1012 (4) - 21.06.2024 06:23 [13:51:08]1206 (1) - 0 [13:51:08]OFD Sender: Remove packet 111939 [13:51:08]ProducePacketName [13:51:08]name=ofd_packets/00111939 [13:51:08]NVStorageDeleteData [13:51:08]Write to MH i2c: 01 00 00 CD 01 CE [13:51:08]Write i2c OK [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: 01 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: 01 07 00 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 D6 0C B7 [13:51:08]RasterBufferAndPrint [13:51:08]line [13:51:08]line [13:51:08]line [13:51:08]line [13:51:08]line [13:51:08]written 0, free lines is 3293 [13:51:08]MH_Cut [13:51:08]Write to MH i2c: D1 01 00 D4 01 01 A7 [13:51:08]Write i2c OK [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: D1 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: D1 01 00 [13:51:08]MH_I2C_Read... [13:51:08]Read from MH i2c: D1 01 00 D4 01 00 A6 [13:51:08]Write to MH i2c: 01 00 00 D5 01 D6 [13:51:08]Write i2c OK [13:51:08]MH_I2C_Read... [13:51:08]OFD Sender: No OFD packet to send [13:51:09]*** Cut start [13:51:09]*** Partial cut [13:51:09]*** CUTSNS_PIN = 1 [13:51:09]*** CUTSNS_PIN = 0 [13:51:09]*** Brake cut motor [13:51:09]Read from MH i2c: 01 [13:51:09]MH_I2C_Read... [13:51:09]*** Stop cut motor [13:51:09]*** Cut end [13:51:09]Read from MH i2c: 01 07 00 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [13:51:09]process_action close_receipt done [13:51:09]requested_data is exist [13:51:09]produce_requested_data [13:51:09]requested_item fm.sn is exist - process it [13:51:09]wFMCommunicate request_size=4 [13:51:09]MH_SAM_APDU [13:51:09]CAPDU: 80 11 00 00 [13:51:09]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [13:51:09]Write i2c OK [13:51:09]MH_I2C_Read... [13:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:09]Read from MH i2c: E2 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: E2 17 00 [13:51:09]MH_I2C_Read... [13:51:09]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A3 [13:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:51:09]wFMCommunicate OK [13:51:09]requested_item fd.num is exist - process it [13:51:09]SAM_PROTO_GetFieldsCounters [13:51:09]wFMCommunicate request_size=4 [13:51:09]MH_SAM_APDU [13:51:09]CAPDU: 80 13 00 00 [13:51:09]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [13:51:09]Write i2c OK [13:51:09]MH_I2C_Read... [13:51:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:10]Read from MH i2c: E2 [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: E2 62 00 [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 43 B5 01 00 0E 04 04 00 86 01 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 36 [13:51:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 43 B5 01 00 0E 04 04 00 86 01 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 [13:51:10]wFMCommunicate OK [13:51:10]SAM_PROTO_GetFieldsCounters done [13:51:10]requested_item shift.num is exist - process it [13:51:10]requested_item shift.opened is exist - process it [13:51:10]req_shift_opened [13:51:10]FM_GetShiftState [13:51:10]SAM_PROTO_GetShiftState [13:51:10]wFMCommunicate request_size=4 [13:51:10]MH_SAM_APDU [13:51:10]CAPDU: 80 13 01 00 [13:51:10]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [13:51:10]Write i2c OK [13:51:10]MH_I2C_Read... [13:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:10]Read from MH i2c: E2 [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: E2 0E 00 [13:51:10]MH_I2C_Read... [13:51:10]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D3 [13:51:10]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:51:10]wFMCommunicate OK [13:51:10]SAM_PROTO_GetShiftState done [13:51:10]FM_GetShiftState done [13:51:10]req_shift_opened done [13:51:10]requested_item shift.open_date is exist - process it [13:51:10]req_shift_open_date [13:51:10]req_shift_open_date done [13:51:10]produce_requested_data done [13:51:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111939,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:51:10]process_action_free close_receipt [13:51:10]json_value_free [13:51:10]json_value_free done [13:51:10]process_json_proto returns [13:51:10]Send response to host [13:51:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111939,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:51:10]free response buf [13:51:10]execute_script done [13:51:10]execute_script returns [13:51:10]free content buf [13:51:10]Sock 7.Close socket [13:51:10]Sock 7.Thread stoped [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:47]accept exits with 9 [13:51:47]New connection [13:51:47]New thread 3066875236 created [13:51:47]Thread 3066731876 joined [13:51:47]Waiting for new connection... [13:51:47] Sock 9.Parse request [13:51:47]Sock 9.Check first char [13:51:47]Sock 9.First char is OK [13:51:47]request: POST /json_proto HTTP/1.0 [13:51:47]Method: POST [13:51:47]URL: /json_proto [13:51:47]Method is POST - this is cgi request [13:51:47]url: /json_proto [13:51:47]query_string will be loaded in cgi processing [13:51:47]execute_cgi json_proto POST (null) [13:51:47]execute_cgi path=json_proto method=POST [13:51:47]POST find Content-Length [13:51:47]Host: 172.17.59.68:8080 [13:51:47]Content-Length: 677 [13:51:47]Content-Type: application/json [13:51:47] [13:51:47]POST finish read [13:51:47]Found Content-Length = 677 [13:51:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [13:51:47]execute_script... [13:51: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)320587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [13:51:47]POST & json_proto [13:51:47]process_json_proto [13:51:47]json parsed OK: [13:51:47]protocol is kg_v1.0 [13:51:47]action value=close_receipt [13:51:47]process_action close_receipt [13:51:47]cmd_close_receipt [13:51:47]MH_GetDate [13:51:47]Write to MH i2c: F0 00 00 D9 01 C9 [13:51:47]Write i2c OK [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: F0 [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: F0 09 00 [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: F0 09 00 D9 01 00 74 85 75 66 BC EC 60 65 13 [13:51:47]GetLastDocTimeStamp 1718977866 [13:51:47]current date 1718977908 [13:51:47]FM_GetShiftState [13:51:47]SAM_PROTO_GetShiftState [13:51:47]wFMCommunicate request_size=4 [13:51:47]MH_SAM_APDU [13:51:47]CAPDU: 80 13 01 00 [13:51:47]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [13:51:47]Write i2c OK [13:51:47]MH_I2C_Read... [13:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:47]Read from MH i2c: E2 [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: E2 0E 00 [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D5 [13:51:47]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:51:47]wFMCommunicate OK [13:51:47]SAM_PROTO_GetShiftState done [13:51:47]FM_GetShiftState done [13:51:47]opened in 1718933695 [13:51:47]opened+sec_in_day 1719020095 [13:51:47]quantity*price = 60025 [13:51:47]sum+1 = 60027 [13:51:47]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.26 袠孝袨袚袨: 600.00 袙薪械褋械薪芯: 600.00 小袛袗效袗: 0.00 袧小袩 1% : 5.31 袧袛小 12% : 63.74 袧邪谢懈褔薪褘屑懈: 600.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 108 21.06.2024 13:51 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111940 肖袩袛: 269467054849912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135148&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111940&fm=269467054849912&tin=02508201610067®Number=0000000000092771&sum=60000 [13:51:48]StoreToDocumentArchive [13:51:48]shift 390 fd 111940 [13:51:48]save to /storage/0390/doc_00111940 [13:51:48]save last doc name /storage/0390/doc_00111940 to /storage/kkm_last_doc_name [13:51:48]save OK [13:51:48]Clear old archive folders... [13:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:48]tlvbuf is 0031D060 [13:51:48]SAM_PROTO_ClearQueue [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 09 00 00 [13:51:48]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [13:51:48]RAPDU: 90 00 [13:51:48]wFMCommunicate OK [13:51:48]SAM_PROTO_ClearQueue done [13:51:48]KKMCreateOFDPacket [13:51:48]OFDProtocolAddRootSTLVToBuf [13:51:48]FM_MakeSignedData [13:51:48]FM_MakeSignedData [13:51:48]SAM_PROTO_SignData [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 0D 01 02 [13:51:48]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [13:51:48]RAPDU: 90 00 [13:51:48]wFMCommunicate OK [13:51:48]wFMCommunicate request_size=255 [13:51:48]MH_SAM_APDU [13:51:48]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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 6C 00 00 00 F4 03 04 00 74 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B5 01 00 35 04 06 00 F5 [13:51:48]Write to MH i2c: E2 02 01 E9 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 6C 00 00 00 F4 03 04 00 74 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B5 01 00 35 04 06 00 F5 00 00 A9 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]OFD Sender: No OFD packet to send [13:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [13:51:48]RAPDU: 90 00 [13:51:48]wFMCommunicate OK [13:51:48]wFMCommunicate request_size=10 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 0D 02 02 05 14 30 15 3F 78 [13:51:48]Write to MH i2c: E2 0D 00 EA 01 80 0D 02 02 05 00 14 30 15 3F 78 00 00 7F [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [13:51:48]RAPDU: 90 00 [13:51:48]wFMCommunicate OK [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 0D 03 02 [13:51:48]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 0B 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 0B 00 EB 01 00 29 63 22 4A 91 72 A0 D6 90 00 D9 [13:51:49]RAPDU: 29 63 22 4A 91 72 A0 D6 90 00 [13:51:49]wFMCommunicate OK [13:51:49]SAM_PROTO_SignData done [13:51:49]FM_MakeSignedData done [13:51:49]CreateOFDProtocolMessage [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 11 00 00 [13:51:49]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 17 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B9 [13:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:51:49]wFMCommunicate OK [13:51:49]CreateOFDProtocolMessage done [13:51:49]OFDSenderStorePacket 111940 [13:51:49]StoreOFDPacket docnum=111940 [13:51:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9F 1A 07 01 1A 30 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 6C 00 00 00 F4 03 04 00 74 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B5 01 00 35 04 06 00 F5 14 30 15 3F 78 29 63 22 4A 91 72 A0 D6 [13:51:49]CheckFolder [13:51:49]dirname=/storage/ofd_packets [13:51:49]CheckFolder done [13:51:49]ProducePacketName [13:51:49]name=ofd_packets/00111940 [13:51:49]NVStorageSaveData ofd_packets/00111940 [13:51:49]File name is /storage/ofd_packets/00111940 [13:51:49]Write 301 bytes [13:51:49]NVStorageSaveData done [13:51:49]OFDSenderStorePacket done [13:51:49]KKMCreateOFDPacket done [13:51:49]NVStorageSaveData kkm_last_timestamp [13:51:49]File name is /storage/kkm_last_timestamp [13:51:49]Write 4 bytes [13:51:49]NVStorageSaveData done [13:51:49]ExternCall_PrintAddStr [13:51:49]wPrintStart [13:51:49]Write to MH i2c: 01 00 00 ED 01 EE [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: 01 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: 01 07 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [13:51:49]RasterBufferAndPrint [13:51:49]line 小褔械褌 N : (1)320587 [13:51:49]line 袠袧袧: 02508201610067 [13:51:49]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [13:51:49]line 袩袪袨袛袗袞袗 [13:51:49]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [13:51:49]line 孝芯胁邪褉: 2710124130 [13:51:49]line 袗懈-92-袣-5 [13:51:49]line 9.040 * 66.40 [13:51:49]line = 600.26 [13:51:49]line 袧袛小 12% 袧小袩 1% [13:51:49]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [13:51:49]line 袨袣袪校袚袥袝袧袠袝: -0.26 [13:51:49]line 袠孝袨袚袨: 600.00 [13:51:49]line 袙薪械褋械薪芯: 600.00 [13:51:49]line 小袛袗效袗: 0.00 [13:51:49]line 袧小袩 1% : 5.31 [13:51:49]line 袧袛小 12% : 63.74 [13:51:49]line 袧邪谢懈褔薪褘屑懈: 600.00 [13:51:49]line 袘械蟹薪邪谢.: 0.00 [13:51:49]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [13:51:49]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [13:51:49]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [13:51:49]line 效械泻 108 21.06.2024 13:51 [13:51:49]line 小屑械薪邪: 390 肖肖袛: 1.0 [13:51:49]line 袟袧袦: 0300000198 [13:51:49]line 袪袧袦: 0000000000092771 [13:51:49]line 袙械褉褋懈褟 袣袣袦: 001 [13:51:49]line 肖袦: 0000000000875083 [13:51:49]line 肖袛: 111940 [13:51:49]line 肖袩袛: 269467054849912 [13:51:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135148&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111940&fm=269467054849912&tin=02508201610067®Number=0000000000092771&sum=60000 [13:51:49]OFD Sender: Processing packet 111940 [packets to send 38, broken 37] [13:51:49]ProducePacketName [13:51:49]name=ofd_packets/00111940 [13:51:49]OFD Sender: To server: 嚂鰌G, [13:51:49]CommunicateWithHost lk.salyk.kg:30040 [13:51:49]ConnectInit lk.salyk.kg [13:51:49]written 0, free lines is 4095 [13:51:49]Connected sock=10 [13:51:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9F 1A 07 01 1A 30 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 6C 00 00 00 F4 03 04 00 74 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B5 01 00 35 04 06 00 F5 14 30 15 3F 78 29 63 22 4A 91 72 A0 D6 [13:51:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A2 3C 47 00 D7 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 30 38 37 35 30 38 33 10 04 04 00 44 B5 01 00 F4 03 04 00 9D 1C 75 66 B6 04 01 00 00 E0 07 FB 20 A3 B4 65 64 [13:51:49]CommunicateWithHost err = 0 [13:51:49]CheckOFDResponse [13:51:49]1017 (14) - 77093643461234 [13:51:49]1041 (16) - 0000000000875083 [13:51:49]1040 (4) - 111940 [13:51:49]1012 (4) - 21.06.2024 06:24 [13:51:49]1206 (1) - 0 [13:51:49]OFD Sender: Remove packet 111940 [13:51:49]ProducePacketName [13:51:49]name=ofd_packets/00111940 [13:51:49]NVStorageDeleteData [13:51:49]Write to MH i2c: 01 00 00 18 02 1A [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: 01 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: 01 07 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 D4 0C 01 [13:51:49]RasterBufferAndPrint [13:51:49]line [13:51:49]line [13:51:49]line [13:51:49]line [13:51:49]line [13:51:49]written 0, free lines is 3290 [13:51:49]MH_Cut [13:51:49]Write to MH i2c: D1 01 00 1F 02 01 F3 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: D1 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: D1 01 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: D1 01 00 1F 02 00 F2 [13:51:49]Write to MH i2c: 01 00 00 20 02 22 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:50]OFD Sender: No OFD packet to send [13:51:50]*** Cut start [13:51:50]*** Partial cut [13:51:50]*** CUTSNS_PIN = 1 [13:51:50]*** CUTSNS_PIN = 0 [13:51:50]*** Brake cut motor [13:51:51]Read from MH i2c: 01 [13:51:51]MH_I2C_Read... [13:51:51]*** Stop cut motor [13:51:51]*** Cut end [13:51:51]Read from MH i2c: 01 07 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [13:51:51]process_action close_receipt done [13:51:51]requested_data is exist [13:51:51]produce_requested_data [13:51:51]requested_item fm.sn is exist - process it [13:51:51]wFMCommunicate request_size=4 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 11 00 00 [13:51:51]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 17 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EF [13:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:51:51]wFMCommunicate OK [13:51:51]requested_item fd.num is exist - process it [13:51:51]SAM_PROTO_GetFieldsCounters [13:51:51]wFMCommunicate request_size=4 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 13 00 00 [13:51:51]Write to MH i2c: E2 08 00 22 02 80 13 00 00 00 00 00 00 A0 [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 62 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 62 00 22 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 44 B5 01 00 0E 04 04 00 86 01 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 86 [13:51:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 44 B5 01 00 0E 04 04 00 86 01 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 [13:51:51]wFMCommunicate OK [13:51:51]SAM_PROTO_GetFieldsCounters done [13:51:51]requested_item shift.num is exist - process it [13:51:51]requested_item shift.opened is exist - process it [13:51:51]req_shift_opened [13:51:51]FM_GetShiftState [13:51:51]SAM_PROTO_GetShiftState [13:51:51]wFMCommunicate request_size=4 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 13 01 00 [13:51:51]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 0E 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1F [13:51:51]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:51:51]wFMCommunicate OK [13:51:51]SAM_PROTO_GetShiftState done [13:51:51]FM_GetShiftState done [13:51:51]req_shift_opened done [13:51:51]requested_item shift.open_date is exist - process it [13:51:51]req_shift_open_date [13:51:51]req_shift_open_date done [13:51:51]produce_requested_data done [13:51:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111940,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:51:51]process_action_free close_receipt [13:51:51]json_value_free [13:51:51]json_value_free done [13:51:51]process_json_proto returns [13:51:51]Send response to host [13:51:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111940,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:51:51]free response buf [13:51:51]execute_script done [13:51:51]execute_script returns [13:51:51]free content buf [13:51:51]Sock 9.Close socket [13:51:51]Sock 9.Thread stoped [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:23]accept exits with 7 [13:53:23]New connection [13:53:23]New thread 3066731876 created [13:53:23]Thread 3066875236 joined [13:53:23]Waiting for new connection... [13:53:23] Sock 7.Parse request [13:53:23]Sock 7.Check first char [13:53:23]Sock 7.First char is OK [13:53:23]request: POST /json_proto HTTP/1.0 [13:53:23]Method: POST [13:53:23]URL: /json_proto [13:53:23]Method is POST - this is cgi request [13:53:23]url: /json_proto [13:53:23]query_string will be loaded in cgi processing [13:53:23]execute_cgi json_proto POST (null) [13:53:23]execute_cgi path=json_proto method=POST [13:53:23]POST find Content-Length [13:53:23]Host: 172.17.59.68:8080 [13:53:23]Content-Length: 679 [13:53:23]Content-Type: application/json [13:53:23] [13:53:23]POST finish read [13:53:23]Found Content-Length = 679 [13:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "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" ] } } [13:53:23]execute_script... [13:53: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)320588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "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" ] } } [13:53:23]POST & json_proto [13:53:23]process_json_proto [13:53:23]json parsed OK: [13:53:23]protocol is kg_v1.0 [13:53:23]action value=close_receipt [13:53:23]process_action close_receipt [13:53:23]cmd_close_receipt [13:53:23]MH_GetDate [13:53:23]Write to MH i2c: F0 00 00 24 02 15 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: F0 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: F0 09 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: F0 09 00 24 02 00 D4 85 75 66 BC EC 60 65 BF [13:53:23]GetLastDocTimeStamp 1718977908 [13:53:23]current date 1718978004 [13:53:23]FM_GetShiftState [13:53:23]SAM_PROTO_GetShiftState [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 13 01 00 [13:53:23]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 0E 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 21 [13:53:23]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:53:23]wFMCommunicate OK [13:53:23]SAM_PROTO_GetShiftState done [13:53:23]FM_GetShiftState done [13:53:23]opened in 1718933695 [13:53:23]opened+sec_in_day 1719020095 [13:53:23]quantity*price = 150028 [13:53:23]sum+1 = 150029 [13:53:23]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.28 袠孝袨袚袨: 1500.00 袙薪械褋械薪芯: 1500.00 小袛袗效袗: 0.00 袧小袩 1% : 13.28 袧袛小 12% : 159.32 袧邪谢懈褔薪褘屑懈: 1500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 109 21.06.2024 13:53 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111941 肖袩袛: 30829047737495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135324&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111941&fm=30829047737495&tin=02508201610067®Number=0000000000092771&sum=150000 [13:53:24]StoreToDocumentArchive [13:53:24]shift 390 fd 111941 [13:53:24]save to /storage/0390/doc_00111941 [13:53:24]save last doc name /storage/0390/doc_00111941 to /storage/kkm_last_doc_name [13:53:24]save OK [13:53:24]Clear old archive folders... [13:53:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:53:24]tlvbuf is 0033D000 [13:53:24]SAM_PROTO_ClearQueue [13:53:24]wFMCommunicate request_size=4 [13:53:24]MH_SAM_APDU [13:53:24]CAPDU: 80 09 00 00 [13:53:24]Write to MH i2c: E2 08 00 32 02 80 09 00 00 00 00 00 00 A6 [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:24]Read from MH i2c: E2 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 03 00 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [13:53:24]RAPDU: 90 00 [13:53:24]wFMCommunicate OK [13:53:24]SAM_PROTO_ClearQueue done [13:53:24]KKMCreateOFDPacket [13:53:24]OFDProtocolAddRootSTLVToBuf [13:53:24]FM_MakeSignedData [13:53:24]FM_MakeSignedData [13:53:24]SAM_PROTO_SignData [13:53:24]wFMCommunicate request_size=4 [13:53:24]MH_SAM_APDU [13:53:24]CAPDU: 80 0D 01 02 [13:53:24]Write to MH i2c: E2 08 00 33 02 80 0D 01 02 00 00 00 00 AE [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:25]Read from MH i2c: E2 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 03 00 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [13:53:25]RAPDU: 90 00 [13:53:25]wFMCommunicate OK [13:53:25]wFMCommunicate request_size=255 [13:53:25]MH_SAM_APDU [13:53:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 6D 00 00 00 F4 03 04 00 D4 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B5 01 00 35 04 06 00 1C 09 F2 70 [13:53:25]Write to MH i2c: E2 02 01 34 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 6D 00 00 00 F4 03 04 00 D4 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B5 01 00 35 04 06 00 1C 09 F2 70 00 00 7C [13:53:25]Write i2c OK [13:53:25]MH_I2C_Read... [13:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:25]Read from MH i2c: E2 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 03 00 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [13:53:25]RAPDU: 90 00 [13:53:25]wFMCommunicate OK [13:53:25]wFMCommunicate request_size=7 [13:53:25]MH_SAM_APDU [13:53:25]CAPDU: 80 0D 02 02 02 6C 97 [13:53:25]Write to MH i2c: E2 0A 00 35 02 80 0D 02 02 02 00 6C 97 00 00 B8 [13:53:25]Write i2c OK [13:53:25]MH_I2C_Read... [13:53:25]OFD Sender: No OFD packet to send [13:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:25]Read from MH i2c: E2 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 03 00 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [13:53:25]RAPDU: 90 00 [13:53:25]wFMCommunicate OK [13:53:25]wFMCommunicate request_size=4 [13:53:25]MH_SAM_APDU [13:53:25]CAPDU: 80 0D 03 02 [13:53:25]Write to MH i2c: E2 08 00 36 02 80 0D 03 02 00 00 00 00 B3 [13:53:25]Write i2c OK [13:53:25]MH_I2C_Read... [13:53:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:25]Read from MH i2c: E2 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 0B 00 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 0B 00 36 02 00 54 7C 5D 16 85 05 61 5C 90 00 3E [13:53:25]RAPDU: 54 7C 5D 16 85 05 61 5C 90 00 [13:53:25]wFMCommunicate OK [13:53:25]SAM_PROTO_SignData done [13:53:25]FM_MakeSignedData done [13:53:25]CreateOFDProtocolMessage [13:53:25]wFMCommunicate request_size=4 [13:53:25]MH_SAM_APDU [13:53:25]CAPDU: 80 11 00 00 [13:53:25]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [13:53:25]Write i2c OK [13:53:25]MH_I2C_Read... [13:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:25]Read from MH i2c: E2 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 17 00 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 05 [13:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:53:25]wFMCommunicate OK [13:53:25]CreateOFDProtocolMessage done [13:53:25]OFDSenderStorePacket 111941 [13:53:25]StoreOFDPacket docnum=111941 [13:53:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B4 02 04 01 49 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 6D 00 00 00 F4 03 04 00 D4 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B5 01 00 35 04 06 00 1C 09 F2 70 6C 97 54 7C 5D 16 85 05 61 5C [13:53:25]CheckFolder [13:53:25]dirname=/storage/ofd_packets [13:53:25]CheckFolder done [13:53:25]ProducePacketName [13:53:25]name=ofd_packets/00111941 [13:53:25]NVStorageSaveData ofd_packets/00111941 [13:53:25]File name is /storage/ofd_packets/00111941 [13:53:25]Write 298 bytes [13:53:25]NVStorageSaveData done [13:53:25]OFDSenderStorePacket done [13:53:25]KKMCreateOFDPacket done [13:53:25]NVStorageSaveData kkm_last_timestamp [13:53:25]File name is /storage/kkm_last_timestamp [13:53:25]Write 4 bytes [13:53:25]NVStorageSaveData done [13:53:25]ExternCall_PrintAddStr [13:53:25]wPrintStart [13:53:25]Write to MH i2c: 01 00 00 38 02 3A [13:53:25]Write i2c OK [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: 01 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: 01 07 00 [13:53:25]MH_I2C_Read... [13:53:25]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 FF 0F 4F [13:53:25]RasterBufferAndPrint [13:53:25]line 小褔械褌 N : (1)320588 [13:53:25]line 袠袧袧: 02508201610067 [13:53:25]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [13:53:25]line 袩袪袨袛袗袞袗 [13:53:25]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [13:53:25]line 孝芯胁邪褉: 2710194210 [13:53:25]line 袛孝-袣-5 [13:53:25]line 20.580 * 72.90 [13:53:25]line = 1500.28 [13:53:25]line 袧袛小 12% 袧小袩 1% [13:53:25]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [13:53:25]line 袨袣袪校袚袥袝袧袠袝: -0.28 [13:53:25]line 袠孝袨袚袨: 1500.00 [13:53:25]line 袙薪械褋械薪芯: 1500.00 [13:53:25]line 小袛袗效袗: 0.00 [13:53:25]line 袧小袩 1% : 13.28 [13:53:25]line 袧袛小 12% : 159.32 [13:53:25]line 袧邪谢懈褔薪褘屑懈: 1500.00 [13:53:25]line 袘械蟹薪邪谢.: 0.00 [13:53:25]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [13:53:25]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [13:53:25]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [13:53:25]line 效械泻 109 21.06.2024 13:53 [13:53:25]line 小屑械薪邪: 390 肖肖袛: 1.0 [13:53:25]line 袟袧袦: 0300000198 [13:53:25]line 袪袧袦: 0000000000092771 [13:53:25]line 袙械褉褋懈褟 袣袣袦: 001 [13:53:25]line 肖袦: 0000000000875083 [13:53:25]line 肖袛: 111941 [13:53:25]line 肖袩袛: 30829047737495 [13:53:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135324&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111941&fm=30829047737495&tin=02508201610067®Number=0000000000092771&sum=150000 [13:53:25]OFD Sender: Processing packet 111941 [packets to send 38, broken 37] [13:53:25]ProducePacketName [13:53:25]name=ofd_packets/00111941 [13:53:25]OFD Sender: To server: 嚂鰌G, [13:53:25]CommunicateWithHost lk.salyk.kg:30040 [13:53:25]ConnectInit lk.salyk.kg [13:53:25]written 0, free lines is 4095 [13:53:25]Connected sock=9 [13:53:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B4 02 04 01 49 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 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 3C 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 6D 00 00 00 F4 03 04 00 D4 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B5 01 00 35 04 06 00 1C 09 F2 70 6C 97 54 7C 5D 16 85 05 61 5C [13:53:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 23 CA 47 00 EF D5 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 30 38 37 35 30 38 33 10 04 04 00 45 B5 01 00 F4 03 04 00 FE 1C 75 66 B6 04 01 00 00 CF CA A9 FA C6 CA 49 71 [13:53:26]CommunicateWithHost err = 0 [13:53:26]CheckOFDResponse [13:53:26]1017 (14) - 77093643461234 [13:53:26]1041 (16) - 0000000000875083 [13:53:26]1040 (4) - 111941 [13:53:26]1012 (4) - 21.06.2024 06:26 [13:53:26]1206 (1) - 0 [13:53:26]OFD Sender: Remove packet 111941 [13:53:26]ProducePacketName [13:53:26]name=ofd_packets/00111941 [13:53:26]NVStorageDeleteData [13:53:26]Write to MH i2c: 01 00 00 63 02 65 [13:53:26]Write i2c OK [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: 01 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: 01 07 00 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 EB 0C 63 [13:53:26]RasterBufferAndPrint [13:53:26]line [13:53:26]line [13:53:26]line [13:53:26]line [13:53:26]line [13:53:26]written 0, free lines is 3313 [13:53:26]MH_Cut [13:53:26]Write to MH i2c: D1 01 00 6A 02 01 3E [13:53:26]Write i2c OK [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: D1 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: D1 01 00 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: D1 01 00 6A 02 00 3D [13:53:26]Write to MH i2c: 01 00 00 6B 02 6D [13:53:26]Write i2c OK [13:53:26]MH_I2C_Read... [13:53:26]OFD Sender: No OFD packet to send [13:53:26]*** Cut start [13:53:26]*** Partial cut [13:53:26]*** CUTSNS_PIN = 1 [13:53:27]*** CUTSNS_PIN = 0 [13:53:27]*** Brake cut motor [13:53:27]Read from MH i2c: 01 [13:53:27]MH_I2C_Read... [13:53:27]*** Stop cut motor [13:53:27]*** Cut end [13:53:27]Read from MH i2c: 01 07 00 [13:53:27]MH_I2C_Read... [13:53:27]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [13:53:27]process_action close_receipt done [13:53:27]requested_data is exist [13:53:27]produce_requested_data [13:53:27]requested_item fm.sn is exist - process it [13:53:27]wFMCommunicate request_size=4 [13:53:27]MH_SAM_APDU [13:53:27]CAPDU: 80 11 00 00 [13:53:27]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [13:53:27]Write i2c OK [13:53:27]MH_I2C_Read... [13:53:27]Read from MH i2c: E2 [13:53:27]MH_I2C_Read... [13:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:27]Read from MH i2c: E2 17 00 [13:53:27]MH_I2C_Read... [13:53:27]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3A [13:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:53:27]wFMCommunicate OK [13:53:27]requested_item fd.num is exist - process it [13:53:27]SAM_PROTO_GetFieldsCounters [13:53:27]wFMCommunicate request_size=4 [13:53:27]MH_SAM_APDU [13:53:27]CAPDU: 80 13 00 00 [13:53:27]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [13:53:27]Write i2c OK [13:53:27]MH_I2C_Read... [13:53:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:27]Read from MH i2c: E2 [13:53:27]MH_I2C_Read... [13:53:27]Read from MH i2c: E2 62 00 [13:53:27]MH_I2C_Read... [13:53:27]Read from MH i2c: E2 62 00 6D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 45 B5 01 00 0E 04 04 00 86 01 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 D5 [13:53:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 45 B5 01 00 0E 04 04 00 86 01 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 [13:53:27]wFMCommunicate OK [13:53:27]SAM_PROTO_GetFieldsCounters done [13:53:27]requested_item shift.num is exist - process it [13:53:27]requested_item shift.opened is exist - process it [13:53:27]req_shift_opened [13:53:27]FM_GetShiftState [13:53:27]SAM_PROTO_GetShiftState [13:53:27]wFMCommunicate request_size=4 [13:53:27]MH_SAM_APDU [13:53:27]CAPDU: 80 13 01 00 [13:53:27]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [13:53:27]Write i2c OK [13:53:27]MH_I2C_Read... [13:53:27]Read from MH i2c: E2 [13:53:27]MH_I2C_Read... [13:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:27]Read from MH i2c: E2 0E 00 [13:53:27]MH_I2C_Read... [13:53:27]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 6A [13:53:27]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:53:27]wFMCommunicate OK [13:53:27]SAM_PROTO_GetShiftState done [13:53:27]FM_GetShiftState done [13:53:27]req_shift_opened done [13:53:27]requested_item shift.open_date is exist - process it [13:53:27]req_shift_open_date [13:53:27]req_shift_open_date done [13:53:27]produce_requested_data done [13:53:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111941,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:53:27]process_action_free close_receipt [13:53:27]json_value_free [13:53:27]json_value_free done [13:53:27]process_json_proto returns [13:53:27]Send response to host [13:53:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111941,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:53:27]free response buf [13:53:27]execute_script done [13:53:27]execute_script returns [13:53:27]free content buf [13:53:27]Sock 7.Close socket [13:53:27]Sock 7.Thread stoped [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:46]accept exits with 10 [13:53:46]New connection [13:53:46]New thread 3066875236 created [13:53:46]Thread 3066731876 joined [13:53:46]Waiting for new connection... [13:53:46] Sock 10.Parse request [13:53:46]Sock 10.Check first char [13:53:46]Sock 10.First char is OK [13:53:46]request: POST /json_proto HTTP/1.0 [13:53:46]Method: POST [13:53:46]URL: /json_proto [13:53:46]Method is POST - this is cgi request [13:53:46]url: /json_proto [13:53:46]query_string will be loaded in cgi processing [13:53:46]execute_cgi json_proto POST (null) [13:53:46]execute_cgi path=json_proto method=POST [13:53:46]POST find Content-Length [13:53:46]Host: 172.17.59.68:8080 [13:53:46]Content-Length: 677 [13:53:46]Content-Type: application/json [13:53:46] [13:53:46]POST finish read [13:53:46]Found Content-Length = 677 [13:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:53:46]execute_script... [13:53: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)320589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:53:46]POST & json_proto [13:53:46]process_json_proto [13:53:46]json parsed OK: [13:53:46]protocol is kg_v1.0 [13:53:46]action value=close_receipt [13:53:46]process_action close_receipt [13:53:46]cmd_close_receipt [13:53:46]MH_GetDate [13:53:46]Write to MH i2c: F0 00 00 6F 02 60 [13:53:46]Write i2c OK [13:53:46]MH_I2C_Read... [13:53:46]Read from MH i2c: F0 [13:53:46]MH_I2C_Read... [13:53:46]Read from MH i2c: F0 09 00 [13:53:46]MH_I2C_Read... [13:53:46]Read from MH i2c: F0 09 00 6F 02 00 EB 85 75 66 BC EC 60 65 21 [13:53:46]GetLastDocTimeStamp 1718978004 [13:53:46]current date 1718978027 [13:53:46]FM_GetShiftState [13:53:46]SAM_PROTO_GetShiftState [13:53:46]wFMCommunicate request_size=4 [13:53:46]MH_SAM_APDU [13:53:46]CAPDU: 80 13 01 00 [13:53:46]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [13:53:46]Write i2c OK [13:53:46]MH_I2C_Read... [13:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:46]Read from MH i2c: E2 [13:53:46]MH_I2C_Read... [13:53:46]Read from MH i2c: E2 0E 00 [13:53:46]MH_I2C_Read... [13:53:46]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 6C [13:53:46]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:53:46]wFMCommunicate OK [13:53:46]SAM_PROTO_GetShiftState done [13:53:46]FM_GetShiftState done [13:53:46]opened in 1718933695 [13:53:46]opened+sec_in_day 1719020095 [13:53:46]quantity*price = 40039 [13:53:46]sum+1 = 40040 [13:53:46]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.39 袠孝袨袚袨: 400.00 袙薪械褋械薪芯: 400.00 小袛袗效袗: 0.00 袧小袩 1% : 3.54 袧袛小 12% : 42.52 袧邪谢懈褔薪褘屑懈: 400.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 110 21.06.2024 13:53 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111942 肖袩袛: 213682388110334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135347&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111942&fm=213682388110334&tin=02508201610067®Number=0000000000092771&sum=40000 [13:53:48]StoreToDocumentArchive [13:53:48]shift 390 fd 111942 [13:53:48]save to /storage/0390/doc_00111942 [13:53:48]save last doc name /storage/0390/doc_00111942 to /storage/kkm_last_doc_name [13:53:48]save OK [13:53:48]Clear old archive folders... [13:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:48]tlvbuf is 00336A90 [13:53:48]SAM_PROTO_ClearQueue [13:53:48]wFMCommunicate request_size=4 [13:53:48]MH_SAM_APDU [13:53:48]CAPDU: 80 09 00 00 [13:53:48]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [13:53:48]Write i2c OK [13:53:48]MH_I2C_Read... [13:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:48]Read from MH i2c: E2 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: E2 03 00 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [13:53:48]RAPDU: 90 00 [13:53:48]wFMCommunicate OK [13:53:48]SAM_PROTO_ClearQueue done [13:53:48]KKMCreateOFDPacket [13:53:48]OFDProtocolAddRootSTLVToBuf [13:53:48]FM_MakeSignedData [13:53:48]FM_MakeSignedData [13:53:48]SAM_PROTO_SignData [13:53:48]wFMCommunicate request_size=4 [13:53:48]MH_SAM_APDU [13:53:48]CAPDU: 80 0D 01 02 [13:53:48]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [13:53:48]Write i2c OK [13:53:48]MH_I2C_Read... [13:53:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:48]Read from MH i2c: E2 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: E2 03 00 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [13:53:48]RAPDU: 90 00 [13:53:48]wFMCommunicate OK [13:53:48]wFMCommunicate request_size=255 [13:53:48]MH_SAM_APDU [13:53:48]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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 EB 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B5 01 00 35 04 06 00 C2 [13:53:48]Write to MH i2c: E2 02 01 7F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 EB 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B5 01 00 35 04 06 00 C2 00 00 79 [13:53:48]Write i2c OK [13:53:48]MH_I2C_Read... [13:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:48]Read from MH i2c: E2 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: E2 03 00 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [13:53:48]RAPDU: 90 00 [13:53:48]wFMCommunicate OK [13:53:48]wFMCommunicate request_size=10 [13:53:48]MH_SAM_APDU [13:53:48]CAPDU: 80 0D 02 02 05 57 CE D6 8B FE [13:53:48]Write to MH i2c: E2 0D 00 80 02 80 0D 02 02 05 00 57 CE D6 8B FE 00 00 8A [13:53:48]Write i2c OK [13:53:48]MH_I2C_Read... [13:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:48]Read from MH i2c: E2 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: E2 03 00 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [13:53:48]RAPDU: 90 00 [13:53:48]wFMCommunicate OK [13:53:48]wFMCommunicate request_size=4 [13:53:48]MH_SAM_APDU [13:53:48]CAPDU: 80 0D 03 02 [13:53:48]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [13:53:48]Write i2c OK [13:53:48]MH_I2C_Read... [13:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:48]Read from MH i2c: E2 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: E2 0B 00 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: E2 0B 00 81 02 00 62 FC 8D D8 91 41 1E 02 90 00 B4 [13:53:48]RAPDU: 62 FC 8D D8 91 41 1E 02 90 00 [13:53:48]wFMCommunicate OK [13:53:48]SAM_PROTO_SignData done [13:53:48]FM_MakeSignedData done [13:53:48]CreateOFDProtocolMessage [13:53:48]wFMCommunicate request_size=4 [13:53:48]MH_SAM_APDU [13:53:48]CAPDU: 80 11 00 00 [13:53:48]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [13:53:48]Write i2c OK [13:53:48]MH_I2C_Read... [13:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:48]Read from MH i2c: E2 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: E2 17 00 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 50 [13:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:53:48]wFMCommunicate OK [13:53:48]CreateOFDProtocolMessage done [13:53:48]OFDSenderStorePacket 111942 [13:53:48]StoreOFDPacket docnum=111942 [13:53:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 AF 07 01 B7 EB 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 EB 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B5 01 00 35 04 06 00 C2 57 CE D6 8B FE 62 FC 8D D8 91 41 1E 02 [13:53:48]CheckFolder [13:53:48]dirname=/storage/ofd_packets [13:53:48]CheckFolder done [13:53:48]ProducePacketName [13:53:48]name=ofd_packets/00111942 [13:53:48]NVStorageSaveData ofd_packets/00111942 [13:53:48]File name is /storage/ofd_packets/00111942 [13:53:48]Write 301 bytes [13:53:48]NVStorageSaveData done [13:53:48]OFDSenderStorePacket done [13:53:48]KKMCreateOFDPacket done [13:53:48]NVStorageSaveData kkm_last_timestamp [13:53:48]File name is /storage/kkm_last_timestamp [13:53:48]Write 4 bytes [13:53:48]NVStorageSaveData done [13:53:48]ExternCall_PrintAddStr [13:53:48]wPrintStart [13:53:48]Write to MH i2c: 01 00 00 83 02 85 [13:53:48]Write i2c OK [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: 01 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: 01 07 00 [13:53:48]MH_I2C_Read... [13:53:48]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [13:53:48]RasterBufferAndPrint [13:53:48]line 小褔械褌 N : (1)320589 [13:53:48]line 袠袧袧: 02508201610067 [13:53:48]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [13:53:48]line 袩袪袨袛袗袞袗 [13:53:48]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [13:53:48]line 孝芯胁邪褉: 2710124130 [13:53:48]line 袗懈-92-袣-5 [13:53:48]line 6.030 * 66.40 [13:53:48]line = 400.39 [13:53:48]line 袧袛小 12% 袧小袩 1% [13:53:48]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [13:53:48]line 袨袣袪校袚袥袝袧袠袝: -0.39 [13:53:48]line 袠孝袨袚袨: 400.00 [13:53:48]line 袙薪械褋械薪芯: 400.00 [13:53:48]line 小袛袗效袗: 0.00 [13:53:48]line 袧小袩 1% : 3.54 [13:53:48]line 袧袛小 12% : 42.52 [13:53:48]line 袧邪谢懈褔薪褘屑懈: 400.00 [13:53:48]line 袘械蟹薪邪谢.: 0.00 [13:53:48]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [13:53:48]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [13:53:48]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [13:53:48]line 效械泻 110 21.06.2024 13:53 [13:53:48]line 小屑械薪邪: 390 肖肖袛: 1.0 [13:53:48]line 袟袧袦: 0300000198 [13:53:48]line 袪袧袦: 0000000000092771 [13:53:48]line 袙械褉褋懈褟 袣袣袦: 001 [13:53:48]line 肖袦: 0000000000875083 [13:53:48]line 肖袛: 111942 [13:53:48]line 肖袩袛: 213682388110334 [13:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135347&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111942&fm=213682388110334&tin=02508201610067®Number=0000000000092771&sum=40000 [13:53:48]OFD Sender: Processing packet 111942 [packets to send 38, broken 37] [13:53:48]ProducePacketName [13:53:48]name=ofd_packets/00111942 [13:53:48]OFD Sender: To server: 嚂鰌G, [13:53:48]CommunicateWithHost lk.salyk.kg:30040 [13:53:48]ConnectInit lk.salyk.kg [13:53:48]written 0, free lines is 4095 [13:53:48]Connected sock=9 [13:53:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 AF 07 01 B7 EB 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 EB 85 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B5 01 00 35 04 06 00 C2 57 CE D6 8B FE 62 FC 8D D8 91 41 1E 02 [13:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5A 38 47 00 C6 69 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 30 38 37 35 30 38 33 10 04 04 00 46 B5 01 00 F4 03 04 00 15 1D 75 66 B6 04 01 00 00 20 24 F3 24 19 BE DD 3A [13:53:49]CommunicateWithHost err = 0 [13:53:49]CheckOFDResponse [13:53:49]1017 (14) - 77093643461234 [13:53:49]1041 (16) - 0000000000875083 [13:53:49]1040 (4) - 111942 [13:53:49]1012 (4) - 21.06.2024 06:26 [13:53:49]1206 (1) - 0 [13:53:49]OFD Sender: Remove packet 111942 [13:53:49]ProducePacketName [13:53:49]name=ofd_packets/00111942 [13:53:49]NVStorageDeleteData [13:53:49]Write to MH i2c: 01 00 00 AE 02 B0 [13:53:49]Write i2c OK [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: 01 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: 01 07 00 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 D4 0C 97 [13:53:49]RasterBufferAndPrint [13:53:49]line [13:53:49]line [13:53:49]line [13:53:49]line [13:53:49]line [13:53:49]written 0, free lines is 3292 [13:53:49]MH_Cut [13:53:49]Write to MH i2c: D1 01 00 B5 02 01 89 [13:53:49]Write i2c OK [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: D1 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: D1 01 00 [13:53:49]MH_I2C_Read... [13:53:49]Read from MH i2c: D1 01 00 B5 02 00 88 [13:53:49]Write to MH i2c: 01 00 00 B6 02 B8 [13:53:49]Write i2c OK [13:53:49]MH_I2C_Read... [13:53:49]OFD Sender: No OFD packet to send [13:53:50]*** Cut start [13:53:50]*** Partial cut [13:53:50]*** CUTSNS_PIN = 1 [13:53:50]*** CUTSNS_PIN = 0 [13:53:50]*** Brake cut motor [13:53:50]Read from MH i2c: 01 [13:53:50]MH_I2C_Read... [13:53:50]*** Stop cut motor [13:53:50]*** Cut end [13:53:50]Read from MH i2c: 01 07 00 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [13:53:50]process_action close_receipt done [13:53:50]requested_data is exist [13:53:50]produce_requested_data [13:53:50]requested_item fm.sn is exist - process it [13:53:50]wFMCommunicate request_size=4 [13:53:50]MH_SAM_APDU [13:53:50]CAPDU: 80 11 00 00 [13:53:50]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [13:53:50]Write i2c OK [13:53:50]MH_I2C_Read... [13:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:50]Read from MH i2c: E2 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: E2 17 00 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 85 [13:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:53:50]wFMCommunicate OK [13:53:50]requested_item fd.num is exist - process it [13:53:50]SAM_PROTO_GetFieldsCounters [13:53:50]wFMCommunicate request_size=4 [13:53:50]MH_SAM_APDU [13:53:50]CAPDU: 80 13 00 00 [13:53:50]Write to MH i2c: E2 08 00 B8 02 80 13 00 00 00 00 00 00 36 [13:53:50]Write i2c OK [13:53:50]MH_I2C_Read... [13:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:50]Read from MH i2c: E2 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: E2 62 00 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: E2 62 00 B8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 46 B5 01 00 0E 04 04 00 86 01 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 24 [13:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 46 B5 01 00 0E 04 04 00 86 01 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 [13:53:50]wFMCommunicate OK [13:53:50]SAM_PROTO_GetFieldsCounters done [13:53:50]requested_item shift.num is exist - process it [13:53:50]requested_item shift.opened is exist - process it [13:53:50]req_shift_opened [13:53:50]FM_GetShiftState [13:53:50]SAM_PROTO_GetShiftState [13:53:50]wFMCommunicate request_size=4 [13:53:50]MH_SAM_APDU [13:53:50]CAPDU: 80 13 01 00 [13:53:50]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [13:53:50]Write i2c OK [13:53:50]MH_I2C_Read... [13:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:50]Read from MH i2c: E2 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: E2 0E 00 [13:53:50]MH_I2C_Read... [13:53:50]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B5 [13:53:50]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:53:50]wFMCommunicate OK [13:53:50]SAM_PROTO_GetShiftState done [13:53:50]FM_GetShiftState done [13:53:50]req_shift_opened done [13:53:50]requested_item shift.open_date is exist - process it [13:53:50]req_shift_open_date [13:53:50]req_shift_open_date done [13:53:50]produce_requested_data done [13:53:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111942,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:53:50]process_action_free close_receipt [13:53:50]json_value_free [13:53:50]json_value_free done [13:53:50]process_json_proto returns [13:53:50]Send response to host [13:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111942,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:53:50]free response buf [13:53:50]execute_script done [13:53:50]execute_script returns [13:53:50]free content buf [13:53:50]Sock 10.Close socket [13:53:50]Sock 10.Thread stoped [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:21]accept exits with 7 [13:55:21]New connection [13:55:21]New thread 3066731876 created [13:55:21]Thread 3066875236 joined [13:55:21]Waiting for new connection... [13:55:21] Sock 7.Parse request [13:55:21]Sock 7.Check first char [13:55:21]Sock 7.First char is OK [13:55:21]request: POST /json_proto HTTP/1.0 [13:55:21]Method: POST [13:55:21]URL: /json_proto [13:55:21]Method is POST - this is cgi request [13:55:21]url: /json_proto [13:55:21]query_string will be loaded in cgi processing [13:55:21]execute_cgi json_proto POST (null) [13:55:21]execute_cgi path=json_proto method=POST [13:55:21]POST find Content-Length [13:55:21]Host: 172.17.59.68:8080 [13:55:21]Content-Length: 678 [13:55:21]Content-Type: application/json [13:55:21] [13:55:21]POST finish read [13:55:21]Found Content-Length = 678 [13:55:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [13:55:21]execute_script... [13:55: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)320590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [13:55:21]POST & json_proto [13:55:21]process_json_proto [13:55:21]json parsed OK: [13:55:21]protocol is kg_v1.0 [13:55:21]action value=close_receipt [13:55:21]process_action close_receipt [13:55:21]cmd_close_receipt [13:55:21]MH_GetDate [13:55:21]Write to MH i2c: F0 00 00 BA 02 AB [13:55:21]Write i2c OK [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: F0 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: F0 09 00 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: F0 09 00 BA 02 00 4A 86 75 66 BC EC 60 65 CC [13:55:21]GetLastDocTimeStamp 1718978027 [13:55:21]current date 1718978122 [13:55:21]FM_GetShiftState [13:55:21]SAM_PROTO_GetShiftState [13:55:21]wFMCommunicate request_size=4 [13:55:21]MH_SAM_APDU [13:55:21]CAPDU: 80 13 01 00 [13:55:21]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [13:55:21]Write i2c OK [13:55:21]MH_I2C_Read... [13:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:21]Read from MH i2c: E2 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 0E 00 [13:55:21]MH_I2C_Read... [13:55:21]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B7 [13:55:21]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:55:21]wFMCommunicate OK [13:55:21]SAM_PROTO_GetShiftState done [13:55:21]FM_GetShiftState done [13:55:21]opened in 1718933695 [13:55:21]opened+sec_in_day 1719020095 [13:55:21]quantity*price = 70052 [13:55:21]sum+1 = 70053 [13:55:21]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.52 袠孝袨袚袨: 700.00 袙薪械褋械薪芯: 700.00 小袛袗效袗: 0.00 袧小袩 1% : 6.20 袧袛小 12% : 74.39 袧邪谢懈褔薪褘屑懈: 700.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 111 21.06.2024 13:55 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111943 肖袩袛: 67365940362662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135522&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111943&fm=67365940362662&tin=02508201610067®Number=0000000000092771&sum=70000 [13:55:22]StoreToDocumentArchive [13:55:22]shift 390 fd 111943 [13:55:22]save to /storage/0390/doc_00111943 [13:55:22]save last doc name /storage/0390/doc_00111943 to /storage/kkm_last_doc_name [13:55:22]save OK [13:55:22]Clear old archive folders... [13:55:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:22]tlvbuf is 00337BC0 [13:55:22]SAM_PROTO_ClearQueue [13:55:22]wFMCommunicate request_size=4 [13:55:22]MH_SAM_APDU [13:55:22]CAPDU: 80 09 00 00 [13:55:22]Write to MH i2c: E2 08 00 C8 02 80 09 00 00 00 00 00 00 3C [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:22]Read from MH i2c: E2 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 03 00 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [13:55:22]RAPDU: 90 00 [13:55:22]wFMCommunicate OK [13:55:22]SAM_PROTO_ClearQueue done [13:55:22]KKMCreateOFDPacket [13:55:22]OFDProtocolAddRootSTLVToBuf [13:55:22]FM_MakeSignedData [13:55:22]FM_MakeSignedData [13:55:22]SAM_PROTO_SignData [13:55:22]wFMCommunicate request_size=4 [13:55:22]MH_SAM_APDU [13:55:22]CAPDU: 80 0D 01 02 [13:55:22]Write to MH i2c: E2 08 00 C9 02 80 0D 01 02 00 00 00 00 44 [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [13:55:23]RAPDU: 90 00 [13:55:23]wFMCommunicate OK [13:55:23]wFMCommunicate request_size=255 [13:55:23]MH_SAM_APDU [13:55:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 6F 00 00 00 F4 03 04 00 4A 86 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B5 01 00 35 04 06 00 3D [13:55:23]Write to MH i2c: E2 02 01 CA 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 6F 00 00 00 F4 03 04 00 4A 86 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B5 01 00 35 04 06 00 3D 00 00 E5 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [13:55:23]RAPDU: 90 00 [13:55:23]wFMCommunicate OK [13:55:23]wFMCommunicate request_size=10 [13:55:23]MH_SAM_APDU [13:55:23]CAPDU: 80 0D 02 02 05 44 DA F1 FD A6 [13:55:23]Write to MH i2c: E2 0D 00 CB 02 80 0D 02 02 05 00 44 DA F1 FD A6 00 00 03 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [13:55:23]RAPDU: 90 00 [13:55:23]wFMCommunicate OK [13:55:23]wFMCommunicate request_size=4 [13:55:23]MH_SAM_APDU [13:55:23]CAPDU: 80 0D 03 02 [13:55:23]Write to MH i2c: E2 08 00 CC 02 80 0D 03 02 00 00 00 00 49 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 0B 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 0B 00 CC 02 00 AA F9 CA 34 A2 2A C6 EF 90 00 6C [13:55:23]RAPDU: AA F9 CA 34 A2 2A C6 EF 90 00 [13:55:23]wFMCommunicate OK [13:55:23]SAM_PROTO_SignData done [13:55:23]FM_MakeSignedData done [13:55:23]CreateOFDProtocolMessage [13:55:23]wFMCommunicate request_size=4 [13:55:23]MH_SAM_APDU [13:55:23]CAPDU: 80 11 00 00 [13:55:23]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 17 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [13:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:55:23]wFMCommunicate OK [13:55:23]CreateOFDProtocolMessage done [13:55:23]OFDSenderStorePacket 111943 [13:55:23]StoreOFDPacket docnum=111943 [13:55:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FE 87 07 01 55 01 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 6F 00 00 00 F4 03 04 00 4A 86 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B5 01 00 35 04 06 00 3D 44 DA F1 FD A6 AA F9 CA 34 A2 2A C6 EF [13:55:23]CheckFolder [13:55:23]dirname=/storage/ofd_packets [13:55:23]CheckFolder done [13:55:23]ProducePacketName [13:55:23]name=ofd_packets/00111943 [13:55:23]NVStorageSaveData ofd_packets/00111943 [13:55:23]File name is /storage/ofd_packets/00111943 [13:55:23]Write 301 bytes [13:55:23]NVStorageSaveData done [13:55:23]OFDSenderStorePacket done [13:55:23]KKMCreateOFDPacket done [13:55:23]NVStorageSaveData kkm_last_timestamp [13:55:23]File name is /storage/kkm_last_timestamp [13:55:23]Write 4 bytes [13:55:23]NVStorageSaveData done [13:55:23]ExternCall_PrintAddStr [13:55:23]wPrintStart [13:55:23]Write to MH i2c: 01 00 00 CE 02 D0 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: 01 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: 01 07 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: 01 07 00 CE 02 00 00 00 00 00 FF 0F E5 [13:55:23]RasterBufferAndPrint [13:55:23]line 小褔械褌 N : (1)320590 [13:55:23]line 袠袧袧: 02508201610067 [13:55:23]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [13:55:23]line 袩袪袨袛袗袞袗 [13:55:23]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [13:55:23]line 孝芯胁邪褉: 2710124130 [13:55:23]line 袗懈-92-袣-5 [13:55:23]line 10.550 * 66.40 [13:55:23]line = 700.52 [13:55:23]line 袧袛小 12% 袧小袩 1% [13:55:23]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [13:55:23]line 袨袣袪校袚袥袝袧袠袝: -0.52 [13:55:23]line 袠孝袨袚袨: 700.00 [13:55:23]line 袙薪械褋械薪芯: 700.00 [13:55:23]line 小袛袗效袗: 0.00 [13:55:23]line 袧小袩 1% : 6.20 [13:55:23]line 袧袛小 12% : 74.39 [13:55:23]line 袧邪谢懈褔薪褘屑懈: 700.00 [13:55:23]line 袘械蟹薪邪谢.: 0.00 [13:55:23]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [13:55:23]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [13:55:23]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [13:55:23]line 效械泻 111 21.06.2024 13:55 [13:55:23]line 小屑械薪邪: 390 肖肖袛: 1.0 [13:55:23]line 袟袧袦: 0300000198 [13:55:23]line 袪袧袦: 0000000000092771 [13:55:23]line 袙械褉褋懈褟 袣袣袦: 001 [13:55:23]line 肖袦: 0000000000875083 [13:55:23]line 肖袛: 111943 [13:55:23]line 肖袩袛: 67365940362662 [13:55:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T135522&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111943&fm=67365940362662&tin=02508201610067®Number=0000000000092771&sum=70000 [13:55:23]OFD Sender: Processing packet 111943 [packets to send 38, broken 37] [13:55:23]ProducePacketName [13:55:23]name=ofd_packets/00111943 [13:55:23]OFD Sender: To server: 嚂鰌G, [13:55:23]CommunicateWithHost lk.salyk.kg:30040 [13:55:23]ConnectInit lk.salyk.kg [13:55:23]written 0, free lines is 4095 [13:55:23]Connected sock=10 [13:55:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FE 87 07 01 55 01 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 6F 00 00 00 F4 03 04 00 4A 86 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B5 01 00 35 04 06 00 3D 44 DA F1 FD A6 AA F9 CA 34 A2 2A C6 EF [13:55:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 34 E4 47 00 81 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 30 38 37 35 30 38 33 10 04 04 00 47 B5 01 00 F4 03 04 00 74 1D 75 66 B6 04 01 00 00 19 3A D6 E2 50 C1 C1 DD [13:55:24]CommunicateWithHost err = 0 [13:55:24]CheckOFDResponse [13:55:24]1017 (14) - 77093643461234 [13:55:24]1041 (16) - 0000000000875083 [13:55:24]1040 (4) - 111943 [13:55:24]1012 (4) - 21.06.2024 06:28 [13:55:24]1206 (1) - 0 [13:55:24]OFD Sender: Remove packet 111943 [13:55:24]ProducePacketName [13:55:24]name=ofd_packets/00111943 [13:55:24]NVStorageDeleteData [13:55:24]Write to MH i2c: 01 00 00 F9 02 FB [13:55:24]Write i2c OK [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: 01 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: 01 07 00 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 D9 0C E7 [13:55:24]RasterBufferAndPrint [13:55:24]line [13:55:24]line [13:55:24]line [13:55:24]line [13:55:24]line [13:55:24]written 0, free lines is 3296 [13:55:24]MH_Cut [13:55:24]Write to MH i2c: D1 01 00 00 03 01 D5 [13:55:24]Write i2c OK [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: D1 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: D1 01 00 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: D1 01 00 00 03 00 D4 [13:55:24]Write to MH i2c: 01 00 00 01 03 04 [13:55:24]Write i2c OK [13:55:24]MH_I2C_Read... [13:55:24]OFD Sender: No OFD packet to send [13:55:24]*** Cut start [13:55:24]*** Partial cut [13:55:24]*** CUTSNS_PIN = 1 [13:55:25]*** CUTSNS_PIN = 0 [13:55:25]*** Brake cut motor [13:55:25]Read from MH i2c: 01 [13:55:25]MH_I2C_Read... [13:55:25]*** Stop cut motor [13:55:25]*** Cut end [13:55:25]Read from MH i2c: 01 07 00 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [13:55:25]process_action close_receipt done [13:55:25]requested_data is exist [13:55:25]produce_requested_data [13:55:25]requested_item fm.sn is exist - process it [13:55:25]wFMCommunicate request_size=4 [13:55:25]MH_SAM_APDU [13:55:25]CAPDU: 80 11 00 00 [13:55:25]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [13:55:25]Write i2c OK [13:55:25]MH_I2C_Read... [13:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:25]Read from MH i2c: E2 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: E2 17 00 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: E2 17 00 02 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D1 [13:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:55:25]wFMCommunicate OK [13:55:25]requested_item fd.num is exist - process it [13:55:25]SAM_PROTO_GetFieldsCounters [13:55:25]wFMCommunicate request_size=4 [13:55:25]MH_SAM_APDU [13:55:25]CAPDU: 80 13 00 00 [13:55:25]Write to MH i2c: E2 08 00 03 03 80 13 00 00 00 00 00 00 82 [13:55:25]Write i2c OK [13:55:25]MH_I2C_Read... [13:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:25]Read from MH i2c: E2 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: E2 62 00 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: E2 62 00 03 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 47 B5 01 00 0E 04 04 00 86 01 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 74 [13:55:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 47 B5 01 00 0E 04 04 00 86 01 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 [13:55:25]wFMCommunicate OK [13:55:25]SAM_PROTO_GetFieldsCounters done [13:55:25]requested_item shift.num is exist - process it [13:55:25]requested_item shift.opened is exist - process it [13:55:25]req_shift_opened [13:55:25]FM_GetShiftState [13:55:25]SAM_PROTO_GetShiftState [13:55:25]wFMCommunicate request_size=4 [13:55:25]MH_SAM_APDU [13:55:25]CAPDU: 80 13 01 00 [13:55:25]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [13:55:25]Write i2c OK [13:55:25]MH_I2C_Read... [13:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:25]Read from MH i2c: E2 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: E2 0E 00 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 01 [13:55:25]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [13:55:25]wFMCommunicate OK [13:55:25]SAM_PROTO_GetShiftState done [13:55:25]FM_GetShiftState done [13:55:25]req_shift_opened done [13:55:25]requested_item shift.open_date is exist - process it [13:55:25]req_shift_open_date [13:55:25]req_shift_open_date done [13:55:25]produce_requested_data done [13:55:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111943,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [13:55:25]process_action_free close_receipt [13:55:25]json_value_free [13:55:25]json_value_free done [13:55:25]process_json_proto returns [13:55:25]Send response to host [13:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111943,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [13:55:25]free response buf [13:55:25]execute_script done [13:55:25]execute_script returns [13:55:25]free content buf [13:55:25]Sock 7.Close socket [13:55:25]Sock 7.Thread stoped [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]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:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:53]accept exits with 9 [14:00:53]New connection [14:00:53]New thread 3066875236 created [14:00:53]Thread 3066731876 joined [14:00:53]Waiting for new connection... [14:00:53] Sock 9.Parse request [14:00:53]Sock 9.Check first char [14:00:53]Sock 9.First char is OK [14:00:53]request: POST /json_proto HTTP/1.0 [14:00:53]Method: POST [14:00:53]URL: /json_proto [14:00:53]Method is POST - this is cgi request [14:00:53]url: /json_proto [14:00:53]query_string will be loaded in cgi processing [14:00:53]execute_cgi json_proto POST (null) [14:00:53]execute_cgi path=json_proto method=POST [14:00:53]POST find Content-Length [14:00:53]Host: 172.17.59.68:8080 [14:00:53]Content-Length: 682 [14:00:53]Content-Type: application/json [14:00:53] [14:00:53]POST finish read [14:00:53]Found Content-Length = 682 [14:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [14:00:53]execute_script... [14:00:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [14:00:53]POST & json_proto [14:00:53]process_json_proto [14:00:53]json parsed OK: [14:00:53]protocol is kg_v1.0 [14:00:53]action value=close_receipt [14:00:53]process_action close_receipt [14:00:53]cmd_close_receipt [14:00:53]MH_GetDate [14:00:53]Write to MH i2c: F0 00 00 05 03 F7 [14:00:53]Write i2c OK [14:00:53]MH_I2C_Read... [14:00:53]Read from MH i2c: F0 [14:00:53]MH_I2C_Read... [14:00:53]Read from MH i2c: F0 09 00 [14:00:53]MH_I2C_Read... [14:00:53]Read from MH i2c: F0 09 00 05 03 00 96 87 75 66 BC EC 60 65 65 [14:00:53]GetLastDocTimeStamp 1718978122 [14:00:53]current date 1718978454 [14:00:53]FM_GetShiftState [14:00:53]SAM_PROTO_GetShiftState [14:00:53]wFMCommunicate request_size=4 [14:00:53]MH_SAM_APDU [14:00:53]CAPDU: 80 13 01 00 [14:00:53]Write to MH i2c: E2 08 00 06 03 80 13 01 00 00 00 00 00 86 [14:00:53]Write i2c OK [14:00:53]MH_I2C_Read... [14:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:53]Read from MH i2c: E2 [14:00:53]MH_I2C_Read... [14:00:53]Read from MH i2c: E2 0E 00 [14:00:53]MH_I2C_Read... [14:00:53]Read from MH i2c: E2 0E 00 06 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 03 [14:00:53]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:00:53]wFMCommunicate OK [14:00:53]SAM_PROTO_GetShiftState done [14:00:53]FM_GetShiftState done [14:00:53]opened in 1718933695 [14:00:53]opened+sec_in_day 1719020095 [14:00:53]quantity*price = 100064 [14:00:53]sum+1 = 100066 [14:00:53]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 112 21.06.2024 14:00 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111944 肖袩袛: 80206387978784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T140054&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111944&fm=80206387978784&tin=02508201610067®Number=0000000000092771&sum=100000 [14:00:54]StoreToDocumentArchive [14:00:54]shift 390 fd 111944 [14:00:54]save to /storage/0390/doc_00111944 [14:00:54]save last doc name /storage/0390/doc_00111944 to /storage/kkm_last_doc_name [14:00:54]save OK [14:00:54]Clear old archive folders... [14:00:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:54]tlvbuf is 0043D440 [14:00:54]SAM_PROTO_ClearQueue [14:00:54]wFMCommunicate request_size=4 [14:00:54]MH_SAM_APDU [14:00:54]CAPDU: 80 09 00 00 [14:00:54]Write to MH i2c: E2 08 00 13 03 80 09 00 00 00 00 00 00 88 [14:00:54]OFD Sender: No OFD packet to send [14:00:54]Write i2c OK [14:00:54]MH_I2C_Read... [14:00:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:54]Read from MH i2c: E2 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 03 00 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [14:00:54]RAPDU: 90 00 [14:00:54]wFMCommunicate OK [14:00:54]SAM_PROTO_ClearQueue done [14:00:54]KKMCreateOFDPacket [14:00:54]OFDProtocolAddRootSTLVToBuf [14:00:54]FM_MakeSignedData [14:00:54]FM_MakeSignedData [14:00:54]SAM_PROTO_SignData [14:00:54]wFMCommunicate request_size=4 [14:00:54]MH_SAM_APDU [14:00:54]CAPDU: 80 0D 01 02 [14:00:54]Write to MH i2c: E2 08 00 14 03 80 0D 01 02 00 00 00 00 90 [14:00:54]Write i2c OK [14:00:54]MH_I2C_Read... [14:00:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:54]Read from MH i2c: E2 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 03 00 [14:00:54]MH_I2C_Read... [14:00:54]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [14:00:54]RAPDU: 90 00 [14:00:54]wFMCommunicate OK [14:00:54]wFMCommunicate request_size=255 [14:00:54]MH_SAM_APDU [14:00: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 70 00 00 00 F4 03 04 00 96 87 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B5 01 00 35 04 06 00 48 [14:00:55]Write to MH i2c: E2 02 01 15 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 70 00 00 00 F4 03 04 00 96 87 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B5 01 00 35 04 06 00 48 00 00 C9 [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:55]Read from MH i2c: E2 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: E2 03 00 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [14:00:55]RAPDU: 90 00 [14:00:55]wFMCommunicate OK [14:00:55]wFMCommunicate request_size=10 [14:00:55]MH_SAM_APDU [14:00:55]CAPDU: 80 0D 02 02 05 F2 81 43 A2 20 [14:00:55]Write to MH i2c: E2 0D 00 16 03 80 0D 02 02 05 00 F2 81 43 A2 20 00 00 15 [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:55]Read from MH i2c: E2 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: E2 03 00 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [14:00:55]RAPDU: 90 00 [14:00:55]wFMCommunicate OK [14:00:55]wFMCommunicate request_size=4 [14:00:55]MH_SAM_APDU [14:00:55]CAPDU: 80 0D 03 02 [14:00:55]Write to MH i2c: E2 08 00 17 03 80 0D 03 02 00 00 00 00 95 [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:55]Read from MH i2c: E2 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: E2 0B 00 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: E2 0B 00 17 03 00 17 A6 3E 45 05 3A 5D D7 90 00 49 [14:00:55]RAPDU: 17 A6 3E 45 05 3A 5D D7 90 00 [14:00:55]wFMCommunicate OK [14:00:55]SAM_PROTO_SignData done [14:00:55]FM_MakeSignedData done [14:00:55]CreateOFDProtocolMessage [14:00:55]wFMCommunicate request_size=4 [14:00:55]MH_SAM_APDU [14:00:55]CAPDU: 80 11 00 00 [14:00:55]Write to MH i2c: E2 08 00 18 03 80 11 00 00 00 00 00 00 95 [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:55]Read from MH i2c: E2 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: E2 17 00 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: E2 17 00 18 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E7 [14:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:00:55]wFMCommunicate OK [14:00:55]CreateOFDProtocolMessage done [14:00:55]OFDSenderStorePacket 111944 [14:00:55]StoreOFDPacket docnum=111944 [14:00:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5F F4 07 01 9B EE 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 70 00 00 00 F4 03 04 00 96 87 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B5 01 00 35 04 06 00 48 F2 81 43 A2 20 17 A6 3E 45 05 3A 5D D7 [14:00:55]CheckFolder [14:00:55]dirname=/storage/ofd_packets [14:00:55]CheckFolder done [14:00:55]ProducePacketName [14:00:55]name=ofd_packets/00111944 [14:00:55]NVStorageSaveData ofd_packets/00111944 [14:00:55]File name is /storage/ofd_packets/00111944 [14:00:55]Write 301 bytes [14:00:55]NVStorageSaveData done [14:00:55]OFDSenderStorePacket done [14:00:55]KKMCreateOFDPacket done [14:00:55]NVStorageSaveData kkm_last_timestamp [14:00:55]File name is /storage/kkm_last_timestamp [14:00:55]Write 4 bytes [14:00:55]NVStorageSaveData done [14:00:55]ExternCall_PrintAddStr [14:00:55]wPrintStart [14:00:55]Write to MH i2c: 01 00 00 19 03 1C [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: 01 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: 01 07 00 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 FF 0F 31 [14:00:55]RasterBufferAndPrint [14:00:55]line 小褔械褌 N : (1)320591 [14:00:55]line 袠袧袧: 02508201610067 [14:00:55]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:00:55]line 袩袪袨袛袗袞袗 [14:00:55]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:00:55]line 孝芯胁邪褉: 2710124130 [14:00:55]line 袗懈-92-袣-5 [14:00:55]line 15.070 * 66.40 [14:00:55]line = 1000.65 [14:00:55]line 袧袛小 12% 袧小袩 1% [14:00:55]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:00:55]line 袨袣袪校袚袥袝袧袠袝: -0.65 [14:00:55]line 袠孝袨袚袨: 1000.00 [14:00:55]line 袙薪械褋械薪芯: 1000.00 [14:00:55]line 小袛袗效袗: 0.00 [14:00:55]line 袧小袩 1% : 8.85 [14:00:55]line 袧袛小 12% : 106.26 [14:00:55]line 袧邪谢懈褔薪褘屑懈: 1000.00 [14:00:55]line 袘械蟹薪邪谢.: 0.00 [14:00:55]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:00:55]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:00:55]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:00:55]line 效械泻 112 21.06.2024 14:00 [14:00:55]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:00:55]line 袟袧袦: 0300000198 [14:00:55]line 袪袧袦: 0000000000092771 [14:00:55]line 袙械褉褋懈褟 袣袣袦: 001 [14:00:55]line 肖袦: 0000000000875083 [14:00:55]line 肖袛: 111944 [14:00:55]line 肖袩袛: 80206387978784 [14:00:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T140054&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111944&fm=80206387978784&tin=02508201610067®Number=0000000000092771&sum=100000 [14:00:55]written 0, free lines is 4095 [14:00:55]OFD Sender: Processing packet 111944 [packets to send 38, broken 37] [14:00:55]ProducePacketName [14:00:55]name=ofd_packets/00111944 [14:00:55]OFD Sender: To server: 嚂鰌G, [14:00:55]CommunicateWithHost lk.salyk.kg:30040 [14:00:55]ConnectInit lk.salyk.kg [14:00:55]Connected sock=10 [14:00:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5F F4 07 01 9B EE 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 70 00 00 00 F4 03 04 00 96 87 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B5 01 00 35 04 06 00 48 F2 81 43 A2 20 17 A6 3E 45 05 3A 5D D7 [14:00:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F 2C 47 00 FC C8 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 30 38 37 35 30 38 33 10 04 04 00 48 B5 01 00 F4 03 04 00 C0 1E 75 66 B6 04 01 00 00 E6 7E 2A 1D 13 36 5E A4 [14:00:55]CommunicateWithHost err = 0 [14:00:55]CheckOFDResponse [14:00:55]1017 (14) - 77093643461234 [14:00:55]1041 (16) - 0000000000875083 [14:00:55]1040 (4) - 111944 [14:00:55]1012 (4) - 21.06.2024 06:33 [14:00:55]1206 (1) - 0 [14:00:55]OFD Sender: Remove packet 111944 [14:00:55]ProducePacketName [14:00:55]name=ofd_packets/00111944 [14:00:55]NVStorageDeleteData [14:00:55]Write to MH i2c: 01 00 00 44 03 47 [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: 01 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: 01 07 00 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 E4 0C 3E [14:00:55]RasterBufferAndPrint [14:00:55]line [14:00:55]line [14:00:55]line [14:00:55]line [14:00:55]line [14:00:55]written 0, free lines is 3306 [14:00:55]MH_Cut [14:00:55]Write to MH i2c: D1 01 00 4B 03 01 20 [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: D1 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: D1 01 00 [14:00:55]MH_I2C_Read... [14:00:55]Read from MH i2c: D1 01 00 4B 03 00 1F [14:00:55]Write to MH i2c: 01 00 00 4C 03 4F [14:00:55]Write i2c OK [14:00:55]MH_I2C_Read... [14:00:56]OFD Sender: No OFD packet to send [14:00:56]*** Cut start [14:00:56]*** Partial cut [14:00:56]*** CUTSNS_PIN = 1 [14:00:56]*** CUTSNS_PIN = 0 [14:00:56]*** Brake cut motor [14:00:57]Read from MH i2c: 01 [14:00:57]MH_I2C_Read... [14:00:57]*** Stop cut motor [14:00:57]*** Cut end [14:00:57]Read from MH i2c: 01 07 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 FF 0F 64 [14:00:57]process_action close_receipt done [14:00:57]requested_data is exist [14:00:57]produce_requested_data [14:00:57]requested_item fm.sn is exist - process it [14:00:57]wFMCommunicate request_size=4 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 11 00 00 [14:00:57]Write to MH i2c: E2 08 00 4D 03 80 11 00 00 00 00 00 00 CA [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 17 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 17 00 4D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1C [14:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:00:57]wFMCommunicate OK [14:00:57]requested_item fd.num is exist - process it [14:00:57]SAM_PROTO_GetFieldsCounters [14:00:57]wFMCommunicate request_size=4 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 13 00 00 [14:00:57]Write to MH i2c: E2 08 00 4E 03 80 13 00 00 00 00 00 00 CD [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 62 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 62 00 4E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 48 B5 01 00 0E 04 04 00 86 01 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 C3 [14:00:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 48 B5 01 00 0E 04 04 00 86 01 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 [14:00:57]wFMCommunicate OK [14:00:57]SAM_PROTO_GetFieldsCounters done [14:00:57]requested_item shift.num is exist - process it [14:00:57]requested_item shift.opened is exist - process it [14:00:57]req_shift_opened [14:00:57]FM_GetShiftState [14:00:57]SAM_PROTO_GetShiftState [14:00:57]wFMCommunicate request_size=4 [14:00:57]MH_SAM_APDU [14:00:57]CAPDU: 80 13 01 00 [14:00:57]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [14:00:57]Write i2c OK [14:00:57]MH_I2C_Read... [14:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:57]Read from MH i2c: E2 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 0E 00 [14:00:57]MH_I2C_Read... [14:00:57]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 4C [14:00:57]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:00:57]wFMCommunicate OK [14:00:57]SAM_PROTO_GetShiftState done [14:00:57]FM_GetShiftState done [14:00:57]req_shift_opened done [14:00:57]requested_item shift.open_date is exist - process it [14:00:57]req_shift_open_date [14:00:57]req_shift_open_date done [14:00:57]produce_requested_data done [14:00:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111944,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:00:57]process_action_free close_receipt [14:00:57]json_value_free [14:00:57]json_value_free done [14:00:57]process_json_proto returns [14:00:57]Send response to host [14:00:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111944,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:00:57]free response buf [14:00:57]execute_script done [14:00:57]execute_script returns [14:00:57]free content buf [14:00:57]Sock 9.Close socket [14:00:57]Sock 9.Thread stoped [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:41]accept exits with 7 [14:02:41]New connection [14:02:41]New thread 3066731876 created [14:02:41]Thread 3066875236 joined [14:02:41]Waiting for new connection... [14:02:41] Sock 7.Parse request [14:02:41]Sock 7.Check first char [14:02:41]Sock 7.First char is OK [14:02:41]request: POST /json_proto HTTP/1.0 [14:02:41]Method: POST [14:02:41]URL: /json_proto [14:02:41]Method is POST - this is cgi request [14:02:41]url: /json_proto [14:02:41]query_string will be loaded in cgi processing [14:02:41]execute_cgi json_proto POST (null) [14:02:41]execute_cgi path=json_proto method=POST [14:02:41]POST find Content-Length [14:02:41]Host: 172.17.59.68:8080 [14:02:41]Content-Length: 682 [14:02:41]Content-Type: application/json [14:02:41] [14:02:41]POST finish read [14:02:41]Found Content-Length = 682 [14:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [14:02:41]execute_script... [14: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 : (1)320592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [14:02:41]POST & json_proto [14:02:41]process_json_proto [14:02:41]json parsed OK: [14:02:41]protocol is kg_v1.0 [14:02:41]action value=close_receipt [14:02:41]process_action close_receipt [14:02:41]cmd_close_receipt [14:02:41]MH_GetDate [14:02:41]Write to MH i2c: F0 00 00 50 03 42 [14:02:41]Write i2c OK [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: F0 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: F0 09 00 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: F0 09 00 50 03 00 02 88 75 66 BC EC 60 65 1D [14:02:41]GetLastDocTimeStamp 1718978454 [14:02:41]current date 1718978562 [14:02:41]FM_GetShiftState [14:02:41]SAM_PROTO_GetShiftState [14:02:41]wFMCommunicate request_size=4 [14:02:41]MH_SAM_APDU [14:02:41]CAPDU: 80 13 01 00 [14:02:41]Write to MH i2c: E2 08 00 51 03 80 13 01 00 00 00 00 00 D1 [14:02:41]Write i2c OK [14:02:41]MH_I2C_Read... [14:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:41]Read from MH i2c: E2 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: E2 0E 00 [14:02:41]MH_I2C_Read... [14:02:41]Read from MH i2c: E2 0E 00 51 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 4E [14:02:41]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:02:41]wFMCommunicate OK [14:02:41]SAM_PROTO_GetShiftState done [14:02:41]FM_GetShiftState done [14:02:41]opened in 1718933695 [14:02:41]opened+sec_in_day 1719020095 [14:02:41]quantity*price = 100064 [14:02:41]sum+1 = 100066 [14:02:41]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 113 21.06.2024 14:02 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111945 肖袩袛: 207166611665431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T140242&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111945&fm=207166611665431&tin=02508201610067®Number=0000000000092771&sum=100000 [14:02:42]StoreToDocumentArchive [14:02:42]shift 390 fd 111945 [14:02:42]save to /storage/0390/doc_00111945 [14:02:42]save last doc name /storage/0390/doc_00111945 to /storage/kkm_last_doc_name [14:02:42]save OK [14:02:42]Clear old archive folders... [14:02:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:42]tlvbuf is 0043E170 [14:02:42]SAM_PROTO_ClearQueue [14:02:42]wFMCommunicate request_size=4 [14:02:42]MH_SAM_APDU [14:02:42]CAPDU: 80 09 00 00 [14:02:42]Write to MH i2c: E2 08 00 5E 03 80 09 00 00 00 00 00 00 D3 [14:02:42]Write i2c OK [14:02:42]MH_I2C_Read... [14:02:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:42]Read from MH i2c: E2 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [14:02:42]RAPDU: 90 00 [14:02:42]wFMCommunicate OK [14:02:42]SAM_PROTO_ClearQueue done [14:02:42]KKMCreateOFDPacket [14:02:42]OFDProtocolAddRootSTLVToBuf [14:02:42]FM_MakeSignedData [14:02:42]FM_MakeSignedData [14:02:42]SAM_PROTO_SignData [14:02:42]wFMCommunicate request_size=4 [14:02:42]MH_SAM_APDU [14:02:42]CAPDU: 80 0D 01 02 [14:02:42]Write to MH i2c: E2 08 00 5F 03 80 0D 01 02 00 00 00 00 DB [14:02:42]Write i2c OK [14:02:42]MH_I2C_Read... [14:02:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:42]Read from MH i2c: E2 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [14:02:42]RAPDU: 90 00 [14:02:42]wFMCommunicate OK [14:02:42]wFMCommunicate request_size=255 [14:02:42]MH_SAM_APDU [14:02: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 71 00 00 00 F4 03 04 00 02 88 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B5 01 00 35 04 06 00 BC [14:02:42]Write to MH i2c: E2 02 01 60 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 71 00 00 00 F4 03 04 00 02 88 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B5 01 00 35 04 06 00 BC 00 00 F7 [14:02:42]Write i2c OK [14:02:42]MH_I2C_Read... [14:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:42]Read from MH i2c: E2 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 [14:02:42]MH_I2C_Read... [14:02:42]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [14:02:42]RAPDU: 90 00 [14:02:42]wFMCommunicate OK [14:02:42]wFMCommunicate request_size=10 [14:02:42]MH_SAM_APDU [14:02:42]CAPDU: 80 0D 02 02 05 6A BC 4C 32 17 [14:02:42]Write to MH i2c: E2 0D 00 61 03 80 0D 02 02 05 00 6A BC 4C 32 17 00 00 A3 [14:02:42]Write i2c OK [14:02:42]MH_I2C_Read... [14:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:43]Read from MH i2c: E2 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: E2 03 00 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [14:02:43]RAPDU: 90 00 [14:02:43]wFMCommunicate OK [14:02:43]wFMCommunicate request_size=4 [14:02:43]MH_SAM_APDU [14:02:43]CAPDU: 80 0D 03 02 [14:02:43]Write to MH i2c: E2 08 00 62 03 80 0D 03 02 00 00 00 00 E0 [14:02:43]Write i2c OK [14:02:43]MH_I2C_Read... [14:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:43]Read from MH i2c: E2 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: E2 0B 00 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: E2 0B 00 62 03 00 B1 E7 46 4C DD 8F AE 45 90 00 6A [14:02:43]RAPDU: B1 E7 46 4C DD 8F AE 45 90 00 [14:02:43]wFMCommunicate OK [14:02:43]SAM_PROTO_SignData done [14:02:43]FM_MakeSignedData done [14:02:43]CreateOFDProtocolMessage [14:02:43]wFMCommunicate request_size=4 [14:02:43]MH_SAM_APDU [14:02:43]CAPDU: 80 11 00 00 [14:02:43]Write to MH i2c: E2 08 00 63 03 80 11 00 00 00 00 00 00 E0 [14:02:43]Write i2c OK [14:02:43]MH_I2C_Read... [14:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:43]Read from MH i2c: E2 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: E2 17 00 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: E2 17 00 63 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 32 [14:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:02:43]wFMCommunicate OK [14:02:43]CreateOFDProtocolMessage done [14:02:43]OFDSenderStorePacket 111945 [14:02:43]StoreOFDPacket docnum=111945 [14:02:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8C CA 07 01 B8 FA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 71 00 00 00 F4 03 04 00 02 88 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B5 01 00 35 04 06 00 BC 6A BC 4C 32 17 B1 E7 46 4C DD 8F AE 45 [14:02:43]CheckFolder [14:02:43]dirname=/storage/ofd_packets [14:02:43]CheckFolder done [14:02:43]ProducePacketName [14:02:43]name=ofd_packets/00111945 [14:02:43]NVStorageSaveData ofd_packets/00111945 [14:02:43]File name is /storage/ofd_packets/00111945 [14:02:43]Write 301 bytes [14:02:43]NVStorageSaveData done [14:02:43]OFDSenderStorePacket done [14:02:43]KKMCreateOFDPacket done [14:02:43]NVStorageSaveData kkm_last_timestamp [14:02:43]File name is /storage/kkm_last_timestamp [14:02:43]Write 4 bytes [14:02:43]NVStorageSaveData done [14:02:43]ExternCall_PrintAddStr [14:02:43]wPrintStart [14:02:43]Write to MH i2c: 01 00 00 64 03 67 [14:02:43]Write i2c OK [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: 01 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: 01 07 00 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 FF 0F 7C [14:02:43]RasterBufferAndPrint [14:02:43]line 小褔械褌 N : (1)320592 [14:02:43]line 袠袧袧: 02508201610067 [14:02:43]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:02:43]line 袩袪袨袛袗袞袗 [14:02:43]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:02:43]line 孝芯胁邪褉: 2710124130 [14:02:43]line 袗懈-92-袣-5 [14:02:43]line 15.070 * 66.40 [14:02:43]line = 1000.65 [14:02:43]line 袧袛小 12% 袧小袩 1% [14:02:43]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:02:43]line 袨袣袪校袚袥袝袧袠袝: -0.65 [14:02:43]line 袠孝袨袚袨: 1000.00 [14:02:43]line 袙薪械褋械薪芯: 1000.00 [14:02:43]line 小袛袗效袗: 0.00 [14:02:43]line 袧小袩 1% : 8.85 [14:02:43]line 袧袛小 12% : 106.26 [14:02:43]line 袧邪谢懈褔薪褘屑懈: 1000.00 [14:02:43]line 袘械蟹薪邪谢.: 0.00 [14:02:43]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:02:43]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:02:43]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:02:43]line 效械泻 113 21.06.2024 14:02 [14:02:43]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:02:43]line 袟袧袦: 0300000198 [14:02:43]line 袪袧袦: 0000000000092771 [14:02:43]line 袙械褉褋懈褟 袣袣袦: 001 [14:02:43]line 肖袦: 0000000000875083 [14:02:43]line 肖袛: 111945 [14:02:43]line 肖袩袛: 207166611665431 [14:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T140242&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111945&fm=207166611665431&tin=02508201610067®Number=0000000000092771&sum=100000 [14:02:43]OFD Sender: Processing packet 111945 [packets to send 38, broken 37] [14:02:43]ProducePacketName [14:02:43]name=ofd_packets/00111945 [14:02:43]OFD Sender: To server: 嚂鰌G, [14:02:43]CommunicateWithHost lk.salyk.kg:30040 [14:02:43]ConnectInit lk.salyk.kg [14:02:43]written 0, free lines is 4095 [14:02:43]Connected sock=10 [14:02:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8C CA 07 01 B8 FA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 71 00 00 00 F4 03 04 00 02 88 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B5 01 00 35 04 06 00 BC 6A BC 4C 32 17 B1 E7 46 4C DD 8F AE 45 [14:02:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 11 1C 47 00 4C EB 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 30 38 37 35 30 38 33 10 04 04 00 49 B5 01 00 F4 03 04 00 2C 1F 75 66 B6 04 01 00 00 72 18 CB AC D0 6A 7C 7C [14:02:43]CommunicateWithHost err = 0 [14:02:43]CheckOFDResponse [14:02:43]1017 (14) - 77093643461234 [14:02:43]1041 (16) - 0000000000875083 [14:02:43]1040 (4) - 111945 [14:02:43]1012 (4) - 21.06.2024 06:35 [14:02:43]1206 (1) - 0 [14:02:43]OFD Sender: Remove packet 111945 [14:02:43]ProducePacketName [14:02:43]name=ofd_packets/00111945 [14:02:43]NVStorageDeleteData [14:02:43]Write to MH i2c: 01 00 00 8F 03 92 [14:02:43]Write i2c OK [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: 01 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: 01 07 00 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 D2 0C 77 [14:02:43]RasterBufferAndPrint [14:02:43]line [14:02:43]line [14:02:43]line [14:02:43]line [14:02:43]line [14:02:43]written 0, free lines is 3289 [14:02:43]MH_Cut [14:02:43]Write to MH i2c: D1 01 00 96 03 01 6B [14:02:43]Write i2c OK [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: D1 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: D1 01 00 [14:02:43]MH_I2C_Read... [14:02:43]Read from MH i2c: D1 01 00 96 03 00 6A [14:02:43]Write to MH i2c: 01 00 00 97 03 9A [14:02:43]Write i2c OK [14:02:43]MH_I2C_Read... [14:02:44]OFD Sender: No OFD packet to send [14:02:44]*** Cut start [14:02:44]*** Partial cut [14:02:44]*** CUTSNS_PIN = 1 [14:02:44]*** CUTSNS_PIN = 0 [14:02:44]*** Brake cut motor [14:02:45]Read from MH i2c: 01 [14:02:45]MH_I2C_Read... [14:02:45]*** Stop cut motor [14:02:45]*** Cut end [14:02:45]Read from MH i2c: 01 07 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 FF 0F AF [14:02:45]process_action close_receipt done [14:02:45]requested_data is exist [14:02:45]produce_requested_data [14:02:45]requested_item fm.sn is exist - process it [14:02:45]wFMCommunicate request_size=4 [14:02:45]MH_SAM_APDU [14:02:45]CAPDU: 80 11 00 00 [14:02:45]Write to MH i2c: E2 08 00 98 03 80 11 00 00 00 00 00 00 15 [14:02:45]Write i2c OK [14:02:45]MH_I2C_Read... [14:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:45]Read from MH i2c: E2 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 17 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 17 00 98 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 67 [14:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:02:45]wFMCommunicate OK [14:02:45]requested_item fd.num is exist - process it [14:02:45]SAM_PROTO_GetFieldsCounters [14:02:45]wFMCommunicate request_size=4 [14:02:45]MH_SAM_APDU [14:02:45]CAPDU: 80 13 00 00 [14:02:45]Write to MH i2c: E2 08 00 99 03 80 13 00 00 00 00 00 00 18 [14:02:45]Write i2c OK [14:02:45]MH_I2C_Read... [14:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:45]Read from MH i2c: E2 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 62 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 62 00 99 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 49 B5 01 00 0E 04 04 00 86 01 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 12 [14:02:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 49 B5 01 00 0E 04 04 00 86 01 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 [14:02:45]wFMCommunicate OK [14:02:45]SAM_PROTO_GetFieldsCounters done [14:02:45]requested_item shift.num is exist - process it [14:02:45]requested_item shift.opened is exist - process it [14:02:45]req_shift_opened [14:02:45]FM_GetShiftState [14:02:45]SAM_PROTO_GetShiftState [14:02:45]wFMCommunicate request_size=4 [14:02:45]MH_SAM_APDU [14:02:45]CAPDU: 80 13 01 00 [14:02:45]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [14:02:45]Write i2c OK [14:02:45]MH_I2C_Read... [14:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:45]Read from MH i2c: E2 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 0E 00 [14:02:45]MH_I2C_Read... [14:02:45]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 97 [14:02:45]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:02:45]wFMCommunicate OK [14:02:45]SAM_PROTO_GetShiftState done [14:02:45]FM_GetShiftState done [14:02:45]req_shift_opened done [14:02:45]requested_item shift.open_date is exist - process it [14:02:45]req_shift_open_date [14:02:45]req_shift_open_date done [14:02:45]produce_requested_data done [14:02:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111945,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:02:45]process_action_free close_receipt [14:02:45]json_value_free [14:02:45]json_value_free done [14:02:45]process_json_proto returns [14:02:45]Send response to host [14:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111945,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:02:45]free response buf [14:02:45]execute_script done [14:02:45]execute_script returns [14:02:45]free content buf [14:02:45]Sock 7.Close socket [14:02:45]Sock 7.Thread stoped [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:06]accept exits with 9 [14:03:06]New connection [14:03:06]New thread 3066875236 created [14:03:06]Thread 3066731876 joined [14:03:06]Waiting for new connection... [14:03:06] Sock 9.Parse request [14:03:06]Sock 9.Check first char [14:03:06]Sock 9.First char is OK [14:03:06]request: POST /json_proto HTTP/1.0 [14:03:06]Method: POST [14:03:06]URL: /json_proto [14:03:06]Method is POST - this is cgi request [14:03:06]url: /json_proto [14:03:06]query_string will be loaded in cgi processing [14:03:06]execute_cgi json_proto POST (null) [14:03:06]execute_cgi path=json_proto method=POST [14:03:06]POST find Content-Length [14:03:06]Host: 172.17.59.68:8080 [14:03:06]Content-Length: 677 [14:03:06]Content-Type: application/json [14:03:06] [14:03:06]POST finish read [14:03:06]Found Content-Length = 677 [14:03:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:06]execute_script... [14:03: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)320593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:06]POST & json_proto [14:03:06]process_json_proto [14:03:06]json parsed OK: [14:03:06]protocol is kg_v1.0 [14:03:06]action value=close_receipt [14:03:06]process_action close_receipt [14:03:06]cmd_close_receipt [14:03:06]MH_GetDate [14:03:06]Write to MH i2c: F0 00 00 9B 03 8D [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: F0 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: F0 09 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: F0 09 00 9B 03 00 1B 88 75 66 BC EC 60 65 81 [14:03:06]GetLastDocTimeStamp 1718978562 [14:03:06]current date 1718978587 [14:03:06]FM_GetShiftState [14:03:06]SAM_PROTO_GetShiftState [14:03:06]wFMCommunicate request_size=4 [14:03:06]MH_SAM_APDU [14:03:06]CAPDU: 80 13 01 00 [14:03:06]Write to MH i2c: E2 08 00 9C 03 80 13 01 00 00 00 00 00 1C [14:03:06]Write i2c OK [14:03:06]MH_I2C_Read... [14:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:06]Read from MH i2c: E2 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 0E 00 [14:03:06]MH_I2C_Read... [14:03:06]Read from MH i2c: E2 0E 00 9C 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 99 [14:03:06]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:03:06]wFMCommunicate OK [14:03:06]SAM_PROTO_GetShiftState done [14:03:06]FM_GetShiftState done [14:03:06]opened in 1718933695 [14:03:06]opened+sec_in_day 1719020095 [14:03:06]quantity*price = 20052 [14:03:06]sum+1 = 20054 [14:03:06]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.53 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 114 21.06.2024 14:03 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111946 肖袩袛: 209248768595583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T140307&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111946&fm=209248768595583&tin=02508201610067®Number=0000000000092771&sum=20000 [14:03:07]StoreToDocumentArchive [14:03:07]shift 390 fd 111946 [14:03:07]save to /storage/0390/doc_00111946 [14:03:07]save last doc name /storage/0390/doc_00111946 to /storage/kkm_last_doc_name [14:03:07]save OK [14:03:07]Clear old archive folders... [14:03:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:07]tlvbuf is 0034A8F0 [14:03:07]SAM_PROTO_ClearQueue [14:03:07]wFMCommunicate request_size=4 [14:03:07]MH_SAM_APDU [14:03:07]CAPDU: 80 09 00 00 [14:03:07]Write to MH i2c: E2 08 00 A9 03 80 09 00 00 00 00 00 00 1E [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:07]Read from MH i2c: E2 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 03 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [14:03:07]RAPDU: 90 00 [14:03:07]wFMCommunicate OK [14:03:07]SAM_PROTO_ClearQueue done [14:03:07]KKMCreateOFDPacket [14:03:07]OFDProtocolAddRootSTLVToBuf [14:03:07]FM_MakeSignedData [14:03:07]FM_MakeSignedData [14:03:07]SAM_PROTO_SignData [14:03:07]wFMCommunicate request_size=4 [14:03:07]MH_SAM_APDU [14:03:07]CAPDU: 80 0D 01 02 [14:03:07]Write to MH i2c: E2 08 00 AA 03 80 0D 01 02 00 00 00 00 26 [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:07]Read from MH i2c: E2 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 03 00 [14:03:07]MH_I2C_Read... [14:03:07]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [14:03:07]RAPDU: 90 00 [14:03:07]wFMCommunicate OK [14:03:07]wFMCommunicate request_size=255 [14:03:07]MH_SAM_APDU [14:03: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 1B 88 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B5 01 00 35 04 06 00 BE [14:03:07]Write to MH i2c: E2 02 01 AB 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 1B 88 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B5 01 00 35 04 06 00 BE 00 00 CE [14:03:07]Write i2c OK [14:03:07]MH_I2C_Read... [14:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:08]Read from MH i2c: E2 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 03 00 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [14:03:08]RAPDU: 90 00 [14:03:08]wFMCommunicate OK [14:03:08]wFMCommunicate request_size=10 [14:03:08]MH_SAM_APDU [14:03:08]CAPDU: 80 0D 02 02 05 4F 86 85 96 7F [14:03:08]Write to MH i2c: E2 0D 00 AC 03 80 0D 02 02 05 00 4F 86 85 96 7F 00 00 A2 [14:03:08]Write i2c OK [14:03:08]MH_I2C_Read... [14:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:08]Read from MH i2c: E2 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 03 00 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [14:03:08]RAPDU: 90 00 [14:03:08]wFMCommunicate OK [14:03:08]wFMCommunicate request_size=4 [14:03:08]MH_SAM_APDU [14:03:08]CAPDU: 80 0D 03 02 [14:03:08]Write to MH i2c: E2 08 00 AD 03 80 0D 03 02 00 00 00 00 2B [14:03:08]Write i2c OK [14:03:08]MH_I2C_Read... [14:03:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:08]Read from MH i2c: E2 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 0B 00 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 0B 00 AD 03 00 D3 5C 86 02 A9 E3 07 6A 90 00 E0 [14:03:08]RAPDU: D3 5C 86 02 A9 E3 07 6A 90 00 [14:03:08]wFMCommunicate OK [14:03:08]SAM_PROTO_SignData done [14:03:08]FM_MakeSignedData done [14:03:08]CreateOFDProtocolMessage [14:03:08]wFMCommunicate request_size=4 [14:03:08]MH_SAM_APDU [14:03:08]CAPDU: 80 11 00 00 [14:03:08]Write to MH i2c: E2 08 00 AE 03 80 11 00 00 00 00 00 00 2B [14:03:08]Write i2c OK [14:03:08]MH_I2C_Read... [14:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:08]Read from MH i2c: E2 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 17 00 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: E2 17 00 AE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7D [14:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:03:08]wFMCommunicate OK [14:03:08]CreateOFDProtocolMessage done [14:03:08]OFDSenderStorePacket 111946 [14:03:08]StoreOFDPacket docnum=111946 [14:03:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 76 C5 07 01 E7 AC 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 1B 88 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B5 01 00 35 04 06 00 BE 4F 86 85 96 7F D3 5C 86 02 A9 E3 07 6A [14:03:08]CheckFolder [14:03:08]dirname=/storage/ofd_packets [14:03:08]CheckFolder done [14:03:08]ProducePacketName [14:03:08]name=ofd_packets/00111946 [14:03:08]NVStorageSaveData ofd_packets/00111946 [14:03:08]File name is /storage/ofd_packets/00111946 [14:03:08]Write 301 bytes [14:03:08]NVStorageSaveData done [14:03:08]OFDSenderStorePacket done [14:03:08]KKMCreateOFDPacket done [14:03:08]NVStorageSaveData kkm_last_timestamp [14:03:08]File name is /storage/kkm_last_timestamp [14:03:08]Write 4 bytes [14:03:08]NVStorageSaveData done [14:03:08]ExternCall_PrintAddStr [14:03:08]wPrintStart [14:03:08]Write to MH i2c: 01 00 00 AF 03 B2 [14:03:08]OFD Sender: Processing packet 111946 [packets to send 38, broken 37] [14:03:08]ProducePacketName [14:03:08]name=ofd_packets/00111946 [14:03:08]OFD Sender: To server: 嚂鰌G, [14:03:08]CommunicateWithHost lk.salyk.kg:30040 [14:03:08]ConnectInit lk.salyk.kg [14:03:08]Write i2c OK [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: 01 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: 01 07 00 [14:03:08]MH_I2C_Read... [14:03:08]Read from MH i2c: 01 07 00 AF 03 00 00 00 00 00 FF 0F C7 [14:03:08]RasterBufferAndPrint [14:03:08]line 小褔械褌 N : (1)320593 [14:03:08]line 袠袧袧: 02508201610067 [14:03:08]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:03:08]line 袩袪袨袛袗袞袗 [14:03:08]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:03:08]line 孝芯胁邪褉: 2710124130 [14:03:08]line 袗懈-92-袣-5 [14:03:08]line 3.020 * 66.40 [14:03:08]line = 200.53 [14:03:08]line 袧袛小 12% 袧小袩 1% [14:03:08]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:03:08]line 袨袣袪校袚袥袝袧袠袝: -0.53 [14:03:08]line 袠孝袨袚袨: 200.00 [14:03:08]line 袙薪械褋械薪芯: 200.00 [14:03:08]line 小袛袗效袗: 0.00 [14:03:08]line 袧小袩 1% : 1.77 [14:03:08]line 袧袛小 12% : 21.29 [14:03:08]line 袧邪谢懈褔薪褘屑懈: 200.00 [14:03:08]line 袘械蟹薪邪谢.: 0.00 [14:03:08]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:03:08]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:03:08]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:03:08]line 效械泻 114 21.06.2024 14:03 [14:03:08]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:03:08]line 袟袧袦: 0300000198 [14:03:08]line 袪袧袦: 0000000000092771 [14:03:08]line 袙械褉褋懈褟 袣袣袦: 001 [14:03:08]line 肖袦: 0000000000875083 [14:03:08]line 肖袛: 111946 [14:03:08]line 肖袩袛: 209248768595583 [14:03:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T140307&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111946&fm=209248768595583&tin=02508201610067®Number=0000000000092771&sum=20000 [14:03:08]Connected sock=10 [14:03:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 76 C5 07 01 E7 AC 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 1B 88 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B5 01 00 35 04 06 00 BE 4F 86 85 96 7F D3 5C 86 02 A9 E3 07 6A [14:03:08]written 0, free lines is 4095 [14:03:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8A E4 47 00 E6 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 30 38 37 35 30 38 33 10 04 04 00 4A B5 01 00 F4 03 04 00 45 1F 75 66 B6 04 01 00 00 BA 91 A2 4D E5 48 79 96 [14:03:08]CommunicateWithHost err = 0 [14:03:08]CheckOFDResponse [14:03:08]1017 (14) - 77093643461234 [14:03:08]1041 (16) - 0000000000875083 [14:03:08]1040 (4) - 111946 [14:03:08]1012 (4) - 21.06.2024 06:35 [14:03:08]1206 (1) - 0 [14:03:08]OFD Sender: Remove packet 111946 [14:03:08]ProducePacketName [14:03:08]name=ofd_packets/00111946 [14:03:08]NVStorageDeleteData [14:03:09]Write to MH i2c: 01 00 00 DA 03 DD [14:03:09]Write i2c OK [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: 01 [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: 01 07 00 [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 DC 0C CC [14:03:09]RasterBufferAndPrint [14:03:09]line [14:03:09]line [14:03:09]line [14:03:09]line [14:03:09]line [14:03:09]written 0, free lines is 3298 [14:03:09]MH_Cut [14:03:09]Write to MH i2c: D1 01 00 E1 03 01 B6 [14:03:09]Write i2c OK [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: D1 [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: D1 01 00 [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: D1 01 00 E1 03 00 B5 [14:03:09]Write to MH i2c: 01 00 00 E2 03 E5 [14:03:09]Write i2c OK [14:03:09]MH_I2C_Read... [14:03:09]OFD Sender: No OFD packet to send [14:03:09]*** Cut start [14:03:09]*** Partial cut [14:03:09]*** CUTSNS_PIN = 1 [14:03:09]*** CUTSNS_PIN = 0 [14:03:10]*** Brake cut motor [14:03:10]Read from MH i2c: 01 [14:03:10]MH_I2C_Read... [14:03:10]*** Stop cut motor [14:03:10]*** Cut end [14:03:10]Read from MH i2c: 01 07 00 [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 FF 0F FA [14:03:10]process_action close_receipt done [14:03:10]requested_data is exist [14:03:10]produce_requested_data [14:03:10]requested_item fm.sn is exist - process it [14:03:10]wFMCommunicate request_size=4 [14:03:10]MH_SAM_APDU [14:03:10]CAPDU: 80 11 00 00 [14:03:10]Write to MH i2c: E2 08 00 E3 03 80 11 00 00 00 00 00 00 60 [14:03:10]Write i2c OK [14:03:10]MH_I2C_Read... [14:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:10]Read from MH i2c: E2 [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: E2 17 00 [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: E2 17 00 E3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B2 [14:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:03:10]wFMCommunicate OK [14:03:10]requested_item fd.num is exist - process it [14:03:10]SAM_PROTO_GetFieldsCounters [14:03:10]wFMCommunicate request_size=4 [14:03:10]MH_SAM_APDU [14:03:10]CAPDU: 80 13 00 00 [14:03:10]Write to MH i2c: E2 08 00 E4 03 80 13 00 00 00 00 00 00 63 [14:03:10]Write i2c OK [14:03:10]MH_I2C_Read... [14:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:10]Read from MH i2c: E2 [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: E2 62 00 [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: E2 62 00 E4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4A B5 01 00 0E 04 04 00 86 01 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 61 [14:03:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4A B5 01 00 0E 04 04 00 86 01 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 [14:03:10]wFMCommunicate OK [14:03:10]SAM_PROTO_GetFieldsCounters done [14:03:10]requested_item shift.num is exist - process it [14:03:10]requested_item shift.opened is exist - process it [14:03:10]req_shift_opened [14:03:10]FM_GetShiftState [14:03:10]SAM_PROTO_GetShiftState [14:03:10]wFMCommunicate request_size=4 [14:03:10]MH_SAM_APDU [14:03:10]CAPDU: 80 13 01 00 [14:03:10]Write to MH i2c: E2 08 00 E5 03 80 13 01 00 00 00 00 00 65 [14:03:10]Write i2c OK [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: E2 [14:03:10]MH_I2C_Read... [14:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:10]Read from MH i2c: E2 0E 00 [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: E2 0E 00 E5 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E2 [14:03:10]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:03:10]wFMCommunicate OK [14:03:10]SAM_PROTO_GetShiftState done [14:03:10]FM_GetShiftState done [14:03:10]req_shift_opened done [14:03:10]requested_item shift.open_date is exist - process it [14:03:10]req_shift_open_date [14:03:10]req_shift_open_date done [14:03:10]produce_requested_data done [14:03:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111946,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:03:10]process_action_free close_receipt [14:03:10]json_value_free [14:03:10]json_value_free done [14:03:10]process_json_proto returns [14:03:10]Send response to host [14:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111946,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:03:10]free response buf [14:03:10]execute_script done [14:03:10]execute_script returns [14:03:10]free content buf [14:03:10]Sock 9.Close socket [14:03:10]Sock 9.Thread stoped [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:27]accept exits with 7 [14:05:27]New connection [14:05:27]New thread 3066731876 created [14:05:27]Thread 3066875236 joined [14:05:27]Waiting for new connection... [14:05:27] Sock 7.Parse request [14:05:27]Sock 7.Check first char [14:05:27]Sock 7.First char is OK [14:05:27]request: POST /json_proto HTTP/1.0 [14:05:27]Method: POST [14:05:27]URL: /json_proto [14:05:27]Method is POST - this is cgi request [14:05:27]url: /json_proto [14:05:27]query_string will be loaded in cgi processing [14:05:27]execute_cgi json_proto POST (null) [14:05:27]execute_cgi path=json_proto method=POST [14:05:27]POST find Content-Length [14:05:27]Host: 172.17.59.68:8080 [14:05:27]Content-Length: 677 [14:05:27]Content-Type: application/json [14:05:27] [14:05:27]POST finish read [14:05:27]Found Content-Length = 677 [14:05:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [14:05:27]execute_script... [14:05:27]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)320594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [14:05:27]POST & json_proto [14:05:27]process_json_proto [14:05:27]json parsed OK: [14:05:27]protocol is kg_v1.0 [14:05:27]action value=close_receipt [14:05:27]process_action close_receipt [14:05:27]cmd_close_receipt [14:05:27]MH_GetDate [14:05:27]Write to MH i2c: F0 00 00 E6 03 D8 [14:05:27]Write i2c OK [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: F0 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: F0 09 00 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: F0 09 00 E6 03 00 A8 88 75 66 BC EC 60 65 59 [14:05:27]GetLastDocTimeStamp 1718978587 [14:05:27]current date 1718978728 [14:05:27]FM_GetShiftState [14:05:27]SAM_PROTO_GetShiftState [14:05:27]wFMCommunicate request_size=4 [14:05:27]MH_SAM_APDU [14:05:27]CAPDU: 80 13 01 00 [14:05:27]Write to MH i2c: E2 08 00 E7 03 80 13 01 00 00 00 00 00 67 [14:05:27]Write i2c OK [14:05:27]MH_I2C_Read... [14:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:27]Read from MH i2c: E2 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: E2 0E 00 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: E2 0E 00 E7 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E4 [14:05:27]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:05:27]wFMCommunicate OK [14:05:27]SAM_PROTO_GetShiftState done [14:05:27]FM_GetShiftState done [14:05:27]opened in 1718933695 [14:05:27]opened+sec_in_day 1719020095 [14:05:27]quantity*price = 50065 [14:05:27]sum+1 = 50067 [14:05:27]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 115 21.06.2024 14:05 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111947 肖袩袛: 280710028243895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T140528&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111947&fm=280710028243895&tin=02508201610067®Number=0000000000092771&sum=50000 [14:05:28]StoreToDocumentArchive [14:05:28]shift 390 fd 111947 [14:05:28]save to /storage/0390/doc_00111947 [14:05:28]save last doc name /storage/0390/doc_00111947 to /storage/kkm_last_doc_name [14:05:28]save OK [14:05:28]Clear old archive folders... [14:05:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:28]tlvbuf is 0043E150 [14:05:28]SAM_PROTO_ClearQueue [14:05:28]wFMCommunicate request_size=4 [14:05:28]MH_SAM_APDU [14:05:28]CAPDU: 80 09 00 00 [14:05:28]Write to MH i2c: E2 08 00 F4 03 80 09 00 00 00 00 00 00 69 [14:05:28]Write i2c OK [14:05:28]MH_I2C_Read... [14:05:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:28]Read from MH i2c: E2 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 03 00 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [14:05:28]RAPDU: 90 00 [14:05:28]wFMCommunicate OK [14:05:28]SAM_PROTO_ClearQueue done [14:05:28]KKMCreateOFDPacket [14:05:28]OFDProtocolAddRootSTLVToBuf [14:05:28]FM_MakeSignedData [14:05:28]FM_MakeSignedData [14:05:28]SAM_PROTO_SignData [14:05:28]wFMCommunicate request_size=4 [14:05:28]MH_SAM_APDU [14:05:28]CAPDU: 80 0D 01 02 [14:05:28]Write to MH i2c: E2 08 00 F5 03 80 0D 01 02 00 00 00 00 71 [14:05:28]Write i2c OK [14:05:28]MH_I2C_Read... [14:05:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:28]Read from MH i2c: E2 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 03 00 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [14:05:28]RAPDU: 90 00 [14:05:28]wFMCommunicate OK [14:05:28]wFMCommunicate request_size=255 [14:05:28]MH_SAM_APDU [14:05: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 73 00 00 00 F4 03 04 00 A8 88 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B5 01 00 35 04 06 00 FF [14:05:28]Write to MH i2c: E2 02 01 F6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 73 00 00 00 F4 03 04 00 A8 88 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B5 01 00 35 04 06 00 FF 00 00 2A [14:05:28]Write i2c OK [14:05:28]MH_I2C_Read... [14:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:28]Read from MH i2c: E2 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 03 00 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [14:05:28]RAPDU: 90 00 [14:05:28]wFMCommunicate OK [14:05:28]wFMCommunicate request_size=10 [14:05:28]MH_SAM_APDU [14:05:28]CAPDU: 80 0D 02 02 05 4D E5 84 B3 B7 [14:05:28]Write to MH i2c: E2 0D 00 F7 03 80 0D 02 02 05 00 4D E5 84 B3 B7 00 00 9E [14:05:28]Write i2c OK [14:05:28]MH_I2C_Read... [14:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:28]Read from MH i2c: E2 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 03 00 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [14:05:28]RAPDU: 90 00 [14:05:28]wFMCommunicate OK [14:05:28]wFMCommunicate request_size=4 [14:05:28]MH_SAM_APDU [14:05:28]CAPDU: 80 0D 03 02 [14:05:28]Write to MH i2c: E2 08 00 F8 03 80 0D 03 02 00 00 00 00 76 [14:05:28]Write i2c OK [14:05:28]MH_I2C_Read... [14:05:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:28]Read from MH i2c: E2 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 0B 00 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 0B 00 F8 03 00 4D E8 4D 4A 09 40 BB BE 90 00 05 [14:05:28]RAPDU: 4D E8 4D 4A 09 40 BB BE 90 00 [14:05:28]wFMCommunicate OK [14:05:28]SAM_PROTO_SignData done [14:05:28]FM_MakeSignedData done [14:05:28]CreateOFDProtocolMessage [14:05:28]wFMCommunicate request_size=4 [14:05:28]MH_SAM_APDU [14:05:28]CAPDU: 80 11 00 00 [14:05:28]Write to MH i2c: E2 08 00 F9 03 80 11 00 00 00 00 00 00 76 [14:05:28]Write i2c OK [14:05:28]MH_I2C_Read... [14:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:28]Read from MH i2c: E2 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 17 00 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 17 00 F9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C8 [14:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:05:28]wFMCommunicate OK [14:05:28]CreateOFDProtocolMessage done [14:05:28]OFDSenderStorePacket 111947 [14:05:28]StoreOFDPacket docnum=111947 [14:05:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 24 CB 07 01 04 DE 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 73 00 00 00 F4 03 04 00 A8 88 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B5 01 00 35 04 06 00 FF 4D E5 84 B3 B7 4D E8 4D 4A 09 40 BB BE [14:05:28]CheckFolder [14:05:28]dirname=/storage/ofd_packets [14:05:28]CheckFolder done [14:05:28]ProducePacketName [14:05:28]name=ofd_packets/00111947 [14:05:28]NVStorageSaveData ofd_packets/00111947 [14:05:28]File name is /storage/ofd_packets/00111947 [14:05:28]Write 301 bytes [14:05:28]NVStorageSaveData done [14:05:28]OFDSenderStorePacket done [14:05:28]KKMCreateOFDPacket done [14:05:28]NVStorageSaveData kkm_last_timestamp [14:05:28]File name is /storage/kkm_last_timestamp [14:05:28]Write 4 bytes [14:05:28]NVStorageSaveData done [14:05:28]ExternCall_PrintAddStr [14:05:28]wPrintStart [14:05:28]Write to MH i2c: 01 00 00 FA 03 FD [14:05:28]Write i2c OK [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: 01 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: 01 07 00 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 FF 0F 12 [14:05:28]RasterBufferAndPrint [14:05:28]line 小褔械褌 N : (1)320594 [14:05:28]line 袠袧袧: 02508201610067 [14:05:28]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:05:28]line 袩袪袨袛袗袞袗 [14:05:28]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:05:28]line 孝芯胁邪褉: 2710124130 [14:05:28]line 袗懈-92-袣-5 [14:05:28]line 7.540 * 66.40 [14:05:28]line = 500.66 [14:05:28]line 袧袛小 12% 袧小袩 1% [14:05:28]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:05:28]line 袨袣袪校袚袥袝袧袠袝: -0.66 [14:05:28]line 袠孝袨袚袨: 500.00 [14:05:28]line 袙薪械褋械薪芯: 500.00 [14:05:28]line 小袛袗效袗: 0.00 [14:05:28]line 袧小袩 1% : 4.43 [14:05:28]line 袧袛小 12% : 53.17 [14:05:28]line 袧邪谢懈褔薪褘屑懈: 500.00 [14:05:28]line 袘械蟹薪邪谢.: 0.00 [14:05:28]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:05:28]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:05:28]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:05:28]line 效械泻 115 21.06.2024 14:05 [14:05:28]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:05:28]line 袟袧袦: 0300000198 [14:05:28]line 袪袧袦: 0000000000092771 [14:05:28]line 袙械褉褋懈褟 袣袣袦: 001 [14:05:28]line 肖袦: 0000000000875083 [14:05:28]line 肖袛: 111947 [14:05:28]line 肖袩袛: 280710028243895 [14:05:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T140528&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111947&fm=280710028243895&tin=02508201610067®Number=0000000000092771&sum=50000 [14:05:29]OFD Sender: Processing packet 111947 [packets to send 38, broken 37] [14:05:29]ProducePacketName [14:05:29]name=ofd_packets/00111947 [14:05:29]OFD Sender: To server: 嚂鰌G, [14:05:29]CommunicateWithHost lk.salyk.kg:30040 [14:05:29]ConnectInit lk.salyk.kg [14:05:29]written 0, free lines is 4095 [14:05:29]Connected sock=10 [14:05:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 24 CB 07 01 04 DE 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 73 00 00 00 F4 03 04 00 A8 88 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B5 01 00 35 04 06 00 FF 4D E5 84 B3 B7 4D E8 4D 4A 09 40 BB BE [14:05:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 65 A2 47 00 3F 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 30 38 37 35 30 38 33 10 04 04 00 4B B5 01 00 F4 03 04 00 D1 1F 75 66 B6 04 01 00 00 74 0E DC 4F EE 77 2A 03 [14:05:29]CommunicateWithHost err = 0 [14:05:29]CheckOFDResponse [14:05:29]1017 (14) - 77093643461234 [14:05:29]1041 (16) - 0000000000875083 [14:05:29]1040 (4) - 111947 [14:05:29]1012 (4) - 21.06.2024 06:38 [14:05:29]1206 (1) - 0 [14:05:29]OFD Sender: Remove packet 111947 [14:05:29]ProducePacketName [14:05:29]name=ofd_packets/00111947 [14:05:29]NVStorageDeleteData [14:05:29]Write to MH i2c: 01 00 00 25 04 29 [14:05:29]Write i2c OK [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: 01 [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: 01 07 00 [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 D4 0C 10 [14:05:29]RasterBufferAndPrint [14:05:29]line [14:05:29]line [14:05:29]line [14:05:29]line [14:05:29]line [14:05:29]written 0, free lines is 3288 [14:05:29]MH_Cut [14:05:29]Write to MH i2c: D1 01 00 2C 04 01 02 [14:05:29]Write i2c OK [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: D1 [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: D1 01 00 [14:05:29]MH_I2C_Read... [14:05:29]Read from MH i2c: D1 01 00 2C 04 00 01 [14:05:29]Write to MH i2c: 01 00 00 2D 04 31 [14:05:29]Write i2c OK [14:05:29]MH_I2C_Read... [14:05:29]OFD Sender: No OFD packet to send [14:05:30]*** Cut start [14:05:30]*** Partial cut [14:05:30]*** CUTSNS_PIN = 1 [14:05:30]*** CUTSNS_PIN = 0 [14:05:30]*** Brake cut motor [14:05:30]Read from MH i2c: 01 [14:05:30]MH_I2C_Read... [14:05:30]*** Stop cut motor [14:05:30]*** Cut end [14:05:30]Read from MH i2c: 01 07 00 [14:05:30]MH_I2C_Read... [14:05:30]Read from MH i2c: 01 07 00 2D 04 00 00 00 00 00 FF 0F 46 [14:05:30]process_action close_receipt done [14:05:30]requested_data is exist [14:05:30]produce_requested_data [14:05:30]requested_item fm.sn is exist - process it [14:05:30]wFMCommunicate request_size=4 [14:05:30]MH_SAM_APDU [14:05:30]CAPDU: 80 11 00 00 [14:05:30]Write to MH i2c: E2 08 00 2E 04 80 11 00 00 00 00 00 00 AC [14:05:30]Write i2c OK [14:05:30]MH_I2C_Read... [14:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:30]Read from MH i2c: E2 [14:05:30]MH_I2C_Read... [14:05:30]Read from MH i2c: E2 17 00 [14:05:30]MH_I2C_Read... [14:05:30]Read from MH i2c: E2 17 00 2E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FE [14:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:05:30]wFMCommunicate OK [14:05:30]requested_item fd.num is exist - process it [14:05:30]SAM_PROTO_GetFieldsCounters [14:05:30]wFMCommunicate request_size=4 [14:05:30]MH_SAM_APDU [14:05:30]CAPDU: 80 13 00 00 [14:05:30]Write to MH i2c: E2 08 00 2F 04 80 13 00 00 00 00 00 00 AF [14:05:30]Write i2c OK [14:05:30]MH_I2C_Read... [14:05:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:31]Read from MH i2c: E2 [14:05:31]MH_I2C_Read... [14:05:31]Read from MH i2c: E2 62 00 [14:05:31]MH_I2C_Read... [14:05:31]Read from MH i2c: E2 62 00 2F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4B B5 01 00 0E 04 04 00 86 01 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 B1 [14:05:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4B B5 01 00 0E 04 04 00 86 01 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 [14:05:31]wFMCommunicate OK [14:05:31]SAM_PROTO_GetFieldsCounters done [14:05:31]requested_item shift.num is exist - process it [14:05:31]requested_item shift.opened is exist - process it [14:05:31]req_shift_opened [14:05:31]FM_GetShiftState [14:05:31]SAM_PROTO_GetShiftState [14:05:31]wFMCommunicate request_size=4 [14:05:31]MH_SAM_APDU [14:05:31]CAPDU: 80 13 01 00 [14:05:31]Write to MH i2c: E2 08 00 30 04 80 13 01 00 00 00 00 00 B1 [14:05:31]Write i2c OK [14:05:31]MH_I2C_Read... [14:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:31]Read from MH i2c: E2 [14:05:31]MH_I2C_Read... [14:05:31]Read from MH i2c: E2 0E 00 [14:05:31]MH_I2C_Read... [14:05:31]Read from MH i2c: E2 0E 00 30 04 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 2E [14:05:31]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:05:31]wFMCommunicate OK [14:05:31]SAM_PROTO_GetShiftState done [14:05:31]FM_GetShiftState done [14:05:31]req_shift_opened done [14:05:31]requested_item shift.open_date is exist - process it [14:05:31]req_shift_open_date [14:05:31]req_shift_open_date done [14:05:31]produce_requested_data done [14:05:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111947,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:05:31]process_action_free close_receipt [14:05:31]json_value_free [14:05:31]json_value_free done [14:05:31]process_json_proto returns [14:05:31]Send response to host [14:05:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111947,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:05:31]free response buf [14:05:31]execute_script done [14:05:31]execute_script returns [14:05:31]free content buf [14:05:31]Sock 7.Close socket [14:05:31]Sock 7.Thread stoped [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:35]accept exits with 9 [14:09:35]New connection [14:09:35]New thread 3066875236 created [14:09:35]Thread 3066731876 joined [14:09:35]Waiting for new connection... [14:09:35] Sock 9.Parse request [14:09:35]Sock 9.Check first char [14:09:35]Sock 9.First char is OK [14:09:35]request: POST /json_proto HTTP/1.0 [14:09:35]Method: POST [14:09:35]URL: /json_proto [14:09:35]Method is POST - this is cgi request [14:09:35]url: /json_proto [14:09:35]query_string will be loaded in cgi processing [14:09:35]execute_cgi json_proto POST (null) [14:09:35]execute_cgi path=json_proto method=POST [14:09:35]POST find Content-Length [14:09:35]Host: 172.17.59.68:8080 [14:09:35]Content-Length: 678 [14:09:35]Content-Type: application/json [14:09:35] [14:09:35]POST finish read [14:09:35]Found Content-Length = 678 [14:09:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "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" ] } } [14:09:35]execute_script... [14:09:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "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" ] } } [14:09:35]POST & json_proto [14:09:35]process_json_proto [14:09:35]json parsed OK: [14:09:35]protocol is kg_v1.0 [14:09:35]action value=close_receipt [14:09:35]process_action close_receipt [14:09:35]cmd_close_receipt [14:09:35]MH_GetDate [14:09:35]Write to MH i2c: F0 00 00 31 04 24 [14:09:35]Write i2c OK [14:09:35]MH_I2C_Read... [14:09:35]Read from MH i2c: F0 [14:09:35]MH_I2C_Read... [14:09:35]Read from MH i2c: F0 09 00 [14:09:35]MH_I2C_Read... [14:09:35]Read from MH i2c: F0 09 00 31 04 00 A1 89 75 66 BC EC 60 65 9F [14:09:35]GetLastDocTimeStamp 1718978728 [14:09:35]current date 1718978977 [14:09:35]FM_GetShiftState [14:09:35]SAM_PROTO_GetShiftState [14:09:35]wFMCommunicate request_size=4 [14:09:35]MH_SAM_APDU [14:09:35]CAPDU: 80 13 01 00 [14:09:35]Write to MH i2c: E2 08 00 32 04 80 13 01 00 00 00 00 00 B3 [14:09:35]Write i2c OK [14:09:35]MH_I2C_Read... [14:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:35]Read from MH i2c: E2 [14:09:35]MH_I2C_Read... [14:09:35]Read from MH i2c: E2 0E 00 [14:09:35]MH_I2C_Read... [14:09:35]Read from MH i2c: E2 0E 00 32 04 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 30 [14:09:35]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:09:35]wFMCommunicate OK [14:09:35]SAM_PROTO_GetShiftState done [14:09:35]FM_GetShiftState done [14:09:35]opened in 1718933695 [14:09:35]opened+sec_in_day 1719020095 [14:09:35]quantity*price = 80012 [14:09:35]sum+1 = 80013 [14:09:35]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.12 袠孝袨袚袨: 800.00 袙薪械褋械薪芯: 800.00 小袛袗效袗: 0.00 袧小袩 1% : 7.08 袧袛小 12% : 84.97 袧邪谢懈褔薪褘屑懈: 800.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 116 21.06.2024 14:09 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111948 肖袩袛: 50487715249225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T140937&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111948&fm=50487715249225&tin=02508201610067®Number=0000000000092771&sum=80000 [14:09:37]StoreToDocumentArchive [14:09:37]shift 390 fd 111948 [14:09:37]save to /storage/0390/doc_00111948 [14:09:37]save last doc name /storage/0390/doc_00111948 to /storage/kkm_last_doc_name [14:09:37]save OK [14:09:37]Clear old archive folders... [14:09:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:37]tlvbuf is B6E95B20 [14:09:37]SAM_PROTO_ClearQueue [14:09:37]wFMCommunicate request_size=4 [14:09:37]MH_SAM_APDU [14:09:37]CAPDU: 80 09 00 00 [14:09:37]Write to MH i2c: E2 08 00 3F 04 80 09 00 00 00 00 00 00 B5 [14:09:37]Write i2c OK [14:09:37]MH_I2C_Read... [14:09:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:37]Read from MH i2c: E2 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: E2 03 00 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [14:09:37]RAPDU: 90 00 [14:09:37]wFMCommunicate OK [14:09:37]SAM_PROTO_ClearQueue done [14:09:37]KKMCreateOFDPacket [14:09:37]OFDProtocolAddRootSTLVToBuf [14:09:37]FM_MakeSignedData [14:09:37]FM_MakeSignedData [14:09:37]SAM_PROTO_SignData [14:09:37]wFMCommunicate request_size=4 [14:09:37]MH_SAM_APDU [14:09:37]CAPDU: 80 0D 01 02 [14:09:37]Write to MH i2c: E2 08 00 40 04 80 0D 01 02 00 00 00 00 BD [14:09:37]Write i2c OK [14:09:37]MH_I2C_Read... [14:09:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:37]Read from MH i2c: E2 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: E2 03 00 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [14:09:37]RAPDU: 90 00 [14:09:37]wFMCommunicate OK [14:09:37]wFMCommunicate request_size=255 [14:09:37]MH_SAM_APDU [14:09:37]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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 31 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 74 00 00 00 F4 03 04 00 A1 89 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B5 01 00 35 04 06 00 2D [14:09:37]Write to MH i2c: E2 02 01 41 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 31 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 74 00 00 00 F4 03 04 00 A1 89 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B5 01 00 35 04 06 00 2D 00 00 8F [14:09:37]Write i2c OK [14:09:37]MH_I2C_Read... [14:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:37]Read from MH i2c: E2 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: E2 03 00 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [14:09:37]RAPDU: 90 00 [14:09:37]wFMCommunicate OK [14:09:37]wFMCommunicate request_size=10 [14:09:37]MH_SAM_APDU [14:09:37]CAPDU: 80 0D 02 02 05 EB 16 55 3C 49 [14:09:37]Write to MH i2c: E2 0D 00 42 04 80 0D 02 02 05 00 EB 16 55 3C 49 00 00 A5 [14:09:37]Write i2c OK [14:09:37]MH_I2C_Read... [14:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:37]Read from MH i2c: E2 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: E2 03 00 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [14:09:37]RAPDU: 90 00 [14:09:37]wFMCommunicate OK [14:09:37]wFMCommunicate request_size=4 [14:09:37]MH_SAM_APDU [14:09:37]CAPDU: 80 0D 03 02 [14:09:37]Write to MH i2c: E2 08 00 43 04 80 0D 03 02 00 00 00 00 C2 [14:09:37]Write i2c OK [14:09:37]MH_I2C_Read... [14:09:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:37]Read from MH i2c: E2 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: E2 0B 00 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: E2 0B 00 43 04 00 13 C3 20 0E 06 A2 77 F5 90 00 DB [14:09:37]RAPDU: 13 C3 20 0E 06 A2 77 F5 90 00 [14:09:37]wFMCommunicate OK [14:09:37]SAM_PROTO_SignData done [14:09:37]FM_MakeSignedData done [14:09:37]CreateOFDProtocolMessage [14:09:37]wFMCommunicate request_size=4 [14:09:37]MH_SAM_APDU [14:09:37]CAPDU: 80 11 00 00 [14:09:37]Write to MH i2c: E2 08 00 44 04 80 11 00 00 00 00 00 00 C2 [14:09:37]Write i2c OK [14:09:37]MH_I2C_Read... [14:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:37]Read from MH i2c: E2 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: E2 17 00 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: E2 17 00 44 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 14 [14:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:09:37]wFMCommunicate OK [14:09:37]CreateOFDProtocolMessage done [14:09:37]OFDSenderStorePacket 111948 [14:09:37]StoreOFDPacket docnum=111948 [14:09:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DE 15 07 01 B0 1E 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 31 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 74 00 00 00 F4 03 04 00 A1 89 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B5 01 00 35 04 06 00 2D EB 16 55 3C 49 13 C3 20 0E 06 A2 77 F5 [14:09:37]CheckFolder [14:09:37]dirname=/storage/ofd_packets [14:09:37]CheckFolder done [14:09:37]ProducePacketName [14:09:37]name=ofd_packets/00111948 [14:09:37]NVStorageSaveData ofd_packets/00111948 [14:09:37]File name is /storage/ofd_packets/00111948 [14:09:37]Write 301 bytes [14:09:37]NVStorageSaveData done [14:09:37]OFDSenderStorePacket done [14:09:37]KKMCreateOFDPacket done [14:09:37]NVStorageSaveData kkm_last_timestamp [14:09:37]File name is /storage/kkm_last_timestamp [14:09:37]Write 4 bytes [14:09:37]NVStorageSaveData done [14:09:37]ExternCall_PrintAddStr [14:09:37]wPrintStart [14:09:37]Write to MH i2c: 01 00 00 45 04 49 [14:09:37]Write i2c OK [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: 01 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: 01 07 00 [14:09:37]MH_I2C_Read... [14:09:37]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 FF 0F 5E [14:09:37]RasterBufferAndPrint [14:09:37]line 小褔械褌 N : (1)320595 [14:09:37]line 袠袧袧: 02508201610067 [14:09:37]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:09:37]line 袩袪袨袛袗袞袗 [14:09:37]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:09:37]line 孝芯胁邪褉: 2710124130 [14:09:37]line 袗懈-92-袣-5 [14:09:37]line 12.050 * 66.40 [14:09:37]line = 800.12 [14:09:37]line 袧袛小 12% 袧小袩 1% [14:09:37]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:09:37]line 袨袣袪校袚袥袝袧袠袝: -0.12 [14:09:37]line 袠孝袨袚袨: 800.00 [14:09:37]line 袙薪械褋械薪芯: 800.00 [14:09:37]line 小袛袗效袗: 0.00 [14:09:37]line 袧小袩 1% : 7.08 [14:09:37]line 袧袛小 12% : 84.97 [14:09:37]line 袧邪谢懈褔薪褘屑懈: 800.00 [14:09:37]line 袘械蟹薪邪谢.: 0.00 [14:09:37]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:09:37]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:09:37]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:09:37]line 效械泻 116 21.06.2024 14:09 [14:09:37]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:09:37]line 袟袧袦: 0300000198 [14:09:37]line 袪袧袦: 0000000000092771 [14:09:37]line 袙械褉褋懈褟 袣袣袦: 001 [14:09:37]line 肖袦: 0000000000875083 [14:09:37]line 肖袛: 111948 [14:09:37]line 肖袩袛: 50487715249225 [14:09:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T140937&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111948&fm=50487715249225&tin=02508201610067®Number=0000000000092771&sum=80000 [14:09:37]OFD Sender: Processing packet 111948 [packets to send 38, broken 37] [14:09:37]ProducePacketName [14:09:37]name=ofd_packets/00111948 [14:09:37]OFD Sender: To server: 嚂鰌G, [14:09:37]CommunicateWithHost lk.salyk.kg:30040 [14:09:37]ConnectInit lk.salyk.kg [14:09:37]written 0, free lines is 4095 [14:09:38]Connected sock=10 [14:09:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DE 15 07 01 B0 1E 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 31 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 74 00 00 00 F4 03 04 00 A1 89 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B5 01 00 35 04 06 00 2D EB 16 55 3C 49 13 C3 20 0E 06 A2 77 F5 [14:09:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 41 4F 47 00 8A B6 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 30 38 37 35 30 38 33 10 04 04 00 4C B5 01 00 F4 03 04 00 CA 20 75 66 B6 04 01 00 00 F0 35 35 3A 81 F8 E3 DB [14:09:38]CommunicateWithHost err = 0 [14:09:38]CheckOFDResponse [14:09:38]1017 (14) - 77093643461234 [14:09:38]1041 (16) - 0000000000875083 [14:09:38]1040 (4) - 111948 [14:09:38]1012 (4) - 21.06.2024 06:42 [14:09:38]1206 (1) - 0 [14:09:38]OFD Sender: Remove packet 111948 [14:09:38]ProducePacketName [14:09:38]name=ofd_packets/00111948 [14:09:38]NVStorageDeleteData [14:09:38]Write to MH i2c: 01 00 00 70 04 74 [14:09:38]Write i2c OK [14:09:38]MH_I2C_Read... [14:09:38]Read from MH i2c: 01 [14:09:38]MH_I2C_Read... [14:09:38]Read from MH i2c: 01 07 00 [14:09:38]MH_I2C_Read... [14:09:38]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 D8 0C 5F [14:09:38]RasterBufferAndPrint [14:09:38]line [14:09:38]line [14:09:38]line [14:09:38]line [14:09:38]line [14:09:38]written 0, free lines is 3293 [14:09:38]MH_Cut [14:09:38]Write to MH i2c: D1 01 00 77 04 01 4D [14:09:38]Write i2c OK [14:09:38]MH_I2C_Read... [14:09:38]Read from MH i2c: D1 [14:09:38]MH_I2C_Read... [14:09:38]Read from MH i2c: D1 01 00 [14:09:38]MH_I2C_Read... [14:09:38]Read from MH i2c: D1 01 00 77 04 00 4C [14:09:38]Write to MH i2c: 01 00 00 78 04 7C [14:09:38]Write i2c OK [14:09:38]MH_I2C_Read... [14:09:38]OFD Sender: No OFD packet to send [14:09:39]*** Cut start [14:09:39]*** Partial cut [14:09:39]*** CUTSNS_PIN = 1 [14:09:39]*** CUTSNS_PIN = 0 [14:09:39]*** Brake cut motor [14:09:39]Read from MH i2c: 01 [14:09:39]MH_I2C_Read... [14:09:39]*** Stop cut motor [14:09:39]*** Cut end [14:09:39]Read from MH i2c: 01 07 00 [14:09:39]MH_I2C_Read... [14:09:39]Read from MH i2c: 01 07 00 78 04 00 00 00 00 00 FF 0F 91 [14:09:39]process_action close_receipt done [14:09:39]requested_data is exist [14:09:39]produce_requested_data [14:09:39]requested_item fm.sn is exist - process it [14:09:39]wFMCommunicate request_size=4 [14:09:39]MH_SAM_APDU [14:09:39]CAPDU: 80 11 00 00 [14:09:39]Write to MH i2c: E2 08 00 79 04 80 11 00 00 00 00 00 00 F7 [14:09:39]Write i2c OK [14:09:39]MH_I2C_Read... [14:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:39]Read from MH i2c: E2 [14:09:39]MH_I2C_Read... [14:09:39]Read from MH i2c: E2 17 00 [14:09:39]MH_I2C_Read... [14:09:39]Read from MH i2c: E2 17 00 79 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 49 [14:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:09:39]wFMCommunicate OK [14:09:39]requested_item fd.num is exist - process it [14:09:39]SAM_PROTO_GetFieldsCounters [14:09:39]wFMCommunicate request_size=4 [14:09:39]MH_SAM_APDU [14:09:39]CAPDU: 80 13 00 00 [14:09:39]Write to MH i2c: E2 08 00 7A 04 80 13 00 00 00 00 00 00 FA [14:09:39]Write i2c OK [14:09:39]MH_I2C_Read... [14:09:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:39]Read from MH i2c: E2 [14:09:39]MH_I2C_Read... [14:09:39]Read from MH i2c: E2 62 00 [14:09:39]MH_I2C_Read... [14:09:39]Read from MH i2c: E2 62 00 7A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4C B5 01 00 0E 04 04 00 86 01 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 00 [14:09:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4C B5 01 00 0E 04 04 00 86 01 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 [14:09:39]wFMCommunicate OK [14:09:39]SAM_PROTO_GetFieldsCounters done [14:09:39]requested_item shift.num is exist - process it [14:09:39]requested_item shift.opened is exist - process it [14:09:39]req_shift_opened [14:09:39]FM_GetShiftState [14:09:39]SAM_PROTO_GetShiftState [14:09:39]wFMCommunicate request_size=4 [14:09:39]MH_SAM_APDU [14:09:39]CAPDU: 80 13 01 00 [14:09:39]Write to MH i2c: E2 08 00 7B 04 80 13 01 00 00 00 00 00 FC [14:09:39]Write i2c OK [14:09:39]MH_I2C_Read... [14:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:39]Read from MH i2c: E2 [14:09:39]MH_I2C_Read... [14:09:39]Read from MH i2c: E2 0E 00 [14:09:39]MH_I2C_Read... [14:09:39]Read from MH i2c: E2 0E 00 7B 04 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 79 [14:09:39]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:09:39]wFMCommunicate OK [14:09:39]SAM_PROTO_GetShiftState done [14:09:39]FM_GetShiftState done [14:09:39]req_shift_opened done [14:09:39]requested_item shift.open_date is exist - process it [14:09:39]req_shift_open_date [14:09:39]req_shift_open_date done [14:09:39]produce_requested_data done [14:09:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111948,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:09:39]process_action_free close_receipt [14:09:39]json_value_free [14:09:39]json_value_free done [14:09:39]process_json_proto returns [14:09:39]Send response to host [14:09:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111948,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:09:39]free response buf [14:09:39]execute_script done [14:09:39]execute_script returns [14:09:39]free content buf [14:09:39]Sock 9.Close socket [14:09:39]Sock 9.Thread stoped [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:17]accept exits with 7 [14:10:17]New connection [14:10:17]New thread 3066731876 created [14:10:17]Thread 3066875236 joined [14:10:17]Waiting for new connection... [14:10:17] Sock 7.Parse request [14:10:17]Sock 7.Check first char [14:10:17]Sock 7.First char is OK [14:10:17]request: POST /json_proto HTTP/1.0 [14:10:17]Method: POST [14:10:17]URL: /json_proto [14:10:17]Method is POST - this is cgi request [14:10:17]url: /json_proto [14:10:17]query_string will be loaded in cgi processing [14:10:17]execute_cgi json_proto POST (null) [14:10:17]execute_cgi path=json_proto method=POST [14:10:17]POST find Content-Length [14:10:17]Host: 172.17.59.68:8080 [14:10:17]Content-Length: 677 [14:10:17]Content-Type: application/json [14:10:17] [14:10:17]POST finish read [14:10:17]Found Content-Length = 677 [14:10:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:17]execute_script... [14:10: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)320596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:17]POST & json_proto [14:10:17]process_json_proto [14:10:17]json parsed OK: [14:10:17]protocol is kg_v1.0 [14:10:17]action value=close_receipt [14:10:17]process_action close_receipt [14:10:17]cmd_close_receipt [14:10:17]MH_GetDate [14:10:17]Write to MH i2c: F0 00 00 7C 04 6F [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: F0 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: F0 09 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: F0 09 00 7C 04 00 CA 89 75 66 BC EC 60 65 13 [14:10:17]GetLastDocTimeStamp 1718978977 [14:10:17]current date 1718979018 [14:10:17]FM_GetShiftState [14:10:17]SAM_PROTO_GetShiftState [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 13 01 00 [14:10:17]Write to MH i2c: E2 08 00 7D 04 80 13 01 00 00 00 00 00 FE [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 0E 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 0E 00 7D 04 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 7B [14:10:17]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:10:17]wFMCommunicate OK [14:10:17]SAM_PROTO_GetShiftState done [14:10:17]FM_GetShiftState done [14:10:17]opened in 1718933695 [14:10:17]opened+sec_in_day 1719020095 [14:10:17]quantity*price = 20052 [14:10:17]sum+1 = 20054 [14:10:17]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.53 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 117 21.06.2024 14:10 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111949 肖袩袛: 35943477900975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141018&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111949&fm=35943477900975&tin=02508201610067®Number=0000000000092771&sum=20000 [14:10:18]StoreToDocumentArchive [14:10:18]shift 390 fd 111949 [14:10:18]save to /storage/0390/doc_00111949 [14:10:18]save last doc name /storage/0390/doc_00111949 to /storage/kkm_last_doc_name [14:10:18]save OK [14:10:18]Clear old archive folders... [14:10:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:18]tlvbuf is 003475E0 [14:10:18]SAM_PROTO_ClearQueue [14:10:18]wFMCommunicate request_size=4 [14:10:18]MH_SAM_APDU [14:10:18]CAPDU: 80 09 00 00 [14:10:18]Write to MH i2c: E2 08 00 8A 04 80 09 00 00 00 00 00 00 00 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:18]Read from MH i2c: E2 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 03 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [14:10:18]RAPDU: 90 00 [14:10:18]wFMCommunicate OK [14:10:18]SAM_PROTO_ClearQueue done [14:10:18]KKMCreateOFDPacket [14:10:18]OFDProtocolAddRootSTLVToBuf [14:10:18]FM_MakeSignedData [14:10:18]FM_MakeSignedData [14:10:18]SAM_PROTO_SignData [14:10:18]wFMCommunicate request_size=4 [14:10:18]MH_SAM_APDU [14:10:18]CAPDU: 80 0D 01 02 [14:10:18]Write to MH i2c: E2 08 00 8B 04 80 0D 01 02 00 00 00 00 08 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:18]Read from MH i2c: E2 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 03 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [14:10:18]RAPDU: 90 00 [14:10:18]wFMCommunicate OK [14:10:18]wFMCommunicate request_size=255 [14:10:18]MH_SAM_APDU [14:10: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 CA 89 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B5 01 00 35 04 06 00 20 [14:10:18]Write to MH i2c: E2 02 01 8C 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 CA 89 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B5 01 00 35 04 06 00 20 00 00 C8 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:18]Read from MH i2c: E2 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 03 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [14:10:18]RAPDU: 90 00 [14:10:18]wFMCommunicate OK [14:10:18]wFMCommunicate request_size=10 [14:10:18]MH_SAM_APDU [14:10:18]CAPDU: 80 0D 02 02 05 B0 BE 3B 76 AF [14:10:18]Write to MH i2c: E2 0D 00 8D 04 80 0D 02 02 05 00 B0 BE 3B 76 AF 00 00 E3 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:18]Read from MH i2c: E2 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 03 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [14:10:18]RAPDU: 90 00 [14:10:18]wFMCommunicate OK [14:10:18]wFMCommunicate request_size=4 [14:10:18]MH_SAM_APDU [14:10:18]CAPDU: 80 0D 03 02 [14:10:18]Write to MH i2c: E2 08 00 8E 04 80 0D 03 02 00 00 00 00 0D [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:18]Read from MH i2c: E2 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 0B 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 0B 00 8E 04 00 C3 4E 14 9C 0D BC 67 56 90 00 55 [14:10:18]RAPDU: C3 4E 14 9C 0D BC 67 56 90 00 [14:10:18]wFMCommunicate OK [14:10:18]SAM_PROTO_SignData done [14:10:18]FM_MakeSignedData done [14:10:18]CreateOFDProtocolMessage [14:10:18]wFMCommunicate request_size=4 [14:10:18]MH_SAM_APDU [14:10:18]CAPDU: 80 11 00 00 [14:10:18]Write to MH i2c: E2 08 00 8F 04 80 11 00 00 00 00 00 00 0D [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:18]Read from MH i2c: E2 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 17 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: E2 17 00 8F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5F [14:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:10:18]wFMCommunicate OK [14:10:18]CreateOFDProtocolMessage done [14:10:18]OFDSenderStorePacket 111949 [14:10:18]StoreOFDPacket docnum=111949 [14:10:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F7 71 07 01 D3 E8 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 CA 89 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B5 01 00 35 04 06 00 20 B0 BE 3B 76 AF C3 4E 14 9C 0D BC 67 56 [14:10:18]CheckFolder [14:10:18]dirname=/storage/ofd_packets [14:10:18]CheckFolder done [14:10:18]ProducePacketName [14:10:18]name=ofd_packets/00111949 [14:10:18]NVStorageSaveData ofd_packets/00111949 [14:10:18]File name is /storage/ofd_packets/00111949 [14:10:18]Write 301 bytes [14:10:18]NVStorageSaveData done [14:10:18]OFDSenderStorePacket done [14:10:18]KKMCreateOFDPacket done [14:10:18]NVStorageSaveData kkm_last_timestamp [14:10:18]File name is /storage/kkm_last_timestamp [14:10:18]Write 4 bytes [14:10:18]NVStorageSaveData done [14:10:18]ExternCall_PrintAddStr [14:10:18]wPrintStart [14:10:18]Write to MH i2c: 01 00 00 90 04 94 [14:10:18]Write i2c OK [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: 01 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: 01 07 00 [14:10:18]MH_I2C_Read... [14:10:18]Read from MH i2c: 01 07 00 90 04 00 00 00 00 00 FF 0F A9 [14:10:18]RasterBufferAndPrint [14:10:18]line 小褔械褌 N : (1)320596 [14:10:18]line 袠袧袧: 02508201610067 [14:10:18]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:10:18]line 袩袪袨袛袗袞袗 [14:10:18]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:10:18]line 孝芯胁邪褉: 2710124130 [14:10:18]line 袗懈-92-袣-5 [14:10:18]line 3.020 * 66.40 [14:10:18]line = 200.53 [14:10:18]line 袧袛小 12% 袧小袩 1% [14:10:18]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:10:18]line 袨袣袪校袚袥袝袧袠袝: -0.53 [14:10:18]line 袠孝袨袚袨: 200.00 [14:10:18]line 袙薪械褋械薪芯: 200.00 [14:10:18]line 小袛袗效袗: 0.00 [14:10:18]line 袧小袩 1% : 1.77 [14:10:18]line 袧袛小 12% : 21.29 [14:10:18]line 袧邪谢懈褔薪褘屑懈: 200.00 [14:10:18]line 袘械蟹薪邪谢.: 0.00 [14:10:18]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:10:18]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:10:18]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:10:18]line 效械泻 117 21.06.2024 14:10 [14:10:18]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:10:18]line 袟袧袦: 0300000198 [14:10:18]line 袪袧袦: 0000000000092771 [14:10:18]line 袙械褉褋懈褟 袣袣袦: 001 [14:10:18]line 肖袦: 0000000000875083 [14:10:18]line 肖袛: 111949 [14:10:18]line 肖袩袛: 35943477900975 [14:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141018&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111949&fm=35943477900975&tin=02508201610067®Number=0000000000092771&sum=20000 [14:10:19]OFD Sender: Processing packet 111949 [packets to send 38, broken 37] [14:10:19]ProducePacketName [14:10:19]name=ofd_packets/00111949 [14:10:19]OFD Sender: To server: 嚂鰌G, [14:10:19]CommunicateWithHost lk.salyk.kg:30040 [14:10:19]ConnectInit lk.salyk.kg [14:10:19]written 0, free lines is 4095 [14:10:19]Connected sock=10 [14:10:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F7 71 07 01 D3 E8 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 CA 89 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B5 01 00 35 04 06 00 20 B0 BE 3B 76 AF C3 4E 14 9C 0D BC 67 56 [14:10:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 91 8B 47 00 BF BC 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 30 38 37 35 30 38 33 10 04 04 00 4D B5 01 00 F4 03 04 00 F3 20 75 66 B6 04 01 00 00 C2 E2 A5 B4 00 86 35 2C [14:10:19]CommunicateWithHost err = 0 [14:10:19]CheckOFDResponse [14:10:19]1017 (14) - 77093643461234 [14:10:19]1041 (16) - 0000000000875083 [14:10:19]1040 (4) - 111949 [14:10:19]1012 (4) - 21.06.2024 06:42 [14:10:19]1206 (1) - 0 [14:10:19]OFD Sender: Remove packet 111949 [14:10:19]ProducePacketName [14:10:19]name=ofd_packets/00111949 [14:10:19]NVStorageDeleteData [14:10:19]Write to MH i2c: 01 00 00 BB 04 BF [14:10:19]Write i2c OK [14:10:19]MH_I2C_Read... [14:10:19]Read from MH i2c: 01 [14:10:19]MH_I2C_Read... [14:10:19]Read from MH i2c: 01 07 00 [14:10:19]MH_I2C_Read... [14:10:19]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 CD 0C 9F [14:10:19]RasterBufferAndPrint [14:10:19]line [14:10:19]line [14:10:19]line [14:10:19]line [14:10:19]line [14:10:19]written 0, free lines is 3284 [14:10:19]MH_Cut [14:10:19]Write to MH i2c: D1 01 00 C2 04 01 98 [14:10:19]Write i2c OK [14:10:19]MH_I2C_Read... [14:10:19]Read from MH i2c: D1 [14:10:19]MH_I2C_Read... [14:10:19]Read from MH i2c: D1 01 00 [14:10:19]MH_I2C_Read... [14:10:19]Read from MH i2c: D1 01 00 C2 04 00 97 [14:10:19]Write to MH i2c: 01 00 00 C3 04 C7 [14:10:19]Write i2c OK [14:10:19]MH_I2C_Read... [14:10:19]OFD Sender: No OFD packet to send [14:10:20]*** Cut start [14:10:20]*** Partial cut [14:10:20]*** CUTSNS_PIN = 1 [14:10:20]*** CUTSNS_PIN = 0 [14:10:20]*** Brake cut motor [14:10:20]Read from MH i2c: 01 [14:10:20]MH_I2C_Read... [14:10:20]*** Stop cut motor [14:10:20]*** Cut end [14:10:20]Read from MH i2c: 01 07 00 [14:10:20]MH_I2C_Read... [14:10:20]Read from MH i2c: 01 07 00 C3 04 00 00 00 00 00 FF 0F DC [14:10:20]process_action close_receipt done [14:10:20]requested_data is exist [14:10:20]produce_requested_data [14:10:20]requested_item fm.sn is exist - process it [14:10:20]wFMCommunicate request_size=4 [14:10:20]MH_SAM_APDU [14:10:20]CAPDU: 80 11 00 00 [14:10:20]Write to MH i2c: E2 08 00 C4 04 80 11 00 00 00 00 00 00 42 [14:10:20]Write i2c OK [14:10:20]MH_I2C_Read... [14:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:20]Read from MH i2c: E2 [14:10:20]MH_I2C_Read... [14:10:20]Read from MH i2c: E2 17 00 [14:10:20]MH_I2C_Read... [14:10:20]Read from MH i2c: E2 17 00 C4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 94 [14:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:10:20]wFMCommunicate OK [14:10:20]requested_item fd.num is exist - process it [14:10:20]SAM_PROTO_GetFieldsCounters [14:10:20]wFMCommunicate request_size=4 [14:10:20]MH_SAM_APDU [14:10:20]CAPDU: 80 13 00 00 [14:10:20]Write to MH i2c: E2 08 00 C5 04 80 13 00 00 00 00 00 00 45 [14:10:20]Write i2c OK [14:10:20]MH_I2C_Read... [14:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:21]Read from MH i2c: E2 [14:10:21]MH_I2C_Read... [14:10:21]Read from MH i2c: E2 62 00 [14:10:21]MH_I2C_Read... [14:10:21]Read from MH i2c: E2 62 00 C5 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4D B5 01 00 0E 04 04 00 86 01 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 4F [14:10:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4D B5 01 00 0E 04 04 00 86 01 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 [14:10:21]wFMCommunicate OK [14:10:21]SAM_PROTO_GetFieldsCounters done [14:10:21]requested_item shift.num is exist - process it [14:10:21]requested_item shift.opened is exist - process it [14:10:21]req_shift_opened [14:10:21]FM_GetShiftState [14:10:21]SAM_PROTO_GetShiftState [14:10:21]wFMCommunicate request_size=4 [14:10:21]MH_SAM_APDU [14:10:21]CAPDU: 80 13 01 00 [14:10:21]Write to MH i2c: E2 08 00 C6 04 80 13 01 00 00 00 00 00 47 [14:10:21]Write i2c OK [14:10:21]MH_I2C_Read... [14:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:21]Read from MH i2c: E2 [14:10:21]MH_I2C_Read... [14:10:21]Read from MH i2c: E2 0E 00 [14:10:21]MH_I2C_Read... [14:10:21]Read from MH i2c: E2 0E 00 C6 04 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C4 [14:10:21]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:10:21]wFMCommunicate OK [14:10:21]SAM_PROTO_GetShiftState done [14:10:21]FM_GetShiftState done [14:10:21]req_shift_opened done [14:10:21]requested_item shift.open_date is exist - process it [14:10:21]req_shift_open_date [14:10:21]req_shift_open_date done [14:10:21]produce_requested_data done [14:10:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111949,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:10:21]process_action_free close_receipt [14:10:21]json_value_free [14:10:21]json_value_free done [14:10:21]process_json_proto returns [14:10:21]Send response to host [14:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111949,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:10:21]free response buf [14:10:21]execute_script done [14:10:21]execute_script returns [14:10:21]free content buf [14:10:21]Sock 7.Close socket [14:10:21]Sock 7.Thread stoped [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:13]accept exits with 9 [14:11:13]New connection [14:11:13]New thread 3066875236 created [14:11:13]Thread 3066731876 joined [14:11:13]Waiting for new connection... [14:11:13] Sock 9.Parse request [14:11:13]Sock 9.Check first char [14:11:13]Sock 9.First char is OK [14:11:13]request: POST /json_proto HTTP/1.0 [14:11:13]Method: POST [14:11:13]URL: /json_proto [14:11:13]Method is POST - this is cgi request [14:11:13]url: /json_proto [14:11:13]query_string will be loaded in cgi processing [14:11:13]execute_cgi json_proto POST (null) [14:11:13]execute_cgi path=json_proto method=POST [14:11:13]POST find Content-Length [14:11:13]Host: 172.17.59.68:8080 [14:11:13]Content-Length: 677 [14:11:13]Content-Type: application/json [14:11:13] [14:11:13]POST finish read [14:11:13]Found Content-Length = 677 [14:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:13]execute_script... [14:11: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)320597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:13]POST & json_proto [14:11:13]process_json_proto [14:11:13]json parsed OK: [14:11:13]protocol is kg_v1.0 [14:11:13]action value=close_receipt [14:11:13]process_action close_receipt [14:11:13]cmd_close_receipt [14:11:13]MH_GetDate [14:11:13]Write to MH i2c: F0 00 00 C7 04 BA [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: F0 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: F0 09 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: F0 09 00 C7 04 00 02 8A 75 66 BC EC 60 65 97 [14:11:13]GetLastDocTimeStamp 1718979018 [14:11:13]current date 1718979074 [14:11:13]FM_GetShiftState [14:11:13]SAM_PROTO_GetShiftState [14:11:13]wFMCommunicate request_size=4 [14:11:13]MH_SAM_APDU [14:11:13]CAPDU: 80 13 01 00 [14:11:13]Write to MH i2c: E2 08 00 C8 04 80 13 01 00 00 00 00 00 49 [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:13]Read from MH i2c: E2 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: E2 0E 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: E2 0E 00 C8 04 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C6 [14:11:13]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:11:13]wFMCommunicate OK [14:11:13]SAM_PROTO_GetShiftState done [14:11:13]FM_GetShiftState done [14:11:13]opened in 1718933695 [14:11:13]opened+sec_in_day 1719020095 [14:11:13]quantity*price = 20052 [14:11:13]sum+1 = 20054 [14:11:13]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.53 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 118 21.06.2024 14:11 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111950 肖袩袛: 220888528759057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141114&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111950&fm=220888528759057&tin=02508201610067®Number=0000000000092771&sum=20000 [14:11:14]StoreToDocumentArchive [14:11:14]shift 390 fd 111950 [14:11:14]save to /storage/0390/doc_00111950 [14:11:14]save last doc name /storage/0390/doc_00111950 to /storage/kkm_last_doc_name [14:11:14]save OK [14:11:14]Clear old archive folders... [14:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:14]tlvbuf is 0034B480 [14:11:14]SAM_PROTO_ClearQueue [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 09 00 00 [14:11:14]Write to MH i2c: E2 08 00 D5 04 80 09 00 00 00 00 00 00 4B [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]SAM_PROTO_ClearQueue done [14:11:14]KKMCreateOFDPacket [14:11:14]OFDProtocolAddRootSTLVToBuf [14:11:14]FM_MakeSignedData [14:11:14]FM_MakeSignedData [14:11:14]SAM_PROTO_SignData [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 0D 01 02 [14:11:14]Write to MH i2c: E2 08 00 D6 04 80 0D 01 02 00 00 00 00 53 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]wFMCommunicate request_size=255 [14:11:14]MH_SAM_APDU [14:11: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 02 8A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B5 01 00 35 04 06 00 C8 [14:11:14]Write to MH i2c: E2 02 01 D7 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 02 8A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B5 01 00 35 04 06 00 C8 00 00 F6 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]wFMCommunicate request_size=10 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 0D 02 02 05 E5 9E 4A A9 11 [14:11:14]Write to MH i2c: E2 0D 00 D8 04 80 0D 02 02 05 00 E5 9E 4A A9 11 00 00 E7 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 0D 03 02 [14:11:14]Write to MH i2c: E2 08 00 D9 04 80 0D 03 02 00 00 00 00 58 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 0B 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 0B 00 D9 04 00 13 E1 08 ED 58 21 9D 88 90 00 E0 [14:11:14]RAPDU: 13 E1 08 ED 58 21 9D 88 90 00 [14:11:14]wFMCommunicate OK [14:11:14]SAM_PROTO_SignData done [14:11:14]FM_MakeSignedData done [14:11:14]CreateOFDProtocolMessage [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 11 00 00 [14:11:14]Write to MH i2c: E2 08 00 DA 04 80 11 00 00 00 00 00 00 58 [14:11:14]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]OFD Sender: No OFD packet to send [14:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:15]Read from MH i2c: E2 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 17 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 17 00 DA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AA [14:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:11:15]wFMCommunicate OK [14:11:15]CreateOFDProtocolMessage done [14:11:15]OFDSenderStorePacket 111950 [14:11:15]StoreOFDPacket docnum=111950 [14:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 73 3F 07 01 CB 18 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 02 8A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B5 01 00 35 04 06 00 C8 E5 9E 4A A9 11 13 E1 08 ED 58 21 9D 88 [14:11:15]CheckFolder [14:11:15]dirname=/storage/ofd_packets [14:11:15]CheckFolder done [14:11:15]ProducePacketName [14:11:15]name=ofd_packets/00111950 [14:11:15]NVStorageSaveData ofd_packets/00111950 [14:11:15]File name is /storage/ofd_packets/00111950 [14:11:15]Write 301 bytes [14:11:15]NVStorageSaveData done [14:11:15]OFDSenderStorePacket done [14:11:15]KKMCreateOFDPacket done [14:11:15]NVStorageSaveData kkm_last_timestamp [14:11:15]File name is /storage/kkm_last_timestamp [14:11:15]Write 4 bytes [14:11:15]NVStorageSaveData done [14:11:15]ExternCall_PrintAddStr [14:11:15]wPrintStart [14:11:15]Write to MH i2c: 01 00 00 DB 04 DF [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 07 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 07 00 DB 04 00 00 00 00 00 FF 0F F4 [14:11:15]RasterBufferAndPrint [14:11:15]line 小褔械褌 N : (1)320597 [14:11:15]line 袠袧袧: 02508201610067 [14:11:15]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:11:15]line 袩袪袨袛袗袞袗 [14:11:15]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:11:15]line 孝芯胁邪褉: 2710124130 [14:11:15]line 袗懈-92-袣-5 [14:11:15]line 3.020 * 66.40 [14:11:15]line = 200.53 [14:11:15]line 袧袛小 12% 袧小袩 1% [14:11:15]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:11:15]line 袨袣袪校袚袥袝袧袠袝: -0.53 [14:11:15]line 袠孝袨袚袨: 200.00 [14:11:15]line 袙薪械褋械薪芯: 200.00 [14:11:15]line 小袛袗效袗: 0.00 [14:11:15]line 袧小袩 1% : 1.77 [14:11:15]line 袧袛小 12% : 21.29 [14:11:15]line 袧邪谢懈褔薪褘屑懈: 200.00 [14:11:15]line 袘械蟹薪邪谢.: 0.00 [14:11:15]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:11:15]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:11:15]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:11:15]line 效械泻 118 21.06.2024 14:11 [14:11:15]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:11:15]line 袟袧袦: 0300000198 [14:11:15]line 袪袧袦: 0000000000092771 [14:11:15]line 袙械褉褋懈褟 袣袣袦: 001 [14:11:15]line 肖袦: 0000000000875083 [14:11:15]line 肖袛: 111950 [14:11:15]line 肖袩袛: 220888528759057 [14:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141114&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111950&fm=220888528759057&tin=02508201610067®Number=0000000000092771&sum=20000 [14:11:15]OFD Sender: Processing packet 111950 [packets to send 38, broken 37] [14:11:15]ProducePacketName [14:11:15]name=ofd_packets/00111950 [14:11:15]OFD Sender: To server: 嚂鰌G, [14:11:15]CommunicateWithHost lk.salyk.kg:30040 [14:11:15]ConnectInit lk.salyk.kg [14:11:15]written 0, free lines is 4095 [14:11:15]Connected sock=10 [14:11:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 73 3F 07 01 CB 18 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 02 8A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B5 01 00 35 04 06 00 C8 E5 9E 4A A9 11 13 E1 08 ED 58 21 9D 88 [14:11:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 66 C2 47 00 43 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 30 38 37 35 30 38 33 10 04 04 00 4E B5 01 00 F4 03 04 00 2C 21 75 66 B6 04 01 00 00 FB 1A DD A0 8F 73 B3 54 [14:11:15]CommunicateWithHost err = 0 [14:11:15]CheckOFDResponse [14:11:15]1017 (14) - 77093643461234 [14:11:15]1041 (16) - 0000000000875083 [14:11:15]1040 (4) - 111950 [14:11:15]1012 (4) - 21.06.2024 06:43 [14:11:15]1206 (1) - 0 [14:11:15]OFD Sender: Remove packet 111950 [14:11:15]ProducePacketName [14:11:15]name=ofd_packets/00111950 [14:11:15]NVStorageDeleteData [14:11:15]Write to MH i2c: 01 00 00 06 05 0B [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 07 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 07 00 06 05 00 00 00 00 00 D4 0C F2 [14:11:15]RasterBufferAndPrint [14:11:15]line [14:11:15]line [14:11:15]line [14:11:15]line [14:11:15]line [14:11:15]written 0, free lines is 3292 [14:11:15]MH_Cut [14:11:15]Write to MH i2c: D1 01 00 0D 05 01 E4 [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: D1 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: D1 01 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: D1 01 00 0D 05 00 E3 [14:11:15]Write to MH i2c: 01 00 00 0E 05 13 [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:16]OFD Sender: No OFD packet to send [14:11:16]*** Cut start [14:11:16]*** Partial cut [14:11:16]*** CUTSNS_PIN = 1 [14:11:16]*** CUTSNS_PIN = 0 [14:11:16]*** Brake cut motor [14:11:17]Read from MH i2c: 01 [14:11:17]MH_I2C_Read... [14:11:17]*** Stop cut motor [14:11:17]*** Cut end [14:11:17]Read from MH i2c: 01 07 00 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: 01 07 00 0E 05 00 00 00 00 00 FF 0F 28 [14:11:17]process_action close_receipt done [14:11:17]requested_data is exist [14:11:17]produce_requested_data [14:11:17]requested_item fm.sn is exist - process it [14:11:17]wFMCommunicate request_size=4 [14:11:17]MH_SAM_APDU [14:11:17]CAPDU: 80 11 00 00 [14:11:17]Write to MH i2c: E2 08 00 0F 05 80 11 00 00 00 00 00 00 8E [14:11:17]Write i2c OK [14:11:17]MH_I2C_Read... [14:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:17]Read from MH i2c: E2 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: E2 17 00 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: E2 17 00 0F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E0 [14:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:11:17]wFMCommunicate OK [14:11:17]requested_item fd.num is exist - process it [14:11:17]SAM_PROTO_GetFieldsCounters [14:11:17]wFMCommunicate request_size=4 [14:11:17]MH_SAM_APDU [14:11:17]CAPDU: 80 13 00 00 [14:11:17]Write to MH i2c: E2 08 00 10 05 80 13 00 00 00 00 00 00 91 [14:11:17]Write i2c OK [14:11:17]MH_I2C_Read... [14:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:17]Read from MH i2c: E2 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: E2 62 00 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: E2 62 00 10 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4E B5 01 00 0E 04 04 00 86 01 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 9F [14:11:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4E B5 01 00 0E 04 04 00 86 01 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 [14:11:17]wFMCommunicate OK [14:11:17]SAM_PROTO_GetFieldsCounters done [14:11:17]requested_item shift.num is exist - process it [14:11:17]requested_item shift.opened is exist - process it [14:11:17]req_shift_opened [14:11:17]FM_GetShiftState [14:11:17]SAM_PROTO_GetShiftState [14:11:17]wFMCommunicate request_size=4 [14:11:17]MH_SAM_APDU [14:11:17]CAPDU: 80 13 01 00 [14:11:17]Write to MH i2c: E2 08 00 11 05 80 13 01 00 00 00 00 00 93 [14:11:17]Write i2c OK [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: E2 [14:11:17]MH_I2C_Read... [14:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:17]Read from MH i2c: E2 0E 00 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: E2 0E 00 11 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 10 [14:11:17]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:11:17]wFMCommunicate OK [14:11:17]SAM_PROTO_GetShiftState done [14:11:17]FM_GetShiftState done [14:11:17]req_shift_opened done [14:11:17]requested_item shift.open_date is exist - process it [14:11:17]req_shift_open_date [14:11:17]req_shift_open_date done [14:11:17]produce_requested_data done [14:11:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111950,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:11:17]process_action_free close_receipt [14:11:17]json_value_free [14:11:17]json_value_free done [14:11:17]process_json_proto returns [14:11:17]Send response to host [14:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111950,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:11:17]free response buf [14:11:17]execute_script done [14:11:17]execute_script returns [14:11:17]free content buf [14:11:17]Sock 9.Close socket [14:11:17]Sock 9.Thread stoped [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:41]accept exits with 7 [14:13:41]New connection [14:13:41]New thread 3066731876 created [14:13:41]Thread 3066875236 joined [14:13:41]Waiting for new connection... [14:13:41] Sock 7.Parse request [14:13:41]Sock 7.Check first char [14:13:41]Sock 7.First char is OK [14:13:41]request: POST /json_proto HTTP/1.0 [14:13:41]Method: POST [14:13:41]URL: /json_proto [14:13:41]Method is POST - this is cgi request [14:13:41]url: /json_proto [14:13:41]query_string will be loaded in cgi processing [14:13:41]execute_cgi json_proto POST (null) [14:13:41]execute_cgi path=json_proto method=POST [14:13:41]POST find Content-Length [14:13:41]Host: 172.17.59.68:8080 [14:13:41]Content-Length: 674 [14:13:41]Content-Type: application/json [14:13:41] [14:13:41]POST finish read [14:13:41]Found Content-Length = 674 [14:13:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.000, "sum" : 364.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 364.00, "total" : 364.00, "payments": [ { "type": 0, "sum" : 364.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:41]execute_script... [14:13: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)320598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.000, "sum" : 364.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 364.00, "total" : 364.00, "payments": [ { "type": 0, "sum" : 364.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:41]POST & json_proto [14:13:41]process_json_proto [14:13:41]json parsed OK: [14:13:41]protocol is kg_v1.0 [14:13:41]action value=close_receipt [14:13:41]process_action close_receipt [14:13:41]cmd_close_receipt [14:13:41]MH_GetDate [14:13:41]Write to MH i2c: F0 00 00 12 05 06 [14:13:41]Write i2c OK [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: F0 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: F0 09 00 [14:13:41]MH_I2C_Read... [14:13:41]Read from MH i2c: F0 09 00 12 05 00 97 8A 75 66 BC EC 60 65 78 [14:13:41]GetLastDocTimeStamp 1718979074 [14:13:41]current date 1718979223 [14:13:41]FM_GetShiftState [14:13:41]SAM_PROTO_GetShiftState [14:13:41]wFMCommunicate request_size=4 [14:13:41]MH_SAM_APDU [14:13:41]CAPDU: 80 13 01 00 [14:13:41]Write to MH i2c: E2 08 00 13 05 80 13 01 00 00 00 00 00 95 [14:13:41]Write i2c OK [14:13:41]MH_I2C_Read... [14:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:42]Read from MH i2c: E2 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: E2 0E 00 [14:13:42]MH_I2C_Read... [14:13:42]Read from MH i2c: E2 0E 00 13 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 12 [14:13:42]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:13:42]wFMCommunicate OK [14:13:42]SAM_PROTO_GetShiftState done [14:13:42]FM_GetShiftState done [14:13:42]opened in 1718933695 [14:13:42]opened+sec_in_day 1719020095 [14:13:42]quantity*price = 36450 [14:13:42]sum+1 = 36451 [14:13:42]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.50 袠孝袨袚袨: 364.00 袙薪械褋械薪芯: 364.00 小袛袗效袗: 0.00 袧小袩 1% : 3.23 袧袛小 12% : 38.71 袧邪谢懈褔薪褘屑懈: 364.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 119 21.06.2024 14:13 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111951 肖袩袛: 149383589275114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141343&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111951&fm=149383589275114&tin=02508201610067®Number=0000000000092771&sum=36400 [14:13:43]StoreToDocumentArchive [14:13:43]shift 390 fd 111951 [14:13:43]save to /storage/0390/doc_00111951 [14:13:43]save last doc name /storage/0390/doc_00111951 to /storage/kkm_last_doc_name [14:13:43]save OK [14:13:43]Clear old archive folders... [14:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:13:43]tlvbuf is 00345CA0 [14:13:43]SAM_PROTO_ClearQueue [14:13:43]wFMCommunicate request_size=4 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 09 00 00 [14:13:43]Write to MH i2c: E2 08 00 20 05 80 09 00 00 00 00 00 00 97 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [14:13:43]RAPDU: 90 00 [14:13:43]wFMCommunicate OK [14:13:43]SAM_PROTO_ClearQueue done [14:13:43]KKMCreateOFDPacket [14:13:43]OFDProtocolAddRootSTLVToBuf [14:13:43]FM_MakeSignedData [14:13:43]FM_MakeSignedData [14:13:43]SAM_PROTO_SignData [14:13:43]wFMCommunicate request_size=4 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 0D 01 02 [14:13:43]Write to MH i2c: E2 08 00 21 05 80 0D 01 02 00 00 00 00 9F [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [14:13:43]RAPDU: 90 00 [14:13:43]wFMCommunicate OK [14:13:43]wFMCommunicate request_size=255 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 30 8E 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 97 8A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B5 01 00 35 04 06 00 87 DD 13 C6 [14:13:43]Write to MH i2c: E2 02 01 22 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 30 8E 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 97 8A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B5 01 00 35 04 06 00 87 DD 13 C6 00 00 47 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [14:13:43]RAPDU: 90 00 [14:13:43]wFMCommunicate OK [14:13:43]wFMCommunicate request_size=7 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 0D 02 02 02 25 EA [14:13:43]Write to MH i2c: E2 0A 00 23 05 80 0D 02 02 02 00 25 EA 00 00 B5 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [14:13:43]RAPDU: 90 00 [14:13:43]wFMCommunicate OK [14:13:43]wFMCommunicate request_size=4 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 0D 03 02 [14:13:43]Write to MH i2c: E2 08 00 24 05 80 0D 03 02 00 00 00 00 A4 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 0B 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 0B 00 24 05 00 C2 E5 38 3F 72 B1 86 8C 90 00 F8 [14:13:43]RAPDU: C2 E5 38 3F 72 B1 86 8C 90 00 [14:13:43]wFMCommunicate OK [14:13:43]SAM_PROTO_SignData done [14:13:43]FM_MakeSignedData done [14:13:43]CreateOFDProtocolMessage [14:13:43]wFMCommunicate request_size=4 [14:13:43]MH_SAM_APDU [14:13:43]CAPDU: 80 11 00 00 [14:13:43]Write to MH i2c: E2 08 00 25 05 80 11 00 00 00 00 00 00 A4 [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:43]Read from MH i2c: E2 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 17 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: E2 17 00 25 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F6 [14:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:13:43]wFMCommunicate OK [14:13:43]CreateOFDProtocolMessage done [14:13:43]OFDSenderStorePacket 111951 [14:13:43]StoreOFDPacket docnum=111951 [14:13:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 7B 73 04 01 55 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 30 8E 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 97 8A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B5 01 00 35 04 06 00 87 DD 13 C6 25 EA C2 E5 38 3F 72 B1 86 8C [14:13:43]CheckFolder [14:13:43]dirname=/storage/ofd_packets [14:13:43]CheckFolder done [14:13:43]ProducePacketName [14:13:43]name=ofd_packets/00111951 [14:13:43]NVStorageSaveData ofd_packets/00111951 [14:13:43]File name is /storage/ofd_packets/00111951 [14:13:43]Write 298 bytes [14:13:43]NVStorageSaveData done [14:13:43]OFDSenderStorePacket done [14:13:43]KKMCreateOFDPacket done [14:13:43]NVStorageSaveData kkm_last_timestamp [14:13:43]File name is /storage/kkm_last_timestamp [14:13:43]Write 4 bytes [14:13:43]NVStorageSaveData done [14:13:43]ExternCall_PrintAddStr [14:13:43]wPrintStart [14:13:43]Write to MH i2c: 01 00 00 26 05 2B [14:13:43]Write i2c OK [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: 01 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: 01 07 00 [14:13:43]MH_I2C_Read... [14:13:43]Read from MH i2c: 01 07 00 26 05 00 00 00 00 00 FF 0F 40 [14:13:43]RasterBufferAndPrint [14:13:43]line 小褔械褌 N : (1)320598 [14:13:43]line 袠袧袧: 02508201610067 [14:13:43]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:13:43]line 袩袪袨袛袗袞袗 [14:13:43]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [14:13:43]line 孝芯胁邪褉: 2710194210 [14:13:43]line 袛孝-袣-5 [14:13:43]line 5.000 * 72.90 [14:13:43]line = 364.50 [14:13:43]line 袧袛小 12% 袧小袩 1% [14:13:43]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:13:43]line 袨袣袪校袚袥袝袧袠袝: -0.50 [14:13:43]line 袠孝袨袚袨: 364.00 [14:13:43]line 袙薪械褋械薪芯: 364.00 [14:13:43]line 小袛袗效袗: 0.00 [14:13:43]line 袧小袩 1% : 3.23 [14:13:43]line 袧袛小 12% : 38.71 [14:13:43]line 袧邪谢懈褔薪褘屑懈: 364.00 [14:13:43]line 袘械蟹薪邪谢.: 0.00 [14:13:43]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:13:43]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:13:43]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:13:43]line 效械泻 119 21.06.2024 14:13 [14:13:43]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:13:43]line 袟袧袦: 0300000198 [14:13:43]line 袪袧袦: 0000000000092771 [14:13:43]line 袙械褉褋懈褟 袣袣袦: 001 [14:13:43]line 肖袦: 0000000000875083 [14:13:43]line 肖袛: 111951 [14:13:43]line 肖袩袛: 149383589275114 [14:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141343&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111951&fm=149383589275114&tin=02508201610067®Number=0000000000092771&sum=36400 [14:13:44]OFD Sender: Processing packet 111951 [packets to send 38, broken 37] [14:13:44]ProducePacketName [14:13:44]name=ofd_packets/00111951 [14:13:44]OFD Sender: To server: 嚂鰌G, [14:13:44]CommunicateWithHost lk.salyk.kg:30040 [14:13:44]ConnectInit lk.salyk.kg [14:13:44]written 0, free lines is 4095 [14:13:44]Connected sock=10 [14:13:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 7B 73 04 01 55 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 30 8E 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 97 8A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B5 01 00 35 04 06 00 87 DD 13 C6 25 EA C2 E5 38 3F 72 B1 86 8C [14:13:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3E B8 47 00 D4 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 30 38 37 35 30 38 33 10 04 04 00 4F B5 01 00 F4 03 04 00 C0 21 75 66 B6 04 01 00 00 A5 FC D6 E8 DE D9 ED B9 [14:13:44]CommunicateWithHost err = 0 [14:13:44]CheckOFDResponse [14:13:44]1017 (14) - 77093643461234 [14:13:44]1041 (16) - 0000000000875083 [14:13:44]1040 (4) - 111951 [14:13:44]1012 (4) - 21.06.2024 06:46 [14:13:44]1206 (1) - 0 [14:13:44]OFD Sender: Remove packet 111951 [14:13:44]ProducePacketName [14:13:44]name=ofd_packets/00111951 [14:13:44]NVStorageDeleteData [14:13:44]Write to MH i2c: 01 00 00 51 05 56 [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: 01 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: 01 07 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 DC 0C 45 [14:13:44]RasterBufferAndPrint [14:13:44]line [14:13:44]line [14:13:44]line [14:13:44]line [14:13:44]line [14:13:44]written 0, free lines is 3298 [14:13:44]MH_Cut [14:13:44]Write to MH i2c: D1 01 00 58 05 01 2F [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: D1 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: D1 01 00 [14:13:44]MH_I2C_Read... [14:13:44]Read from MH i2c: D1 01 00 58 05 00 2E [14:13:44]Write to MH i2c: 01 00 00 59 05 5E [14:13:44]Write i2c OK [14:13:44]MH_I2C_Read... [14:13:44]OFD Sender: No OFD packet to send [14:13:45]*** Cut start [14:13:45]*** Partial cut [14:13:45]*** CUTSNS_PIN = 1 [14:13:45]*** CUTSNS_PIN = 0 [14:13:45]*** Brake cut motor [14:13:45]Read from MH i2c: 01 [14:13:45]MH_I2C_Read... [14:13:45]*** Stop cut motor [14:13:45]*** Cut end [14:13:45]Read from MH i2c: 01 07 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 FF 0F 73 [14:13:45]process_action close_receipt done [14:13:45]requested_data is exist [14:13:45]produce_requested_data [14:13:45]requested_item fm.sn is exist - process it [14:13:45]wFMCommunicate request_size=4 [14:13:45]MH_SAM_APDU [14:13:45]CAPDU: 80 11 00 00 [14:13:45]Write to MH i2c: E2 08 00 5A 05 80 11 00 00 00 00 00 00 D9 [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:45]Read from MH i2c: E2 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: E2 17 00 [14:13:45]MH_I2C_Read... [14:13:45]Read from MH i2c: E2 17 00 5A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2B [14:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:13:45]wFMCommunicate OK [14:13:45]requested_item fd.num is exist - process it [14:13:45]SAM_PROTO_GetFieldsCounters [14:13:45]wFMCommunicate request_size=4 [14:13:45]MH_SAM_APDU [14:13:45]CAPDU: 80 13 00 00 [14:13:45]Write to MH i2c: E2 08 00 5B 05 80 13 00 00 00 00 00 00 DC [14:13:45]Write i2c OK [14:13:45]MH_I2C_Read... [14:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:46]Read from MH i2c: E2 [14:13:46]MH_I2C_Read... [14:13:46]Read from MH i2c: E2 62 00 [14:13:46]MH_I2C_Read... [14:13:46]Read from MH i2c: E2 62 00 5B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4F B5 01 00 0E 04 04 00 86 01 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 EE [14:13:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4F B5 01 00 0E 04 04 00 86 01 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 [14:13:46]wFMCommunicate OK [14:13:46]SAM_PROTO_GetFieldsCounters done [14:13:46]requested_item shift.num is exist - process it [14:13:46]requested_item shift.opened is exist - process it [14:13:46]req_shift_opened [14:13:46]FM_GetShiftState [14:13:46]SAM_PROTO_GetShiftState [14:13:46]wFMCommunicate request_size=4 [14:13:46]MH_SAM_APDU [14:13:46]CAPDU: 80 13 01 00 [14:13:46]Write to MH i2c: E2 08 00 5C 05 80 13 01 00 00 00 00 00 DE [14:13:46]Write i2c OK [14:13:46]MH_I2C_Read... [14:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:46]Read from MH i2c: E2 [14:13:46]MH_I2C_Read... [14:13:46]Read from MH i2c: E2 0E 00 [14:13:46]MH_I2C_Read... [14:13:46]Read from MH i2c: E2 0E 00 5C 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 5B [14:13:46]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:13:46]wFMCommunicate OK [14:13:46]SAM_PROTO_GetShiftState done [14:13:46]FM_GetShiftState done [14:13:46]req_shift_opened done [14:13:46]requested_item shift.open_date is exist - process it [14:13:46]req_shift_open_date [14:13:46]req_shift_open_date done [14:13:46]produce_requested_data done [14:13:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111951,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:13:46]process_action_free close_receipt [14:13:46]json_value_free [14:13:46]json_value_free done [14:13:46]process_json_proto returns [14:13:46]Send response to host [14:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111951,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:13:46]free response buf [14:13:46]execute_script done [14:13:46]execute_script returns [14:13:46]free content buf [14:13:46]Sock 7.Close socket [14:13:46]Sock 7.Thread stoped [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]accept exits with 9 [14:14:34]New connection [14:14:34]New thread 3066875236 created [14:14:34]Thread 3066731876 joined [14:14:34]Waiting for new connection... [14:14:34] Sock 9.Parse request [14:14:34]Sock 9.Check first char [14:14:34]Sock 9.First char is OK [14:14:34]request: POST /json_proto HTTP/1.0 [14:14:34]Method: POST [14:14:34]URL: /json_proto [14:14:34]Method is POST - this is cgi request [14:14:34]url: /json_proto [14:14:34]query_string will be loaded in cgi processing [14:14:34]execute_cgi json_proto POST (null) [14:14:34]execute_cgi path=json_proto method=POST [14:14:34]POST find Content-Length [14:14:34]Host: 172.17.59.68:8080 [14:14:34]Content-Length: 677 [14:14:34]Content-Type: application/json [14:14:34] [14:14:34]POST finish read [14:14:34]Found Content-Length = 677 [14:14:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.750, "sum" : 381.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 381.00, "payments": [ { "type": 0, "sum" : 381.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:34]execute_script... [14:14: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 : (1)320599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.750, "sum" : 381.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 381.00, "payments": [ { "type": 0, "sum" : 381.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:34]POST & json_proto [14:14:34]process_json_proto [14:14:34]json parsed OK: [14:14:34]protocol is kg_v1.0 [14:14:34]action value=close_receipt [14:14:34]process_action close_receipt [14:14:34]cmd_close_receipt [14:14:34]MH_GetDate [14:14:34]Write to MH i2c: F0 00 00 5D 05 51 [14:14:34]Write i2c OK [14:14:34]MH_I2C_Read... [14:14:34]Read from MH i2c: F0 [14:14:34]MH_I2C_Read... [14:14:34]Read from MH i2c: F0 09 00 [14:14:34]MH_I2C_Read... [14:14:34]Read from MH i2c: F0 09 00 5D 05 00 CB 8A 75 66 BC EC 60 65 F7 [14:14:34]GetLastDocTimeStamp 1718979223 [14:14:34]current date 1718979275 [14:14:34]FM_GetShiftState [14:14:34]SAM_PROTO_GetShiftState [14:14:34]wFMCommunicate request_size=4 [14:14:34]MH_SAM_APDU [14:14:34]CAPDU: 80 13 01 00 [14:14:34]Write to MH i2c: E2 08 00 5E 05 80 13 01 00 00 00 00 00 E0 [14:14:34]Write i2c OK [14:14:34]MH_I2C_Read... [14:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:34]Read from MH i2c: E2 [14:14:34]MH_I2C_Read... [14:14:34]Read from MH i2c: E2 0E 00 [14:14:34]MH_I2C_Read... [14:14:34]Read from MH i2c: E2 0E 00 5E 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 5D [14:14:34]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:14:34]wFMCommunicate OK [14:14:34]SAM_PROTO_GetShiftState done [14:14:34]FM_GetShiftState done [14:14:34]opened in 1718933695 [14:14:34]opened+sec_in_day 1719020095 [14:14:34]quantity*price = 38180 [14:14:34]sum+1 = 38181 [14:14:34]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.80 袠孝袨袚袨: 381.00 袙薪械褋械薪芯: 400.00 小袛袗效袗: 19.00 袧小袩 1% : 3.38 袧袛小 12% : 40.54 袧邪谢懈褔薪褘屑懈: 381.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 120 21.06.2024 14:14 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111952 肖袩袛: 193494509006865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141435&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111952&fm=193494509006865&tin=02508201610067®Number=0000000000092771&sum=38100 [14:14:35]StoreToDocumentArchive [14:14:35]shift 390 fd 111952 [14:14:35]save to /storage/0390/doc_00111952 [14:14:35]save last doc name /storage/0390/doc_00111952 to /storage/kkm_last_doc_name [14:14:35]save OK [14:14:35]Clear old archive folders... [14:14:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:35]tlvbuf is 0046FF20 [14:14:35]SAM_PROTO_ClearQueue [14:14:35]wFMCommunicate request_size=4 [14:14:35]MH_SAM_APDU [14:14:35]CAPDU: 80 09 00 00 [14:14:35]Write to MH i2c: E2 08 00 6B 05 80 09 00 00 00 00 00 00 E2 [14:14:35]Write i2c OK [14:14:35]MH_I2C_Read... [14:14:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:35]Read from MH i2c: E2 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: E2 03 00 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [14:14:35]RAPDU: 90 00 [14:14:35]wFMCommunicate OK [14:14:35]SAM_PROTO_ClearQueue done [14:14:35]KKMCreateOFDPacket [14:14:35]OFDProtocolAddRootSTLVToBuf [14:14:35]FM_MakeSignedData [14:14:35]FM_MakeSignedData [14:14:35]SAM_PROTO_SignData [14:14:35]wFMCommunicate request_size=4 [14:14:35]MH_SAM_APDU [14:14:35]CAPDU: 80 0D 01 02 [14:14:35]Write to MH i2c: E2 08 00 6C 05 80 0D 01 02 00 00 00 00 EA [14:14:35]Write i2c OK [14:14:35]MH_I2C_Read... [14:14:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:35]Read from MH i2c: E2 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: E2 03 00 [14:14:35]MH_I2C_Read... [14:14:35]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [14:14:35]RAPDU: 90 00 [14:14:35]wFMCommunicate OK [14:14:35]wFMCommunicate request_size=255 [14:14:35]MH_SAM_APDU [14:14:35]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 76 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 24 95 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 0F 00 00 00 00 07 04 06 00 D4 94 00 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 CB 8A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B5 01 00 35 04 06 00 AF [14:14:35]Write to MH i2c: E2 02 01 6D 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 76 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 24 95 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 0F 00 00 00 00 07 04 06 00 D4 94 00 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 CB 8A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B5 01 00 35 04 06 00 AF 00 00 2E [14:14:35]Write i2c OK [14:14:35]MH_I2C_Read... [14:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:36]Read from MH i2c: E2 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 03 00 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [14:14:36]RAPDU: 90 00 [14:14:36]wFMCommunicate OK [14:14:36]wFMCommunicate request_size=10 [14:14:36]MH_SAM_APDU [14:14:36]CAPDU: 80 0D 02 02 05 FB 73 79 B0 11 [14:14:36]Write to MH i2c: E2 0D 00 6E 05 80 0D 02 02 05 00 FB 73 79 B0 11 00 00 9F [14:14:36]Write i2c OK [14:14:36]MH_I2C_Read... [14:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:36]Read from MH i2c: E2 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 03 00 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [14:14:36]RAPDU: 90 00 [14:14:36]wFMCommunicate OK [14:14:36]wFMCommunicate request_size=4 [14:14:36]MH_SAM_APDU [14:14:36]CAPDU: 80 0D 03 02 [14:14:36]Write to MH i2c: E2 08 00 6F 05 80 0D 03 02 00 00 00 00 EF [14:14:36]Write i2c OK [14:14:36]MH_I2C_Read... [14:14:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:36]Read from MH i2c: E2 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 0B 00 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 0B 00 6F 05 00 F7 FC B4 42 24 7D 54 18 90 00 E6 [14:14:36]RAPDU: F7 FC B4 42 24 7D 54 18 90 00 [14:14:36]wFMCommunicate OK [14:14:36]SAM_PROTO_SignData done [14:14:36]FM_MakeSignedData done [14:14:36]CreateOFDProtocolMessage [14:14:36]wFMCommunicate request_size=4 [14:14:36]MH_SAM_APDU [14:14:36]CAPDU: 80 11 00 00 [14:14:36]Write to MH i2c: E2 08 00 70 05 80 11 00 00 00 00 00 00 EF [14:14:36]Write i2c OK [14:14:36]MH_I2C_Read... [14:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:36]Read from MH i2c: E2 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 17 00 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: E2 17 00 70 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 41 [14:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:14:36]wFMCommunicate OK [14:14:36]CreateOFDProtocolMessage done [14:14:36]OFDSenderStorePacket 111952 [14:14:36]StoreOFDPacket docnum=111952 [14:14:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A1 56 07 01 D3 4C 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 76 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 24 95 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 0F 00 00 00 00 07 04 06 00 D4 94 00 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 CB 8A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B5 01 00 35 04 06 00 AF FB 73 79 B0 11 F7 FC B4 42 24 7D 54 18 [14:14:36]CheckFolder [14:14:36]dirname=/storage/ofd_packets [14:14:36]CheckFolder done [14:14:36]ProducePacketName [14:14:36]name=ofd_packets/00111952 [14:14:36]NVStorageSaveData ofd_packets/00111952 [14:14:36]File name is /storage/ofd_packets/00111952 [14:14:36]Write 301 bytes [14:14:36]NVStorageSaveData done [14:14:36]OFDSenderStorePacket done [14:14:36]KKMCreateOFDPacket done [14:14:36]NVStorageSaveData kkm_last_timestamp [14:14:36]File name is /storage/kkm_last_timestamp [14:14:36]Write 4 bytes [14:14:36]NVStorageSaveData done [14:14:36]ExternCall_PrintAddStr [14:14:36]wPrintStart [14:14:36]Write to MH i2c: 01 00 00 71 05 76 [14:14:36]Write i2c OK [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: 01 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: 01 07 00 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: 01 07 00 71 05 00 00 00 00 00 FF 0F 8B [14:14:36]RasterBufferAndPrint [14:14:36]line 小褔械褌 N : (1)320599 [14:14:36]line 袠袧袧: 02508201610067 [14:14:36]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:14:36]line 袩袪袨袛袗袞袗 [14:14:36]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:14:36]line 孝芯胁邪褉: 2710124130 [14:14:36]line 袗懈-92-袣-5 [14:14:36]line 5.750 * 66.40 [14:14:36]line = 381.80 [14:14:36]line 袧袛小 12% 袧小袩 1% [14:14:36]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:14:36]line 袨袣袪校袚袥袝袧袠袝: -0.80 [14:14:36]line 袠孝袨袚袨: 381.00 [14:14:36]line 袙薪械褋械薪芯: 400.00 [14:14:36]line 小袛袗效袗: 19.00 [14:14:36]line 袧小袩 1% : 3.38 [14:14:36]line 袧袛小 12% : 40.54 [14:14:36]line 袧邪谢懈褔薪褘屑懈: 381.00 [14:14:36]line 袘械蟹薪邪谢.: 0.00 [14:14:36]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:14:36]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:14:36]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:14:36]line 效械泻 120 21.06.2024 14:14 [14:14:36]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:14:36]line 袟袧袦: 0300000198 [14:14:36]line 袪袧袦: 0000000000092771 [14:14:36]line 袙械褉褋懈褟 袣袣袦: 001 [14:14:36]line 肖袦: 0000000000875083 [14:14:36]line 肖袛: 111952 [14:14:36]line 肖袩袛: 193494509006865 [14:14:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141435&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111952&fm=193494509006865&tin=02508201610067®Number=0000000000092771&sum=38100 [14:14:36]OFD Sender: Processing packet 111952 [packets to send 38, broken 37] [14:14:36]ProducePacketName [14:14:36]name=ofd_packets/00111952 [14:14:36]OFD Sender: To server: 嚂鰌G, [14:14:36]CommunicateWithHost lk.salyk.kg:30040 [14:14:36]ConnectInit lk.salyk.kg [14:14:36]written 0, free lines is 4095 [14:14:36]Connected sock=10 [14:14:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A1 56 07 01 D3 4C 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 76 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 24 95 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 0F 00 00 00 00 07 04 06 00 D4 94 00 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 CB 8A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B5 01 00 35 04 06 00 AF FB 73 79 B0 11 F7 FC B4 42 24 7D 54 18 [14:14:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 32 03 47 00 8A 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 30 38 37 35 30 38 33 10 04 04 00 50 B5 01 00 F4 03 04 00 F5 21 75 66 B6 04 01 00 00 A0 CF 9B 73 A7 7B 9B 5D [14:14:36]CommunicateWithHost err = 0 [14:14:36]CheckOFDResponse [14:14:36]1017 (14) - 77093643461234 [14:14:36]1041 (16) - 0000000000875083 [14:14:36]1040 (4) - 111952 [14:14:36]1012 (4) - 21.06.2024 06:47 [14:14:36]1206 (1) - 0 [14:14:36]OFD Sender: Remove packet 111952 [14:14:36]ProducePacketName [14:14:36]name=ofd_packets/00111952 [14:14:36]NVStorageDeleteData [14:14:36]Write to MH i2c: 01 00 00 9C 05 A1 [14:14:36]Write i2c OK [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: 01 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: 01 07 00 [14:14:36]MH_I2C_Read... [14:14:36]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 D4 0C 88 [14:14:36]RasterBufferAndPrint [14:14:36]line [14:14:36]line [14:14:36]line [14:14:36]line [14:14:36]line [14:14:36]written 0, free lines is 3292 [14:14:37]MH_Cut [14:14:37]Write to MH i2c: D1 01 00 A3 05 01 7A [14:14:37]Write i2c OK [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: D1 [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: D1 01 00 [14:14:37]MH_I2C_Read... [14:14:37]Read from MH i2c: D1 01 00 A3 05 00 79 [14:14:37]Write to MH i2c: 01 00 00 A4 05 A9 [14:14:37]Write i2c OK [14:14:37]MH_I2C_Read... [14:14:37]OFD Sender: No OFD packet to send [14:14:37]*** Cut start [14:14:37]*** Partial cut [14:14:37]*** CUTSNS_PIN = 1 [14:14:37]*** CUTSNS_PIN = 0 [14:14:37]*** Brake cut motor [14:14:38]Read from MH i2c: 01 [14:14:38]MH_I2C_Read... [14:14:38]*** Stop cut motor [14:14:38]*** Cut end [14:14:38]Read from MH i2c: 01 07 00 [14:14:38]MH_I2C_Read... [14:14:38]Read from MH i2c: 01 07 00 A4 05 00 00 00 00 00 FF 0F BE [14:14:38]process_action close_receipt done [14:14:38]requested_data is exist [14:14:38]produce_requested_data [14:14:38]requested_item fm.sn is exist - process it [14:14:38]wFMCommunicate request_size=4 [14:14:38]MH_SAM_APDU [14:14:38]CAPDU: 80 11 00 00 [14:14:38]Write to MH i2c: E2 08 00 A5 05 80 11 00 00 00 00 00 00 24 [14:14:38]Write i2c OK [14:14:38]MH_I2C_Read... [14:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:38]Read from MH i2c: E2 [14:14:38]MH_I2C_Read... [14:14:38]Read from MH i2c: E2 17 00 [14:14:38]MH_I2C_Read... [14:14:38]Read from MH i2c: E2 17 00 A5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 76 [14:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:14:38]wFMCommunicate OK [14:14:38]requested_item fd.num is exist - process it [14:14:38]SAM_PROTO_GetFieldsCounters [14:14:38]wFMCommunicate request_size=4 [14:14:38]MH_SAM_APDU [14:14:38]CAPDU: 80 13 00 00 [14:14:38]Write to MH i2c: E2 08 00 A6 05 80 13 00 00 00 00 00 00 27 [14:14:38]Write i2c OK [14:14:38]MH_I2C_Read... [14:14:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:38]Read from MH i2c: E2 [14:14:38]MH_I2C_Read... [14:14:38]Read from MH i2c: E2 62 00 [14:14:38]MH_I2C_Read... [14:14:38]Read from MH i2c: E2 62 00 A6 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 50 B5 01 00 0E 04 04 00 86 01 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 3D [14:14:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 50 B5 01 00 0E 04 04 00 86 01 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 [14:14:38]wFMCommunicate OK [14:14:38]SAM_PROTO_GetFieldsCounters done [14:14:38]requested_item shift.num is exist - process it [14:14:38]requested_item shift.opened is exist - process it [14:14:38]req_shift_opened [14:14:38]FM_GetShiftState [14:14:38]SAM_PROTO_GetShiftState [14:14:38]wFMCommunicate request_size=4 [14:14:38]MH_SAM_APDU [14:14:38]CAPDU: 80 13 01 00 [14:14:38]Write to MH i2c: E2 08 00 A7 05 80 13 01 00 00 00 00 00 29 [14:14:38]Write i2c OK [14:14:38]MH_I2C_Read... [14:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:38]Read from MH i2c: E2 [14:14:38]MH_I2C_Read... [14:14:38]Read from MH i2c: E2 0E 00 [14:14:38]MH_I2C_Read... [14:14:38]Read from MH i2c: E2 0E 00 A7 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A6 [14:14:38]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:14:38]wFMCommunicate OK [14:14:38]SAM_PROTO_GetShiftState done [14:14:38]FM_GetShiftState done [14:14:38]req_shift_opened done [14:14:38]requested_item shift.open_date is exist - process it [14:14:38]req_shift_open_date [14:14:38]req_shift_open_date done [14:14:38]produce_requested_data done [14:14:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111952,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:14:38]process_action_free close_receipt [14:14:38]json_value_free [14:14:38]json_value_free done [14:14:38]process_json_proto returns [14:14:38]Send response to host [14:14:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111952,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:14:38]free response buf [14:14:38]execute_script done [14:14:38]execute_script returns [14:14:38]free content buf [14:14:38]Sock 9.Close socket [14:14:38]Sock 9.Thread stoped [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:45]accept exits with 7 [14:15:45]New connection [14:15:45]New thread 3066731876 created [14:15:45]Thread 3066875236 joined [14:15:45]Waiting for new connection... [14:15:45] Sock 7.Parse request [14:15:45]Sock 7.Check first char [14:15:45]Sock 7.First char is OK [14:15:45]request: POST /json_proto HTTP/1.0 [14:15:45]Method: POST [14:15:45]URL: /json_proto [14:15:45]Method is POST - this is cgi request [14:15:45]url: /json_proto [14:15:45]query_string will be loaded in cgi processing [14:15:45]execute_cgi json_proto POST (null) [14:15:45]execute_cgi path=json_proto method=POST [14:15:45]POST find Content-Length [14:15:45]Host: 172.17.59.68:8080 [14:15:45]Content-Length: 677 [14:15:45]Content-Type: application/json [14:15:45] [14:15:45]POST finish read [14:15:45]Found Content-Length = 677 [14:15:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.010, "sum" : 133.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:45]execute_script... [14:15: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)320600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.010, "sum" : 133.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:45]POST & json_proto [14:15:45]process_json_proto [14:15:45]json parsed OK: [14:15:45]protocol is kg_v1.0 [14:15:45]action value=close_receipt [14:15:45]process_action close_receipt [14:15:45]cmd_close_receipt [14:15:45]MH_GetDate [14:15:45]Write to MH i2c: F0 00 00 A8 05 9C [14:15:45]Write i2c OK [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: F0 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: F0 09 00 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: F0 09 00 A8 05 00 12 8B 75 66 BC EC 60 65 8A [14:15:45]GetLastDocTimeStamp 1718979275 [14:15:45]current date 1718979346 [14:15:45]FM_GetShiftState [14:15:45]SAM_PROTO_GetShiftState [14:15:45]wFMCommunicate request_size=4 [14:15:45]MH_SAM_APDU [14:15:45]CAPDU: 80 13 01 00 [14:15:45]Write to MH i2c: E2 08 00 A9 05 80 13 01 00 00 00 00 00 2B [14:15:45]Write i2c OK [14:15:45]MH_I2C_Read... [14:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:45]Read from MH i2c: E2 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 0E 00 [14:15:45]MH_I2C_Read... [14:15:45]Read from MH i2c: E2 0E 00 A9 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A8 [14:15:45]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:15:45]wFMCommunicate OK [14:15:45]SAM_PROTO_GetShiftState done [14:15:45]FM_GetShiftState done [14:15:45]opened in 1718933695 [14:15:45]opened+sec_in_day 1719020095 [14:15:45]quantity*price = 13346 [14:15:45]sum+1 = 13347 [14:15:45]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.46 袠孝袨袚袨: 133.00 袙薪械褋械薪芯: 133.00 小袛袗效袗: 0.00 袧小袩 1% : 1.18 袧袛小 12% : 14.17 袧邪谢懈褔薪褘屑懈: 133.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 121 21.06.2024 14:15 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111953 肖袩袛: 164194517747764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141546&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111953&fm=164194517747764&tin=02508201610067®Number=0000000000092771&sum=13300 [14:15:46]StoreToDocumentArchive [14:15:46]shift 390 fd 111953 [14:15:46]save to /storage/0390/doc_00111953 [14:15:46]save last doc name /storage/0390/doc_00111953 to /storage/kkm_last_doc_name [14:15:46]save OK [14:15:46]Clear old archive folders... [14:15:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:46]tlvbuf is 0043D4E0 [14:15:46]SAM_PROTO_ClearQueue [14:15:46]wFMCommunicate request_size=4 [14:15:46]MH_SAM_APDU [14:15:46]CAPDU: 80 09 00 00 [14:15:46]Write to MH i2c: E2 08 00 B6 05 80 09 00 00 00 00 00 00 2D [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:46]Read from MH i2c: E2 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 03 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [14:15:46]RAPDU: 90 00 [14:15:46]wFMCommunicate OK [14:15:46]SAM_PROTO_ClearQueue done [14:15:46]KKMCreateOFDPacket [14:15:46]OFDProtocolAddRootSTLVToBuf [14:15:46]FM_MakeSignedData [14:15:46]FM_MakeSignedData [14:15:46]SAM_PROTO_SignData [14:15:46]wFMCommunicate request_size=4 [14:15:46]MH_SAM_APDU [14:15:46]CAPDU: 80 0D 01 02 [14:15:46]Write to MH i2c: E2 08 00 B7 05 80 0D 01 02 00 00 00 00 35 [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:46]Read from MH i2c: E2 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 03 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [14:15:46]RAPDU: 90 00 [14:15:46]wFMCommunicate OK [14:15:46]wFMCommunicate request_size=255 [14:15:46]MH_SAM_APDU [14:15: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 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 12 8B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B5 01 00 35 04 06 00 95 [14:15:46]Write to MH i2c: E2 02 01 B8 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 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 12 8B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B5 01 00 35 04 06 00 95 00 00 E5 [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:46]Read from MH i2c: E2 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 03 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [14:15:46]RAPDU: 90 00 [14:15:46]wFMCommunicate OK [14:15:46]wFMCommunicate request_size=10 [14:15:46]MH_SAM_APDU [14:15:46]CAPDU: 80 0D 02 02 05 55 83 E7 88 34 [14:15:46]Write to MH i2c: E2 0D 00 B9 05 80 0D 02 02 05 00 55 83 E7 88 34 00 00 BD [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:46]Read from MH i2c: E2 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 03 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [14:15:46]RAPDU: 90 00 [14:15:46]wFMCommunicate OK [14:15:46]wFMCommunicate request_size=4 [14:15:46]MH_SAM_APDU [14:15:46]CAPDU: 80 0D 03 02 [14:15:46]Write to MH i2c: E2 08 00 BA 05 80 0D 03 02 00 00 00 00 3A [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:46]Read from MH i2c: E2 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 0B 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 0B 00 BA 05 00 D3 9E 26 41 65 B7 AB 16 90 00 F0 [14:15:46]RAPDU: D3 9E 26 41 65 B7 AB 16 90 00 [14:15:46]wFMCommunicate OK [14:15:46]SAM_PROTO_SignData done [14:15:46]FM_MakeSignedData done [14:15:46]CreateOFDProtocolMessage [14:15:46]wFMCommunicate request_size=4 [14:15:46]MH_SAM_APDU [14:15:46]CAPDU: 80 11 00 00 [14:15:46]Write to MH i2c: E2 08 00 BB 05 80 11 00 00 00 00 00 00 3A [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:46]Read from MH i2c: E2 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 17 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: E2 17 00 BB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8C [14:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:15:46]wFMCommunicate OK [14:15:46]CreateOFDProtocolMessage done [14:15:46]OFDSenderStorePacket 111953 [14:15:46]StoreOFDPacket docnum=111953 [14:15:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 39 E5 07 01 13 AA 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 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 12 8B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B5 01 00 35 04 06 00 95 55 83 E7 88 34 D3 9E 26 41 65 B7 AB 16 [14:15:46]CheckFolder [14:15:46]dirname=/storage/ofd_packets [14:15:46]CheckFolder done [14:15:46]ProducePacketName [14:15:46]name=ofd_packets/00111953 [14:15:46]NVStorageSaveData ofd_packets/00111953 [14:15:46]File name is /storage/ofd_packets/00111953 [14:15:46]Write 301 bytes [14:15:46]NVStorageSaveData done [14:15:46]OFDSenderStorePacket done [14:15:46]KKMCreateOFDPacket done [14:15:46]NVStorageSaveData kkm_last_timestamp [14:15:46]File name is /storage/kkm_last_timestamp [14:15:46]Write 4 bytes [14:15:46]NVStorageSaveData done [14:15:46]ExternCall_PrintAddStr [14:15:46]wPrintStart [14:15:46]Write to MH i2c: 01 00 00 BC 05 C1 [14:15:46]Write i2c OK [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: 01 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: 01 07 00 [14:15:46]MH_I2C_Read... [14:15:46]Read from MH i2c: 01 07 00 BC 05 00 00 00 00 00 FF 0F D6 [14:15:46]RasterBufferAndPrint [14:15:46]line 小褔械褌 N : (1)320600 [14:15:46]line 袠袧袧: 02508201610067 [14:15:46]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:15:46]line 袩袪袨袛袗袞袗 [14:15:46]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:15:46]line 孝芯胁邪褉: 2710124130 [14:15:46]line 袗懈-92-袣-5 [14:15:46]line 2.010 * 66.40 [14:15:46]line = 133.46 [14:15:46]line 袧袛小 12% 袧小袩 1% [14:15:46]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:15:46]line 袨袣袪校袚袥袝袧袠袝: -0.46 [14:15:46]line 袠孝袨袚袨: 133.00 [14:15:46]line 袙薪械褋械薪芯: 133.00 [14:15:46]line 小袛袗效袗: 0.00 [14:15:46]line 袧小袩 1% : 1.18 [14:15:46]line 袧袛小 12% : 14.17 [14:15:46]line 袧邪谢懈褔薪褘屑懈: 133.00 [14:15:46]line 袘械蟹薪邪谢.: 0.00 [14:15:46]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:15:46]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:15:46]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:15:46]line 效械泻 121 21.06.2024 14:15 [14:15:46]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:15:46]line 袟袧袦: 0300000198 [14:15:46]line 袪袧袦: 0000000000092771 [14:15:46]line 袙械褉褋懈褟 袣袣袦: 001 [14:15:46]line 肖袦: 0000000000875083 [14:15:46]line 肖袛: 111953 [14:15:46]line 肖袩袛: 164194517747764 [14:15:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141546&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111953&fm=164194517747764&tin=02508201610067®Number=0000000000092771&sum=13300 [14:15:47]OFD Sender: Processing packet 111953 [packets to send 38, broken 37] [14:15:47]ProducePacketName [14:15:47]name=ofd_packets/00111953 [14:15:47]OFD Sender: To server: 嚂鰌G, [14:15:47]CommunicateWithHost lk.salyk.kg:30040 [14:15:47]ConnectInit lk.salyk.kg [14:15:47]written 0, free lines is 4095 [14:15:47]Connected sock=10 [14:15:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 39 E5 07 01 13 AA 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 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 12 8B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B5 01 00 35 04 06 00 95 55 83 E7 88 34 D3 9E 26 41 65 B7 AB 16 [14:15:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 84 F8 47 00 EA 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B5 01 00 F4 03 04 00 3B 22 75 66 B6 04 01 00 00 9F E4 F8 93 4C D9 F1 0A [14:15:47]CommunicateWithHost err = 0 [14:15:47]CheckOFDResponse [14:15:47]1017 (14) - 77093643461234 [14:15:47]1041 (16) - 0000000000875083 [14:15:47]1040 (4) - 111953 [14:15:47]1012 (4) - 21.06.2024 06:48 [14:15:47]1206 (1) - 0 [14:15:47]OFD Sender: Remove packet 111953 [14:15:47]ProducePacketName [14:15:47]name=ofd_packets/00111953 [14:15:47]NVStorageDeleteData [14:15:47]Write to MH i2c: 01 00 00 E7 05 EC [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: 01 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: 01 07 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: 01 07 00 E7 05 00 00 00 00 00 C9 0C C8 [14:15:47]RasterBufferAndPrint [14:15:47]line [14:15:47]line [14:15:47]line [14:15:47]line [14:15:47]line [14:15:47]written 0, free lines is 3280 [14:15:47]MH_Cut [14:15:47]Write to MH i2c: D1 01 00 EE 05 01 C5 [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: D1 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: D1 01 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: D1 01 00 EE 05 00 C4 [14:15:47]Write to MH i2c: 01 00 00 EF 05 F4 [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]OFD Sender: No OFD packet to send [14:15:48]*** Cut start [14:15:48]*** Partial cut [14:15:48]*** CUTSNS_PIN = 1 [14:15:48]*** CUTSNS_PIN = 0 [14:15:48]*** Brake cut motor [14:15:48]Read from MH i2c: 01 [14:15:48]MH_I2C_Read... [14:15:48]*** Stop cut motor [14:15:48]*** Cut end [14:15:48]Read from MH i2c: 01 07 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: 01 07 00 EF 05 00 00 00 00 00 FF 0F 09 [14:15:48]process_action close_receipt done [14:15:48]requested_data is exist [14:15:48]produce_requested_data [14:15:48]requested_item fm.sn is exist - process it [14:15:48]wFMCommunicate request_size=4 [14:15:48]MH_SAM_APDU [14:15:48]CAPDU: 80 11 00 00 [14:15:48]Write to MH i2c: E2 08 00 F0 05 80 11 00 00 00 00 00 00 6F [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:48]Read from MH i2c: E2 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 17 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 17 00 F0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C1 [14:15:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:15:48]wFMCommunicate OK [14:15:48]requested_item fd.num is exist - process it [14:15:48]SAM_PROTO_GetFieldsCounters [14:15:48]wFMCommunicate request_size=4 [14:15:48]MH_SAM_APDU [14:15:48]CAPDU: 80 13 00 00 [14:15:48]Write to MH i2c: E2 08 00 F1 05 80 13 00 00 00 00 00 00 72 [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:49]Read from MH i2c: E2 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 62 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 62 00 F1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 51 B5 01 00 0E 04 04 00 86 01 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 8C [14:15:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 51 B5 01 00 0E 04 04 00 86 01 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 [14:15:49]wFMCommunicate OK [14:15:49]SAM_PROTO_GetFieldsCounters done [14:15:49]requested_item shift.num is exist - process it [14:15:49]requested_item shift.opened is exist - process it [14:15:49]req_shift_opened [14:15:49]FM_GetShiftState [14:15:49]SAM_PROTO_GetShiftState [14:15:49]wFMCommunicate request_size=4 [14:15:49]MH_SAM_APDU [14:15:49]CAPDU: 80 13 01 00 [14:15:49]Write to MH i2c: E2 08 00 F2 05 80 13 01 00 00 00 00 00 74 [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:49]Read from MH i2c: E2 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 0E 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: E2 0E 00 F2 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F1 [14:15:49]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:15:49]wFMCommunicate OK [14:15:49]SAM_PROTO_GetShiftState done [14:15:49]FM_GetShiftState done [14:15:49]req_shift_opened done [14:15:49]requested_item shift.open_date is exist - process it [14:15:49]req_shift_open_date [14:15:49]req_shift_open_date done [14:15:49]produce_requested_data done [14:15:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111953,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:15:49]process_action_free close_receipt [14:15:49]json_value_free [14:15:49]json_value_free done [14:15:49]process_json_proto returns [14:15:49]Send response to host [14:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111953,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:15:49]free response buf [14:15:49]execute_script done [14:15:49]execute_script returns [14:15:49]free content buf [14:15:49]Sock 7.Close socket [14:15:49]Sock 7.Thread stoped [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:54]accept exits with 9 [14:16:54]New connection [14:16:54]New thread 3066875236 created [14:16:54]Thread 3066731876 joined [14:16:54]Waiting for new connection... [14:16:54] Sock 9.Parse request [14:16:54]Sock 9.Check first char [14:16:54]Sock 9.First char is OK [14:16:54]request: POST /json_proto HTTP/1.0 [14:16:54]Method: POST [14:16:54]URL: /json_proto [14:16:54]Method is POST - this is cgi request [14:16:54]url: /json_proto [14:16:54]query_string will be loaded in cgi processing [14:16:54]execute_cgi json_proto POST (null) [14:16:54]execute_cgi path=json_proto method=POST [14:16:54]POST find Content-Length [14:16:54]Host: 172.17.59.68:8080 [14:16:54]Content-Length: 677 [14:16:54]Content-Type: application/json [14:16:54] [14:16:54]POST finish read [14:16:54]Found Content-Length = 677 [14:16:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:54]execute_script... [14:16: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 : (1)320601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:54]POST & json_proto [14:16:54]process_json_proto [14:16:54]json parsed OK: [14:16:54]protocol is kg_v1.0 [14:16:54]action value=close_receipt [14:16:54]process_action close_receipt [14:16:54]cmd_close_receipt [14:16:54]MH_GetDate [14:16:54]Write to MH i2c: F0 00 00 F3 05 E7 [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: F0 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: F0 09 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: F0 09 00 F3 05 00 57 8B 75 66 BC EC 60 65 1A [14:16:54]GetLastDocTimeStamp 1718979346 [14:16:54]current date 1718979415 [14:16:54]FM_GetShiftState [14:16:54]SAM_PROTO_GetShiftState [14:16:54]wFMCommunicate request_size=4 [14:16:54]MH_SAM_APDU [14:16:54]CAPDU: 80 13 01 00 [14:16:54]Write to MH i2c: E2 08 00 F4 05 80 13 01 00 00 00 00 00 76 [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:54]Read from MH i2c: E2 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 0E 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 0E 00 F4 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F3 [14:16:54]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:16:54]wFMCommunicate OK [14:16:54]SAM_PROTO_GetShiftState done [14:16:54]FM_GetShiftState done [14:16:54]opened in 1718933695 [14:16:54]opened+sec_in_day 1719020095 [14:16:54]quantity*price = 32004 [14:16:54]sum+1 = 32006 [14:16:54]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.05 袠孝袨袚袨: 320.00 袙薪械褋械薪芯: 320.00 小袛袗效袗: 0.00 袧小袩 1% : 2.83 袧袛小 12% : 33.99 袧邪谢懈褔薪褘屑懈: 320.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 122 21.06.2024 14:16 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111954 肖袩袛: 145350727122944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141655&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111954&fm=145350727122944&tin=02508201610067®Number=0000000000092771&sum=32000 [14:16:55]StoreToDocumentArchive [14:16:55]shift 390 fd 111954 [14:16:55]save to /storage/0390/doc_00111954 [14:16:55]save last doc name /storage/0390/doc_00111954 to /storage/kkm_last_doc_name [14:16:55]save OK [14:16:55]Clear old archive folders... [14:16:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:55]tlvbuf is 0043D6F0 [14:16:55]SAM_PROTO_ClearQueue [14:16:55]wFMCommunicate request_size=4 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 09 00 00 [14:16:55]Write to MH i2c: E2 08 00 01 06 80 09 00 00 00 00 00 00 79 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [14:16:55]RAPDU: 90 00 [14:16:55]wFMCommunicate OK [14:16:55]SAM_PROTO_ClearQueue done [14:16:55]KKMCreateOFDPacket [14:16:55]OFDProtocolAddRootSTLVToBuf [14:16:55]FM_MakeSignedData [14:16:55]FM_MakeSignedData [14:16:55]SAM_PROTO_SignData [14:16:55]wFMCommunicate request_size=4 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 0D 01 02 [14:16:55]Write to MH i2c: E2 08 00 02 06 80 0D 01 02 00 00 00 00 81 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [14:16:55]RAPDU: 90 00 [14:16:55]wFMCommunicate OK [14:16:55]wFMCommunicate request_size=255 [14:16:55]MH_SAM_APDU [14:16:55]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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 57 8B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B5 01 00 35 04 06 00 84 [14:16:55]Write to MH i2c: E2 02 01 03 06 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 57 8B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B5 01 00 35 04 06 00 84 00 00 B0 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [14:16:55]RAPDU: 90 00 [14:16:55]wFMCommunicate OK [14:16:55]wFMCommunicate request_size=10 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 0D 02 02 05 32 1A 75 40 00 [14:16:55]Write to MH i2c: E2 0D 00 04 06 80 0D 02 02 05 00 32 1A 75 40 00 00 00 8F [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [14:16:55]RAPDU: 90 00 [14:16:55]wFMCommunicate OK [14:16:55]wFMCommunicate request_size=4 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 0D 03 02 [14:16:55]Write to MH i2c: E2 08 00 05 06 80 0D 03 02 00 00 00 00 86 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 0B 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 0B 00 05 06 00 4D 4C 0F A2 6A 05 A9 7E 90 00 67 [14:16:55]RAPDU: 4D 4C 0F A2 6A 05 A9 7E 90 00 [14:16:55]wFMCommunicate OK [14:16:55]SAM_PROTO_SignData done [14:16:55]FM_MakeSignedData done [14:16:55]CreateOFDProtocolMessage [14:16:55]wFMCommunicate request_size=4 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 11 00 00 [14:16:55]Write to MH i2c: E2 08 00 06 06 80 11 00 00 00 00 00 00 86 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 17 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 17 00 06 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D8 [14:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:16:55]wFMCommunicate OK [14:16:55]CreateOFDProtocolMessage done [14:16:55]OFDSenderStorePacket 111954 [14:16:55]StoreOFDPacket docnum=111954 [14:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 3F 07 01 23 46 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 57 8B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B5 01 00 35 04 06 00 84 32 1A 75 40 00 4D 4C 0F A2 6A 05 A9 7E [14:16:55]CheckFolder [14:16:55]dirname=/storage/ofd_packets [14:16:55]CheckFolder done [14:16:55]ProducePacketName [14:16:55]name=ofd_packets/00111954 [14:16:55]NVStorageSaveData ofd_packets/00111954 [14:16:55]File name is /storage/ofd_packets/00111954 [14:16:55]Write 301 bytes [14:16:55]NVStorageSaveData done [14:16:55]OFDSenderStorePacket done [14:16:55]KKMCreateOFDPacket done [14:16:55]NVStorageSaveData kkm_last_timestamp [14:16:55]File name is /storage/kkm_last_timestamp [14:16:55]Write 4 bytes [14:16:55]NVStorageSaveData done [14:16:55]ExternCall_PrintAddStr [14:16:55]wPrintStart [14:16:55]Write to MH i2c: 01 00 00 07 06 0D [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: 01 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: 01 07 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: 01 07 00 07 06 00 00 00 00 00 FF 0F 22 [14:16:55]RasterBufferAndPrint [14:16:55]line 小褔械褌 N : (1)320601 [14:16:55]line 袠袧袧: 02508201610067 [14:16:55]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:16:55]line 袩袪袨袛袗袞袗 [14:16:55]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:16:55]line 孝芯胁邪褉: 2710124130 [14:16:55]line 袗懈-92-袣-5 [14:16:55]line 4.820 * 66.40 [14:16:55]line = 320.05 [14:16:55]line 袧袛小 12% 袧小袩 1% [14:16:55]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:16:55]line 袨袣袪校袚袥袝袧袠袝: -0.05 [14:16:55]line 袠孝袨袚袨: 320.00 [14:16:55]line 袙薪械褋械薪芯: 320.00 [14:16:55]line 小袛袗效袗: 0.00 [14:16:55]line 袧小袩 1% : 2.83 [14:16:55]line 袧袛小 12% : 33.99 [14:16:55]line 袧邪谢懈褔薪褘屑懈: 320.00 [14:16:55]line 袘械蟹薪邪谢.: 0.00 [14:16:55]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:16:55]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:16:55]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:16:55]line 效械泻 122 21.06.2024 14:16 [14:16:55]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:16:55]line 袟袧袦: 0300000198 [14:16:55]line 袪袧袦: 0000000000092771 [14:16:55]line 袙械褉褋懈褟 袣袣袦: 001 [14:16:55]line 肖袦: 0000000000875083 [14:16:55]line 肖袛: 111954 [14:16:55]line 肖袩袛: 145350727122944 [14:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T141655&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111954&fm=145350727122944&tin=02508201610067®Number=0000000000092771&sum=32000 [14:16:56]OFD Sender: Processing packet 111954 [packets to send 38, broken 37] [14:16:56]ProducePacketName [14:16:56]name=ofd_packets/00111954 [14:16:56]OFD Sender: To server: 嚂鰌G, [14:16:56]CommunicateWithHost lk.salyk.kg:30040 [14:16:56]ConnectInit lk.salyk.kg [14:16:56]written 0, free lines is 4095 [14:16:56]Connected sock=10 [14:16:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 3F 07 01 23 46 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 57 8B 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B5 01 00 35 04 06 00 84 32 1A 75 40 00 4D 4C 0F A2 6A 05 A9 7E [14:16:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F9 E3 47 00 D6 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 30 38 37 35 30 38 33 10 04 04 00 52 B5 01 00 F4 03 04 00 80 22 75 66 B6 04 01 00 00 50 65 BD D1 66 EE 1D 4D [14:16:56]CommunicateWithHost err = 0 [14:16:56]CheckOFDResponse [14:16:56]1017 (14) - 77093643461234 [14:16:56]1041 (16) - 0000000000875083 [14:16:56]1040 (4) - 111954 [14:16:56]1012 (4) - 21.06.2024 06:49 [14:16:56]1206 (1) - 0 [14:16:56]OFD Sender: Remove packet 111954 [14:16:56]ProducePacketName [14:16:56]name=ofd_packets/00111954 [14:16:56]NVStorageDeleteData [14:16:56]Write to MH i2c: 01 00 00 32 06 38 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 32 06 00 00 00 00 00 DD 0C 28 [14:16:56]RasterBufferAndPrint [14:16:56]line [14:16:56]line [14:16:56]line [14:16:56]line [14:16:56]line [14:16:56]written 0, free lines is 3299 [14:16:56]MH_Cut [14:16:56]Write to MH i2c: D1 01 00 39 06 01 11 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: D1 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: D1 01 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: D1 01 00 39 06 00 10 [14:16:56]Write to MH i2c: 01 00 00 3A 06 40 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]OFD Sender: No OFD packet to send [14:16:57]*** Cut start [14:16:57]*** Partial cut [14:16:57]*** CUTSNS_PIN = 1 [14:16:57]*** CUTSNS_PIN = 0 [14:16:57]*** Brake cut motor [14:16:57]Read from MH i2c: 01 [14:16:57]MH_I2C_Read... [14:16:57]*** Stop cut motor [14:16:57]*** Cut end [14:16:57]Read from MH i2c: 01 07 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: 01 07 00 3A 06 00 00 00 00 00 FF 0F 55 [14:16:57]process_action close_receipt done [14:16:57]requested_data is exist [14:16:57]produce_requested_data [14:16:57]requested_item fm.sn is exist - process it [14:16:57]wFMCommunicate request_size=4 [14:16:57]MH_SAM_APDU [14:16:57]CAPDU: 80 11 00 00 [14:16:57]Write to MH i2c: E2 08 00 3B 06 80 11 00 00 00 00 00 00 BB [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 17 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 17 00 3B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0D [14:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:16:58]wFMCommunicate OK [14:16:58]requested_item fd.num is exist - process it [14:16:58]SAM_PROTO_GetFieldsCounters [14:16:58]wFMCommunicate request_size=4 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 13 00 00 [14:16:58]Write to MH i2c: E2 08 00 3C 06 80 13 00 00 00 00 00 00 BE [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 62 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 62 00 3C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 52 B5 01 00 0E 04 04 00 86 01 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 DC [14:16:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 52 B5 01 00 0E 04 04 00 86 01 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 [14:16:58]wFMCommunicate OK [14:16:58]SAM_PROTO_GetFieldsCounters done [14:16:58]requested_item shift.num is exist - process it [14:16:58]requested_item shift.opened is exist - process it [14:16:58]req_shift_opened [14:16:58]FM_GetShiftState [14:16:58]SAM_PROTO_GetShiftState [14:16:58]wFMCommunicate request_size=4 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 13 01 00 [14:16:58]Write to MH i2c: E2 08 00 3D 06 80 13 01 00 00 00 00 00 C0 [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 0E 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 0E 00 3D 06 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 3D [14:16:58]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:16:58]wFMCommunicate OK [14:16:58]SAM_PROTO_GetShiftState done [14:16:58]FM_GetShiftState done [14:16:58]req_shift_opened done [14:16:58]requested_item shift.open_date is exist - process it [14:16:58]req_shift_open_date [14:16:58]req_shift_open_date done [14:16:58]produce_requested_data done [14:16:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111954,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:16:58]process_action_free close_receipt [14:16:58]json_value_free [14:16:58]json_value_free done [14:16:58]process_json_proto returns [14:16:58]Send response to host [14:16:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111954,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:16:58]free response buf [14:16:58]execute_script done [14:16:58]execute_script returns [14:16:58]free content buf [14:16:58]Sock 9.Close socket [14:16:58]Sock 9.Thread stoped [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]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:22]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:13]accept exits with 7 [14:21:13]New connection [14:21:13]New thread 3066731876 created [14:21:13]Thread 3066875236 joined [14:21:13]Waiting for new connection... [14:21:13] Sock 7.Parse request [14:21:13]Sock 7.Check first char [14:21:13]Sock 7.First char is OK [14:21:13]request: POST /json_proto HTTP/1.0 [14:21:13]Method: POST [14:21:13]URL: /json_proto [14:21:13]Method is POST - this is cgi request [14:21:13]url: /json_proto [14:21:13]query_string will be loaded in cgi processing [14:21:13]execute_cgi json_proto POST (null) [14:21:13]execute_cgi path=json_proto method=POST [14:21:13]POST find Content-Length [14:21:13]Host: 172.17.59.68:8080 [14:21:13]Content-Length: 805 [14:21:13]Content-Type: application/json [14:21:13] [14:21:13]POST finish read [14:21:13]Found Content-Length = 805 [14:21:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:13]execute_script... [14:21: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)320602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:13]POST & json_proto [14:21:13]process_json_proto [14:21:13]json parsed OK: [14:21:13]protocol is kg_v1.0 [14:21:13]action value=close_receipt [14:21:13]process_action close_receipt [14:21:13]cmd_close_receipt [14:21:13]MH_GetDate [14:21:13]Write to MH i2c: F0 00 00 3E 06 33 [14:21:13]Write i2c OK [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: F0 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: F0 09 00 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: F0 09 00 3E 06 00 5A 8C 75 66 BC EC 60 65 6A [14:21:13]GetLastDocTimeStamp 1718979415 [14:21:13]current date 1718979674 [14:21:13]FM_GetShiftState [14:21:13]SAM_PROTO_GetShiftState [14:21:13]wFMCommunicate request_size=4 [14:21:13]MH_SAM_APDU [14:21:13]CAPDU: 80 13 01 00 [14:21:13]Write to MH i2c: E2 08 00 3F 06 80 13 01 00 00 00 00 00 C2 [14:21:13]Write i2c OK [14:21:13]MH_I2C_Read... [14:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:13]Read from MH i2c: E2 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: E2 0E 00 [14:21:13]MH_I2C_Read... [14:21:13]Read from MH i2c: E2 0E 00 3F 06 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 3F [14:21:13]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:21:13]wFMCommunicate OK [14:21:13]SAM_PROTO_GetShiftState done [14:21:13]FM_GetShiftState done [14:21:13]opened in 1718933695 [14:21:13]opened+sec_in_day 1719020095 [14:21:13]quantity*price = 30012 [14:21:13]sum+1 = 30014 [14:21:13]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 300.13 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 300.13 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 123 21.06.2024 14:21 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 111955 肖袩袛: 161205288146147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142114&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111955&fm=161205288146147&tin=02508201610067®Number=0000000000092771&sum=30013 [14:21:14]StoreToDocumentArchive [14:21:14]shift 390 fd 111955 [14:21:14]save to /storage/0390/doc_00111955 [14:21:14]save last doc name /storage/0390/doc_00111955 to /storage/kkm_last_doc_name [14:21:14]save OK [14:21:14]Clear old archive folders... [14:21:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:14]tlvbuf is 0031CF10 [14:21:14]SAM_PROTO_ClearQueue [14:21:14]wFMCommunicate request_size=4 [14:21:14]MH_SAM_APDU [14:21:14]CAPDU: 80 09 00 00 [14:21:14]Write to MH i2c: E2 08 00 4C 06 80 09 00 00 00 00 00 00 C4 [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [14:21:14]RAPDU: 90 00 [14:21:14]wFMCommunicate OK [14:21:14]SAM_PROTO_ClearQueue done [14:21:14]KKMCreateOFDPacket [14:21:14]OFDProtocolAddRootSTLVToBuf [14:21:14]FM_MakeSignedData [14:21:14]FM_MakeSignedData [14:21:14]SAM_PROTO_SignData [14:21:14]wFMCommunicate request_size=4 [14:21:14]MH_SAM_APDU [14:21:14]CAPDU: 80 0D 01 02 [14:21:14]Write to MH i2c: E2 08 00 4D 06 80 0D 01 02 00 00 00 00 CC [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [14:21:14]RAPDU: 90 00 [14:21:14]wFMCommunicate OK [14:21:14]wFMCommunicate request_size=255 [14:21:14]MH_SAM_APDU [14:21: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 5A 8C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B5 01 00 35 04 06 00 92 [14:21:14]Write to MH i2c: E2 02 01 4E 06 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 5A 8C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B5 01 00 35 04 06 00 92 00 00 96 [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [14:21:14]RAPDU: 90 00 [14:21:14]wFMCommunicate OK [14:21:14]wFMCommunicate request_size=10 [14:21:14]MH_SAM_APDU [14:21:14]CAPDU: 80 0D 02 02 05 9D 87 EF 94 E3 [14:21:14]Write to MH i2c: E2 0D 00 4F 06 80 0D 02 02 05 00 9D 87 EF 94 E3 00 00 63 [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [14:21:14]RAPDU: 90 00 [14:21:14]wFMCommunicate OK [14:21:14]wFMCommunicate request_size=4 [14:21:14]MH_SAM_APDU [14:21:14]CAPDU: 80 0D 03 02 [14:21:14]Write to MH i2c: E2 08 00 50 06 80 0D 03 02 00 00 00 00 D1 [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 0B 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 0B 00 50 06 00 51 03 3F 27 FF 0B 11 10 90 00 B7 [14:21:14]RAPDU: 51 03 3F 27 FF 0B 11 10 90 00 [14:21:14]wFMCommunicate OK [14:21:14]SAM_PROTO_SignData done [14:21:14]FM_MakeSignedData done [14:21:14]CreateOFDProtocolMessage [14:21:14]wFMCommunicate request_size=4 [14:21:14]MH_SAM_APDU [14:21:14]CAPDU: 80 11 00 00 [14:21:14]Write to MH i2c: E2 08 00 51 06 80 11 00 00 00 00 00 00 D1 [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 17 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 17 00 51 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 23 [14:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:21:14]wFMCommunicate OK [14:21:14]CreateOFDProtocolMessage done [14:21:14]OFDSenderStorePacket 111955 [14:21:14]StoreOFDPacket docnum=111955 [14:21:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C8 3A 07 01 1C C6 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 5A 8C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B5 01 00 35 04 06 00 92 9D 87 EF 94 E3 51 03 3F 27 FF 0B 11 10 [14:21:14]CheckFolder [14:21:14]dirname=/storage/ofd_packets [14:21:14]CheckFolder done [14:21:14]ProducePacketName [14:21:14]name=ofd_packets/00111955 [14:21:14]NVStorageSaveData ofd_packets/00111955 [14:21:14]File name is /storage/ofd_packets/00111955 [14:21:14]Write 301 bytes [14:21:14]NVStorageSaveData done [14:21:14]OFDSenderStorePacket done [14:21:14]KKMCreateOFDPacket done [14:21:14]NVStorageSaveData kkm_last_timestamp [14:21:14]File name is /storage/kkm_last_timestamp [14:21:14]Write 4 bytes [14:21:14]NVStorageSaveData done [14:21:14]ExternCall_PrintAddStr [14:21:14]wPrintStart [14:21:14]Write to MH i2c: 01 00 00 52 06 58 [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: 01 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: 01 07 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: 01 07 00 52 06 00 00 00 00 00 FF 0F 6D [14:21:14]RasterBufferAndPrint [14:21:14]line 小褔械褌 N : (1)320602 [14:21:14]line 袠袧袧: 02508201610067 [14:21:14]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:21:14]line 袩袪袨袛袗袞袗 [14:21:14]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:21:14]line 孝芯胁邪褉: 2710124130 [14:21:14]line 袗懈-92-袣-5 [14:21:14]line 4.520 * 66.40 [14:21:14]line = 300.13 [14:21:14]line 袧袛小 12% 袧小袩 1% [14:21:14]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:21:14]line 袠孝袨袚袨: 300.13 [14:21:14]line 袧小袩 1% : 2.66 [14:21:14]line 袧袛小 12% : 31.87 [14:21:14]line 袧邪谢懈褔薪褘屑懈: 0.00 [14:21:14]line 袘械蟹薪邪谢.: 300.13 [14:21:14]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:21:14]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:21:14]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:21:14]line 效械泻 123 21.06.2024 14:21 [14:21:14]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:21:14]line 袟袧袦: 0300000198 [14:21:14]line 袪袧袦: 0000000000092771 [14:21:14]line 袙械褉褋懈褟 袣袣袦: 001 [14:21:14]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [14:21:14]line 肖袦: 0000000000875083 [14:21:14]line 肖袛: 111955 [14:21:14]line 肖袩袛: 161205288146147 [14:21:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142114&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111955&fm=161205288146147&tin=02508201610067®Number=0000000000092771&sum=30013 [14:21:15]written 0, free lines is 4095 [14:21:15]OFD Sender: Processing packet 111955 [packets to send 38, broken 37] [14:21:15]ProducePacketName [14:21:15]name=ofd_packets/00111955 [14:21:15]OFD Sender: To server: 嚂鰌G, [14:21:15]CommunicateWithHost lk.salyk.kg:30040 [14:21:15]ConnectInit lk.salyk.kg [14:21:15]Connected sock=10 [14:21:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C8 3A 07 01 1C C6 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 5A 8C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B5 01 00 35 04 06 00 92 9D 87 EF 94 E3 51 03 3F 27 FF 0B 11 10 [14:21:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 67 6A 47 00 3F 94 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 30 38 37 35 30 38 33 10 04 04 00 53 B5 01 00 F4 03 04 00 83 23 75 66 B6 04 01 00 00 AE A1 9A DB 39 F3 69 62 [14:21:15]CommunicateWithHost err = 0 [14:21:15]CheckOFDResponse [14:21:15]1017 (14) - 77093643461234 [14:21:15]1041 (16) - 0000000000875083 [14:21:15]1040 (4) - 111955 [14:21:15]1012 (4) - 21.06.2024 06:53 [14:21:15]1206 (1) - 0 [14:21:15]OFD Sender: Remove packet 111955 [14:21:15]ProducePacketName [14:21:15]name=ofd_packets/00111955 [14:21:15]NVStorageDeleteData [14:21:15]Write to MH i2c: 01 00 00 7C 06 82 [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: 01 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: 01 07 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: 01 07 00 7C 06 00 00 00 00 00 E7 0C 7C [14:21:15]RasterBufferAndPrint [14:21:15]line [14:21:15]line [14:21:15]line [14:21:15]line [14:21:15]line [14:21:15]written 0, free lines is 3310 [14:21:15]MH_Cut [14:21:15]Write to MH i2c: D1 01 00 83 06 01 5B [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: D1 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: D1 01 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: D1 01 00 83 06 00 5A [14:21:15]Write to MH i2c: 01 00 00 84 06 8A [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]OFD Sender: No OFD packet to send [14:21:16]*** Cut start [14:21:16]*** Partial cut [14:21:16]*** CUTSNS_PIN = 1 [14:21:16]*** CUTSNS_PIN = 0 [14:21:16]*** Brake cut motor [14:21:16]Read from MH i2c: 01 [14:21:16]MH_I2C_Read... [14:21:16]*** Stop cut motor [14:21:16]*** Cut end [14:21:16]Read from MH i2c: 01 07 00 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: 01 07 00 84 06 00 00 00 00 00 FF 0F 9F [14:21:16]process_action close_receipt done [14:21:16]requested_data is exist [14:21:16]produce_requested_data [14:21:16]requested_item fm.sn is exist - process it [14:21:16]wFMCommunicate request_size=4 [14:21:16]MH_SAM_APDU [14:21:16]CAPDU: 80 11 00 00 [14:21:16]Write to MH i2c: E2 08 00 85 06 80 11 00 00 00 00 00 00 05 [14:21:16]Write i2c OK [14:21:16]MH_I2C_Read... [14:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:16]Read from MH i2c: E2 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: E2 17 00 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: E2 17 00 85 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 57 [14:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:21:16]wFMCommunicate OK [14:21:16]requested_item fd.num is exist - process it [14:21:16]SAM_PROTO_GetFieldsCounters [14:21:16]wFMCommunicate request_size=4 [14:21:16]MH_SAM_APDU [14:21:16]CAPDU: 80 13 00 00 [14:21:16]Write to MH i2c: E2 08 00 86 06 80 13 00 00 00 00 00 00 08 [14:21:16]Write i2c OK [14:21:16]MH_I2C_Read... [14:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:17]Read from MH i2c: E2 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: E2 62 00 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: E2 62 00 86 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 53 B5 01 00 0E 04 04 00 86 01 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 2A [14:21:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 53 B5 01 00 0E 04 04 00 86 01 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 [14:21:17]wFMCommunicate OK [14:21:17]SAM_PROTO_GetFieldsCounters done [14:21:17]requested_item shift.num is exist - process it [14:21:17]requested_item shift.opened is exist - process it [14:21:17]req_shift_opened [14:21:17]FM_GetShiftState [14:21:17]SAM_PROTO_GetShiftState [14:21:17]wFMCommunicate request_size=4 [14:21:17]MH_SAM_APDU [14:21:17]CAPDU: 80 13 01 00 [14:21:17]Write to MH i2c: E2 08 00 87 06 80 13 01 00 00 00 00 00 0A [14:21:17]Write i2c OK [14:21:17]MH_I2C_Read... [14:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:17]Read from MH i2c: E2 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: E2 0E 00 [14:21:17]MH_I2C_Read... [14:21:17]Read from MH i2c: E2 0E 00 87 06 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 87 [14:21:17]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:21:17]wFMCommunicate OK [14:21:17]SAM_PROTO_GetShiftState done [14:21:17]FM_GetShiftState done [14:21:17]req_shift_opened done [14:21:17]requested_item shift.open_date is exist - process it [14:21:17]req_shift_open_date [14:21:17]req_shift_open_date done [14:21:17]produce_requested_data done [14:21:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111955,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:21:17]process_action_free close_receipt [14:21:17]json_value_free [14:21:17]json_value_free done [14:21:17]process_json_proto returns [14:21:17]Send response to host [14:21:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111955,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:21:17]free response buf [14:21:17]execute_script done [14:21:17]execute_script returns [14:21:17]free content buf [14:21:17]Sock 7.Close socket [14:21:17]Sock 7.Thread stoped [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:21:59]accept exits with 9 [14:21:59]New connection [14:21:59]New thread 3066875236 created [14:21:59]Thread 3066731876 joined [14:21:59]Waiting for new connection... [14:21:59] Sock 9.Parse request [14:21:59]Sock 9.Check first char [14:21:59]Sock 9.First char is OK [14:21:59]request: POST /json_proto HTTP/1.0 [14:21:59]Method: POST [14:21:59]URL: /json_proto [14:21:59]Method is POST - this is cgi request [14:21:59]url: /json_proto [14:21:59]query_string will be loaded in cgi processing [14:21:59]execute_cgi json_proto POST (null) [14:21:59]execute_cgi path=json_proto method=POST [14:21:59]POST find Content-Length [14:21:59]Host: 172.17.59.68:8080 [14:21:59]Content-Length: 677 [14:21:59]Content-Type: application/json [14:21:59] [14:21:59]POST finish read [14:21:59]Found Content-Length = 677 [14:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:59]execute_script... [14:21:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:59]POST & json_proto [14:21:59]process_json_proto [14:21:59]json parsed OK: [14:21:59]protocol is kg_v1.0 [14:21:59]action value=close_receipt [14:21:59]process_action close_receipt [14:21:59]cmd_close_receipt [14:21:59]MH_GetDate [14:21:59]Write to MH i2c: F0 00 00 88 06 7D [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: F0 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: F0 09 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: F0 09 00 88 06 00 88 8C 75 66 BC EC 60 65 E2 [14:21:59]GetLastDocTimeStamp 1718979674 [14:21:59]current date 1718979720 [14:21:59]FM_GetShiftState [14:21:59]SAM_PROTO_GetShiftState [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 13 01 00 [14:21:59]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 0E 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 0E 00 89 06 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 89 [14:21:59]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:21:59]wFMCommunicate OK [14:21:59]SAM_PROTO_GetShiftState done [14:21:59]FM_GetShiftState done [14:21:59]opened in 1718933695 [14:21:59]opened+sec_in_day 1719020095 [14:21:59]quantity*price = 20052 [14:21:59]sum+1 = 20054 [14:21:59]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.53 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 124 21.06.2024 14:22 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111956 肖袩袛: 24158989173286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142200&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111956&fm=24158989173286&tin=02508201610067®Number=0000000000092771&sum=20000 [14:22:00]StoreToDocumentArchive [14:22:00]shift 390 fd 111956 [14:22:00]save to /storage/0390/doc_00111956 [14:22:00]save last doc name /storage/0390/doc_00111956 to /storage/kkm_last_doc_name [14:22:00]save OK [14:22:00]Clear old archive folders... [14:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:00]tlvbuf is 00346CE0 [14:22:00]SAM_PROTO_ClearQueue [14:22:00]wFMCommunicate request_size=4 [14:22:00]MH_SAM_APDU [14:22:00]CAPDU: 80 09 00 00 [14:22:00]Write to MH i2c: E2 08 00 96 06 80 09 00 00 00 00 00 00 0E [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:00]Read from MH i2c: E2 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 03 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [14:22:00]RAPDU: 90 00 [14:22:00]wFMCommunicate OK [14:22:00]SAM_PROTO_ClearQueue done [14:22:00]KKMCreateOFDPacket [14:22:00]OFDProtocolAddRootSTLVToBuf [14:22:00]FM_MakeSignedData [14:22:00]FM_MakeSignedData [14:22:00]SAM_PROTO_SignData [14:22:00]wFMCommunicate request_size=4 [14:22:00]MH_SAM_APDU [14:22:00]CAPDU: 80 0D 01 02 [14:22:00]Write to MH i2c: E2 08 00 97 06 80 0D 01 02 00 00 00 00 16 [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:00]Read from MH i2c: E2 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 03 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [14:22:00]RAPDU: 90 00 [14:22:00]wFMCommunicate OK [14:22:00]wFMCommunicate request_size=255 [14:22:00]MH_SAM_APDU [14:22:00]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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 88 8C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B5 01 00 35 04 06 00 15 [14:22:00]Write to MH i2c: E2 02 01 98 06 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 88 8C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B5 01 00 35 04 06 00 15 00 00 9A [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:00]Read from MH i2c: E2 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 03 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [14:22:00]RAPDU: 90 00 [14:22:00]wFMCommunicate OK [14:22:00]wFMCommunicate request_size=10 [14:22:00]MH_SAM_APDU [14:22:00]CAPDU: 80 0D 02 02 05 F8 F3 F7 C2 26 [14:22:00]Write to MH i2c: E2 0D 00 99 06 80 0D 02 02 05 00 F8 F3 F7 C2 26 00 00 ED [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:00]Read from MH i2c: E2 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 03 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [14:22:00]RAPDU: 90 00 [14:22:00]wFMCommunicate OK [14:22:00]wFMCommunicate request_size=4 [14:22:00]MH_SAM_APDU [14:22:00]CAPDU: 80 0D 03 02 [14:22:00]Write to MH i2c: E2 08 00 9A 06 80 0D 03 02 00 00 00 00 1B [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:00]Read from MH i2c: E2 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 0B 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 0B 00 9A 06 00 59 89 E9 30 26 AC 0D ED 90 00 E3 [14:22:00]RAPDU: 59 89 E9 30 26 AC 0D ED 90 00 [14:22:00]wFMCommunicate OK [14:22:00]SAM_PROTO_SignData done [14:22:00]FM_MakeSignedData done [14:22:00]CreateOFDProtocolMessage [14:22:00]wFMCommunicate request_size=4 [14:22:00]MH_SAM_APDU [14:22:00]CAPDU: 80 11 00 00 [14:22:00]Write to MH i2c: E2 08 00 9B 06 80 11 00 00 00 00 00 00 1B [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:00]Read from MH i2c: E2 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 17 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 17 00 9B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6D [14:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:22:00]wFMCommunicate OK [14:22:00]CreateOFDProtocolMessage done [14:22:00]OFDSenderStorePacket 111956 [14:22:00]StoreOFDPacket docnum=111956 [14:22:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 2D 07 01 70 E6 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 88 8C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B5 01 00 35 04 06 00 15 F8 F3 F7 C2 26 59 89 E9 30 26 AC 0D ED [14:22:00]CheckFolder [14:22:00]dirname=/storage/ofd_packets [14:22:00]CheckFolder done [14:22:00]ProducePacketName [14:22:00]name=ofd_packets/00111956 [14:22:00]NVStorageSaveData ofd_packets/00111956 [14:22:00]File name is /storage/ofd_packets/00111956 [14:22:00]Write 301 bytes [14:22:00]NVStorageSaveData done [14:22:00]OFDSenderStorePacket done [14:22:00]KKMCreateOFDPacket done [14:22:00]NVStorageSaveData kkm_last_timestamp [14:22:00]File name is /storage/kkm_last_timestamp [14:22:00]Write 4 bytes [14:22:00]NVStorageSaveData done [14:22:00]ExternCall_PrintAddStr [14:22:00]wPrintStart [14:22:00]Write to MH i2c: 01 00 00 9C 06 A2 [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: 01 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: 01 07 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: 01 07 00 9C 06 00 00 00 00 00 FF 0F B7 [14:22:00]RasterBufferAndPrint [14:22:00]line 小褔械褌 N : (1)320603 [14:22:00]line 袠袧袧: 02508201610067 [14:22:00]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:22:00]line 袩袪袨袛袗袞袗 [14:22:00]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:22:00]line 孝芯胁邪褉: 2710124130 [14:22:00]line 袗懈-92-袣-5 [14:22:00]line 3.020 * 66.40 [14:22:00]line = 200.53 [14:22:00]line 袧袛小 12% 袧小袩 1% [14:22:00]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:22:00]line 袨袣袪校袚袥袝袧袠袝: -0.53 [14:22:00]line 袠孝袨袚袨: 200.00 [14:22:00]line 袙薪械褋械薪芯: 200.00 [14:22:00]line 小袛袗效袗: 0.00 [14:22:00]line 袧小袩 1% : 1.77 [14:22:00]line 袧袛小 12% : 21.29 [14:22:00]line 袧邪谢懈褔薪褘屑懈: 200.00 [14:22:00]line 袘械蟹薪邪谢.: 0.00 [14:22:00]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:22:00]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:22:00]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:22:00]line 效械泻 124 21.06.2024 14:22 [14:22:00]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:22:00]line 袟袧袦: 0300000198 [14:22:00]line 袪袧袦: 0000000000092771 [14:22:00]line 袙械褉褋懈褟 袣袣袦: 001 [14:22:00]line 肖袦: 0000000000875083 [14:22:00]line 肖袛: 111956 [14:22:00]line 肖袩袛: 24158989173286 [14:22:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142200&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111956&fm=24158989173286&tin=02508201610067®Number=0000000000092771&sum=20000 [14:22:01]OFD Sender: Processing packet 111956 [packets to send 38, broken 37] [14:22:01]ProducePacketName [14:22:01]name=ofd_packets/00111956 [14:22:01]OFD Sender: To server: 嚂鰌G, [14:22:01]CommunicateWithHost lk.salyk.kg:30040 [14:22:01]ConnectInit lk.salyk.kg [14:22:01]written 0, free lines is 4095 [14:22:01]Connected sock=10 [14:22:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 2D 07 01 70 E6 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 88 8C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B5 01 00 35 04 06 00 15 F8 F3 F7 C2 26 59 89 E9 30 26 AC 0D ED [14:22:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BA 33 47 00 B4 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 30 38 37 35 30 38 33 10 04 04 00 54 B5 01 00 F4 03 04 00 B1 23 75 66 B6 04 01 00 00 FC AB 8F 8B B6 2D 3D 42 [14:22:01]CommunicateWithHost err = 0 [14:22:01]CheckOFDResponse [14:22:01]1017 (14) - 77093643461234 [14:22:01]1041 (16) - 0000000000875083 [14:22:01]1040 (4) - 111956 [14:22:01]1012 (4) - 21.06.2024 06:54 [14:22:01]1206 (1) - 0 [14:22:01]OFD Sender: Remove packet 111956 [14:22:01]ProducePacketName [14:22:01]name=ofd_packets/00111956 [14:22:01]NVStorageDeleteData [14:22:01]Write to MH i2c: 01 00 00 C7 06 CD [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: 01 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: 01 07 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: 01 07 00 C7 06 00 00 00 00 00 D0 0C B0 [14:22:01]RasterBufferAndPrint [14:22:01]line [14:22:01]line [14:22:01]line [14:22:01]line [14:22:01]line [14:22:01]written 0, free lines is 3288 [14:22:01]MH_Cut [14:22:01]Write to MH i2c: D1 01 00 CE 06 01 A6 [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: D1 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: D1 01 00 [14:22:01]MH_I2C_Read... [14:22:01]Read from MH i2c: D1 01 00 CE 06 00 A5 [14:22:01]Write to MH i2c: 01 00 00 CF 06 D5 [14:22:01]Write i2c OK [14:22:01]MH_I2C_Read... [14:22:02]OFD Sender: No OFD packet to send [14:22:02]*** Cut start [14:22:02]*** Partial cut [14:22:02]*** CUTSNS_PIN = 1 [14:22:02]*** CUTSNS_PIN = 0 [14:22:02]*** Brake cut motor [14:22:03]Read from MH i2c: 01 [14:22:03]MH_I2C_Read... [14:22:03]*** Stop cut motor [14:22:03]*** Cut end [14:22:03]Read from MH i2c: 01 07 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: 01 07 00 CF 06 00 00 00 00 00 FF 0F EA [14:22:03]process_action close_receipt done [14:22:03]requested_data is exist [14:22:03]produce_requested_data [14:22:03]requested_item fm.sn is exist - process it [14:22:03]wFMCommunicate request_size=4 [14:22:03]MH_SAM_APDU [14:22:03]CAPDU: 80 11 00 00 [14:22:03]Write to MH i2c: E2 08 00 D0 06 80 11 00 00 00 00 00 00 50 [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:03]Read from MH i2c: E2 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 17 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 17 00 D0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A2 [14:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:22:03]wFMCommunicate OK [14:22:03]requested_item fd.num is exist - process it [14:22:03]SAM_PROTO_GetFieldsCounters [14:22:03]wFMCommunicate request_size=4 [14:22:03]MH_SAM_APDU [14:22:03]CAPDU: 80 13 00 00 [14:22:03]Write to MH i2c: E2 08 00 D1 06 80 13 00 00 00 00 00 00 53 [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:03]Read from MH i2c: E2 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 62 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 62 00 D1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 54 B5 01 00 0E 04 04 00 86 01 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 79 [14:22:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 54 B5 01 00 0E 04 04 00 86 01 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 [14:22:03]wFMCommunicate OK [14:22:03]SAM_PROTO_GetFieldsCounters done [14:22:03]requested_item shift.num is exist - process it [14:22:03]requested_item shift.opened is exist - process it [14:22:03]req_shift_opened [14:22:03]FM_GetShiftState [14:22:03]SAM_PROTO_GetShiftState [14:22:03]wFMCommunicate request_size=4 [14:22:03]MH_SAM_APDU [14:22:03]CAPDU: 80 13 01 00 [14:22:03]Write to MH i2c: E2 08 00 D2 06 80 13 01 00 00 00 00 00 55 [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:03]Read from MH i2c: E2 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 0E 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: E2 0E 00 D2 06 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D2 [14:22:03]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:22:03]wFMCommunicate OK [14:22:03]SAM_PROTO_GetShiftState done [14:22:03]FM_GetShiftState done [14:22:03]req_shift_opened done [14:22:03]requested_item shift.open_date is exist - process it [14:22:03]req_shift_open_date [14:22:03]req_shift_open_date done [14:22:03]produce_requested_data done [14:22:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111956,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:22:03]process_action_free close_receipt [14:22:03]json_value_free [14:22:03]json_value_free done [14:22:03]process_json_proto returns [14:22:03]Send response to host [14:22:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111956,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:22:03]free response buf [14:22:03]execute_script done [14:22:03]execute_script returns [14:22:03]free content buf [14:22:03]Sock 9.Close socket [14:22:03]Sock 9.Thread stoped [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:20]accept exits with 7 [14:24:20]New connection [14:24:20]New thread 3066731876 created [14:24:20]Thread 3066875236 joined [14:24:20]Waiting for new connection... [14:24:20] Sock 7.Parse request [14:24:20]Sock 7.Check first char [14:24:20]Sock 7.First char is OK [14:24:20]request: POST /json_proto HTTP/1.0 [14:24:20]Method: POST [14:24:20]URL: /json_proto [14:24:20]Method is POST - this is cgi request [14:24:20]url: /json_proto [14:24:20]query_string will be loaded in cgi processing [14:24:20]execute_cgi json_proto POST (null) [14:24:20]execute_cgi path=json_proto method=POST [14:24:20]POST find Content-Length [14:24:20]Host: 172.17.59.68:8080 [14:24:20]Content-Length: 677 [14:24:20]Content-Type: application/json [14:24:20] [14:24:20]POST finish read [14:24:20]Found Content-Length = 677 [14:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [14:24:20]execute_script... [14:24: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)320604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [14:24:20]POST & json_proto [14:24:20]process_json_proto [14:24:20]json parsed OK: [14:24:20]protocol is kg_v1.0 [14:24:20]action value=close_receipt [14:24:20]process_action close_receipt [14:24:20]cmd_close_receipt [14:24:20]MH_GetDate [14:24:20]Write to MH i2c: F0 00 00 D3 06 C8 [14:24:20]Write i2c OK [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: F0 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: F0 09 00 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: F0 09 00 D3 06 00 16 8D 75 66 BC EC 60 65 BC [14:24:20]GetLastDocTimeStamp 1718979720 [14:24:20]current date 1718979862 [14:24:20]FM_GetShiftState [14:24:20]SAM_PROTO_GetShiftState [14:24:20]wFMCommunicate request_size=4 [14:24:20]MH_SAM_APDU [14:24:20]CAPDU: 80 13 01 00 [14:24:20]Write to MH i2c: E2 08 00 D4 06 80 13 01 00 00 00 00 00 57 [14:24:20]Write i2c OK [14:24:20]MH_I2C_Read... [14:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:20]Read from MH i2c: E2 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: E2 0E 00 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: E2 0E 00 D4 06 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D4 [14:24:20]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:24:20]wFMCommunicate OK [14:24:20]SAM_PROTO_GetShiftState done [14:24:20]FM_GetShiftState done [14:24:20]opened in 1718933695 [14:24:20]opened+sec_in_day 1719020095 [14:24:20]quantity*price = 40039 [14:24:20]sum+1 = 40040 [14:24:20]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.39 袠孝袨袚袨: 400.00 袙薪械褋械薪芯: 400.00 小袛袗效袗: 0.00 袧小袩 1% : 3.54 袧袛小 12% : 42.52 袧邪谢懈褔薪褘屑懈: 400.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 125 21.06.2024 14:24 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111957 肖袩袛: 144846136790774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142422&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111957&fm=144846136790774&tin=02508201610067®Number=0000000000092771&sum=40000 [14:24:21]StoreToDocumentArchive [14:24:21]shift 390 fd 111957 [14:24:21]save to /storage/0390/doc_00111957 [14:24:21]save last doc name /storage/0390/doc_00111957 to /storage/kkm_last_doc_name [14:24:21]save OK [14:24:21]Clear old archive folders... [14:24:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:21]tlvbuf is 0034AB70 [14:24:21]SAM_PROTO_ClearQueue [14:24:21]wFMCommunicate request_size=4 [14:24:21]MH_SAM_APDU [14:24:21]CAPDU: 80 09 00 00 [14:24:21]Write to MH i2c: E2 08 00 E1 06 80 09 00 00 00 00 00 00 59 [14:24:21]Write i2c OK [14:24:21]MH_I2C_Read... [14:24:21]Read from MH i2c: E2 [14:24:21]MH_I2C_Read... [14:24:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:21]Read from MH i2c: E2 03 00 [14:24:21]MH_I2C_Read... [14:24:21]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [14:24:21]RAPDU: 90 00 [14:24:21]wFMCommunicate OK [14:24:21]SAM_PROTO_ClearQueue done [14:24:21]KKMCreateOFDPacket [14:24:21]OFDProtocolAddRootSTLVToBuf [14:24:21]FM_MakeSignedData [14:24:21]FM_MakeSignedData [14:24:21]SAM_PROTO_SignData [14:24:21]wFMCommunicate request_size=4 [14:24:21]MH_SAM_APDU [14:24:21]CAPDU: 80 0D 01 02 [14:24:21]Write to MH i2c: E2 08 00 E2 06 80 0D 01 02 00 00 00 00 61 [14:24:21]Write i2c OK [14:24:21]MH_I2C_Read... [14:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:21]Read from MH i2c: E2 [14:24:21]MH_I2C_Read... [14:24:21]Read from MH i2c: E2 03 00 [14:24:21]MH_I2C_Read... [14:24:21]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [14:24:21]RAPDU: 90 00 [14:24:21]wFMCommunicate OK [14:24:21]wFMCommunicate request_size=255 [14:24:21]MH_SAM_APDU [14:24: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 7D 00 00 00 F4 03 04 00 16 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B5 01 00 35 04 06 00 83 [14:24:21]Write to MH i2c: E2 02 01 E3 06 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 7D 00 00 00 F4 03 04 00 16 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B5 01 00 35 04 06 00 83 00 00 F3 [14:24:21]Write i2c OK [14:24:21]MH_I2C_Read... [14:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:22]Read from MH i2c: E2 [14:24:22]MH_I2C_Read... [14:24:22]Read from MH i2c: E2 03 00 [14:24:22]MH_I2C_Read... [14:24:22]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [14:24:22]RAPDU: 90 00 [14:24:22]wFMCommunicate OK [14:24:22]wFMCommunicate request_size=10 [14:24:22]MH_SAM_APDU [14:24:22]CAPDU: 80 0D 02 02 05 BC 9E 87 CE F6 [14:24:22]Write to MH i2c: E2 0D 00 E4 06 80 0D 02 02 05 00 BC 9E 87 CE F6 00 00 13 [14:24:22]Write i2c OK [14:24:22]MH_I2C_Read... [14:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:22]Read from MH i2c: E2 [14:24:22]MH_I2C_Read... [14:24:22]Read from MH i2c: E2 03 00 [14:24:22]MH_I2C_Read... [14:24:22]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [14:24:22]RAPDU: 90 00 [14:24:22]wFMCommunicate OK [14:24:22]wFMCommunicate request_size=4 [14:24:22]MH_SAM_APDU [14:24:22]CAPDU: 80 0D 03 02 [14:24:22]Write to MH i2c: E2 08 00 E5 06 80 0D 03 02 00 00 00 00 66 [14:24:22]Write i2c OK [14:24:22]MH_I2C_Read... [14:24:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:22]Read from MH i2c: E2 [14:24:22]MH_I2C_Read... [14:24:22]Read from MH i2c: E2 0B 00 [14:24:22]MH_I2C_Read... [14:24:22]Read from MH i2c: E2 0B 00 E5 06 00 B2 AB 5B 23 7F E9 26 7F 90 00 4F [14:24:22]RAPDU: B2 AB 5B 23 7F E9 26 7F 90 00 [14:24:22]wFMCommunicate OK [14:24:22]SAM_PROTO_SignData done [14:24:22]FM_MakeSignedData done [14:24:22]CreateOFDProtocolMessage [14:24:22]wFMCommunicate request_size=4 [14:24:22]MH_SAM_APDU [14:24:22]CAPDU: 80 11 00 00 [14:24:22]Write to MH i2c: E2 08 00 E6 06 80 11 00 00 00 00 00 00 66 [14:24:22]Write i2c OK [14:24:22]MH_I2C_Read... [14:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:22]Read from MH i2c: E2 [14:24:22]MH_I2C_Read... [14:24:22]Read from MH i2c: E2 17 00 [14:24:22]MH_I2C_Read... [14:24:22]Read from MH i2c: E2 17 00 E6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B8 [14:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:24:22]wFMCommunicate OK [14:24:22]CreateOFDProtocolMessage done [14:24:22]OFDSenderStorePacket 111957 [14:24:22]StoreOFDPacket docnum=111957 [14:24:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6B ED 07 01 CC 1C 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 7D 00 00 00 F4 03 04 00 16 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B5 01 00 35 04 06 00 83 BC 9E 87 CE F6 B2 AB 5B 23 7F E9 26 7F [14:24:22]CheckFolder [14:24:22]dirname=/storage/ofd_packets [14:24:22]CheckFolder done [14:24:22]ProducePacketName [14:24:22]name=ofd_packets/00111957 [14:24:22]NVStorageSaveData ofd_packets/00111957 [14:24:22]File name is /storage/ofd_packets/00111957 [14:24:22]Write 301 bytes [14:24:22]NVStorageSaveData done [14:24:22]OFDSenderStorePacket done [14:24:22]KKMCreateOFDPacket done [14:24:22]NVStorageSaveData kkm_last_timestamp [14:24:22]File name is /storage/kkm_last_timestamp [14:24:22]Write 4 bytes [14:24:22]NVStorageSaveData done [14:24:22]ExternCall_PrintAddStr [14:24:22]wPrintStart [14:24:22]Write to MH i2c: 01 00 00 E7 06 ED [14:24:22]Write i2c OK [14:24:22]MH_I2C_Read... [14:24:22]Read from MH i2c: 01 [14:24:22]MH_I2C_Read... [14:24:22]Read from MH i2c: 01 07 00 [14:24:22]MH_I2C_Read... [14:24:22]Read from MH i2c: 01 07 00 E7 06 00 00 00 00 00 FF 0F 02 [14:24:22]RasterBufferAndPrint [14:24:22]line 小褔械褌 N : (1)320604 [14:24:22]line 袠袧袧: 02508201610067 [14:24:22]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:24:22]line 袩袪袨袛袗袞袗 [14:24:22]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:24:22]line 孝芯胁邪褉: 2710124130 [14:24:22]line 袗懈-92-袣-5 [14:24:22]line 6.030 * 66.40 [14:24:22]line = 400.39 [14:24:22]line 袧袛小 12% 袧小袩 1% [14:24:22]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:24:22]line 袨袣袪校袚袥袝袧袠袝: -0.39 [14:24:22]line 袠孝袨袚袨: 400.00 [14:24:22]line 袙薪械褋械薪芯: 400.00 [14:24:22]line 小袛袗效袗: 0.00 [14:24:22]line 袧小袩 1% : 3.54 [14:24:22]line 袧袛小 12% : 42.52 [14:24:22]line 袧邪谢懈褔薪褘屑懈: 400.00 [14:24:22]line 袘械蟹薪邪谢.: 0.00 [14:24:22]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:24:22]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:24:22]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:24:22]line 效械泻 125 21.06.2024 14:24 [14:24:22]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:24:22]line 袟袧袦: 0300000198 [14:24:22]line 袪袧袦: 0000000000092771 [14:24:22]line 袙械褉褋懈褟 袣袣袦: 001 [14:24:22]line 肖袦: 0000000000875083 [14:24:22]line 肖袛: 111957 [14:24:22]line 肖袩袛: 144846136790774 [14:24:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142422&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111957&fm=144846136790774&tin=02508201610067®Number=0000000000092771&sum=40000 [14:24:22]OFD Sender: Processing packet 111957 [packets to send 38, broken 37] [14:24:22]ProducePacketName [14:24:22]name=ofd_packets/00111957 [14:24:22]OFD Sender: To server: 嚂鰌G, [14:24:22]CommunicateWithHost lk.salyk.kg:30040 [14:24:22]ConnectInit lk.salyk.kg [14:24:22]written 0, free lines is 4095 [14:24:22]Connected sock=9 [14:24:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6B ED 07 01 CC 1C 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 7D 00 00 00 F4 03 04 00 16 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B5 01 00 35 04 06 00 83 BC 9E 87 CE F6 B2 AB 5B 23 7F E9 26 7F [14:24:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 02 72 47 00 3D 58 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 30 38 37 35 30 38 33 10 04 04 00 55 B5 01 00 F4 03 04 00 3F 24 75 66 B6 04 01 00 00 3E 58 39 AB 6B C4 D0 4B [14:24:22]CommunicateWithHost err = 0 [14:24:22]CheckOFDResponse [14:24:22]1017 (14) - 77093643461234 [14:24:22]1041 (16) - 0000000000875083 [14:24:22]1040 (4) - 111957 [14:24:22]1012 (4) - 21.06.2024 06:57 [14:24:22]1206 (1) - 0 [14:24:22]OFD Sender: Remove packet 111957 [14:24:22]ProducePacketName [14:24:22]name=ofd_packets/00111957 [14:24:22]NVStorageDeleteData [14:24:23]Write to MH i2c: 01 00 00 12 07 19 [14:24:23]Write i2c OK [14:24:23]MH_I2C_Read... [14:24:23]Read from MH i2c: 01 [14:24:23]MH_I2C_Read... [14:24:23]Read from MH i2c: 01 07 00 [14:24:23]MH_I2C_Read... [14:24:23]Read from MH i2c: 01 07 00 12 07 00 00 00 00 00 F1 0C 1D [14:24:23]RasterBufferAndPrint [14:24:23]line [14:24:23]line [14:24:23]line [14:24:23]line [14:24:23]line [14:24:23]written 0, free lines is 3319 [14:24:23]MH_Cut [14:24:23]Write to MH i2c: D1 01 00 19 07 01 F2 [14:24:23]Write i2c OK [14:24:23]MH_I2C_Read... [14:24:23]Read from MH i2c: D1 [14:24:23]MH_I2C_Read... [14:24:23]Read from MH i2c: D1 01 00 [14:24:23]MH_I2C_Read... [14:24:23]Read from MH i2c: D1 01 00 19 07 00 F1 [14:24:23]Write to MH i2c: 01 00 00 1A 07 21 [14:24:23]Write i2c OK [14:24:23]MH_I2C_Read... [14:24:23]OFD Sender: No OFD packet to send [14:24:23]*** Cut start [14:24:23]*** Partial cut [14:24:23]*** CUTSNS_PIN = 1 [14:24:23]*** CUTSNS_PIN = 0 [14:24:23]*** Brake cut motor [14:24:24]Read from MH i2c: 01 [14:24:24]MH_I2C_Read... [14:24:24]*** Stop cut motor [14:24:24]*** Cut end [14:24:24]Read from MH i2c: 01 07 00 [14:24:24]MH_I2C_Read... [14:24:24]Read from MH i2c: 01 07 00 1A 07 00 00 00 00 00 FF 0F 36 [14:24:24]process_action close_receipt done [14:24:24]requested_data is exist [14:24:24]produce_requested_data [14:24:24]requested_item fm.sn is exist - process it [14:24:24]wFMCommunicate request_size=4 [14:24:24]MH_SAM_APDU [14:24:24]CAPDU: 80 11 00 00 [14:24:24]Write to MH i2c: E2 08 00 1B 07 80 11 00 00 00 00 00 00 9C [14:24:24]Write i2c OK [14:24:24]MH_I2C_Read... [14:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:24]Read from MH i2c: E2 [14:24:24]MH_I2C_Read... [14:24:24]Read from MH i2c: E2 17 00 [14:24:24]MH_I2C_Read... [14:24:24]Read from MH i2c: E2 17 00 1B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [14:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:24:24]wFMCommunicate OK [14:24:24]requested_item fd.num is exist - process it [14:24:24]SAM_PROTO_GetFieldsCounters [14:24:24]wFMCommunicate request_size=4 [14:24:24]MH_SAM_APDU [14:24:24]CAPDU: 80 13 00 00 [14:24:24]Write to MH i2c: E2 08 00 1C 07 80 13 00 00 00 00 00 00 9F [14:24:24]Write i2c OK [14:24:24]MH_I2C_Read... [14:24:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:24]Read from MH i2c: E2 [14:24:24]MH_I2C_Read... [14:24:24]Read from MH i2c: E2 62 00 [14:24:24]MH_I2C_Read... [14:24:24]Read from MH i2c: E2 62 00 1C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 55 B5 01 00 0E 04 04 00 86 01 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 C9 [14:24:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 55 B5 01 00 0E 04 04 00 86 01 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 [14:24:24]wFMCommunicate OK [14:24:24]SAM_PROTO_GetFieldsCounters done [14:24:24]requested_item shift.num is exist - process it [14:24:24]requested_item shift.opened is exist - process it [14:24:24]req_shift_opened [14:24:24]FM_GetShiftState [14:24:24]SAM_PROTO_GetShiftState [14:24:24]wFMCommunicate request_size=4 [14:24:24]MH_SAM_APDU [14:24:24]CAPDU: 80 13 01 00 [14:24:24]Write to MH i2c: E2 08 00 1D 07 80 13 01 00 00 00 00 00 A1 [14:24:24]Write i2c OK [14:24:24]MH_I2C_Read... [14:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:24]Read from MH i2c: E2 [14:24:24]MH_I2C_Read... [14:24:24]Read from MH i2c: E2 0E 00 [14:24:24]MH_I2C_Read... [14:24:24]Read from MH i2c: E2 0E 00 1D 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1E [14:24:24]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:24:24]wFMCommunicate OK [14:24:24]SAM_PROTO_GetShiftState done [14:24:24]FM_GetShiftState done [14:24:24]req_shift_opened done [14:24:24]requested_item shift.open_date is exist - process it [14:24:24]req_shift_open_date [14:24:24]req_shift_open_date done [14:24:24]produce_requested_data done [14:24:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111957,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:24:24]process_action_free close_receipt [14:24:24]json_value_free [14:24:24]json_value_free done [14:24:24]process_json_proto returns [14:24:24]Send response to host [14:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111957,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:24:24]free response buf [14:24:24]execute_script done [14:24:24]execute_script returns [14:24:24]free content buf [14:24:24]Sock 7.Close socket [14:24:24]Sock 7.Thread stoped [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:32]accept exits with 10 [14:25:32]New connection [14:25:32]New thread 3066875236 created [14:25:32]Thread 3066731876 joined [14:25:32]Waiting for new connection... [14:25:32] Sock 10.Parse request [14:25:32]Sock 10.Check first char [14:25:32]Sock 10.First char is OK [14:25:32]request: POST /json_proto HTTP/1.0 [14:25:32]Method: POST [14:25:32]URL: /json_proto [14:25:32]Method is POST - this is cgi request [14:25:32]url: /json_proto [14:25:32]query_string will be loaded in cgi processing [14:25:32]execute_cgi json_proto POST (null) [14:25:32]execute_cgi path=json_proto method=POST [14:25:32]POST find Content-Length [14:25:32]Host: 172.17.59.68:8080 [14:25:32]Content-Length: 682 [14:25:32]Content-Type: application/json [14:25:32] [14:25:32]POST finish read [14:25:32]Found Content-Length = 682 [14:25:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [14:25:32]execute_script... [14:25:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [14:25:32]POST & json_proto [14:25:32]process_json_proto [14:25:32]json parsed OK: [14:25:32]protocol is kg_v1.0 [14:25:32]action value=close_receipt [14:25:32]process_action close_receipt [14:25:32]cmd_close_receipt [14:25:32]MH_GetDate [14:25:32]Write to MH i2c: F0 00 00 1E 07 14 [14:25:32]Write i2c OK [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: F0 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: F0 09 00 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: F0 09 00 1E 07 00 5D 8D 75 66 BC EC 60 65 4F [14:25:32]GetLastDocTimeStamp 1718979862 [14:25:32]current date 1718979933 [14:25:32]FM_GetShiftState [14:25:32]SAM_PROTO_GetShiftState [14:25:32]wFMCommunicate request_size=4 [14:25:32]MH_SAM_APDU [14:25:32]CAPDU: 80 13 01 00 [14:25:32]Write to MH i2c: E2 08 00 1F 07 80 13 01 00 00 00 00 00 A3 [14:25:32]Write i2c OK [14:25:32]MH_I2C_Read... [14:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:32]Read from MH i2c: E2 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 0E 00 [14:25:32]MH_I2C_Read... [14:25:32]Read from MH i2c: E2 0E 00 1F 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 20 [14:25:32]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:25:32]wFMCommunicate OK [14:25:32]SAM_PROTO_GetShiftState done [14:25:32]FM_GetShiftState done [14:25:32]opened in 1718933695 [14:25:32]opened+sec_in_day 1719020095 [14:25:32]quantity*price = 100064 [14:25:32]sum+1 = 100066 [14:25:32]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 126 21.06.2024 14:25 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111958 肖袩袛: 232065209250986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142533&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111958&fm=232065209250986&tin=02508201610067®Number=0000000000092771&sum=100000 [14:25:33]StoreToDocumentArchive [14:25:33]shift 390 fd 111958 [14:25:33]save to /storage/0390/doc_00111958 [14:25:33]save last doc name /storage/0390/doc_00111958 to /storage/kkm_last_doc_name [14:25:33]save OK [14:25:33]Clear old archive folders... [14:25:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:33]tlvbuf is 004416F0 [14:25:33]SAM_PROTO_ClearQueue [14:25:33]wFMCommunicate request_size=4 [14:25:33]MH_SAM_APDU [14:25:33]CAPDU: 80 09 00 00 [14:25:33]Write to MH i2c: E2 08 00 2C 07 80 09 00 00 00 00 00 00 A5 [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:33]Read from MH i2c: E2 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 03 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 03 00 2C 07 00 90 00 A7 [14:25:33]RAPDU: 90 00 [14:25:33]wFMCommunicate OK [14:25:33]SAM_PROTO_ClearQueue done [14:25:33]KKMCreateOFDPacket [14:25:33]OFDProtocolAddRootSTLVToBuf [14:25:33]FM_MakeSignedData [14:25:33]FM_MakeSignedData [14:25:33]SAM_PROTO_SignData [14:25:33]wFMCommunicate request_size=4 [14:25:33]MH_SAM_APDU [14:25:33]CAPDU: 80 0D 01 02 [14:25:33]Write to MH i2c: E2 08 00 2D 07 80 0D 01 02 00 00 00 00 AD [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:33]Read from MH i2c: E2 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 03 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 03 00 2D 07 00 90 00 A8 [14:25:33]RAPDU: 90 00 [14:25:33]wFMCommunicate OK [14:25:33]wFMCommunicate request_size=255 [14:25:33]MH_SAM_APDU [14:25: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 7E 00 00 00 F4 03 04 00 5D 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B5 01 00 35 04 06 00 D3 [14:25:33]Write to MH i2c: E2 02 01 2E 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 7E 00 00 00 F4 03 04 00 5D 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B5 01 00 35 04 06 00 D3 00 00 5A [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]OFD Sender: No OFD packet to send [14:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:33]Read from MH i2c: E2 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 03 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 03 00 2E 07 00 90 00 A9 [14:25:33]RAPDU: 90 00 [14:25:33]wFMCommunicate OK [14:25:33]wFMCommunicate request_size=10 [14:25:33]MH_SAM_APDU [14:25:33]CAPDU: 80 0D 02 02 05 0F E4 5C B4 AA [14:25:33]Write to MH i2c: E2 0D 00 2F 07 80 0D 02 02 05 00 0F E4 5C B4 AA 00 00 67 [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:33]Read from MH i2c: E2 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 03 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [14:25:33]RAPDU: 90 00 [14:25:33]wFMCommunicate OK [14:25:33]wFMCommunicate request_size=4 [14:25:33]MH_SAM_APDU [14:25:33]CAPDU: 80 0D 03 02 [14:25:33]Write to MH i2c: E2 08 00 30 07 80 0D 03 02 00 00 00 00 B2 [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:33]Read from MH i2c: E2 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 0B 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 0B 00 30 07 00 36 AF D2 63 97 79 5D D9 90 00 13 [14:25:33]RAPDU: 36 AF D2 63 97 79 5D D9 90 00 [14:25:33]wFMCommunicate OK [14:25:33]SAM_PROTO_SignData done [14:25:33]FM_MakeSignedData done [14:25:33]CreateOFDProtocolMessage [14:25:33]wFMCommunicate request_size=4 [14:25:33]MH_SAM_APDU [14:25:33]CAPDU: 80 11 00 00 [14:25:33]Write to MH i2c: E2 08 00 31 07 80 11 00 00 00 00 00 00 B2 [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:33]Read from MH i2c: E2 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 17 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: E2 17 00 31 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [14:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:25:33]wFMCommunicate OK [14:25:33]CreateOFDProtocolMessage done [14:25:33]OFDSenderStorePacket 111958 [14:25:33]StoreOFDPacket docnum=111958 [14:25:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 27 FE 07 01 AF 98 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 7E 00 00 00 F4 03 04 00 5D 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B5 01 00 35 04 06 00 D3 0F E4 5C B4 AA 36 AF D2 63 97 79 5D D9 [14:25:33]CheckFolder [14:25:33]dirname=/storage/ofd_packets [14:25:33]CheckFolder done [14:25:33]ProducePacketName [14:25:33]name=ofd_packets/00111958 [14:25:33]NVStorageSaveData ofd_packets/00111958 [14:25:33]File name is /storage/ofd_packets/00111958 [14:25:33]Write 301 bytes [14:25:33]NVStorageSaveData done [14:25:33]OFDSenderStorePacket done [14:25:33]KKMCreateOFDPacket done [14:25:33]NVStorageSaveData kkm_last_timestamp [14:25:33]File name is /storage/kkm_last_timestamp [14:25:33]Write 4 bytes [14:25:33]NVStorageSaveData done [14:25:33]ExternCall_PrintAddStr [14:25:33]wPrintStart [14:25:33]Write to MH i2c: 01 00 00 32 07 39 [14:25:33]Write i2c OK [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: 01 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: 01 07 00 [14:25:33]MH_I2C_Read... [14:25:33]Read from MH i2c: 01 07 00 32 07 00 00 00 00 00 FF 0F 4E [14:25:33]RasterBufferAndPrint [14:25:33]line 小褔械褌 N : (1)320605 [14:25:33]line 袠袧袧: 02508201610067 [14:25:33]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:25:33]line 袩袪袨袛袗袞袗 [14:25:33]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:25:33]line 孝芯胁邪褉: 2710124130 [14:25:33]line 袗懈-92-袣-5 [14:25:33]line 15.070 * 66.40 [14:25:33]line = 1000.65 [14:25:33]line 袧袛小 12% 袧小袩 1% [14:25:33]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:25:33]line 袨袣袪校袚袥袝袧袠袝: -0.65 [14:25:33]line 袠孝袨袚袨: 1000.00 [14:25:33]line 袙薪械褋械薪芯: 1000.00 [14:25:33]line 小袛袗效袗: 0.00 [14:25:33]line 袧小袩 1% : 8.85 [14:25:33]line 袧袛小 12% : 106.26 [14:25:33]line 袧邪谢懈褔薪褘屑懈: 1000.00 [14:25:33]line 袘械蟹薪邪谢.: 0.00 [14:25:33]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:25:33]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:25:33]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:25:33]line 效械泻 126 21.06.2024 14:25 [14:25:33]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:25:33]line 袟袧袦: 0300000198 [14:25:33]line 袪袧袦: 0000000000092771 [14:25:33]line 袙械褉褋懈褟 袣袣袦: 001 [14:25:33]line 肖袦: 0000000000875083 [14:25:33]line 肖袛: 111958 [14:25:33]line 肖袩袛: 232065209250986 [14:25:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142533&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111958&fm=232065209250986&tin=02508201610067®Number=0000000000092771&sum=100000 [14:25:34]OFD Sender: Processing packet 111958 [packets to send 38, broken 37] [14:25:34]ProducePacketName [14:25:34]name=ofd_packets/00111958 [14:25:34]OFD Sender: To server: 嚂鰌G, [14:25:34]CommunicateWithHost lk.salyk.kg:30040 [14:25:34]ConnectInit lk.salyk.kg [14:25:34]written 0, free lines is 4095 [14:25:34]Connected sock=9 [14:25:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 27 FE 07 01 AF 98 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 7E 00 00 00 F4 03 04 00 5D 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B5 01 00 35 04 06 00 D3 0F E4 5C B4 AA 36 AF D2 63 97 79 5D D9 [14:25:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 57 74 47 00 BF E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B5 01 00 F4 03 04 00 86 24 75 66 B6 04 01 00 00 8C B3 2B D5 F9 00 84 A4 [14:25:34]CommunicateWithHost err = 0 [14:25:34]CheckOFDResponse [14:25:34]1017 (14) - 77093643461234 [14:25:34]1041 (16) - 0000000000875083 [14:25:34]1040 (4) - 111958 [14:25:34]1012 (4) - 21.06.2024 06:58 [14:25:34]1206 (1) - 0 [14:25:34]OFD Sender: Remove packet 111958 [14:25:34]ProducePacketName [14:25:34]name=ofd_packets/00111958 [14:25:34]NVStorageDeleteData [14:25:34]Write to MH i2c: 01 00 00 5D 07 64 [14:25:34]Write i2c OK [14:25:34]MH_I2C_Read... [14:25:34]Read from MH i2c: 01 [14:25:34]MH_I2C_Read... [14:25:34]Read from MH i2c: 01 07 00 [14:25:34]MH_I2C_Read... [14:25:34]Read from MH i2c: 01 07 00 5D 07 00 00 00 00 00 F4 0C 6B [14:25:34]RasterBufferAndPrint [14:25:34]line [14:25:34]line [14:25:34]line [14:25:34]line [14:25:34]line [14:25:34]written 0, free lines is 3323 [14:25:34]MH_Cut [14:25:34]Write to MH i2c: D1 01 00 64 07 01 3D [14:25:34]Write i2c OK [14:25:34]MH_I2C_Read... [14:25:34]Read from MH i2c: D1 [14:25:34]MH_I2C_Read... [14:25:34]Read from MH i2c: D1 01 00 [14:25:34]MH_I2C_Read... [14:25:34]Read from MH i2c: D1 01 00 64 07 00 3C [14:25:34]Write to MH i2c: 01 00 00 65 07 6C [14:25:34]Write i2c OK [14:25:34]MH_I2C_Read... [14:25:34]OFD Sender: No OFD packet to send [14:25:35]*** Cut start [14:25:35]*** Partial cut [14:25:35]*** CUTSNS_PIN = 1 [14:25:35]*** CUTSNS_PIN = 0 [14:25:35]*** Brake cut motor [14:25:35]Read from MH i2c: 01 [14:25:35]MH_I2C_Read... [14:25:35]*** Stop cut motor [14:25:35]*** Cut end [14:25:35]Read from MH i2c: 01 07 00 [14:25:35]MH_I2C_Read... [14:25:35]Read from MH i2c: 01 07 00 65 07 00 00 00 00 00 FF 0F 81 [14:25:35]process_action close_receipt done [14:25:35]requested_data is exist [14:25:35]produce_requested_data [14:25:35]requested_item fm.sn is exist - process it [14:25:35]wFMCommunicate request_size=4 [14:25:35]MH_SAM_APDU [14:25:35]CAPDU: 80 11 00 00 [14:25:35]Write to MH i2c: E2 08 00 66 07 80 11 00 00 00 00 00 00 E7 [14:25:35]Write i2c OK [14:25:35]MH_I2C_Read... [14:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:36]Read from MH i2c: E2 [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: E2 17 00 [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: E2 17 00 66 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 39 [14:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:25:36]wFMCommunicate OK [14:25:36]requested_item fd.num is exist - process it [14:25:36]SAM_PROTO_GetFieldsCounters [14:25:36]wFMCommunicate request_size=4 [14:25:36]MH_SAM_APDU [14:25:36]CAPDU: 80 13 00 00 [14:25:36]Write to MH i2c: E2 08 00 67 07 80 13 00 00 00 00 00 00 EA [14:25:36]Write i2c OK [14:25:36]MH_I2C_Read... [14:25:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:36]Read from MH i2c: E2 [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: E2 62 00 [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: E2 62 00 67 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 56 B5 01 00 0E 04 04 00 86 01 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 18 [14:25:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 56 B5 01 00 0E 04 04 00 86 01 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 [14:25:36]wFMCommunicate OK [14:25:36]SAM_PROTO_GetFieldsCounters done [14:25:36]requested_item shift.num is exist - process it [14:25:36]requested_item shift.opened is exist - process it [14:25:36]req_shift_opened [14:25:36]FM_GetShiftState [14:25:36]SAM_PROTO_GetShiftState [14:25:36]wFMCommunicate request_size=4 [14:25:36]MH_SAM_APDU [14:25:36]CAPDU: 80 13 01 00 [14:25:36]Write to MH i2c: E2 08 00 68 07 80 13 01 00 00 00 00 00 EC [14:25:36]Write i2c OK [14:25:36]MH_I2C_Read... [14:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:36]Read from MH i2c: E2 [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: E2 0E 00 [14:25:36]MH_I2C_Read... [14:25:36]Read from MH i2c: E2 0E 00 68 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 69 [14:25:36]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:25:36]wFMCommunicate OK [14:25:36]SAM_PROTO_GetShiftState done [14:25:36]FM_GetShiftState done [14:25:36]req_shift_opened done [14:25:36]requested_item shift.open_date is exist - process it [14:25:36]req_shift_open_date [14:25:36]req_shift_open_date done [14:25:36]produce_requested_data done [14:25:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111958,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:25:36]process_action_free close_receipt [14:25:36]json_value_free [14:25:36]json_value_free done [14:25:36]process_json_proto returns [14:25:36]Send response to host [14:25:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111958,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:25:36]free response buf [14:25:36]execute_script done [14:25:36]execute_script returns [14:25:36]free content buf [14:25:36]Sock 10.Close socket [14:25:36]Sock 10.Thread stoped [14:25:39]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:11]accept exits with 7 [14:26:11]New connection [14:26:11]New thread 3066731876 created [14:26:11]Thread 3066875236 joined [14:26:11]Waiting for new connection... [14:26:11] Sock 7.Parse request [14:26:11]Sock 7.Check first char [14:26:11]Sock 7.First char is OK [14:26:11]request: POST /json_proto HTTP/1.0 [14:26:11]Method: POST [14:26:11]URL: /json_proto [14:26:11]Method is POST - this is cgi request [14:26:11]url: /json_proto [14:26:11]query_string will be loaded in cgi processing [14:26:11]execute_cgi json_proto POST (null) [14:26:11]execute_cgi path=json_proto method=POST [14:26:11]POST find Content-Length [14:26:11]Host: 172.17.59.68:8080 [14:26:11]Content-Length: 677 [14:26:11]Content-Type: application/json [14:26:11] [14:26:11]POST finish read [14:26:11]Found Content-Length = 677 [14:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:11]execute_script... [14:26: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 : (1)320607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:11]POST & json_proto [14:26:11]process_json_proto [14:26:11]json parsed OK: [14:26:11]protocol is kg_v1.0 [14:26:11]action value=close_receipt [14:26:11]process_action close_receipt [14:26:11]cmd_close_receipt [14:26:11]MH_GetDate [14:26:11]Write to MH i2c: F0 00 00 69 07 5F [14:26:11]Write i2c OK [14:26:11]MH_I2C_Read... [14:26:11]Read from MH i2c: F0 [14:26:11]MH_I2C_Read... [14:26:11]Read from MH i2c: F0 09 00 [14:26:11]MH_I2C_Read... [14:26:11]Read from MH i2c: F0 09 00 69 07 00 85 8D 75 66 BC EC 60 65 C2 [14:26:11]GetLastDocTimeStamp 1718979933 [14:26:11]current date 1718979973 [14:26:11]FM_GetShiftState [14:26:11]SAM_PROTO_GetShiftState [14:26:11]wFMCommunicate request_size=4 [14:26:11]MH_SAM_APDU [14:26:11]CAPDU: 80 13 01 00 [14:26:11]Write to MH i2c: E2 08 00 6A 07 80 13 01 00 00 00 00 00 EE [14:26:11]Write i2c OK [14:26:11]MH_I2C_Read... [14:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:11]Read from MH i2c: E2 [14:26:11]MH_I2C_Read... [14:26:11]Read from MH i2c: E2 0E 00 [14:26:11]MH_I2C_Read... [14:26:11]Read from MH i2c: E2 0E 00 6A 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 6B [14:26:11]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:26:11]wFMCommunicate OK [14:26:11]SAM_PROTO_GetShiftState done [14:26:11]FM_GetShiftState done [14:26:11]opened in 1718933695 [14:26:11]opened+sec_in_day 1719020095 [14:26:11]quantity*price = 20052 [14:26:11]sum+1 = 20054 [14:26:11]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.53 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 127 21.06.2024 14:26 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111959 肖袩袛: 248457039973274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142613&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111959&fm=248457039973274&tin=02508201610067®Number=0000000000092771&sum=20000 [14:26:12]StoreToDocumentArchive [14:26:12]shift 390 fd 111959 [14:26:12]save to /storage/0390/doc_00111959 [14:26:12]save last doc name /storage/0390/doc_00111959 to /storage/kkm_last_doc_name [14:26:12]save OK [14:26:12]Clear old archive folders... [14:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:12]tlvbuf is 0033E280 [14:26:12]SAM_PROTO_ClearQueue [14:26:12]wFMCommunicate request_size=4 [14:26:12]MH_SAM_APDU [14:26:12]CAPDU: 80 09 00 00 [14:26:12]Write to MH i2c: E2 08 00 77 07 80 09 00 00 00 00 00 00 F0 [14:26:12]Write i2c OK [14:26:12]MH_I2C_Read... [14:26:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:13]Read from MH i2c: E2 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 03 00 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 03 00 77 07 00 90 00 F2 [14:26:13]RAPDU: 90 00 [14:26:13]wFMCommunicate OK [14:26:13]SAM_PROTO_ClearQueue done [14:26:13]KKMCreateOFDPacket [14:26:13]OFDProtocolAddRootSTLVToBuf [14:26:13]FM_MakeSignedData [14:26:13]FM_MakeSignedData [14:26:13]SAM_PROTO_SignData [14:26:13]wFMCommunicate request_size=4 [14:26:13]MH_SAM_APDU [14:26:13]CAPDU: 80 0D 01 02 [14:26:13]Write to MH i2c: E2 08 00 78 07 80 0D 01 02 00 00 00 00 F8 [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:13]Read from MH i2c: E2 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 03 00 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 03 00 78 07 00 90 00 F3 [14:26:13]RAPDU: 90 00 [14:26:13]wFMCommunicate OK [14:26:13]wFMCommunicate request_size=255 [14:26:13]MH_SAM_APDU [14:26: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 85 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B5 01 00 35 04 06 00 E1 [14:26:13]Write to MH i2c: E2 02 01 79 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 85 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B5 01 00 35 04 06 00 E1 00 00 4C [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:13]Read from MH i2c: E2 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 03 00 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [14:26:13]RAPDU: 90 00 [14:26:13]wFMCommunicate OK [14:26:13]wFMCommunicate request_size=10 [14:26:13]MH_SAM_APDU [14:26:13]CAPDU: 80 0D 02 02 05 F8 69 9C 0B 9A [14:26:13]Write to MH i2c: E2 0D 00 7A 07 80 0D 02 02 05 00 F8 69 9C 0B 9A 00 00 A7 [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:13]Read from MH i2c: E2 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 03 00 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [14:26:13]RAPDU: 90 00 [14:26:13]wFMCommunicate OK [14:26:13]wFMCommunicate request_size=4 [14:26:13]MH_SAM_APDU [14:26:13]CAPDU: 80 0D 03 02 [14:26:13]Write to MH i2c: E2 08 00 7B 07 80 0D 03 02 00 00 00 00 FD [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:13]Read from MH i2c: E2 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 0B 00 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 0B 00 7B 07 00 02 62 00 9C 77 48 91 E7 90 00 35 [14:26:13]RAPDU: 02 62 00 9C 77 48 91 E7 90 00 [14:26:13]wFMCommunicate OK [14:26:13]SAM_PROTO_SignData done [14:26:13]FM_MakeSignedData done [14:26:13]CreateOFDProtocolMessage [14:26:13]wFMCommunicate request_size=4 [14:26:13]MH_SAM_APDU [14:26:13]CAPDU: 80 11 00 00 [14:26:13]Write to MH i2c: E2 08 00 7C 07 80 11 00 00 00 00 00 00 FD [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:13]Read from MH i2c: E2 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 17 00 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 17 00 7C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [14:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:26:13]wFMCommunicate OK [14:26:13]CreateOFDProtocolMessage done [14:26:13]OFDSenderStorePacket 111959 [14:26:13]StoreOFDPacket docnum=111959 [14:26:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A3 B5 07 01 12 9A 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 85 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B5 01 00 35 04 06 00 E1 F8 69 9C 0B 9A 02 62 00 9C 77 48 91 E7 [14:26:13]CheckFolder [14:26:13]dirname=/storage/ofd_packets [14:26:13]CheckFolder done [14:26:13]ProducePacketName [14:26:13]name=ofd_packets/00111959 [14:26:13]NVStorageSaveData ofd_packets/00111959 [14:26:13]File name is /storage/ofd_packets/00111959 [14:26:13]Write 301 bytes [14:26:13]NVStorageSaveData done [14:26:13]OFDSenderStorePacket done [14:26:13]KKMCreateOFDPacket done [14:26:13]NVStorageSaveData kkm_last_timestamp [14:26:13]File name is /storage/kkm_last_timestamp [14:26:13]Write 4 bytes [14:26:13]NVStorageSaveData done [14:26:13]ExternCall_PrintAddStr [14:26:13]wPrintStart [14:26:13]Write to MH i2c: 01 00 00 7D 07 84 [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: 01 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: 01 07 00 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: 01 07 00 7D 07 00 00 00 00 00 FF 0F 99 [14:26:13]RasterBufferAndPrint [14:26:13]line 小褔械褌 N : (1)320607 [14:26:13]line 袠袧袧: 02508201610067 [14:26:13]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:26:13]line 袩袪袨袛袗袞袗 [14:26:13]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:26:13]line 孝芯胁邪褉: 2710124130 [14:26:13]line 袗懈-92-袣-5 [14:26:13]line 3.020 * 66.40 [14:26:13]line = 200.53 [14:26:13]line 袧袛小 12% 袧小袩 1% [14:26:13]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:26:13]line 袨袣袪校袚袥袝袧袠袝: -0.53 [14:26:13]line 袠孝袨袚袨: 200.00 [14:26:13]line 袙薪械褋械薪芯: 200.00 [14:26:13]line 小袛袗效袗: 0.00 [14:26:13]line 袧小袩 1% : 1.77 [14:26:13]line 袧袛小 12% : 21.29 [14:26:13]line 袧邪谢懈褔薪褘屑懈: 200.00 [14:26:13]line 袘械蟹薪邪谢.: 0.00 [14:26:13]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:26:13]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:26:13]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:26:13]line 效械泻 127 21.06.2024 14:26 [14:26:13]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:26:13]line 袟袧袦: 0300000198 [14:26:13]line 袪袧袦: 0000000000092771 [14:26:13]line 袙械褉褋懈褟 袣袣袦: 001 [14:26:13]line 肖袦: 0000000000875083 [14:26:13]line 肖袛: 111959 [14:26:13]line 肖袩袛: 248457039973274 [14:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142613&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111959&fm=248457039973274&tin=02508201610067®Number=0000000000092771&sum=20000 [14:26:13]OFD Sender: Processing packet 111959 [packets to send 38, broken 37] [14:26:13]ProducePacketName [14:26:13]name=ofd_packets/00111959 [14:26:13]OFD Sender: To server: 嚂鰌G, [14:26:13]CommunicateWithHost lk.salyk.kg:30040 [14:26:13]ConnectInit lk.salyk.kg [14:26:13]written 0, free lines is 4095 [14:26:13]Connected sock=9 [14:26:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A3 B5 07 01 12 9A 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 85 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B5 01 00 35 04 06 00 E1 F8 69 9C 0B 9A 02 62 00 9C 77 48 91 E7 [14:26:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EA EE 47 00 CD 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 30 38 37 35 30 38 33 10 04 04 00 57 B5 01 00 F4 03 04 00 AE 24 75 66 B6 04 01 00 00 48 D0 1F 9F E5 1C 16 83 [14:26:14]CommunicateWithHost err = 0 [14:26:14]CheckOFDResponse [14:26:14]1017 (14) - 77093643461234 [14:26:14]1041 (16) - 0000000000875083 [14:26:14]1040 (4) - 111959 [14:26:14]1012 (4) - 21.06.2024 06:58 [14:26:14]1206 (1) - 0 [14:26:14]OFD Sender: Remove packet 111959 [14:26:14]ProducePacketName [14:26:14]name=ofd_packets/00111959 [14:26:14]NVStorageDeleteData [14:26:14]Write to MH i2c: 01 00 00 A8 07 AF [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: 01 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: 01 07 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: 01 07 00 A8 07 00 00 00 00 00 EF 0C B1 [14:26:14]RasterBufferAndPrint [14:26:14]line [14:26:14]line [14:26:14]line [14:26:14]line [14:26:14]line [14:26:14]written 0, free lines is 3317 [14:26:14]MH_Cut [14:26:14]Write to MH i2c: D1 01 00 AF 07 01 88 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: D1 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: D1 01 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: D1 01 00 AF 07 00 87 [14:26:14]Write to MH i2c: 01 00 00 B0 07 B7 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]OFD Sender: No OFD packet to send [14:26:15]*** Cut start [14:26:15]*** Partial cut [14:26:15]*** CUTSNS_PIN = 1 [14:26:15]*** CUTSNS_PIN = 0 [14:26:15]*** Brake cut motor [14:26:15]Read from MH i2c: 01 [14:26:15]MH_I2C_Read... [14:26:15]*** Stop cut motor [14:26:15]*** Cut end [14:26:15]Read from MH i2c: 01 07 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 FF 0F CC [14:26:15]process_action close_receipt done [14:26:15]requested_data is exist [14:26:15]produce_requested_data [14:26:15]requested_item fm.sn is exist - process it [14:26:15]wFMCommunicate request_size=4 [14:26:15]MH_SAM_APDU [14:26:15]CAPDU: 80 11 00 00 [14:26:15]Write to MH i2c: E2 08 00 B1 07 80 11 00 00 00 00 00 00 32 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:15]Read from MH i2c: E2 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 17 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 17 00 B1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 84 [14:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:26:15]wFMCommunicate OK [14:26:15]requested_item fd.num is exist - process it [14:26:15]SAM_PROTO_GetFieldsCounters [14:26:15]wFMCommunicate request_size=4 [14:26:15]MH_SAM_APDU [14:26:15]CAPDU: 80 13 00 00 [14:26:15]Write to MH i2c: E2 08 00 B2 07 80 13 00 00 00 00 00 00 35 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:15]Read from MH i2c: E2 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 62 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 62 00 B2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 57 B5 01 00 0E 04 04 00 86 01 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 67 [14:26:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 57 B5 01 00 0E 04 04 00 86 01 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 [14:26:15]wFMCommunicate OK [14:26:15]SAM_PROTO_GetFieldsCounters done [14:26:15]requested_item shift.num is exist - process it [14:26:15]requested_item shift.opened is exist - process it [14:26:15]req_shift_opened [14:26:15]FM_GetShiftState [14:26:15]SAM_PROTO_GetShiftState [14:26:15]wFMCommunicate request_size=4 [14:26:15]MH_SAM_APDU [14:26:15]CAPDU: 80 13 01 00 [14:26:15]Write to MH i2c: E2 08 00 B3 07 80 13 01 00 00 00 00 00 37 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:15]Read from MH i2c: E2 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 0E 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 0E 00 B3 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B4 [14:26:15]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:26:15]wFMCommunicate OK [14:26:15]SAM_PROTO_GetShiftState done [14:26:15]FM_GetShiftState done [14:26:15]req_shift_opened done [14:26:15]requested_item shift.open_date is exist - process it [14:26:15]req_shift_open_date [14:26:15]req_shift_open_date done [14:26:15]produce_requested_data done [14:26:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111959,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:26:15]process_action_free close_receipt [14:26:15]json_value_free [14:26:15]json_value_free done [14:26:15]process_json_proto returns [14:26:15]Send response to host [14:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111959,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:26:15]free response buf [14:26:15]execute_script done [14:26:15]execute_script returns [14:26:15]free content buf [14:26:15]Sock 7.Close socket [14:26:15]Sock 7.Thread stoped [14:26:18]accept exits with 10 [14:26:18]New connection [14:26:18]New thread 3066875236 created [14:26:18]Thread 3066731876 joined [14:26:18]Waiting for new connection... [14:26:18] Sock 10.Parse request [14:26:18]Sock 10.Check first char [14:26:18]Sock 10.First char is OK [14:26:18]request: POST /json_proto HTTP/1.0 [14:26:18]Method: POST [14:26:18]URL: /json_proto [14:26:18]Method is POST - this is cgi request [14:26:18]url: /json_proto [14:26:18]query_string will be loaded in cgi processing [14:26:18]execute_cgi json_proto POST (null) [14:26:18]execute_cgi path=json_proto method=POST [14:26:18]POST find Content-Length [14:26:18]Host: 172.17.59.68:8080 [14:26:18]Content-Length: 675 [14:26:18]Content-Type: application/json [14:26:18] [14:26:18]POST finish read [14:26:18]Found Content-Length = 675 [14:26:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 12.350, "sum" : 900.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:18]execute_script... [14:26: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)320606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 12.350, "sum" : 900.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:18]POST & json_proto [14:26:18]process_json_proto [14:26:18]json parsed OK: [14:26:18]protocol is kg_v1.0 [14:26:18]action value=close_receipt [14:26:18]process_action close_receipt [14:26:18]cmd_close_receipt [14:26:18]MH_GetDate [14:26:18]Write to MH i2c: F0 00 00 B4 07 AA [14:26:18]Write i2c OK [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: F0 [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: F0 09 00 [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: F0 09 00 B4 07 00 8B 8D 75 66 BC EC 60 65 13 [14:26:18]GetLastDocTimeStamp 1718979973 [14:26:18]current date 1718979979 [14:26:18]FM_GetShiftState [14:26:18]SAM_PROTO_GetShiftState [14:26:18]wFMCommunicate request_size=4 [14:26:18]MH_SAM_APDU [14:26:18]CAPDU: 80 13 01 00 [14:26:18]Write to MH i2c: E2 08 00 B5 07 80 13 01 00 00 00 00 00 39 [14:26:18]Write i2c OK [14:26:18]MH_I2C_Read... [14:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:18]Read from MH i2c: E2 [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: E2 0E 00 [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: E2 0E 00 B5 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B6 [14:26:18]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:26:18]wFMCommunicate OK [14:26:18]SAM_PROTO_GetShiftState done [14:26:18]FM_GetShiftState done [14:26:18]opened in 1718933695 [14:26:18]opened+sec_in_day 1719020095 [14:26:18]quantity*price = 90031 [14:26:18]sum+1 = 90033 [14:26:18]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.32 袠孝袨袚袨: 900.00 袙薪械褋械薪芯: 900.00 小袛袗效袗: 0.00 袧小袩 1% : 7.97 袧袛小 12% : 95.61 袧邪谢懈褔薪褘屑懈: 900.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 128 21.06.2024 14:26 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111960 肖袩袛: 199286043703266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142619&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111960&fm=199286043703266&tin=02508201610067®Number=0000000000092771&sum=90000 [14:26:19]StoreToDocumentArchive [14:26:19]shift 390 fd 111960 [14:26:19]save to /storage/0390/doc_00111960 [14:26:19]save last doc name /storage/0390/doc_00111960 to /storage/kkm_last_doc_name [14:26:19]save OK [14:26:19]Clear old archive folders... [14:26:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:26:19]tlvbuf is 0045D740 [14:26:19]SAM_PROTO_ClearQueue [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 09 00 00 [14:26:19]Write to MH i2c: E2 08 00 C2 07 80 09 00 00 00 00 00 00 3B [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]SAM_PROTO_ClearQueue done [14:26:19]KKMCreateOFDPacket [14:26:19]OFDProtocolAddRootSTLVToBuf [14:26:19]FM_MakeSignedData [14:26:19]FM_MakeSignedData [14:26:19]SAM_PROTO_SignData [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 01 02 [14:26:19]Write to MH i2c: E2 08 00 C3 07 80 0D 01 02 00 00 00 00 43 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 C3 07 00 90 00 3E [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]wFMCommunicate request_size=255 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 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 8B 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B5 01 00 35 04 06 00 B5 3F E5 D7 [14:26:19]Write to MH i2c: E2 02 01 C4 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 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 8B 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B5 01 00 35 04 06 00 B5 3F E5 D7 00 00 EA [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]OFD Sender: No OFD packet to send [14:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]wFMCommunicate request_size=7 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 02 02 02 F7 E2 [14:26:19]Write to MH i2c: E2 0A 00 C5 07 80 0D 02 02 02 00 F7 E2 00 00 23 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 03 02 [14:26:19]Write to MH i2c: E2 08 00 C6 07 80 0D 03 02 00 00 00 00 48 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:20]Read from MH i2c: E2 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 0B 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 0B 00 C6 07 00 48 2D 65 4C C6 39 4C 40 90 00 FA [14:26:20]RAPDU: 48 2D 65 4C C6 39 4C 40 90 00 [14:26:20]wFMCommunicate OK [14:26:20]SAM_PROTO_SignData done [14:26:20]FM_MakeSignedData done [14:26:20]CreateOFDProtocolMessage [14:26:20]wFMCommunicate request_size=4 [14:26:20]MH_SAM_APDU [14:26:20]CAPDU: 80 11 00 00 [14:26:20]Write to MH i2c: E2 08 00 C7 07 80 11 00 00 00 00 00 00 48 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:20]Read from MH i2c: E2 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 17 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 17 00 C7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9A [14:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:26:20]wFMCommunicate OK [14:26:20]CreateOFDProtocolMessage done [14:26:20]OFDSenderStorePacket 111960 [14:26:20]StoreOFDPacket docnum=111960 [14:26:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 34 56 04 01 BD F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 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 8B 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B5 01 00 35 04 06 00 B5 3F E5 D7 F7 E2 48 2D 65 4C C6 39 4C 40 [14:26:20]CheckFolder [14:26:20]dirname=/storage/ofd_packets [14:26:20]CheckFolder done [14:26:20]ProducePacketName [14:26:20]name=ofd_packets/00111960 [14:26:20]NVStorageSaveData ofd_packets/00111960 [14:26:20]File name is /storage/ofd_packets/00111960 [14:26:20]Write 298 bytes [14:26:20]NVStorageSaveData done [14:26:20]OFDSenderStorePacket done [14:26:20]KKMCreateOFDPacket done [14:26:20]NVStorageSaveData kkm_last_timestamp [14:26:20]File name is /storage/kkm_last_timestamp [14:26:20]Write 4 bytes [14:26:20]NVStorageSaveData done [14:26:20]ExternCall_PrintAddStr [14:26:20]wPrintStart [14:26:20]Write to MH i2c: 01 00 00 C8 07 CF [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 07 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 07 00 C8 07 00 00 00 00 00 FF 0F E4 [14:26:20]RasterBufferAndPrint [14:26:20]line 小褔械褌 N : (1)320606 [14:26:20]line 袠袧袧: 02508201610067 [14:26:20]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:26:20]line 袩袪袨袛袗袞袗 [14:26:20]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [14:26:20]line 孝芯胁邪褉: 2710194210 [14:26:20]line 袛孝-袣-5 [14:26:20]line 12.350 * 72.90 [14:26:20]line = 900.32 [14:26:20]line 袧袛小 12% 袧小袩 1% [14:26:20]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:26:20]line 袨袣袪校袚袥袝袧袠袝: -0.32 [14:26:20]line 袠孝袨袚袨: 900.00 [14:26:20]line 袙薪械褋械薪芯: 900.00 [14:26:20]line 小袛袗效袗: 0.00 [14:26:20]line 袧小袩 1% : 7.97 [14:26:20]line 袧袛小 12% : 95.61 [14:26:20]line 袧邪谢懈褔薪褘屑懈: 900.00 [14:26:20]line 袘械蟹薪邪谢.: 0.00 [14:26:20]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:26:20]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:26:20]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:26:20]line 效械泻 128 21.06.2024 14:26 [14:26:20]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:26:20]line 袟袧袦: 0300000198 [14:26:20]line 袪袧袦: 0000000000092771 [14:26:20]line 袙械褉褋懈褟 袣袣袦: 001 [14:26:20]line 肖袦: 0000000000875083 [14:26:20]line 肖袛: 111960 [14:26:20]line 肖袩袛: 199286043703266 [14:26:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142619&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111960&fm=199286043703266&tin=02508201610067®Number=0000000000092771&sum=90000 [14:26:20]written 0, free lines is 4095 [14:26:20]OFD Sender: Processing packet 111960 [packets to send 38, broken 37] [14:26:20]ProducePacketName [14:26:20]name=ofd_packets/00111960 [14:26:20]OFD Sender: To server: 嚂鰌G, [14:26:20]CommunicateWithHost lk.salyk.kg:30040 [14:26:20]ConnectInit lk.salyk.kg [14:26:20]Connected sock=9 [14:26:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 34 56 04 01 BD F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 30 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B0 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 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 8B 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B5 01 00 35 04 06 00 B5 3F E5 D7 F7 E2 48 2D 65 4C C6 39 4C 40 [14:26:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CE 95 47 00 F1 55 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 30 38 37 35 30 38 33 10 04 04 00 58 B5 01 00 F4 03 04 00 B4 24 75 66 B6 04 01 00 00 EA E5 78 39 B1 DB 43 16 [14:26:20]CommunicateWithHost err = 0 [14:26:20]CheckOFDResponse [14:26:20]1017 (14) - 77093643461234 [14:26:20]1041 (16) - 0000000000875083 [14:26:20]1040 (4) - 111960 [14:26:20]1012 (4) - 21.06.2024 06:59 [14:26:20]1206 (1) - 0 [14:26:20]OFD Sender: Remove packet 111960 [14:26:20]ProducePacketName [14:26:20]name=ofd_packets/00111960 [14:26:20]NVStorageDeleteData [14:26:20]Write to MH i2c: 01 00 00 F3 07 FA [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 07 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 FB 0C 08 [14:26:20]RasterBufferAndPrint [14:26:20]line [14:26:20]line [14:26:20]line [14:26:20]line [14:26:20]line [14:26:20]written 0, free lines is 3335 [14:26:20]MH_Cut [14:26:20]Write to MH i2c: D1 01 00 FA 07 01 D3 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: D1 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: D1 01 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: D1 01 00 FA 07 00 D2 [14:26:20]Write to MH i2c: 01 00 00 FB 07 02 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:21]OFD Sender: No OFD packet to send [14:26:21]*** Cut start [14:26:21]*** Partial cut [14:26:21]*** CUTSNS_PIN = 1 [14:26:21]*** CUTSNS_PIN = 0 [14:26:21]*** Brake cut motor [14:26:21]Read from MH i2c: 01 [14:26:21]MH_I2C_Read... [14:26:21]*** Stop cut motor [14:26:21]*** Cut end [14:26:21]Read from MH i2c: 01 07 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 FF 0F 17 [14:26:21]process_action close_receipt done [14:26:21]requested_data is exist [14:26:21]produce_requested_data [14:26:21]requested_item fm.sn is exist - process it [14:26:21]wFMCommunicate request_size=4 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 11 00 00 [14:26:21]Write to MH i2c: E2 08 00 FC 07 80 11 00 00 00 00 00 00 7D [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:21]Read from MH i2c: E2 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 17 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: E2 17 00 FC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CF [14:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:26:21]wFMCommunicate OK [14:26:21]requested_item fd.num is exist - process it [14:26:21]SAM_PROTO_GetFieldsCounters [14:26:21]wFMCommunicate request_size=4 [14:26:21]MH_SAM_APDU [14:26:21]CAPDU: 80 13 00 00 [14:26:21]Write to MH i2c: E2 08 00 FD 07 80 13 00 00 00 00 00 00 80 [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:22]Read from MH i2c: E2 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 62 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 62 00 FD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B5 01 00 0E 04 04 00 86 01 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 B6 [14:26:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B5 01 00 0E 04 04 00 86 01 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 [14:26:22]wFMCommunicate OK [14:26:22]SAM_PROTO_GetFieldsCounters done [14:26:22]requested_item shift.num is exist - process it [14:26:22]requested_item shift.opened is exist - process it [14:26:22]req_shift_opened [14:26:22]FM_GetShiftState [14:26:22]SAM_PROTO_GetShiftState [14:26:22]wFMCommunicate request_size=4 [14:26:22]MH_SAM_APDU [14:26:22]CAPDU: 80 13 01 00 [14:26:22]Write to MH i2c: E2 08 00 FE 07 80 13 01 00 00 00 00 00 82 [14:26:22]Write i2c OK [14:26:22]MH_I2C_Read... [14:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:22]Read from MH i2c: E2 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 0E 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: E2 0E 00 FE 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 FF [14:26:22]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:26:22]wFMCommunicate OK [14:26:22]SAM_PROTO_GetShiftState done [14:26:22]FM_GetShiftState done [14:26:22]req_shift_opened done [14:26:22]requested_item shift.open_date is exist - process it [14:26:22]req_shift_open_date [14:26:22]req_shift_open_date done [14:26:22]produce_requested_data done [14:26:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111960,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:26:22]process_action_free close_receipt [14:26:22]json_value_free [14:26:22]json_value_free done [14:26:22]process_json_proto returns [14:26:22]Send response to host [14:26:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111960,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:26:22]free response buf [14:26:22]execute_script done [14:26:22]execute_script returns [14:26:22]free content buf [14:26:22]Sock 10.Close socket [14:26:22]Sock 10.Thread stoped [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:06]accept exits with 7 [14:27:06]New connection [14:27:06]New thread 3066731876 created [14:27:06]Thread 3066875236 joined [14:27:06]Waiting for new connection... [14:27:06] Sock 7.Parse request [14:27:06]Sock 7.Check first char [14:27:06]Sock 7.First char is OK [14:27:06]request: POST /json_proto HTTP/1.0 [14:27:06]Method: POST [14:27:06]URL: /json_proto [14:27:06]Method is POST - this is cgi request [14:27:06]url: /json_proto [14:27:06]query_string will be loaded in cgi processing [14:27:06]execute_cgi json_proto POST (null) [14:27:06]execute_cgi path=json_proto method=POST [14:27:06]POST find Content-Length [14:27:06]Host: 172.17.59.68:8080 [14:27:06]Content-Length: 806 [14:27:06]Content-Type: application/json [14:27:06] [14:27:06]POST finish read [14:27:06]Found Content-Length = 806 [14:27:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:06]execute_script... [14:27: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)320608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:06]POST & json_proto [14:27:06]process_json_proto [14:27:06]json parsed OK: [14:27:06]protocol is kg_v1.0 [14:27:06]action value=close_receipt [14:27:06]process_action close_receipt [14:27:06]cmd_close_receipt [14:27:06]MH_GetDate [14:27:06]Write to MH i2c: F0 00 00 FF 07 F5 [14:27:06]Write i2c OK [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: F0 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: F0 09 00 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: F0 09 00 FF 07 00 BC 8D 75 66 BC EC 60 65 8F [14:27:06]GetLastDocTimeStamp 1718979979 [14:27:06]current date 1718980028 [14:27:06]FM_GetShiftState [14:27:06]SAM_PROTO_GetShiftState [14:27:06]wFMCommunicate request_size=4 [14:27:06]MH_SAM_APDU [14:27:06]CAPDU: 80 13 01 00 [14:27:06]Write to MH i2c: E2 08 00 00 08 80 13 01 00 00 00 00 00 85 [14:27:06]Write i2c OK [14:27:06]MH_I2C_Read... [14:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:06]Read from MH i2c: E2 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: E2 0E 00 [14:27:06]MH_I2C_Read... [14:27:06]Read from MH i2c: E2 0E 00 00 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 02 [14:27:06]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:27:06]wFMCommunicate OK [14:27:06]SAM_PROTO_GetShiftState done [14:27:06]FM_GetShiftState done [14:27:06]opened in 1718933695 [14:27:06]opened+sec_in_day 1719020095 [14:27:06]quantity*price = 70052 [14:27:06]sum+1 = 70053 [14:27:06]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 700.52 袧小袩 1% : 6.20 袧袛小 12% : 74.39 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 700.52 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 129 21.06.2024 14:27 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 111961 肖袩袛: 69509609110241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142708&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111961&fm=69509609110241&tin=02508201610067®Number=0000000000092771&sum=70052 [14:27:07]StoreToDocumentArchive [14:27:07]shift 390 fd 111961 [14:27:07]save to /storage/0390/doc_00111961 [14:27:07]save last doc name /storage/0390/doc_00111961 to /storage/kkm_last_doc_name [14:27:07]save OK [14:27:07]Clear old archive folders... [14:27:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:07]tlvbuf is 00467080 [14:27:07]SAM_PROTO_ClearQueue [14:27:07]wFMCommunicate request_size=4 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 09 00 00 [14:27:07]Write to MH i2c: E2 08 00 0D 08 80 09 00 00 00 00 00 00 87 [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 0D 08 00 90 00 89 [14:27:07]RAPDU: 90 00 [14:27:07]wFMCommunicate OK [14:27:07]SAM_PROTO_ClearQueue done [14:27:07]KKMCreateOFDPacket [14:27:07]OFDProtocolAddRootSTLVToBuf [14:27:07]FM_MakeSignedData [14:27:07]FM_MakeSignedData [14:27:07]SAM_PROTO_SignData [14:27:07]wFMCommunicate request_size=4 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 0D 01 02 [14:27:07]Write to MH i2c: E2 08 00 0E 08 80 0D 01 02 00 00 00 00 8F [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 0E 08 00 90 00 8A [14:27:07]RAPDU: 90 00 [14:27:07]wFMCommunicate OK [14:27:07]wFMCommunicate request_size=255 [14:27:07]MH_SAM_APDU [14:27: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BC 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B5 01 00 35 04 06 00 3F [14:27:07]Write to MH i2c: E2 02 01 0F 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BC 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B5 01 00 35 04 06 00 3F 00 00 37 [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 0F 08 00 90 00 8B [14:27:07]RAPDU: 90 00 [14:27:07]wFMCommunicate OK [14:27:07]wFMCommunicate request_size=10 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 0D 02 02 05 37 F7 8F 3A E1 [14:27:07]Write to MH i2c: E2 0D 00 10 08 80 0D 02 02 05 00 37 F7 8F 3A E1 00 00 74 [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:08]Read from MH i2c: E2 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 03 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [14:27:08]RAPDU: 90 00 [14:27:08]wFMCommunicate OK [14:27:08]wFMCommunicate request_size=4 [14:27:08]MH_SAM_APDU [14:27:08]CAPDU: 80 0D 03 02 [14:27:08]Write to MH i2c: E2 08 00 11 08 80 0D 03 02 00 00 00 00 94 [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:08]Read from MH i2c: E2 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 0B 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 0B 00 11 08 00 FA 53 6F B5 90 25 C8 02 90 00 85 [14:27:08]RAPDU: FA 53 6F B5 90 25 C8 02 90 00 [14:27:08]wFMCommunicate OK [14:27:08]SAM_PROTO_SignData done [14:27:08]FM_MakeSignedData done [14:27:08]CreateOFDProtocolMessage [14:27:08]wFMCommunicate request_size=4 [14:27:08]MH_SAM_APDU [14:27:08]CAPDU: 80 11 00 00 [14:27:08]Write to MH i2c: E2 08 00 12 08 80 11 00 00 00 00 00 00 94 [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:08]Read from MH i2c: E2 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 17 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: E2 17 00 12 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [14:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:27:08]wFMCommunicate OK [14:27:08]CreateOFDProtocolMessage done [14:27:08]OFDSenderStorePacket 111961 [14:27:08]StoreOFDPacket docnum=111961 [14:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4D 8F 07 01 11 23 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BC 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B5 01 00 35 04 06 00 3F 37 F7 8F 3A E1 FA 53 6F B5 90 25 C8 02 [14:27:08]CheckFolder [14:27:08]dirname=/storage/ofd_packets [14:27:08]CheckFolder done [14:27:08]ProducePacketName [14:27:08]name=ofd_packets/00111961 [14:27:08]NVStorageSaveData ofd_packets/00111961 [14:27:08]File name is /storage/ofd_packets/00111961 [14:27:08]Write 301 bytes [14:27:08]NVStorageSaveData done [14:27:08]OFDSenderStorePacket done [14:27:08]KKMCreateOFDPacket done [14:27:08]NVStorageSaveData kkm_last_timestamp [14:27:08]File name is /storage/kkm_last_timestamp [14:27:08]Write 4 bytes [14:27:08]NVStorageSaveData done [14:27:08]ExternCall_PrintAddStr [14:27:08]wPrintStart [14:27:08]Write to MH i2c: 01 00 00 13 08 1B [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 07 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 07 00 13 08 00 00 00 00 00 FF 0F 30 [14:27:08]RasterBufferAndPrint [14:27:08]line 小褔械褌 N : (1)320608 [14:27:08]line 袠袧袧: 02508201610067 [14:27:08]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:27:08]line 袩袪袨袛袗袞袗 [14:27:08]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:27:08]line 孝芯胁邪褉: 2710124130 [14:27:08]line 袗懈-92-袣-5 [14:27:08]line 10.550 * 66.40 [14:27:08]line = 700.52 [14:27:08]line 袧袛小 12% 袧小袩 1% [14:27:08]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:27:08]line 袠孝袨袚袨: 700.52 [14:27:08]line 袧小袩 1% : 6.20 [14:27:08]line 袧袛小 12% : 74.39 [14:27:08]line 袧邪谢懈褔薪褘屑懈: 0.00 [14:27:08]line 袘械蟹薪邪谢.: 700.52 [14:27:08]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:27:08]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:27:08]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:27:08]line 效械泻 129 21.06.2024 14:27 [14:27:08]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:27:08]line 袟袧袦: 0300000198 [14:27:08]line 袪袧袦: 0000000000092771 [14:27:08]line 袙械褉褋懈褟 袣袣袦: 001 [14:27:08]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [14:27:08]line 肖袦: 0000000000875083 [14:27:08]line 肖袛: 111961 [14:27:08]line 肖袩袛: 69509609110241 [14:27:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T142708&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111961&fm=69509609110241&tin=02508201610067®Number=0000000000092771&sum=70052 [14:27:08]written 0, free lines is 4095 [14:27:08]OFD Sender: Processing packet 111961 [packets to send 38, broken 37] [14:27:08]ProducePacketName [14:27:08]name=ofd_packets/00111961 [14:27:08]OFD Sender: To server: 嚂鰌G, [14:27:08]CommunicateWithHost lk.salyk.kg:30040 [14:27:08]ConnectInit lk.salyk.kg [14:27:08]Connected sock=10 [14:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4D 8F 07 01 11 23 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 BC 8D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B5 01 00 35 04 06 00 3F 37 F7 8F 3A E1 FA 53 6F B5 90 25 C8 02 [14:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FC 0B 47 00 F3 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B5 01 00 F4 03 04 00 E5 24 75 66 B6 04 01 00 00 05 21 21 59 21 78 7D 49 [14:27:08]CommunicateWithHost err = 0 [14:27:08]CheckOFDResponse [14:27:08]1017 (14) - 77093643461234 [14:27:08]1041 (16) - 0000000000875083 [14:27:08]1040 (4) - 111961 [14:27:08]1012 (4) - 21.06.2024 06:59 [14:27:08]1206 (1) - 0 [14:27:08]OFD Sender: Remove packet 111961 [14:27:08]ProducePacketName [14:27:08]name=ofd_packets/00111961 [14:27:08]NVStorageDeleteData [14:27:08]Write to MH i2c: 01 00 00 3D 08 45 [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 07 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 07 00 3D 08 00 00 00 00 00 EB 0C 43 [14:27:08]RasterBufferAndPrint [14:27:08]line [14:27:08]line [14:27:08]line [14:27:08]line [14:27:08]line [14:27:08]written 0, free lines is 3313 [14:27:08]MH_Cut [14:27:08]Write to MH i2c: D1 01 00 44 08 01 1E [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: D1 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: D1 01 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: D1 01 00 44 08 00 1D [14:27:08]Write to MH i2c: 01 00 00 45 08 4D [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:09]OFD Sender: No OFD packet to send [14:27:09]*** Cut start [14:27:09]*** Partial cut [14:27:09]*** CUTSNS_PIN = 1 [14:27:09]*** CUTSNS_PIN = 0 [14:27:09]*** Brake cut motor [14:27:10]Read from MH i2c: 01 [14:27:10]MH_I2C_Read... [14:27:10]*** Stop cut motor [14:27:10]*** Cut end [14:27:10]Read from MH i2c: 01 07 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: 01 07 00 45 08 00 00 00 00 00 FF 0F 62 [14:27:10]process_action close_receipt done [14:27:10]requested_data is exist [14:27:10]produce_requested_data [14:27:10]requested_item fm.sn is exist - process it [14:27:10]wFMCommunicate request_size=4 [14:27:10]MH_SAM_APDU [14:27:10]CAPDU: 80 11 00 00 [14:27:10]Write to MH i2c: E2 08 00 46 08 80 11 00 00 00 00 00 00 C8 [14:27:10]Write i2c OK [14:27:10]MH_I2C_Read... [14:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:10]Read from MH i2c: E2 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 17 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 17 00 46 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1A [14:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:27:10]wFMCommunicate OK [14:27:10]requested_item fd.num is exist - process it [14:27:10]SAM_PROTO_GetFieldsCounters [14:27:10]wFMCommunicate request_size=4 [14:27:10]MH_SAM_APDU [14:27:10]CAPDU: 80 13 00 00 [14:27:10]Write to MH i2c: E2 08 00 47 08 80 13 00 00 00 00 00 00 CB [14:27:10]Write i2c OK [14:27:10]MH_I2C_Read... [14:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:10]Read from MH i2c: E2 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 62 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 62 00 47 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 59 B5 01 00 0E 04 04 00 86 01 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 05 [14:27:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 59 B5 01 00 0E 04 04 00 86 01 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 [14:27:10]wFMCommunicate OK [14:27:10]SAM_PROTO_GetFieldsCounters done [14:27:10]requested_item shift.num is exist - process it [14:27:10]requested_item shift.opened is exist - process it [14:27:10]req_shift_opened [14:27:10]FM_GetShiftState [14:27:10]SAM_PROTO_GetShiftState [14:27:10]wFMCommunicate request_size=4 [14:27:10]MH_SAM_APDU [14:27:10]CAPDU: 80 13 01 00 [14:27:10]Write to MH i2c: E2 08 00 48 08 80 13 01 00 00 00 00 00 CD [14:27:10]Write i2c OK [14:27:10]MH_I2C_Read... [14:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:10]Read from MH i2c: E2 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 0E 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 0E 00 48 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 4A [14:27:10]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:27:10]wFMCommunicate OK [14:27:10]SAM_PROTO_GetShiftState done [14:27:10]FM_GetShiftState done [14:27:10]req_shift_opened done [14:27:10]requested_item shift.open_date is exist - process it [14:27:10]req_shift_open_date [14:27:10]req_shift_open_date done [14:27:10]produce_requested_data done [14:27:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111961,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:27:10]process_action_free close_receipt [14:27:10]json_value_free [14:27:10]json_value_free done [14:27:10]process_json_proto returns [14:27:10]Send response to host [14:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111961,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:27:10]free response buf [14:27:10]execute_script done [14:27:10]execute_script returns [14:27:10]free content buf [14:27:10]Sock 7.Close socket [14:27:10]Sock 7.Thread stoped [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:28]accept exits with 9 [14:38:28]New connection [14:38:28]New thread 3066875236 created [14:38:28]Thread 3066731876 joined [14:38:28]Waiting for new connection... [14:38:28] Sock 9.Parse request [14:38:28]Sock 9.Check first char [14:38:28]Sock 9.First char is OK [14:38:28]request: POST /json_proto HTTP/1.0 [14:38:28]Method: POST [14:38:28]URL: /json_proto [14:38:28]Method is POST - this is cgi request [14:38:28]url: /json_proto [14:38:28]query_string will be loaded in cgi processing [14:38:28]execute_cgi json_proto POST (null) [14:38:28]execute_cgi path=json_proto method=POST [14:38:28]POST find Content-Length [14:38:28]Host: 172.17.59.68:8080 [14:38:28]Content-Length: 673 [14:38:28]Content-Type: application/json [14:38:28] [14:38:28]POST finish read [14:38:28]Found Content-Length = 673 [14:38:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.060, "sum" : 70.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:28]execute_script... [14:38: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 : (1)320609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.060, "sum" : 70.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:28]POST & json_proto [14:38:28]process_json_proto [14:38:28]json parsed OK: [14:38:28]protocol is kg_v1.0 [14:38:28]action value=close_receipt [14:38:28]process_action close_receipt [14:38:28]cmd_close_receipt [14:38:28]MH_GetDate [14:38:28]Write to MH i2c: F0 00 00 49 08 40 [14:38:28]Write i2c OK [14:38:28]MH_I2C_Read... [14:38:28]Read from MH i2c: F0 [14:38:28]MH_I2C_Read... [14:38:28]Read from MH i2c: F0 09 00 [14:38:28]MH_I2C_Read... [14:38:28]Read from MH i2c: F0 09 00 49 08 00 66 90 75 66 BC EC 60 65 87 [14:38:28]GetLastDocTimeStamp 1718980028 [14:38:28]current date 1718980710 [14:38:28]FM_GetShiftState [14:38:28]SAM_PROTO_GetShiftState [14:38:28]wFMCommunicate request_size=4 [14:38:28]MH_SAM_APDU [14:38:28]CAPDU: 80 13 01 00 [14:38:28]Write to MH i2c: E2 08 00 4A 08 80 13 01 00 00 00 00 00 CF [14:38:28]Write i2c OK [14:38:28]MH_I2C_Read... [14:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:28]Read from MH i2c: E2 [14:38:28]MH_I2C_Read... [14:38:28]Read from MH i2c: E2 0E 00 [14:38:28]MH_I2C_Read... [14:38:28]Read from MH i2c: E2 0E 00 4A 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 4C [14:38:28]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:38:28]wFMCommunicate OK [14:38:28]SAM_PROTO_GetShiftState done [14:38:28]FM_GetShiftState done [14:38:28]opened in 1718933695 [14:38:28]opened+sec_in_day 1719020095 [14:38:28]quantity*price = 7038 [14:38:28]sum+1 = 7039 [14:38:28]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.38 袠孝袨袚袨: 70.00 袙薪械褋械薪芯: 70.00 小袛袗效袗: 0.00 袧小袩 1% : 0.62 袧袛小 12% : 7.47 袧邪谢懈褔薪褘屑懈: 70.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 130 21.06.2024 14:38 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111962 肖袩袛: 245947027021742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T143830&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111962&fm=245947027021742&tin=02508201610067®Number=0000000000092771&sum=7000 [14:38:29]StoreToDocumentArchive [14:38:29]shift 390 fd 111962 [14:38:29]save to /storage/0390/doc_00111962 [14:38:29]save last doc name /storage/0390/doc_00111962 to /storage/kkm_last_doc_name [14:38:29]save OK [14:38:29]Clear old archive folders... [14:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:29]tlvbuf is 0035A260 [14:38:29]SAM_PROTO_ClearQueue [14:38:29]wFMCommunicate request_size=4 [14:38:29]MH_SAM_APDU [14:38:29]CAPDU: 80 09 00 00 [14:38:29]Write to MH i2c: E2 08 00 57 08 80 09 00 00 00 00 00 00 D1 [14:38:29]Write i2c OK [14:38:29]MH_I2C_Read... [14:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:29]Read from MH i2c: E2 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: E2 03 00 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: E2 03 00 57 08 00 90 00 D3 [14:38:29]RAPDU: 90 00 [14:38:29]wFMCommunicate OK [14:38:29]SAM_PROTO_ClearQueue done [14:38:29]KKMCreateOFDPacket [14:38:29]OFDProtocolAddRootSTLVToBuf [14:38:29]FM_MakeSignedData [14:38:29]FM_MakeSignedData [14:38:29]SAM_PROTO_SignData [14:38:29]wFMCommunicate request_size=4 [14:38:29]MH_SAM_APDU [14:38:29]CAPDU: 80 0D 01 02 [14:38:29]Write to MH i2c: E2 08 00 58 08 80 0D 01 02 00 00 00 00 D9 [14:38:29]Write i2c OK [14:38:29]MH_I2C_Read... [14:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:29]Read from MH i2c: E2 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: E2 03 00 [14:38:29]MH_I2C_Read... [14:38:29]Read from MH i2c: E2 03 00 58 08 00 90 00 D4 [14:38:29]RAPDU: 90 00 [14:38:29]wFMCommunicate OK [14:38:29]wFMCommunicate request_size=255 [14:38:29]MH_SAM_APDU [14:38:29]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 24 04 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 66 90 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B5 01 00 35 04 06 00 DF [14:38:29]Write to MH i2c: E2 02 01 59 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 24 04 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 66 90 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B5 01 00 35 04 06 00 DF 00 00 87 [14:38:29]Write i2c OK [14:38:29]MH_I2C_Read... [14:38:29]OFD Sender: No OFD packet to send [14:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:30]Read from MH i2c: E2 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 03 00 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [14:38:30]RAPDU: 90 00 [14:38:30]wFMCommunicate OK [14:38:30]wFMCommunicate request_size=10 [14:38:30]MH_SAM_APDU [14:38:30]CAPDU: 80 0D 02 02 05 B0 01 2D DF AE [14:38:30]Write to MH i2c: E2 0D 00 5A 08 80 0D 02 02 05 00 B0 01 2D DF AE 00 00 51 [14:38:30]Write i2c OK [14:38:30]MH_I2C_Read... [14:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:30]Read from MH i2c: E2 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 03 00 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [14:38:30]RAPDU: 90 00 [14:38:30]wFMCommunicate OK [14:38:30]wFMCommunicate request_size=4 [14:38:30]MH_SAM_APDU [14:38:30]CAPDU: 80 0D 03 02 [14:38:30]Write to MH i2c: E2 08 00 5B 08 80 0D 03 02 00 00 00 00 DE [14:38:30]Write i2c OK [14:38:30]MH_I2C_Read... [14:38:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:30]Read from MH i2c: E2 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 0B 00 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 0B 00 5B 08 00 1E 90 8D 33 54 84 8F F5 90 00 A9 [14:38:30]RAPDU: 1E 90 8D 33 54 84 8F F5 90 00 [14:38:30]wFMCommunicate OK [14:38:30]SAM_PROTO_SignData done [14:38:30]FM_MakeSignedData done [14:38:30]CreateOFDProtocolMessage [14:38:30]wFMCommunicate request_size=4 [14:38:30]MH_SAM_APDU [14:38:30]CAPDU: 80 11 00 00 [14:38:30]Write to MH i2c: E2 08 00 5C 08 80 11 00 00 00 00 00 00 DE [14:38:30]Write i2c OK [14:38:30]MH_I2C_Read... [14:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:30]Read from MH i2c: E2 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 17 00 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: E2 17 00 5C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 30 [14:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:38:30]wFMCommunicate OK [14:38:30]CreateOFDProtocolMessage done [14:38:30]OFDSenderStorePacket 111962 [14:38:30]StoreOFDPacket docnum=111962 [14:38:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 43 07 01 07 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 24 04 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 66 90 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B5 01 00 35 04 06 00 DF B0 01 2D DF AE 1E 90 8D 33 54 84 8F F5 [14:38:30]CheckFolder [14:38:30]dirname=/storage/ofd_packets [14:38:30]CheckFolder done [14:38:30]ProducePacketName [14:38:30]name=ofd_packets/00111962 [14:38:30]NVStorageSaveData ofd_packets/00111962 [14:38:30]File name is /storage/ofd_packets/00111962 [14:38:30]Write 301 bytes [14:38:30]NVStorageSaveData done [14:38:30]OFDSenderStorePacket done [14:38:30]KKMCreateOFDPacket done [14:38:30]NVStorageSaveData kkm_last_timestamp [14:38:30]File name is /storage/kkm_last_timestamp [14:38:30]Write 4 bytes [14:38:30]NVStorageSaveData done [14:38:30]ExternCall_PrintAddStr [14:38:30]wPrintStart [14:38:30]Write to MH i2c: 01 00 00 5D 08 65 [14:38:30]Write i2c OK [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: 01 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: 01 07 00 [14:38:30]MH_I2C_Read... [14:38:30]Read from MH i2c: 01 07 00 5D 08 00 00 00 00 00 FF 0F 7A [14:38:30]RasterBufferAndPrint [14:38:30]line 小褔械褌 N : (1)320609 [14:38:30]line 袠袧袧: 02508201610067 [14:38:30]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:38:30]line 袩袪袨袛袗袞袗 [14:38:30]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:38:30]line 孝芯胁邪褉: 2710124130 [14:38:30]line 袗懈-92-袣-5 [14:38:30]line 1.060 * 66.40 [14:38:30]line = 70.38 [14:38:30]line 袧袛小 12% 袧小袩 1% [14:38:30]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:38:30]line 袨袣袪校袚袥袝袧袠袝: -0.38 [14:38:30]line 袠孝袨袚袨: 70.00 [14:38:30]line 袙薪械褋械薪芯: 70.00 [14:38:30]line 小袛袗效袗: 0.00 [14:38:30]line 袧小袩 1% : 0.62 [14:38:30]line 袧袛小 12% : 7.47 [14:38:30]line 袧邪谢懈褔薪褘屑懈: 70.00 [14:38:30]line 袘械蟹薪邪谢.: 0.00 [14:38:30]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:38:30]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:38:30]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:38:30]line 效械泻 130 21.06.2024 14:38 [14:38:30]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:38:30]line 袟袧袦: 0300000198 [14:38:30]line 袪袧袦: 0000000000092771 [14:38:30]line 袙械褉褋懈褟 袣袣袦: 001 [14:38:30]line 肖袦: 0000000000875083 [14:38:30]line 肖袛: 111962 [14:38:30]line 肖袩袛: 245947027021742 [14:38:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T143830&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111962&fm=245947027021742&tin=02508201610067®Number=0000000000092771&sum=7000 [14:38:30]OFD Sender: Processing packet 111962 [packets to send 38, broken 37] [14:38:30]ProducePacketName [14:38:30]name=ofd_packets/00111962 [14:38:30]OFD Sender: To server: 嚂鰌G, [14:38:30]CommunicateWithHost lk.salyk.kg:30040 [14:38:30]ConnectInit lk.salyk.kg [14:38:30]written 0, free lines is 4095 [14:38:30]Connected sock=10 [14:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 43 07 01 07 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 24 04 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7E 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 66 90 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B5 01 00 35 04 06 00 DF B0 01 2D DF AE 1E 90 8D 33 54 84 8F F5 [14:38:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D8 38 47 00 28 8B 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 30 38 37 35 30 38 33 10 04 04 00 5A B5 01 00 F4 03 04 00 8F 27 75 66 B6 04 01 00 00 1D 19 8D 5D 25 8F 22 C8 [14:38:30]CommunicateWithHost err = 0 [14:38:30]CheckOFDResponse [14:38:30]1017 (14) - 77093643461234 [14:38:30]1041 (16) - 0000000000875083 [14:38:30]1040 (4) - 111962 [14:38:30]1012 (4) - 21.06.2024 07:11 [14:38:30]1206 (1) - 0 [14:38:30]OFD Sender: Remove packet 111962 [14:38:30]ProducePacketName [14:38:30]name=ofd_packets/00111962 [14:38:30]NVStorageDeleteData [14:38:31]Write to MH i2c: 01 00 00 88 08 90 [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: 01 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: 01 07 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: 01 07 00 88 08 00 00 00 00 00 E6 0C 89 [14:38:31]RasterBufferAndPrint [14:38:31]line [14:38:31]line [14:38:31]line [14:38:31]line [14:38:31]line [14:38:31]written 0, free lines is 3308 [14:38:31]MH_Cut [14:38:31]Write to MH i2c: D1 01 00 8F 08 01 69 [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: D1 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: D1 01 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: D1 01 00 8F 08 00 68 [14:38:31]Write to MH i2c: 01 00 00 90 08 98 [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]OFD Sender: No OFD packet to send [14:38:31]*** Cut start [14:38:31]*** Partial cut [14:38:31]*** CUTSNS_PIN = 1 [14:38:31]*** CUTSNS_PIN = 0 [14:38:32]*** Brake cut motor [14:38:32]Read from MH i2c: 01 [14:38:32]MH_I2C_Read... [14:38:32]*** Stop cut motor [14:38:32]*** Cut end [14:38:32]Read from MH i2c: 01 07 00 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: 01 07 00 90 08 00 00 00 00 00 FF 0F AD [14:38:32]process_action close_receipt done [14:38:32]requested_data is exist [14:38:32]produce_requested_data [14:38:32]requested_item fm.sn is exist - process it [14:38:32]wFMCommunicate request_size=4 [14:38:32]MH_SAM_APDU [14:38:32]CAPDU: 80 11 00 00 [14:38:32]Write to MH i2c: E2 08 00 91 08 80 11 00 00 00 00 00 00 13 [14:38:32]Write i2c OK [14:38:32]MH_I2C_Read... [14:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:32]Read from MH i2c: E2 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: E2 17 00 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: E2 17 00 91 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [14:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:38:32]wFMCommunicate OK [14:38:32]requested_item fd.num is exist - process it [14:38:32]SAM_PROTO_GetFieldsCounters [14:38:32]wFMCommunicate request_size=4 [14:38:32]MH_SAM_APDU [14:38:32]CAPDU: 80 13 00 00 [14:38:32]Write to MH i2c: E2 08 00 92 08 80 13 00 00 00 00 00 00 16 [14:38:32]Write i2c OK [14:38:32]MH_I2C_Read... [14:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:32]Read from MH i2c: E2 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: E2 62 00 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: E2 62 00 92 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5A B5 01 00 0E 04 04 00 86 01 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 54 [14:38:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5A B5 01 00 0E 04 04 00 86 01 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 [14:38:32]wFMCommunicate OK [14:38:32]SAM_PROTO_GetFieldsCounters done [14:38:32]requested_item shift.num is exist - process it [14:38:32]requested_item shift.opened is exist - process it [14:38:32]req_shift_opened [14:38:32]FM_GetShiftState [14:38:32]SAM_PROTO_GetShiftState [14:38:32]wFMCommunicate request_size=4 [14:38:32]MH_SAM_APDU [14:38:32]CAPDU: 80 13 01 00 [14:38:32]Write to MH i2c: E2 08 00 93 08 80 13 01 00 00 00 00 00 18 [14:38:32]Write i2c OK [14:38:32]MH_I2C_Read... [14:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:32]Read from MH i2c: E2 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: E2 0E 00 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: E2 0E 00 93 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 95 [14:38:32]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:38:32]wFMCommunicate OK [14:38:32]SAM_PROTO_GetShiftState done [14:38:32]FM_GetShiftState done [14:38:32]req_shift_opened done [14:38:32]requested_item shift.open_date is exist - process it [14:38:32]req_shift_open_date [14:38:32]req_shift_open_date done [14:38:32]produce_requested_data done [14:38:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111962,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:38:32]process_action_free close_receipt [14:38:32]json_value_free [14:38:32]json_value_free done [14:38:32]process_json_proto returns [14:38:32]Send response to host [14:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111962,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:38:32]free response buf [14:38:32]execute_script done [14:38:32]execute_script returns [14:38:32]free content buf [14:38:32]Sock 9.Close socket [14:38:32]Sock 9.Thread stoped [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:09]accept exits with 7 [14:40:09]New connection [14:40:09]New thread 3066731876 created [14:40:09]Thread 3066875236 joined [14:40:09]Waiting for new connection... [14:40:09] Sock 7.Parse request [14:40:09]Sock 7.Check first char [14:40:09]Sock 7.First char is OK [14:40:09]request: POST /json_proto HTTP/1.0 [14:40:09]Method: POST [14:40:09]URL: /json_proto [14:40:09]Method is POST - this is cgi request [14:40:09]url: /json_proto [14:40:09]query_string will be loaded in cgi processing [14:40:09]execute_cgi json_proto POST (null) [14:40:09]execute_cgi path=json_proto method=POST [14:40:09]POST find Content-Length [14:40:09]Host: 172.17.59.68:8080 [14:40:09]Content-Length: 682 [14:40:09]Content-Type: application/json [14:40:09] [14:40:09]POST finish read [14:40:09]Found Content-Length = 682 [14:40:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:09]execute_script... [14:40: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 : (1)320610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:09]POST & json_proto [14:40:09]process_json_proto [14:40:09]json parsed OK: [14:40:09]protocol is kg_v1.0 [14:40:09]action value=close_receipt [14:40:09]process_action close_receipt [14:40:09]cmd_close_receipt [14:40:09]MH_GetDate [14:40:09]Write to MH i2c: F0 00 00 94 08 8B [14:40:09]Write i2c OK [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: F0 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: F0 09 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: F0 09 00 94 08 00 CB 90 75 66 BC EC 60 65 37 [14:40:09]GetLastDocTimeStamp 1718980710 [14:40:09]current date 1718980811 [14:40:09]FM_GetShiftState [14:40:09]SAM_PROTO_GetShiftState [14:40:09]wFMCommunicate request_size=4 [14:40:09]MH_SAM_APDU [14:40:09]CAPDU: 80 13 01 00 [14:40:09]Write to MH i2c: E2 08 00 95 08 80 13 01 00 00 00 00 00 1A [14:40:09]Write i2c OK [14:40:09]MH_I2C_Read... [14:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:09]Read from MH i2c: E2 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 0E 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 0E 00 95 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 97 [14:40:09]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:40:09]wFMCommunicate OK [14:40:09]SAM_PROTO_GetShiftState done [14:40:09]FM_GetShiftState done [14:40:09]opened in 1718933695 [14:40:09]opened+sec_in_day 1719020095 [14:40:09]quantity*price = 200063 [14:40:09]sum+1 = 200064 [14:40:09]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.63 袠孝袨袚袨: 2000.00 袙薪械褋械薪芯: 2000.00 小袛袗效袗: 0.00 袧小袩 1% : 17.70 袧袛小 12% : 212.46 袧邪谢懈褔薪褘屑懈: 2000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 131 21.06.2024 14:40 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111963 肖袩袛: 251624479901796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T144011&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111963&fm=251624479901796&tin=02508201610067®Number=0000000000092771&sum=200000 [14:40:10]StoreToDocumentArchive [14:40:10]shift 390 fd 111963 [14:40:10]save to /storage/0390/doc_00111963 [14:40:10]save last doc name /storage/0390/doc_00111963 to /storage/kkm_last_doc_name [14:40:10]save OK [14:40:10]Clear old archive folders... [14:40:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:10]tlvbuf is 00337B60 [14:40:10]SAM_PROTO_ClearQueue [14:40:10]wFMCommunicate request_size=4 [14:40:10]MH_SAM_APDU [14:40:10]CAPDU: 80 09 00 00 [14:40:10]Write to MH i2c: E2 08 00 A2 08 80 09 00 00 00 00 00 00 1C [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:10]Read from MH i2c: E2 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 03 00 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [14:40:10]RAPDU: 90 00 [14:40:10]wFMCommunicate OK [14:40:10]SAM_PROTO_ClearQueue done [14:40:10]KKMCreateOFDPacket [14:40:10]OFDProtocolAddRootSTLVToBuf [14:40:10]FM_MakeSignedData [14:40:10]FM_MakeSignedData [14:40:10]SAM_PROTO_SignData [14:40:10]wFMCommunicate request_size=4 [14:40:10]MH_SAM_APDU [14:40:10]CAPDU: 80 0D 01 02 [14:40:10]Write to MH i2c: E2 08 00 A3 08 80 0D 01 02 00 00 00 00 24 [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:10]Read from MH i2c: E2 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 03 00 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [14:40:10]RAPDU: 90 00 [14:40:10]wFMCommunicate OK [14:40:10]wFMCommunicate request_size=255 [14:40:10]MH_SAM_APDU [14:40:10]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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 CB 90 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B5 01 00 35 04 06 00 E4 [14:40:10]Write to MH i2c: E2 02 01 A4 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 CB 90 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B5 01 00 35 04 06 00 E4 00 00 02 [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:11]Read from MH i2c: E2 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 03 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [14:40:11]RAPDU: 90 00 [14:40:11]wFMCommunicate OK [14:40:11]wFMCommunicate request_size=10 [14:40:11]MH_SAM_APDU [14:40:11]CAPDU: 80 0D 02 02 05 D9 E3 BD C8 64 [14:40:11]Write to MH i2c: E2 0D 00 A5 08 80 0D 02 02 05 00 D9 E3 BD C8 64 00 00 D6 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:11]Read from MH i2c: E2 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 03 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 03 00 A5 08 00 90 00 21 [14:40:11]RAPDU: 90 00 [14:40:11]wFMCommunicate OK [14:40:11]wFMCommunicate request_size=4 [14:40:11]MH_SAM_APDU [14:40:11]CAPDU: 80 0D 03 02 [14:40:11]Write to MH i2c: E2 08 00 A6 08 80 0D 03 02 00 00 00 00 29 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:11]Read from MH i2c: E2 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 0B 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 0B 00 A6 08 00 3E 41 2A 79 25 E2 4A A8 90 00 45 [14:40:11]RAPDU: 3E 41 2A 79 25 E2 4A A8 90 00 [14:40:11]wFMCommunicate OK [14:40:11]SAM_PROTO_SignData done [14:40:11]FM_MakeSignedData done [14:40:11]CreateOFDProtocolMessage [14:40:11]wFMCommunicate request_size=4 [14:40:11]MH_SAM_APDU [14:40:11]CAPDU: 80 11 00 00 [14:40:11]Write to MH i2c: E2 08 00 A7 08 80 11 00 00 00 00 00 00 29 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:11]Read from MH i2c: E2 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 17 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 17 00 A7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [14:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:40:11]wFMCommunicate OK [14:40:11]CreateOFDProtocolMessage done [14:40:11]OFDSenderStorePacket 111963 [14:40:11]StoreOFDPacket docnum=111963 [14:40:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A0 46 07 01 37 EF 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 CB 90 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B5 01 00 35 04 06 00 E4 D9 E3 BD C8 64 3E 41 2A 79 25 E2 4A A8 [14:40:11]CheckFolder [14:40:11]dirname=/storage/ofd_packets [14:40:11]CheckFolder done [14:40:11]ProducePacketName [14:40:11]name=ofd_packets/00111963 [14:40:11]NVStorageSaveData ofd_packets/00111963 [14:40:11]File name is /storage/ofd_packets/00111963 [14:40:11]Write 301 bytes [14:40:11]NVStorageSaveData done [14:40:11]OFDSenderStorePacket done [14:40:11]KKMCreateOFDPacket done [14:40:11]NVStorageSaveData kkm_last_timestamp [14:40:11]File name is /storage/kkm_last_timestamp [14:40:11]Write 4 bytes [14:40:11]NVStorageSaveData done [14:40:11]ExternCall_PrintAddStr [14:40:11]wPrintStart [14:40:11]Write to MH i2c: 01 00 00 A8 08 B0 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: 01 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: 01 07 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: 01 07 00 A8 08 00 00 00 00 00 FF 0F C5 [14:40:11]RasterBufferAndPrint [14:40:11]line 小褔械褌 N : (1)320610 [14:40:11]line 袠袧袧: 02508201610067 [14:40:11]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:40:11]line 袩袪袨袛袗袞袗 [14:40:11]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:40:11]line 孝芯胁邪褉: 2710124130 [14:40:11]line 袗懈-92-袣-5 [14:40:11]line 30.130 * 66.40 [14:40:11]line = 2000.63 [14:40:11]line 袧袛小 12% 袧小袩 1% [14:40:11]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:40:11]line 袨袣袪校袚袥袝袧袠袝: -0.63 [14:40:11]line 袠孝袨袚袨: 2000.00 [14:40:11]line 袙薪械褋械薪芯: 2000.00 [14:40:11]line 小袛袗效袗: 0.00 [14:40:11]line 袧小袩 1% : 17.70 [14:40:11]line 袧袛小 12% : 212.46 [14:40:11]line 袧邪谢懈褔薪褘屑懈: 2000.00 [14:40:11]line 袘械蟹薪邪谢.: 0.00 [14:40:11]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:40:11]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:40:11]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:40:11]line 效械泻 131 21.06.2024 14:40 [14:40:11]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:40:11]line 袟袧袦: 0300000198 [14:40:11]line 袪袧袦: 0000000000092771 [14:40:11]line 袙械褉褋懈褟 袣袣袦: 001 [14:40:11]line 肖袦: 0000000000875083 [14:40:11]line 肖袛: 111963 [14:40:11]line 肖袩袛: 251624479901796 [14:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T144011&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111963&fm=251624479901796&tin=02508201610067®Number=0000000000092771&sum=200000 [14:40:11]OFD Sender: Processing packet 111963 [packets to send 38, broken 37] [14:40:11]ProducePacketName [14:40:11]name=ofd_packets/00111963 [14:40:11]OFD Sender: To server: 嚂鰌G, [14:40:11]CommunicateWithHost lk.salyk.kg:30040 [14:40:11]ConnectInit lk.salyk.kg [14:40:11]written 0, free lines is 4095 [14:40:11]Connected sock=10 [14:40:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A0 46 07 01 37 EF 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 CB 90 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B5 01 00 35 04 06 00 E4 D9 E3 BD C8 64 3E 41 2A 79 25 E2 4A A8 [14:40:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F5 A1 47 00 36 E4 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 30 38 37 35 30 38 33 10 04 04 00 5B B5 01 00 F4 03 04 00 F4 27 75 66 B6 04 01 00 00 22 B1 72 F0 D1 2B 33 66 [14:40:11]CommunicateWithHost err = 0 [14:40:11]CheckOFDResponse [14:40:11]1017 (14) - 77093643461234 [14:40:11]1041 (16) - 0000000000875083 [14:40:11]1040 (4) - 111963 [14:40:11]1012 (4) - 21.06.2024 07:12 [14:40:11]1206 (1) - 0 [14:40:11]OFD Sender: Remove packet 111963 [14:40:11]ProducePacketName [14:40:11]name=ofd_packets/00111963 [14:40:11]NVStorageDeleteData [14:40:12]Write to MH i2c: 01 00 00 D3 08 DB [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: 01 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: 01 07 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: 01 07 00 D3 08 00 00 00 00 00 E5 0C D3 [14:40:12]RasterBufferAndPrint [14:40:12]line [14:40:12]line [14:40:12]line [14:40:12]line [14:40:12]line [14:40:12]written 0, free lines is 3307 [14:40:12]MH_Cut [14:40:12]Write to MH i2c: D1 01 00 DA 08 01 B4 [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: D1 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: D1 01 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: D1 01 00 DA 08 00 B3 [14:40:12]Write to MH i2c: 01 00 00 DB 08 E3 [14:40:12]Write i2c OK [14:40:12]MH_I2C_Read... [14:40:12]OFD Sender: No OFD packet to send [14:40:12]*** Cut start [14:40:12]*** Partial cut [14:40:12]*** CUTSNS_PIN = 1 [14:40:12]*** CUTSNS_PIN = 0 [14:40:13]*** Brake cut motor [14:40:13]Read from MH i2c: 01 [14:40:13]MH_I2C_Read... [14:40:13]*** Stop cut motor [14:40:13]*** Cut end [14:40:13]Read from MH i2c: 01 07 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 FF 0F F8 [14:40:13]process_action close_receipt done [14:40:13]requested_data is exist [14:40:13]produce_requested_data [14:40:13]requested_item fm.sn is exist - process it [14:40:13]wFMCommunicate request_size=4 [14:40:13]MH_SAM_APDU [14:40:13]CAPDU: 80 11 00 00 [14:40:13]Write to MH i2c: E2 08 00 DC 08 80 11 00 00 00 00 00 00 5E [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:13]Read from MH i2c: E2 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 17 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 17 00 DC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [14:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:40:13]wFMCommunicate OK [14:40:13]requested_item fd.num is exist - process it [14:40:13]SAM_PROTO_GetFieldsCounters [14:40:13]wFMCommunicate request_size=4 [14:40:13]MH_SAM_APDU [14:40:13]CAPDU: 80 13 00 00 [14:40:13]Write to MH i2c: E2 08 00 DD 08 80 13 00 00 00 00 00 00 61 [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:13]Read from MH i2c: E2 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 62 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 62 00 DD 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5B B5 01 00 0E 04 04 00 86 01 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 A3 [14:40:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5B B5 01 00 0E 04 04 00 86 01 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 [14:40:13]wFMCommunicate OK [14:40:13]SAM_PROTO_GetFieldsCounters done [14:40:13]requested_item shift.num is exist - process it [14:40:13]requested_item shift.opened is exist - process it [14:40:13]req_shift_opened [14:40:13]FM_GetShiftState [14:40:13]SAM_PROTO_GetShiftState [14:40:13]wFMCommunicate request_size=4 [14:40:13]MH_SAM_APDU [14:40:13]CAPDU: 80 13 01 00 [14:40:13]Write to MH i2c: E2 08 00 DE 08 80 13 01 00 00 00 00 00 63 [14:40:13]Write i2c OK [14:40:13]MH_I2C_Read... [14:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:13]Read from MH i2c: E2 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 0E 00 [14:40:13]MH_I2C_Read... [14:40:13]Read from MH i2c: E2 0E 00 DE 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E0 [14:40:13]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:40:13]wFMCommunicate OK [14:40:13]SAM_PROTO_GetShiftState done [14:40:13]FM_GetShiftState done [14:40:13]req_shift_opened done [14:40:13]requested_item shift.open_date is exist - process it [14:40:13]req_shift_open_date [14:40:13]req_shift_open_date done [14:40:13]produce_requested_data done [14:40:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111963,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:40:13]process_action_free close_receipt [14:40:13]json_value_free [14:40:13]json_value_free done [14:40:13]process_json_proto returns [14:40:13]Send response to host [14:40:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111963,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:40:13]free response buf [14:40:13]execute_script done [14:40:13]execute_script returns [14:40:13]free content buf [14:40:13]Sock 7.Close socket [14:40:13]Sock 7.Thread stoped [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:47]accept exits with 9 [14:42:47]New connection [14:42:47]New thread 3066875236 created [14:42:47]Thread 3066731876 joined [14:42:47]Waiting for new connection... [14:42:47] Sock 9.Parse request [14:42:47]Sock 9.Check first char [14:42:47]Sock 9.First char is OK [14:42:47]request: POST /json_proto HTTP/1.0 [14:42:47]Method: POST [14:42:47]URL: /json_proto [14:42:47]Method is POST - this is cgi request [14:42:47]url: /json_proto [14:42:47]query_string will be loaded in cgi processing [14:42:47]execute_cgi json_proto POST (null) [14:42:47]execute_cgi path=json_proto method=POST [14:42:47]POST find Content-Length [14:42:47]Host: 172.17.59.68:8080 [14:42:47]Content-Length: 682 [14:42:47]Content-Type: application/json [14:42:47] [14:42:47]POST finish read [14:42:47]Found Content-Length = 682 [14:42:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:47]execute_script... [14:42: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)320611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:47]POST & json_proto [14:42:47]process_json_proto [14:42:47]json parsed OK: [14:42:47]protocol is kg_v1.0 [14:42:47]action value=close_receipt [14:42:47]process_action close_receipt [14:42:47]cmd_close_receipt [14:42:47]MH_GetDate [14:42:47]Write to MH i2c: F0 00 00 DF 08 D6 [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: F0 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: F0 09 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: F0 09 00 DF 08 00 69 91 75 66 BC EC 60 65 21 [14:42:47]GetLastDocTimeStamp 1718980811 [14:42:47]current date 1718980969 [14:42:47]FM_GetShiftState [14:42:47]SAM_PROTO_GetShiftState [14:42:47]wFMCommunicate request_size=4 [14:42:47]MH_SAM_APDU [14:42:47]CAPDU: 80 13 01 00 [14:42:47]Write to MH i2c: E2 08 00 E0 08 80 13 01 00 00 00 00 00 65 [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:47]Read from MH i2c: E2 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 0E 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 0E 00 E0 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E2 [14:42:47]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:42:47]wFMCommunicate OK [14:42:47]SAM_PROTO_GetShiftState done [14:42:47]FM_GetShiftState done [14:42:47]opened in 1718933695 [14:42:47]opened+sec_in_day 1719020095 [14:42:47]quantity*price = 200063 [14:42:47]sum+1 = 200064 [14:42:47]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.63 袠孝袨袚袨: 2000.00 袙薪械褋械薪芯: 2000.00 小袛袗效袗: 0.00 袧小袩 1% : 17.70 袧袛小 12% : 212.46 袧邪谢懈褔薪褘屑懈: 2000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 132 21.06.2024 14:42 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111964 肖袩袛: 38899652365118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T144249&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111964&fm=38899652365118&tin=02508201610067®Number=0000000000092771&sum=200000 [14:42:48]StoreToDocumentArchive [14:42:48]shift 390 fd 111964 [14:42:48]save to /storage/0390/doc_00111964 [14:42:48]save last doc name /storage/0390/doc_00111964 to /storage/kkm_last_doc_name [14:42:48]save OK [14:42:48]Clear old archive folders... [14:42:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:48]tlvbuf is 0046F010 [14:42:48]SAM_PROTO_ClearQueue [14:42:48]wFMCommunicate request_size=4 [14:42:48]MH_SAM_APDU [14:42:48]CAPDU: 80 09 00 00 [14:42:48]Write to MH i2c: E2 08 00 ED 08 80 09 00 00 00 00 00 00 67 [14:42:48]Write i2c OK [14:42:48]MH_I2C_Read... [14:42:48]Read from MH i2c: E2 [14:42:48]MH_I2C_Read... [14:42:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:48]Read from MH i2c: E2 03 00 [14:42:48]MH_I2C_Read... [14:42:48]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [14:42:48]RAPDU: 90 00 [14:42:48]wFMCommunicate OK [14:42:48]SAM_PROTO_ClearQueue done [14:42:48]KKMCreateOFDPacket [14:42:48]OFDProtocolAddRootSTLVToBuf [14:42:48]FM_MakeSignedData [14:42:48]FM_MakeSignedData [14:42:48]SAM_PROTO_SignData [14:42:48]wFMCommunicate request_size=4 [14:42:48]MH_SAM_APDU [14:42:48]CAPDU: 80 0D 01 02 [14:42:48]Write to MH i2c: E2 08 00 EE 08 80 0D 01 02 00 00 00 00 6F [14:42:48]Write i2c OK [14:42:48]MH_I2C_Read... [14:42:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:48]Read from MH i2c: E2 [14:42:48]MH_I2C_Read... [14:42:48]Read from MH i2c: E2 03 00 [14:42:48]MH_I2C_Read... [14:42:48]Read from MH i2c: E2 03 00 EE 08 00 90 00 6A [14:42:48]RAPDU: 90 00 [14:42:48]wFMCommunicate OK [14:42:48]wFMCommunicate request_size=255 [14:42:48]MH_SAM_APDU [14:42:48]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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 69 91 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B5 01 00 35 04 06 00 23 [14:42:48]Write to MH i2c: E2 02 01 EF 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 69 91 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B5 01 00 35 04 06 00 23 00 00 2D [14:42:48]Write i2c OK [14:42:48]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 03 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 03 00 EF 08 00 90 00 6B [14:42:49]RAPDU: 90 00 [14:42:49]wFMCommunicate OK [14:42:49]wFMCommunicate request_size=10 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 0D 02 02 05 61 07 F6 0B 3E [14:42:49]Write to MH i2c: E2 0D 00 F0 08 80 0D 02 02 05 00 61 07 F6 0B 3E 00 00 23 [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 03 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 03 00 F0 08 00 90 00 6C [14:42:49]RAPDU: 90 00 [14:42:49]wFMCommunicate OK [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 0D 03 02 [14:42:49]Write to MH i2c: E2 08 00 F1 08 80 0D 03 02 00 00 00 00 74 [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 0B 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 0B 00 F1 08 00 BC F5 3F EA E0 57 DB 33 90 00 94 [14:42:49]RAPDU: BC F5 3F EA E0 57 DB 33 90 00 [14:42:49]wFMCommunicate OK [14:42:49]SAM_PROTO_SignData done [14:42:49]FM_MakeSignedData done [14:42:49]CreateOFDProtocolMessage [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 11 00 00 [14:42:49]Write to MH i2c: E2 08 00 F2 08 80 11 00 00 00 00 00 00 74 [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 17 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 17 00 F2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [14:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:42:49]wFMCommunicate OK [14:42:49]CreateOFDProtocolMessage done [14:42:49]OFDSenderStorePacket 111964 [14:42:49]StoreOFDPacket docnum=111964 [14:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 04 AA 07 01 3F 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 69 91 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B5 01 00 35 04 06 00 23 61 07 F6 0B 3E BC F5 3F EA E0 57 DB 33 [14:42:49]CheckFolder [14:42:49]dirname=/storage/ofd_packets [14:42:49]CheckFolder done [14:42:49]ProducePacketName [14:42:49]name=ofd_packets/00111964 [14:42:49]NVStorageSaveData ofd_packets/00111964 [14:42:49]File name is /storage/ofd_packets/00111964 [14:42:49]Write 301 bytes [14:42:49]NVStorageSaveData done [14:42:49]OFDSenderStorePacket done [14:42:49]KKMCreateOFDPacket done [14:42:49]NVStorageSaveData kkm_last_timestamp [14:42:49]File name is /storage/kkm_last_timestamp [14:42:49]Write 4 bytes [14:42:49]NVStorageSaveData done [14:42:49]ExternCall_PrintAddStr [14:42:49]wPrintStart [14:42:49]Write to MH i2c: 01 00 00 F3 08 FB [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: 01 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: 01 07 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: 01 07 00 F3 08 00 00 00 00 00 FF 0F 10 [14:42:49]RasterBufferAndPrint [14:42:49]line 小褔械褌 N : (1)320611 [14:42:49]line 袠袧袧: 02508201610067 [14:42:49]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:42:49]line 袩袪袨袛袗袞袗 [14:42:49]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:42:49]line 孝芯胁邪褉: 2710124130 [14:42:49]line 袗懈-92-袣-5 [14:42:49]line 30.130 * 66.40 [14:42:49]line = 2000.63 [14:42:49]line 袧袛小 12% 袧小袩 1% [14:42:49]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:42:49]line 袨袣袪校袚袥袝袧袠袝: -0.63 [14:42:49]line 袠孝袨袚袨: 2000.00 [14:42:49]line 袙薪械褋械薪芯: 2000.00 [14:42:49]line 小袛袗效袗: 0.00 [14:42:49]line 袧小袩 1% : 17.70 [14:42:49]line 袧袛小 12% : 212.46 [14:42:49]line 袧邪谢懈褔薪褘屑懈: 2000.00 [14:42:49]line 袘械蟹薪邪谢.: 0.00 [14:42:49]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:42:49]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:42:49]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:42:49]line 效械泻 132 21.06.2024 14:42 [14:42:49]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:42:49]line 袟袧袦: 0300000198 [14:42:49]line 袪袧袦: 0000000000092771 [14:42:49]line 袙械褉褋懈褟 袣袣袦: 001 [14:42:49]line 肖袦: 0000000000875083 [14:42:49]line 肖袛: 111964 [14:42:49]line 肖袩袛: 38899652365118 [14:42:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T144249&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111964&fm=38899652365118&tin=02508201610067®Number=0000000000092771&sum=200000 [14:42:49]OFD Sender: Processing packet 111964 [packets to send 38, broken 37] [14:42:49]ProducePacketName [14:42:49]name=ofd_packets/00111964 [14:42:49]OFD Sender: To server: 嚂鰌G, [14:42:49]CommunicateWithHost lk.salyk.kg:30040 [14:42:49]ConnectInit lk.salyk.kg [14:42:49]written 0, free lines is 4095 [14:42:49]Connected sock=10 [14:42:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 04 AA 07 01 3F 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 69 91 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B5 01 00 35 04 06 00 23 61 07 F6 0B 3E BC F5 3F EA E0 57 DB 33 [14:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F0 BF 47 00 27 34 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 30 38 37 35 30 38 33 10 04 04 00 5C B5 01 00 F4 03 04 00 92 28 75 66 B6 04 01 00 00 89 92 BD D3 57 50 E6 CD [14:42:50]CommunicateWithHost err = 0 [14:42:50]CheckOFDResponse [14:42:50]1017 (14) - 77093643461234 [14:42:50]1041 (16) - 0000000000875083 [14:42:50]1040 (4) - 111964 [14:42:50]1012 (4) - 21.06.2024 07:15 [14:42:50]1206 (1) - 0 [14:42:50]OFD Sender: Remove packet 111964 [14:42:50]ProducePacketName [14:42:50]name=ofd_packets/00111964 [14:42:50]NVStorageDeleteData [14:42:50]Write to MH i2c: 01 00 00 1E 09 27 [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: 01 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: 01 07 00 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: 01 07 00 1E 09 00 00 00 00 00 EA 0C 24 [14:42:50]RasterBufferAndPrint [14:42:50]line [14:42:50]line [14:42:50]line [14:42:50]line [14:42:50]line [14:42:50]written 0, free lines is 3312 [14:42:50]MH_Cut [14:42:50]Write to MH i2c: D1 01 00 25 09 01 00 [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: D1 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: D1 01 00 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: D1 01 00 25 09 00 FF [14:42:50]Write to MH i2c: 01 00 00 26 09 2F [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]OFD Sender: No OFD packet to send [14:42:50]*** Cut start [14:42:50]*** Partial cut [14:42:50]*** CUTSNS_PIN = 1 [14:42:50]*** CUTSNS_PIN = 0 [14:42:51]*** Brake cut motor [14:42:51]Read from MH i2c: 01 [14:42:51]MH_I2C_Read... [14:42:51]*** Stop cut motor [14:42:51]*** Cut end [14:42:51]Read from MH i2c: 01 07 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: 01 07 00 26 09 00 00 00 00 00 FF 0F 44 [14:42:51]process_action close_receipt done [14:42:51]requested_data is exist [14:42:51]produce_requested_data [14:42:51]requested_item fm.sn is exist - process it [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 11 00 00 [14:42:51]Write to MH i2c: E2 08 00 27 09 80 11 00 00 00 00 00 00 AA [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 17 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 17 00 27 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FC [14:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:42:51]wFMCommunicate OK [14:42:51]requested_item fd.num is exist - process it [14:42:51]SAM_PROTO_GetFieldsCounters [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 13 00 00 [14:42:51]Write to MH i2c: E2 08 00 28 09 80 13 00 00 00 00 00 00 AD [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 62 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 62 00 28 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5C B5 01 00 0E 04 04 00 86 01 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 F3 [14:42:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5C B5 01 00 0E 04 04 00 86 01 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 [14:42:51]wFMCommunicate OK [14:42:51]SAM_PROTO_GetFieldsCounters done [14:42:51]requested_item shift.num is exist - process it [14:42:51]requested_item shift.opened is exist - process it [14:42:51]req_shift_opened [14:42:51]FM_GetShiftState [14:42:51]SAM_PROTO_GetShiftState [14:42:51]wFMCommunicate request_size=4 [14:42:51]MH_SAM_APDU [14:42:51]CAPDU: 80 13 01 00 [14:42:51]Write to MH i2c: E2 08 00 29 09 80 13 01 00 00 00 00 00 AF [14:42:51]Write i2c OK [14:42:51]MH_I2C_Read... [14:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:51]Read from MH i2c: E2 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 0E 00 [14:42:51]MH_I2C_Read... [14:42:51]Read from MH i2c: E2 0E 00 29 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 2C [14:42:51]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:42:51]wFMCommunicate OK [14:42:51]SAM_PROTO_GetShiftState done [14:42:51]FM_GetShiftState done [14:42:51]req_shift_opened done [14:42:51]requested_item shift.open_date is exist - process it [14:42:51]req_shift_open_date [14:42:51]req_shift_open_date done [14:42:51]produce_requested_data done [14:42:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111964,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:42:51]process_action_free close_receipt [14:42:51]json_value_free [14:42:51]json_value_free done [14:42:51]process_json_proto returns [14:42:51]Send response to host [14:42:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111964,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:42:51]free response buf [14:42:51]execute_script done [14:42:51]execute_script returns [14:42:51]free content buf [14:42:51]Sock 9.Close socket [14:42:51]Sock 9.Thread stoped [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]accept exits with 7 [14:43:20]New connection [14:43:20]New thread 3066731876 created [14:43:20]Thread 3066875236 joined [14:43:20]Waiting for new connection... [14:43:20] Sock 7.Parse request [14:43:20]Sock 7.Check first char [14:43:20]Sock 7.First char is OK [14:43:20]request: POST /json_proto HTTP/1.0 [14:43:20]Method: POST [14:43:20]URL: /json_proto [14:43:20]Method is POST - this is cgi request [14:43:20]url: /json_proto [14:43:20]query_string will be loaded in cgi processing [14:43:20]execute_cgi json_proto POST (null) [14:43:20]execute_cgi path=json_proto method=POST [14:43:20]POST find Content-Length [14:43:20]Host: 172.17.59.68:8080 [14:43:20]Content-Length: 677 [14:43:20]Content-Type: application/json [14:43:20] [14:43:20]POST finish read [14:43:20]Found Content-Length = 677 [14:43:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [14:43:20]execute_script... [14:43: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)320612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [14:43:20]POST & json_proto [14:43:20]process_json_proto [14:43:20]json parsed OK: [14:43:20]protocol is kg_v1.0 [14:43:20]action value=close_receipt [14:43:20]process_action close_receipt [14:43:20]cmd_close_receipt [14:43:20]MH_GetDate [14:43:20]Write to MH i2c: F0 00 00 2A 09 22 [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: F0 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: F0 09 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: F0 09 00 2A 09 00 8A 91 75 66 BC EC 60 65 8E [14:43:20]GetLastDocTimeStamp 1718980969 [14:43:20]current date 1718981002 [14:43:20]FM_GetShiftState [14:43:20]SAM_PROTO_GetShiftState [14:43:20]wFMCommunicate request_size=4 [14:43:20]MH_SAM_APDU [14:43:20]CAPDU: 80 13 01 00 [14:43:20]Write to MH i2c: E2 08 00 2B 09 80 13 01 00 00 00 00 00 B1 [14:43:20]Write i2c OK [14:43:20]MH_I2C_Read... [14:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:20]Read from MH i2c: E2 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 0E 00 [14:43:20]MH_I2C_Read... [14:43:20]Read from MH i2c: E2 0E 00 2B 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 2E [14:43:20]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:43:20]wFMCommunicate OK [14:43:20]SAM_PROTO_GetShiftState done [14:43:20]FM_GetShiftState done [14:43:20]opened in 1718933695 [14:43:20]opened+sec_in_day 1719020095 [14:43:20]quantity*price = 40039 [14:43:20]sum+1 = 40040 [14:43:20]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.39 袠孝袨袚袨: 400.00 袙薪械褋械薪芯: 400.00 小袛袗效袗: 0.00 袧小袩 1% : 3.54 袧袛小 12% : 42.52 袧邪谢懈褔薪褘屑懈: 400.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 133 21.06.2024 14:43 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111965 肖袩袛: 32098455722578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T144322&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111965&fm=32098455722578&tin=02508201610067®Number=0000000000092771&sum=40000 [14:43:21]StoreToDocumentArchive [14:43:21]shift 390 fd 111965 [14:43:21]save to /storage/0390/doc_00111965 [14:43:21]save last doc name /storage/0390/doc_00111965 to /storage/kkm_last_doc_name [14:43:21]save OK [14:43:21]Clear old archive folders... [14:43:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:21]tlvbuf is 00470970 [14:43:21]SAM_PROTO_ClearQueue [14:43:21]wFMCommunicate request_size=4 [14:43:21]MH_SAM_APDU [14:43:21]CAPDU: 80 09 00 00 [14:43:21]Write to MH i2c: E2 08 00 38 09 80 09 00 00 00 00 00 00 B3 [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:21]Read from MH i2c: E2 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 03 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 03 00 38 09 00 90 00 B5 [14:43:21]RAPDU: 90 00 [14:43:21]wFMCommunicate OK [14:43:21]SAM_PROTO_ClearQueue done [14:43:21]KKMCreateOFDPacket [14:43:21]OFDProtocolAddRootSTLVToBuf [14:43:21]FM_MakeSignedData [14:43:21]FM_MakeSignedData [14:43:21]SAM_PROTO_SignData [14:43:21]wFMCommunicate request_size=4 [14:43:21]MH_SAM_APDU [14:43:21]CAPDU: 80 0D 01 02 [14:43:21]Write to MH i2c: E2 08 00 39 09 80 0D 01 02 00 00 00 00 BB [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:21]Read from MH i2c: E2 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 03 00 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 03 00 39 09 00 90 00 B6 [14:43:21]RAPDU: 90 00 [14:43:21]wFMCommunicate OK [14:43:21]wFMCommunicate request_size=255 [14:43:21]MH_SAM_APDU [14:43: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 85 00 00 00 F4 03 04 00 8A 91 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B5 01 00 35 04 06 00 1D [14:43:21]Write to MH i2c: E2 02 01 3A 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 85 00 00 00 F4 03 04 00 8A 91 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B5 01 00 35 04 06 00 1D 00 00 6F [14:43:21]Write i2c OK [14:43:21]MH_I2C_Read... [14:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:21]Read from MH i2c: E2 [14:43:21]MH_I2C_Read... [14:43:21]Read from MH i2c: E2 03 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 03 00 3A 09 00 90 00 B7 [14:43:22]RAPDU: 90 00 [14:43:22]wFMCommunicate OK [14:43:22]wFMCommunicate request_size=10 [14:43:22]MH_SAM_APDU [14:43:22]CAPDU: 80 0D 02 02 05 31 81 0D 1A 52 [14:43:22]Write to MH i2c: E2 0D 00 3B 09 80 0D 02 02 05 00 31 81 0D 1A 52 00 00 F3 [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:22]Read from MH i2c: E2 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 03 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 03 00 3B 09 00 90 00 B8 [14:43:22]RAPDU: 90 00 [14:43:22]wFMCommunicate OK [14:43:22]wFMCommunicate request_size=4 [14:43:22]MH_SAM_APDU [14:43:22]CAPDU: 80 0D 03 02 [14:43:22]Write to MH i2c: E2 08 00 3C 09 80 0D 03 02 00 00 00 00 C0 [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:22]Read from MH i2c: E2 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 0B 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 0B 00 3C 09 00 1E 81 70 01 6C 81 95 46 90 00 99 [14:43:22]RAPDU: 1E 81 70 01 6C 81 95 46 90 00 [14:43:22]wFMCommunicate OK [14:43:22]SAM_PROTO_SignData done [14:43:22]FM_MakeSignedData done [14:43:22]CreateOFDProtocolMessage [14:43:22]wFMCommunicate request_size=4 [14:43:22]MH_SAM_APDU [14:43:22]CAPDU: 80 11 00 00 [14:43:22]Write to MH i2c: E2 08 00 3D 09 80 11 00 00 00 00 00 00 C0 [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:22]Read from MH i2c: E2 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 17 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: E2 17 00 3D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 12 [14:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:43:22]wFMCommunicate OK [14:43:22]CreateOFDProtocolMessage done [14:43:22]OFDSenderStorePacket 111965 [14:43:22]StoreOFDPacket docnum=111965 [14:43:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D4 45 07 01 0C 36 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 85 00 00 00 F4 03 04 00 8A 91 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B5 01 00 35 04 06 00 1D 31 81 0D 1A 52 1E 81 70 01 6C 81 95 46 [14:43:22]CheckFolder [14:43:22]dirname=/storage/ofd_packets [14:43:22]CheckFolder done [14:43:22]ProducePacketName [14:43:22]name=ofd_packets/00111965 [14:43:22]NVStorageSaveData ofd_packets/00111965 [14:43:22]File name is /storage/ofd_packets/00111965 [14:43:22]Write 301 bytes [14:43:22]NVStorageSaveData done [14:43:22]OFDSenderStorePacket done [14:43:22]KKMCreateOFDPacket done [14:43:22]NVStorageSaveData kkm_last_timestamp [14:43:22]File name is /storage/kkm_last_timestamp [14:43:22]Write 4 bytes [14:43:22]NVStorageSaveData done [14:43:22]ExternCall_PrintAddStr [14:43:22]wPrintStart [14:43:22]Write to MH i2c: 01 00 00 3E 09 47 [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: 01 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: 01 07 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: 01 07 00 3E 09 00 00 00 00 00 FF 0F 5C [14:43:22]RasterBufferAndPrint [14:43:22]line 小褔械褌 N : (1)320612 [14:43:22]line 袠袧袧: 02508201610067 [14:43:22]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:43:22]line 袩袪袨袛袗袞袗 [14:43:22]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:43:22]line 孝芯胁邪褉: 2710124130 [14:43:22]line 袗懈-92-袣-5 [14:43:22]line 6.030 * 66.40 [14:43:22]line = 400.39 [14:43:22]line 袧袛小 12% 袧小袩 1% [14:43:22]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:43:22]line 袨袣袪校袚袥袝袧袠袝: -0.39 [14:43:22]line 袠孝袨袚袨: 400.00 [14:43:22]line 袙薪械褋械薪芯: 400.00 [14:43:22]line 小袛袗效袗: 0.00 [14:43:22]line 袧小袩 1% : 3.54 [14:43:22]line 袧袛小 12% : 42.52 [14:43:22]line 袧邪谢懈褔薪褘屑懈: 400.00 [14:43:22]line 袘械蟹薪邪谢.: 0.00 [14:43:22]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:43:22]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:43:22]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:43:22]line 效械泻 133 21.06.2024 14:43 [14:43:22]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:43:22]line 袟袧袦: 0300000198 [14:43:22]line 袪袧袦: 0000000000092771 [14:43:22]line 袙械褉褋懈褟 袣袣袦: 001 [14:43:22]line 肖袦: 0000000000875083 [14:43:22]line 肖袛: 111965 [14:43:22]line 肖袩袛: 32098455722578 [14:43:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T144322&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111965&fm=32098455722578&tin=02508201610067®Number=0000000000092771&sum=40000 [14:43:22]OFD Sender: Processing packet 111965 [packets to send 38, broken 37] [14:43:22]ProducePacketName [14:43:22]name=ofd_packets/00111965 [14:43:22]OFD Sender: To server: 嚂鰌G, [14:43:22]CommunicateWithHost lk.salyk.kg:30040 [14:43:22]ConnectInit lk.salyk.kg [14:43:22]written 0, free lines is 4095 [14:43:22]Connected sock=10 [14:43:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D4 45 07 01 0C 36 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 85 00 00 00 F4 03 04 00 8A 91 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B5 01 00 35 04 06 00 1D 31 81 0D 1A 52 1E 81 70 01 6C 81 95 46 [14:43:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 73 78 47 00 E7 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 30 38 37 35 30 38 33 10 04 04 00 5D B5 01 00 F4 03 04 00 B3 28 75 66 B6 04 01 00 00 72 09 83 3F 64 3B 91 FC [14:43:22]CommunicateWithHost err = 0 [14:43:22]CheckOFDResponse [14:43:22]1017 (14) - 77093643461234 [14:43:22]1041 (16) - 0000000000875083 [14:43:22]1040 (4) - 111965 [14:43:22]1012 (4) - 21.06.2024 07:16 [14:43:22]1206 (1) - 0 [14:43:22]OFD Sender: Remove packet 111965 [14:43:22]ProducePacketName [14:43:22]name=ofd_packets/00111965 [14:43:22]NVStorageDeleteData [14:43:22]Write to MH i2c: 01 00 00 69 09 72 [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: 01 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: 01 07 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: 01 07 00 69 09 00 00 00 00 00 E8 0C 6D [14:43:22]RasterBufferAndPrint [14:43:22]line [14:43:22]line [14:43:22]line [14:43:22]line [14:43:22]line [14:43:22]written 0, free lines is 3310 [14:43:22]MH_Cut [14:43:22]Write to MH i2c: D1 01 00 70 09 01 4B [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: D1 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: D1 01 00 [14:43:22]MH_I2C_Read... [14:43:22]Read from MH i2c: D1 01 00 70 09 00 4A [14:43:22]Write to MH i2c: 01 00 00 71 09 7A [14:43:22]Write i2c OK [14:43:22]MH_I2C_Read... [14:43:23]OFD Sender: No OFD packet to send [14:43:23]*** Cut start [14:43:23]*** Partial cut [14:43:23]*** CUTSNS_PIN = 1 [14:43:23]*** CUTSNS_PIN = 0 [14:43:23]*** Brake cut motor [14:43:24]Read from MH i2c: 01 [14:43:24]MH_I2C_Read... [14:43:24]*** Stop cut motor [14:43:24]*** Cut end [14:43:24]Read from MH i2c: 01 07 00 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: 01 07 00 71 09 00 00 00 00 00 FF 0F 8F [14:43:24]process_action close_receipt done [14:43:24]requested_data is exist [14:43:24]produce_requested_data [14:43:24]requested_item fm.sn is exist - process it [14:43:24]wFMCommunicate request_size=4 [14:43:24]MH_SAM_APDU [14:43:24]CAPDU: 80 11 00 00 [14:43:24]Write to MH i2c: E2 08 00 72 09 80 11 00 00 00 00 00 00 F5 [14:43:24]Write i2c OK [14:43:24]MH_I2C_Read... [14:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:24]Read from MH i2c: E2 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: E2 17 00 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: E2 17 00 72 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [14:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:43:24]wFMCommunicate OK [14:43:24]requested_item fd.num is exist - process it [14:43:24]SAM_PROTO_GetFieldsCounters [14:43:24]wFMCommunicate request_size=4 [14:43:24]MH_SAM_APDU [14:43:24]CAPDU: 80 13 00 00 [14:43:24]Write to MH i2c: E2 08 00 73 09 80 13 00 00 00 00 00 00 F8 [14:43:24]Write i2c OK [14:43:24]MH_I2C_Read... [14:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:24]Read from MH i2c: E2 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: E2 62 00 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: E2 62 00 73 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5D B5 01 00 0E 04 04 00 86 01 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 42 [14:43:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5D B5 01 00 0E 04 04 00 86 01 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 [14:43:24]wFMCommunicate OK [14:43:24]SAM_PROTO_GetFieldsCounters done [14:43:24]requested_item shift.num is exist - process it [14:43:24]requested_item shift.opened is exist - process it [14:43:24]req_shift_opened [14:43:24]FM_GetShiftState [14:43:24]SAM_PROTO_GetShiftState [14:43:24]wFMCommunicate request_size=4 [14:43:24]MH_SAM_APDU [14:43:24]CAPDU: 80 13 01 00 [14:43:24]Write to MH i2c: E2 08 00 74 09 80 13 01 00 00 00 00 00 FA [14:43:24]Write i2c OK [14:43:24]MH_I2C_Read... [14:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:24]Read from MH i2c: E2 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: E2 0E 00 [14:43:24]MH_I2C_Read... [14:43:24]Read from MH i2c: E2 0E 00 74 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 77 [14:43:24]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:43:24]wFMCommunicate OK [14:43:24]SAM_PROTO_GetShiftState done [14:43:24]FM_GetShiftState done [14:43:24]req_shift_opened done [14:43:24]requested_item shift.open_date is exist - process it [14:43:24]req_shift_open_date [14:43:24]req_shift_open_date done [14:43:24]produce_requested_data done [14:43:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111965,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:43:24]process_action_free close_receipt [14:43:24]json_value_free [14:43:24]json_value_free done [14:43:24]process_json_proto returns [14:43:24]Send response to host [14:43:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111965,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:43:24]free response buf [14:43:24]execute_script done [14:43:24]execute_script returns [14:43:24]free content buf [14:43:24]Sock 7.Close socket [14:43:24]Sock 7.Thread stoped [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:54]accept exits with 9 [14:44:54]New connection [14:44:54]New thread 3066875236 created [14:44:54]Thread 3066731876 joined [14:44:54]Waiting for new connection... [14:44:54] Sock 9.Parse request [14:44:54]Sock 9.Check first char [14:44:54]Sock 9.First char is OK [14:44:54]request: POST /json_proto HTTP/1.0 [14:44:54]Method: POST [14:44:54]URL: /json_proto [14:44:54]Method is POST - this is cgi request [14:44:54]url: /json_proto [14:44:54]query_string will be loaded in cgi processing [14:44:54]execute_cgi json_proto POST (null) [14:44:54]execute_cgi path=json_proto method=POST [14:44:54]POST find Content-Length [14:44:54]Host: 172.17.59.68:8080 [14:44:54]Content-Length: 677 [14:44:54]Content-Type: application/json [14:44:54] [14:44:54]POST finish read [14:44:54]Found Content-Length = 677 [14:44:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 9.480, "sum" : 700.57, "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" ] } } [14:44:54]execute_script... [14:44: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 : (1)320613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 9.480, "sum" : 700.57, "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" ] } } [14:44:54]POST & json_proto [14:44:54]process_json_proto [14:44:54]json parsed OK: [14:44:54]protocol is kg_v1.0 [14:44:54]action value=close_receipt [14:44:54]process_action close_receipt [14:44:54]cmd_close_receipt [14:44:54]MH_GetDate [14:44:54]Write to MH i2c: F0 00 00 75 09 6D [14:44:54]Write i2c OK [14:44:54]MH_I2C_Read... [14:44:54]Read from MH i2c: F0 [14:44:54]MH_I2C_Read... [14:44:54]Read from MH i2c: F0 09 00 [14:44:54]MH_I2C_Read... [14:44:54]Read from MH i2c: F0 09 00 75 09 00 E8 91 75 66 BC EC 60 65 37 [14:44:54]GetLastDocTimeStamp 1718981002 [14:44:54]current date 1718981096 [14:44:54]FM_GetShiftState [14:44:54]SAM_PROTO_GetShiftState [14:44:54]wFMCommunicate request_size=4 [14:44:54]MH_SAM_APDU [14:44:54]CAPDU: 80 13 01 00 [14:44:54]Write to MH i2c: E2 08 00 76 09 80 13 01 00 00 00 00 00 FC [14:44:54]Write i2c OK [14:44:54]MH_I2C_Read... [14:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:54]Read from MH i2c: E2 [14:44:54]MH_I2C_Read... [14:44:54]Read from MH i2c: E2 0E 00 [14:44:54]MH_I2C_Read... [14:44:54]Read from MH i2c: E2 0E 00 76 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 79 [14:44:54]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:44:54]wFMCommunicate OK [14:44:54]SAM_PROTO_GetShiftState done [14:44:54]FM_GetShiftState done [14:44:54]opened in 1718933695 [14:44:54]opened+sec_in_day 1719020095 [14:44:54]quantity*price = 70057 [14:44:54]sum+1 = 70058 [14:44:54]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.57 袠孝袨袚袨: 700.00 袙薪械褋械薪芯: 700.00 小袛袗效袗: 0.00 袧小袩 1% : 6.20 袧袛小 12% : 74.40 袧邪谢懈褔薪褘屑懈: 700.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 134 21.06.2024 14:44 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111966 肖袩袛: 207688338442465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T144457&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111966&fm=207688338442465&tin=02508201610067®Number=0000000000092771&sum=70000 [14:44:56]StoreToDocumentArchive [14:44:56]shift 390 fd 111966 [14:44:56]save to /storage/0390/doc_00111966 [14:44:56]save last doc name /storage/0390/doc_00111966 to /storage/kkm_last_doc_name [14:44:56]save OK [14:44:56]Clear old archive folders... [14:44:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:56]tlvbuf is 0044D820 [14:44:56]SAM_PROTO_ClearQueue [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 09 00 00 [14:44:56]Write to MH i2c: E2 08 00 83 09 80 09 00 00 00 00 00 00 FE [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 83 09 00 90 00 00 [14:44:56]RAPDU: 90 00 [14:44:56]wFMCommunicate OK [14:44:56]SAM_PROTO_ClearQueue done [14:44:56]KKMCreateOFDPacket [14:44:56]OFDProtocolAddRootSTLVToBuf [14:44:56]FM_MakeSignedData [14:44:56]FM_MakeSignedData [14:44:56]SAM_PROTO_SignData [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 0D 01 02 [14:44:56]Write to MH i2c: E2 08 00 84 09 80 0D 01 02 00 00 00 00 06 [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 84 09 00 90 00 01 [14:44:56]RAPDU: 90 00 [14:44:56]wFMCommunicate OK [14:44:56]wFMCommunicate request_size=255 [14:44:56]MH_SAM_APDU [14:44:56]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 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 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 86 00 00 00 F4 03 04 00 E9 91 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B5 01 00 35 04 06 00 BC [14:44:56]Write to MH i2c: E2 02 01 85 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 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 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 86 00 00 00 F4 03 04 00 E9 91 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B5 01 00 35 04 06 00 BC 00 00 C7 [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [14:44:56]RAPDU: 90 00 [14:44:56]wFMCommunicate OK [14:44:56]wFMCommunicate request_size=10 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 0D 02 02 05 E4 35 A3 08 E1 [14:44:56]Write to MH i2c: E2 0D 00 86 09 80 0D 02 02 05 00 E4 35 A3 08 E1 00 00 B8 [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 86 09 00 90 00 03 [14:44:56]RAPDU: 90 00 [14:44:56]wFMCommunicate OK [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 0D 03 02 [14:44:56]Write to MH i2c: E2 08 00 87 09 80 0D 03 02 00 00 00 00 0B [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 0B 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 0B 00 87 09 00 1B 68 F3 F7 D2 48 5D 89 90 00 79 [14:44:56]RAPDU: 1B 68 F3 F7 D2 48 5D 89 90 00 [14:44:56]wFMCommunicate OK [14:44:56]SAM_PROTO_SignData done [14:44:56]FM_MakeSignedData done [14:44:56]CreateOFDProtocolMessage [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 11 00 00 [14:44:56]Write to MH i2c: E2 08 00 88 09 80 11 00 00 00 00 00 00 0B [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 17 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 17 00 88 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [14:44:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:44:56]wFMCommunicate OK [14:44:56]CreateOFDProtocolMessage done [14:44:56]OFDSenderStorePacket 111966 [14:44:56]StoreOFDPacket docnum=111966 [14:44:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 BC 07 01 F8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 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 86 00 00 00 F4 03 04 00 E9 91 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B5 01 00 35 04 06 00 BC E4 35 A3 08 E1 1B 68 F3 F7 D2 48 5D 89 [14:44:56]CheckFolder [14:44:56]dirname=/storage/ofd_packets [14:44:56]CheckFolder done [14:44:56]ProducePacketName [14:44:56]name=ofd_packets/00111966 [14:44:56]NVStorageSaveData ofd_packets/00111966 [14:44:56]File name is /storage/ofd_packets/00111966 [14:44:56]Write 301 bytes [14:44:56]NVStorageSaveData done [14:44:56]OFDSenderStorePacket done [14:44:56]KKMCreateOFDPacket done [14:44:56]NVStorageSaveData kkm_last_timestamp [14:44:56]File name is /storage/kkm_last_timestamp [14:44:56]Write 4 bytes [14:44:56]NVStorageSaveData done [14:44:56]ExternCall_PrintAddStr [14:44:56]wPrintStart [14:44:56]Write to MH i2c: 01 00 00 89 09 92 [14:44:56]OFD Sender: Processing packet 111966 [packets to send 38, broken 37] [14:44:56]ProducePacketName [14:44:56]name=ofd_packets/00111966 [14:44:56]OFD Sender: To server: 嚂鰌G, [14:44:56]CommunicateWithHost lk.salyk.kg:30040 [14:44:56]ConnectInit lk.salyk.kg [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: 01 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: 01 07 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: 01 07 00 89 09 00 00 00 00 00 FF 0F A7 [14:44:56]RasterBufferAndPrint [14:44:56]line 小褔械褌 N : (1)320613 [14:44:56]line 袠袧袧: 02508201610067 [14:44:56]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:44:56]line 袩袪袨袛袗袞袗 [14:44:56]line 孝袪袣 (袦袪袣, 袚袧袣) : 12 [14:44:56]line 孝芯胁邪褉: 2710124500 [14:44:56]line 袗懈-95-袣-5 [14:44:56]line 9.480 * 73.90 [14:44:56]line = 700.57 [14:44:56]line 袧袛小 12% 袧小袩 1% [14:44:56]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:44:56]line 袨袣袪校袚袥袝袧袠袝: -0.57 [14:44:56]line 袠孝袨袚袨: 700.00 [14:44:56]line 袙薪械褋械薪芯: 700.00 [14:44:56]line 小袛袗效袗: 0.00 [14:44:56]line 袧小袩 1% : 6.20 [14:44:56]line 袧袛小 12% : 74.40 [14:44:56]line 袧邪谢懈褔薪褘屑懈: 700.00 [14:44:56]line 袘械蟹薪邪谢.: 0.00 [14:44:56]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:44:56]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:44:56]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:44:56]line 效械泻 134 21.06.2024 14:44 [14:44:56]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:44:56]line 袟袧袦: 0300000198 [14:44:56]line 袪袧袦: 0000000000092771 [14:44:56]line 袙械褉褋懈褟 袣袣袦: 001 [14:44:56]line 肖袦: 0000000000875083 [14:44:56]line 肖袛: 111966 [14:44:56]line 肖袩袛: 207688338442465 [14:44:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T144457&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111966&fm=207688338442465&tin=02508201610067®Number=0000000000092771&sum=70000 [14:44:56]Connected sock=10 [14:44:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 BC 07 01 F8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 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 86 00 00 00 F4 03 04 00 E9 91 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B5 01 00 35 04 06 00 BC E4 35 A3 08 E1 1B 68 F3 F7 D2 48 5D 89 [14:44:57]written 0, free lines is 4095 [14:44:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FC 07 47 00 CB 9B 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 30 38 37 35 30 38 33 10 04 04 00 5E B5 01 00 F4 03 04 00 11 29 75 66 B6 04 01 00 00 42 25 74 C6 56 AC 01 59 [14:44:57]CommunicateWithHost err = 0 [14:44:57]CheckOFDResponse [14:44:57]1017 (14) - 77093643461234 [14:44:57]1041 (16) - 0000000000875083 [14:44:57]1040 (4) - 111966 [14:44:57]1012 (4) - 21.06.2024 07:17 [14:44:57]1206 (1) - 0 [14:44:57]OFD Sender: Remove packet 111966 [14:44:57]ProducePacketName [14:44:57]name=ofd_packets/00111966 [14:44:57]NVStorageDeleteData [14:44:57]Write to MH i2c: 01 00 00 B4 09 BD [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: 01 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: 01 07 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: 01 07 00 B4 09 00 00 00 00 00 DD 0C AD [14:44:57]RasterBufferAndPrint [14:44:57]line [14:44:57]line [14:44:57]line [14:44:57]line [14:44:57]line [14:44:57]written 0, free lines is 3299 [14:44:57]MH_Cut [14:44:57]Write to MH i2c: D1 01 00 BB 09 01 96 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: D1 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: D1 01 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: D1 01 00 BB 09 00 95 [14:44:57]Write to MH i2c: 01 00 00 BC 09 C5 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]OFD Sender: No OFD packet to send [14:44:58]*** Cut start [14:44:58]*** Partial cut [14:44:58]*** CUTSNS_PIN = 1 [14:44:58]*** CUTSNS_PIN = 0 [14:44:58]*** Brake cut motor [14:44:58]Read from MH i2c: 01 [14:44:58]MH_I2C_Read... [14:44:58]*** Stop cut motor [14:44:58]*** Cut end [14:44:58]Read from MH i2c: 01 07 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: 01 07 00 BC 09 00 00 00 00 00 FF 0F DA [14:44:58]process_action close_receipt done [14:44:58]requested_data is exist [14:44:58]produce_requested_data [14:44:58]requested_item fm.sn is exist - process it [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 11 00 00 [14:44:58]Write to MH i2c: E2 08 00 BD 09 80 11 00 00 00 00 00 00 40 [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 17 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 17 00 BD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [14:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:44:58]wFMCommunicate OK [14:44:58]requested_item fd.num is exist - process it [14:44:58]SAM_PROTO_GetFieldsCounters [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 13 00 00 [14:44:58]Write to MH i2c: E2 08 00 BE 09 80 13 00 00 00 00 00 00 43 [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 62 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 62 00 BE 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5E B5 01 00 0E 04 04 00 86 01 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 91 [14:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5E B5 01 00 0E 04 04 00 86 01 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 [14:44:58]wFMCommunicate OK [14:44:58]SAM_PROTO_GetFieldsCounters done [14:44:58]requested_item shift.num is exist - process it [14:44:58]requested_item shift.opened is exist - process it [14:44:58]req_shift_opened [14:44:58]FM_GetShiftState [14:44:58]SAM_PROTO_GetShiftState [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 13 01 00 [14:44:58]Write to MH i2c: E2 08 00 BF 09 80 13 01 00 00 00 00 00 45 [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:59]Read from MH i2c: E2 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 0E 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 0E 00 BF 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C2 [14:44:59]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:44:59]wFMCommunicate OK [14:44:59]SAM_PROTO_GetShiftState done [14:44:59]FM_GetShiftState done [14:44:59]req_shift_opened done [14:44:59]requested_item shift.open_date is exist - process it [14:44:59]req_shift_open_date [14:44:59]req_shift_open_date done [14:44:59]produce_requested_data done [14:44:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111966,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:44:59]process_action_free close_receipt [14:44:59]json_value_free [14:44:59]json_value_free done [14:44:59]process_json_proto returns [14:44:59]Send response to host [14:44:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111966,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:44:59]free response buf [14:44:59]execute_script done [14:44:59]execute_script returns [14:44:59]free content buf [14:44:59]Sock 9.Close socket [14:44:59]Sock 9.Thread stoped [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]accept exits with 7 [14:46:17]New connection [14:46:17]New thread 3066731876 created [14:46:17]Thread 3066875236 joined [14:46:17]Waiting for new connection... [14:46:17] Sock 7.Parse request [14:46:17]Sock 7.Check first char [14:46:17]Sock 7.First char is OK [14:46:17]request: POST /json_proto HTTP/1.0 [14:46:17]Method: POST [14:46:17]URL: /json_proto [14:46:17]Method is POST - this is cgi request [14:46:17]url: /json_proto [14:46:17]query_string will be loaded in cgi processing [14:46:17]execute_cgi json_proto POST (null) [14:46:17]execute_cgi path=json_proto method=POST [14:46:17]POST find Content-Length [14:46:17]Host: 172.17.59.68:8080 [14:46:17]Content-Length: 677 [14:46:17]Content-Type: application/json [14:46:17] [14:46:17]POST finish read [14:46:17]Found Content-Length = 677 [14:46:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:17]execute_script... [14:46: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)320614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:17]POST & json_proto [14:46:17]process_json_proto [14:46:17]json parsed OK: [14:46:17]protocol is kg_v1.0 [14:46:17]action value=close_receipt [14:46:17]process_action close_receipt [14:46:17]cmd_close_receipt [14:46:17]MH_GetDate [14:46:17]Write to MH i2c: F0 00 00 C0 09 B8 [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: F0 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: F0 09 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: F0 09 00 C0 09 00 3B 92 75 66 BC EC 60 65 D6 [14:46:17]GetLastDocTimeStamp 1718981097 [14:46:17]current date 1718981179 [14:46:17]FM_GetShiftState [14:46:17]SAM_PROTO_GetShiftState [14:46:17]wFMCommunicate request_size=4 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 13 01 00 [14:46:17]Write to MH i2c: E2 08 00 C1 09 80 13 01 00 00 00 00 00 47 [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 0E 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 0E 00 C1 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C4 [14:46:17]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:46:17]wFMCommunicate OK [14:46:17]SAM_PROTO_GetShiftState done [14:46:17]FM_GetShiftState done [14:46:17]opened in 1718933695 [14:46:17]opened+sec_in_day 1719020095 [14:46:17]quantity*price = 20052 [14:46:17]sum+1 = 20054 [14:46:17]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.53 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 135 21.06.2024 14:46 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111967 肖袩袛: 280413806987074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T144619&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111967&fm=280413806987074&tin=02508201610067®Number=0000000000092771&sum=20000 [14:46:18]StoreToDocumentArchive [14:46:18]shift 390 fd 111967 [14:46:18]save to /storage/0390/doc_00111967 [14:46:18]save last doc name /storage/0390/doc_00111967 to /storage/kkm_last_doc_name [14:46:18]save OK [14:46:18]Clear old archive folders... [14:46:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:18]tlvbuf is 0033CDC0 [14:46:18]SAM_PROTO_ClearQueue [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 09 00 00 [14:46:18]Write to MH i2c: E2 08 00 CE 09 80 09 00 00 00 00 00 00 49 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 CE 09 00 90 00 4B [14:46:18]RAPDU: 90 00 [14:46:18]wFMCommunicate OK [14:46:18]SAM_PROTO_ClearQueue done [14:46:18]KKMCreateOFDPacket [14:46:18]OFDProtocolAddRootSTLVToBuf [14:46:18]FM_MakeSignedData [14:46:18]FM_MakeSignedData [14:46:18]SAM_PROTO_SignData [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 0D 01 02 [14:46:18]Write to MH i2c: E2 08 00 CF 09 80 0D 01 02 00 00 00 00 51 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 CF 09 00 90 00 4C [14:46:18]RAPDU: 90 00 [14:46:18]wFMCommunicate OK [14:46:18]wFMCommunicate request_size=255 [14:46:18]MH_SAM_APDU [14:46: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3B 92 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B5 01 00 35 04 06 00 FF [14:46:18]Write to MH i2c: E2 02 01 D0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3B 92 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B5 01 00 35 04 06 00 FF 00 00 8E [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 D0 09 00 90 00 4D [14:46:18]RAPDU: 90 00 [14:46:18]wFMCommunicate OK [14:46:18]wFMCommunicate request_size=10 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 0D 02 02 05 08 ED 5B 07 42 [14:46:18]Write to MH i2c: E2 0D 00 D1 09 80 0D 02 02 05 00 08 ED 5B 07 42 00 00 F7 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 D1 09 00 90 00 4E [14:46:18]RAPDU: 90 00 [14:46:18]wFMCommunicate OK [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 0D 03 02 [14:46:18]Write to MH i2c: E2 08 00 D2 09 80 0D 03 02 00 00 00 00 56 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 0B 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 0B 00 D2 09 00 05 B8 98 23 F0 4E F0 50 90 00 4D [14:46:18]RAPDU: 05 B8 98 23 F0 4E F0 50 90 00 [14:46:18]wFMCommunicate OK [14:46:18]SAM_PROTO_SignData done [14:46:18]FM_MakeSignedData done [14:46:18]CreateOFDProtocolMessage [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 11 00 00 [14:46:18]Write to MH i2c: E2 08 00 D3 09 80 11 00 00 00 00 00 00 56 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 17 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 17 00 D3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A8 [14:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:46:18]wFMCommunicate OK [14:46:18]CreateOFDProtocolMessage done [14:46:18]OFDSenderStorePacket 111967 [14:46:18]StoreOFDPacket docnum=111967 [14:46:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C4 50 07 01 42 8C 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3B 92 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B5 01 00 35 04 06 00 FF 08 ED 5B 07 42 05 B8 98 23 F0 4E F0 50 [14:46:18]CheckFolder [14:46:18]dirname=/storage/ofd_packets [14:46:18]CheckFolder done [14:46:18]ProducePacketName [14:46:18]name=ofd_packets/00111967 [14:46:18]NVStorageSaveData ofd_packets/00111967 [14:46:18]File name is /storage/ofd_packets/00111967 [14:46:18]Write 301 bytes [14:46:18]NVStorageSaveData done [14:46:18]OFDSenderStorePacket done [14:46:18]KKMCreateOFDPacket done [14:46:18]NVStorageSaveData kkm_last_timestamp [14:46:18]File name is /storage/kkm_last_timestamp [14:46:18]Write 4 bytes [14:46:18]NVStorageSaveData done [14:46:18]ExternCall_PrintAddStr [14:46:18]wPrintStart [14:46:18]Write to MH i2c: 01 00 00 D4 09 DD [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: 01 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: 01 07 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: 01 07 00 D4 09 00 00 00 00 00 FF 0F F2 [14:46:18]RasterBufferAndPrint [14:46:18]line 小褔械褌 N : (1)320614 [14:46:18]line 袠袧袧: 02508201610067 [14:46:18]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:46:18]line 袩袪袨袛袗袞袗 [14:46:18]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:46:18]line 孝芯胁邪褉: 2710124130 [14:46:18]line 袗懈-92-袣-5 [14:46:18]line 3.020 * 66.40 [14:46:18]line = 200.53 [14:46:18]line 袧袛小 12% 袧小袩 1% [14:46:18]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:46:18]line 袨袣袪校袚袥袝袧袠袝: -0.53 [14:46:18]line 袠孝袨袚袨: 200.00 [14:46:18]line 袙薪械褋械薪芯: 200.00 [14:46:18]line 小袛袗效袗: 0.00 [14:46:18]line 袧小袩 1% : 1.77 [14:46:18]line 袧袛小 12% : 21.29 [14:46:18]line 袧邪谢懈褔薪褘屑懈: 200.00 [14:46:18]line 袘械蟹薪邪谢.: 0.00 [14:46:18]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:46:18]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:46:18]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:46:18]line 效械泻 135 21.06.2024 14:46 [14:46:18]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:46:18]line 袟袧袦: 0300000198 [14:46:18]line 袪袧袦: 0000000000092771 [14:46:18]line 袙械褉褋懈褟 袣袣袦: 001 [14:46:18]line 肖袦: 0000000000875083 [14:46:18]line 肖袛: 111967 [14:46:18]line 肖袩袛: 280413806987074 [14:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T144619&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111967&fm=280413806987074&tin=02508201610067®Number=0000000000092771&sum=20000 [14:46:19]OFD Sender: Processing packet 111967 [packets to send 38, broken 37] [14:46:19]ProducePacketName [14:46:19]name=ofd_packets/00111967 [14:46:19]OFD Sender: To server: 嚂鰌G, [14:46:19]CommunicateWithHost lk.salyk.kg:30040 [14:46:19]ConnectInit lk.salyk.kg [14:46:19]written 0, free lines is 4095 [14:46:19]Connected sock=10 [14:46:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C4 50 07 01 42 8C 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 3B 92 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B5 01 00 35 04 06 00 FF 08 ED 5B 07 42 05 B8 98 23 F0 4E F0 50 [14:46:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 99 AE 47 00 F5 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 30 38 37 35 30 38 33 10 04 04 00 5F B5 01 00 F4 03 04 00 63 29 75 66 B6 04 01 00 00 E1 7F C3 35 5E 59 E2 18 [14:46:19]CommunicateWithHost err = 0 [14:46:19]CheckOFDResponse [14:46:19]1017 (14) - 77093643461234 [14:46:19]1041 (16) - 0000000000875083 [14:46:19]1040 (4) - 111967 [14:46:19]1012 (4) - 21.06.2024 07:18 [14:46:19]1206 (1) - 0 [14:46:19]OFD Sender: Remove packet 111967 [14:46:19]ProducePacketName [14:46:19]name=ofd_packets/00111967 [14:46:19]NVStorageDeleteData [14:46:19]Write to MH i2c: 01 00 00 FF 09 08 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 07 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 07 00 FF 09 00 00 00 00 00 EE 0C 09 [14:46:19]RasterBufferAndPrint [14:46:19]line [14:46:19]line [14:46:19]line [14:46:19]line [14:46:19]line [14:46:19]written 0, free lines is 3316 [14:46:19]MH_Cut [14:46:19]Write to MH i2c: D1 01 00 06 0A 01 E2 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: D1 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: D1 01 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: D1 01 00 06 0A 00 E1 [14:46:19]Write to MH i2c: 01 00 00 07 0A 11 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]OFD Sender: No OFD packet to send [14:46:20]*** Cut start [14:46:20]*** Partial cut [14:46:20]*** CUTSNS_PIN = 1 [14:46:20]*** CUTSNS_PIN = 0 [14:46:20]*** Brake cut motor [14:46:20]Read from MH i2c: 01 [14:46:20]MH_I2C_Read... [14:46:20]*** Stop cut motor [14:46:20]*** Cut end [14:46:20]Read from MH i2c: 01 07 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 FF 0F 26 [14:46:20]process_action close_receipt done [14:46:20]requested_data is exist [14:46:20]produce_requested_data [14:46:20]requested_item fm.sn is exist - process it [14:46:20]wFMCommunicate request_size=4 [14:46:20]MH_SAM_APDU [14:46:20]CAPDU: 80 11 00 00 [14:46:20]Write to MH i2c: E2 08 00 08 0A 80 11 00 00 00 00 00 00 8C [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:20]Read from MH i2c: E2 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 17 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 17 00 08 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DE [14:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:46:20]wFMCommunicate OK [14:46:20]requested_item fd.num is exist - process it [14:46:20]SAM_PROTO_GetFieldsCounters [14:46:20]wFMCommunicate request_size=4 [14:46:20]MH_SAM_APDU [14:46:20]CAPDU: 80 13 00 00 [14:46:20]Write to MH i2c: E2 08 00 09 0A 80 13 00 00 00 00 00 00 8F [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:20]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 62 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 62 00 09 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5F B5 01 00 0E 04 04 00 86 01 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 E1 [14:46:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5F B5 01 00 0E 04 04 00 86 01 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 [14:46:21]wFMCommunicate OK [14:46:21]SAM_PROTO_GetFieldsCounters done [14:46:21]requested_item shift.num is exist - process it [14:46:21]requested_item shift.opened is exist - process it [14:46:21]req_shift_opened [14:46:21]FM_GetShiftState [14:46:21]SAM_PROTO_GetShiftState [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 13 01 00 [14:46:21]Write to MH i2c: E2 08 00 0A 0A 80 13 01 00 00 00 00 00 91 [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 0E 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 0E 00 0A 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0E [14:46:21]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:46:21]wFMCommunicate OK [14:46:21]SAM_PROTO_GetShiftState done [14:46:21]FM_GetShiftState done [14:46:21]req_shift_opened done [14:46:21]requested_item shift.open_date is exist - process it [14:46:21]req_shift_open_date [14:46:21]req_shift_open_date done [14:46:21]produce_requested_data done [14:46:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111967,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:46:21]process_action_free close_receipt [14:46:21]json_value_free [14:46:21]json_value_free done [14:46:21]process_json_proto returns [14:46:21]Send response to host [14:46:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111967,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:46:21]free response buf [14:46:21]execute_script done [14:46:21]execute_script returns [14:46:21]free content buf [14:46:21]Sock 7.Close socket [14:46:21]Sock 7.Thread stoped [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]accept exits with 9 [14:47:14]New connection [14:47:14]New thread 3066875236 created [14:47:14]Thread 3066731876 joined [14:47:14]Waiting for new connection... [14:47:14] Sock 9.Parse request [14:47:14]Sock 9.Check first char [14:47:14]Sock 9.First char is OK [14:47:14]request: POST /json_proto HTTP/1.0 [14:47:14]Method: POST [14:47:14]URL: /json_proto [14:47:14]Method is POST - this is cgi request [14:47:14]url: /json_proto [14:47:14]query_string will be loaded in cgi processing [14:47:14]execute_cgi json_proto POST (null) [14:47:14]execute_cgi path=json_proto method=POST [14:47:14]POST find Content-Length [14:47:14]Host: 172.17.59.68:8080 [14:47:14]Content-Length: 682 [14:47:14]Content-Type: application/json [14:47:14] [14:47:14]POST finish read [14:47:14]Found Content-Length = 682 [14:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [14:47:14]execute_script... [14:47: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)320615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [14:47:14]POST & json_proto [14:47:14]process_json_proto [14:47:14]json parsed OK: [14:47:14]protocol is kg_v1.0 [14:47:14]action value=close_receipt [14:47:14]process_action close_receipt [14:47:14]cmd_close_receipt [14:47:14]MH_GetDate [14:47:14]Write to MH i2c: F0 00 00 0B 0A 04 [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: F0 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: F0 09 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: F0 09 00 0B 0A 00 74 92 75 66 BC EC 60 65 5B [14:47:14]GetLastDocTimeStamp 1718981179 [14:47:14]current date 1718981236 [14:47:14]FM_GetShiftState [14:47:14]SAM_PROTO_GetShiftState [14:47:14]wFMCommunicate request_size=4 [14:47:14]MH_SAM_APDU [14:47:14]CAPDU: 80 13 01 00 [14:47:14]Write to MH i2c: E2 08 00 0C 0A 80 13 01 00 00 00 00 00 93 [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:14]Read from MH i2c: E2 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 0E 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 0E 00 0C 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 10 [14:47:14]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:47:14]wFMCommunicate OK [14:47:14]SAM_PROTO_GetShiftState done [14:47:14]FM_GetShiftState done [14:47:14]opened in 1718933695 [14:47:14]opened+sec_in_day 1719020095 [14:47:14]quantity*price = 100064 [14:47:14]sum+1 = 100066 [14:47:14]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 136 21.06.2024 14:47 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111968 肖袩袛: 137632874010910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T144716&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111968&fm=137632874010910&tin=02508201610067®Number=0000000000092771&sum=100000 [14:47:15]StoreToDocumentArchive [14:47:15]shift 390 fd 111968 [14:47:15]save to /storage/0390/doc_00111968 [14:47:15]save last doc name /storage/0390/doc_00111968 to /storage/kkm_last_doc_name [14:47:15]save OK [14:47:15]Clear old archive folders... [14:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:15]tlvbuf is B6F45670 [14:47:15]SAM_PROTO_ClearQueue [14:47:15]wFMCommunicate request_size=4 [14:47:15]MH_SAM_APDU [14:47:15]CAPDU: 80 09 00 00 [14:47:15]Write to MH i2c: E2 08 00 19 0A 80 09 00 00 00 00 00 00 95 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:15]Read from MH i2c: E2 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 03 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 03 00 19 0A 00 90 00 97 [14:47:15]RAPDU: 90 00 [14:47:15]wFMCommunicate OK [14:47:15]SAM_PROTO_ClearQueue done [14:47:15]KKMCreateOFDPacket [14:47:15]OFDProtocolAddRootSTLVToBuf [14:47:15]FM_MakeSignedData [14:47:15]FM_MakeSignedData [14:47:15]SAM_PROTO_SignData [14:47:15]wFMCommunicate request_size=4 [14:47:15]MH_SAM_APDU [14:47:15]CAPDU: 80 0D 01 02 [14:47:15]Write to MH i2c: E2 08 00 1A 0A 80 0D 01 02 00 00 00 00 9D [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:15]Read from MH i2c: E2 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 03 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 03 00 1A 0A 00 90 00 98 [14:47:15]RAPDU: 90 00 [14:47:15]wFMCommunicate OK [14:47:15]wFMCommunicate request_size=255 [14:47:15]MH_SAM_APDU [14:47: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 88 00 00 00 F4 03 04 00 74 92 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B5 01 00 35 04 06 00 7D [14:47:15]Write to MH i2c: E2 02 01 1B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 88 00 00 00 F4 03 04 00 74 92 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B5 01 00 35 04 06 00 7D 00 00 24 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:15]Read from MH i2c: E2 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 03 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 03 00 1B 0A 00 90 00 99 [14:47:15]RAPDU: 90 00 [14:47:15]wFMCommunicate OK [14:47:15]wFMCommunicate request_size=10 [14:47:15]MH_SAM_APDU [14:47:15]CAPDU: 80 0D 02 02 05 2D 26 90 99 1E [14:47:15]Write to MH i2c: E2 0D 00 1C 0A 80 0D 02 02 05 00 2D 26 90 99 1E 00 00 44 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:15]Read from MH i2c: E2 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 03 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 03 00 1C 0A 00 90 00 9A [14:47:15]RAPDU: 90 00 [14:47:15]wFMCommunicate OK [14:47:15]wFMCommunicate request_size=4 [14:47:15]MH_SAM_APDU [14:47:15]CAPDU: 80 0D 03 02 [14:47:15]Write to MH i2c: E2 08 00 1D 0A 80 0D 03 02 00 00 00 00 A2 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:15]Read from MH i2c: E2 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 0B 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 0B 00 1D 0A 00 E0 5C A2 B8 59 76 45 B5 90 00 02 [14:47:15]RAPDU: E0 5C A2 B8 59 76 45 B5 90 00 [14:47:15]wFMCommunicate OK [14:47:15]SAM_PROTO_SignData done [14:47:15]FM_MakeSignedData done [14:47:15]CreateOFDProtocolMessage [14:47:15]wFMCommunicate request_size=4 [14:47:15]MH_SAM_APDU [14:47:15]CAPDU: 80 11 00 00 [14:47:15]Write to MH i2c: E2 08 00 1E 0A 80 11 00 00 00 00 00 00 A2 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:15]Read from MH i2c: E2 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 17 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 17 00 1E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F4 [14:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:47:15]wFMCommunicate OK [14:47:15]CreateOFDProtocolMessage done [14:47:15]OFDSenderStorePacket 111968 [14:47:15]StoreOFDPacket docnum=111968 [14:47:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EE BA 07 01 46 98 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 88 00 00 00 F4 03 04 00 74 92 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B5 01 00 35 04 06 00 7D 2D 26 90 99 1E E0 5C A2 B8 59 76 45 B5 [14:47:15]CheckFolder [14:47:15]dirname=/storage/ofd_packets [14:47:15]CheckFolder done [14:47:15]ProducePacketName [14:47:15]name=ofd_packets/00111968 [14:47:15]NVStorageSaveData ofd_packets/00111968 [14:47:15]File name is /storage/ofd_packets/00111968 [14:47:15]Write 301 bytes [14:47:15]NVStorageSaveData done [14:47:15]OFDSenderStorePacket done [14:47:15]KKMCreateOFDPacket done [14:47:15]NVStorageSaveData kkm_last_timestamp [14:47:15]File name is /storage/kkm_last_timestamp [14:47:15]Write 4 bytes [14:47:15]NVStorageSaveData done [14:47:15]OFD Sender: Processing packet 111968 [packets to send 38, broken 37] [14:47:15]ProducePacketName [14:47:15]name=ofd_packets/00111968 [14:47:15]OFD Sender: To server: 嚂鰌G, [14:47:15]CommunicateWithHost lk.salyk.kg:30040 [14:47:15]ConnectInit lk.salyk.kg [14:47:15]ExternCall_PrintAddStr [14:47:15]wPrintStart [14:47:15]Write to MH i2c: 01 00 00 1F 0A 29 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 07 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 07 00 1F 0A 00 00 00 00 00 FF 0F 3E [14:47:15]RasterBufferAndPrint [14:47:15]line 小褔械褌 N : (1)320615 [14:47:15]line 袠袧袧: 02508201610067 [14:47:15]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:47:15]line 袩袪袨袛袗袞袗 [14:47:15]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:47:15]line 孝芯胁邪褉: 2710124130 [14:47:15]line 袗懈-92-袣-5 [14:47:15]line 15.070 * 66.40 [14:47:15]line = 1000.65 [14:47:15]line 袧袛小 12% 袧小袩 1% [14:47:15]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:47:15]line 袨袣袪校袚袥袝袧袠袝: -0.65 [14:47:15]line 袠孝袨袚袨: 1000.00 [14:47:15]line 袙薪械褋械薪芯: 1000.00 [14:47:15]line 小袛袗效袗: 0.00 [14:47:15]line 袧小袩 1% : 8.85 [14:47:15]line 袧袛小 12% : 106.26 [14:47:15]line 袧邪谢懈褔薪褘屑懈: 1000.00 [14:47:15]line 袘械蟹薪邪谢.: 0.00 [14:47:15]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:47:15]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:47:15]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:47:15]line 效械泻 136 21.06.2024 14:47 [14:47:15]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:47:15]line 袟袧袦: 0300000198 [14:47:15]line 袪袧袦: 0000000000092771 [14:47:15]line 袙械褉褋懈褟 袣袣袦: 001 [14:47:15]line 肖袦: 0000000000875083 [14:47:15]line 肖袛: 111968 [14:47:15]line 肖袩袛: 137632874010910 [14:47:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T144716&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111968&fm=137632874010910&tin=02508201610067®Number=0000000000092771&sum=100000 [14:47:16]Connected sock=11 [14:47:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EE BA 07 01 46 98 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 88 00 00 00 F4 03 04 00 74 92 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B5 01 00 35 04 06 00 7D 2D 26 90 99 1E E0 5C A2 B8 59 76 45 B5 [14:47:16]written 0, free lines is 4095 [14:47:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AB E2 47 00 C4 A9 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 30 38 37 35 30 38 33 10 04 04 00 60 B5 01 00 F4 03 04 00 9C 29 75 66 B6 04 01 00 00 8E 42 7F 38 A8 D2 FF EC [14:47:16]CommunicateWithHost err = 0 [14:47:16]CheckOFDResponse [14:47:16]1017 (14) - 77093643461234 [14:47:16]1041 (16) - 0000000000875083 [14:47:16]1040 (4) - 111968 [14:47:16]1012 (4) - 21.06.2024 07:19 [14:47:16]1206 (1) - 0 [14:47:16]OFD Sender: Remove packet 111968 [14:47:16]ProducePacketName [14:47:16]name=ofd_packets/00111968 [14:47:16]NVStorageDeleteData [14:47:16]Write to MH i2c: 01 00 00 4A 0A 54 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 4A 0A 00 00 00 00 00 DD 0C 44 [14:47:16]RasterBufferAndPrint [14:47:16]line [14:47:16]line [14:47:16]line [14:47:16]line [14:47:16]line [14:47:16]written 0, free lines is 3300 [14:47:16]MH_Cut [14:47:16]Write to MH i2c: D1 01 00 51 0A 01 2D [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: D1 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: D1 01 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: D1 01 00 51 0A 00 2C [14:47:16]Write to MH i2c: 01 00 00 52 0A 5C [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]OFD Sender: No OFD packet to send [14:47:17]*** Cut start [14:47:17]*** Partial cut [14:47:17]*** CUTSNS_PIN = 1 [14:47:17]*** CUTSNS_PIN = 0 [14:47:17]*** Brake cut motor [14:47:17]Read from MH i2c: 01 [14:47:17]MH_I2C_Read... [14:47:17]*** Stop cut motor [14:47:17]*** Cut end [14:47:17]Read from MH i2c: 01 07 00 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 07 00 52 0A 00 00 00 00 00 FF 0F 71 [14:47:17]process_action close_receipt done [14:47:17]requested_data is exist [14:47:17]produce_requested_data [14:47:17]requested_item fm.sn is exist - process it [14:47:17]wFMCommunicate request_size=4 [14:47:17]MH_SAM_APDU [14:47:17]CAPDU: 80 11 00 00 [14:47:17]Write to MH i2c: E2 08 00 53 0A 80 11 00 00 00 00 00 00 D7 [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 17 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 17 00 53 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [14:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:47:18]wFMCommunicate OK [14:47:18]requested_item fd.num is exist - process it [14:47:18]SAM_PROTO_GetFieldsCounters [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 13 00 00 [14:47:18]Write to MH i2c: E2 08 00 54 0A 80 13 00 00 00 00 00 00 DA [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 62 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 62 00 54 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 60 B5 01 00 0E 04 04 00 86 01 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 30 [14:47:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 60 B5 01 00 0E 04 04 00 86 01 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 [14:47:18]wFMCommunicate OK [14:47:18]SAM_PROTO_GetFieldsCounters done [14:47:18]requested_item shift.num is exist - process it [14:47:18]requested_item shift.opened is exist - process it [14:47:18]req_shift_opened [14:47:18]FM_GetShiftState [14:47:18]SAM_PROTO_GetShiftState [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 13 01 00 [14:47:18]Write to MH i2c: E2 08 00 55 0A 80 13 01 00 00 00 00 00 DC [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 0E 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 0E 00 55 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 59 [14:47:18]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:47:18]wFMCommunicate OK [14:47:18]SAM_PROTO_GetShiftState done [14:47:18]FM_GetShiftState done [14:47:18]req_shift_opened done [14:47:18]requested_item shift.open_date is exist - process it [14:47:18]req_shift_open_date [14:47:18]req_shift_open_date done [14:47:18]produce_requested_data done [14:47:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111968,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:47:18]process_action_free close_receipt [14:47:18]json_value_free [14:47:18]json_value_free done [14:47:18]process_json_proto returns [14:47:18]Send response to host [14:47:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111968,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:47:18]free response buf [14:47:18]execute_script done [14:47:18]execute_script returns [14:47:18]free content buf [14:47:18]Sock 9.Close socket [14:47:18]Sock 9.Thread stoped [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]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]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: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: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:02]accept exits with 7 [14:54:02]New connection [14:54:02]New thread 3066731876 created [14:54:02]Thread 3066875236 joined [14:54:02]Waiting for new connection... [14:54:02] Sock 7.Parse request [14:54:02]Sock 7.Check first char [14:54:02]Sock 7.First char is OK [14:54:02]request: POST /json_proto HTTP/1.0 [14:54:02]Method: POST [14:54:02]URL: /json_proto [14:54:02]Method is POST - this is cgi request [14:54:02]url: /json_proto [14:54:02]query_string will be loaded in cgi processing [14:54:02]execute_cgi json_proto POST (null) [14:54:02]execute_cgi path=json_proto method=POST [14:54:02]POST find Content-Length [14:54:02]Host: 172.17.59.68:8080 [14:54:02]Content-Length: 677 [14:54:02]Content-Type: application/json [14:54:02] [14:54:02]POST finish read [14:54:02]Found Content-Length = 677 [14:54:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [14:54:02]execute_script... [14:54: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)320616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [14:54:02]POST & json_proto [14:54:02]process_json_proto [14:54:02]json parsed OK: [14:54:02]protocol is kg_v1.0 [14:54:02]action value=close_receipt [14:54:02]process_action close_receipt [14:54:02]cmd_close_receipt [14:54:02]MH_GetDate [14:54:02]Write to MH i2c: F0 00 00 56 0A 4F [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: F0 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: F0 09 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: F0 09 00 56 0A 00 0C 94 75 66 BC EC 60 65 40 [14:54:02]GetLastDocTimeStamp 1718981236 [14:54:02]current date 1718981644 [14:54:02]FM_GetShiftState [14:54:02]SAM_PROTO_GetShiftState [14:54:02]wFMCommunicate request_size=4 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 13 01 00 [14:54:02]Write to MH i2c: E2 08 00 57 0A 80 13 01 00 00 00 00 00 DE [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:02]Read from MH i2c: E2 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 0E 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 0E 00 57 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 5B [14:54:02]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:54:02]wFMCommunicate OK [14:54:02]SAM_PROTO_GetShiftState done [14:54:02]FM_GetShiftState done [14:54:02]opened in 1718933695 [14:54:02]opened+sec_in_day 1719020095 [14:54:02]quantity*price = 50065 [14:54:02]sum+1 = 50067 [14:54:02]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 137 21.06.2024 14:54 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111969 肖袩袛: 99742147819709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T145404&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111969&fm=99742147819709&tin=02508201610067®Number=0000000000092771&sum=50000 [14:54:03]StoreToDocumentArchive [14:54:03]shift 390 fd 111969 [14:54:03]save to /storage/0390/doc_00111969 [14:54:03]save last doc name /storage/0390/doc_00111969 to /storage/kkm_last_doc_name [14:54:03]save OK [14:54:03]Clear old archive folders... [14:54:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:03]tlvbuf is 0046BE30 [14:54:03]SAM_PROTO_ClearQueue [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 09 00 00 [14:54:03]Write to MH i2c: E2 08 00 64 0A 80 09 00 00 00 00 00 00 E0 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:03]Read from MH i2c: E2 03 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 64 0A 00 90 00 E2 [14:54:03]RAPDU: 90 00 [14:54:03]wFMCommunicate OK [14:54:03]SAM_PROTO_ClearQueue done [14:54:03]KKMCreateOFDPacket [14:54:03]OFDProtocolAddRootSTLVToBuf [14:54:03]FM_MakeSignedData [14:54:03]FM_MakeSignedData [14:54:03]SAM_PROTO_SignData [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 0D 01 02 [14:54:03]Write to MH i2c: E2 08 00 65 0A 80 0D 01 02 00 00 00 00 E8 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [14:54:03]RAPDU: 90 00 [14:54:03]wFMCommunicate OK [14:54:03]wFMCommunicate request_size=255 [14:54:03]MH_SAM_APDU [14:54:03]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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 89 00 00 00 F4 03 04 00 0C 94 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B5 01 00 35 04 06 00 5A [14:54:03]Write to MH i2c: E2 02 01 66 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 89 00 00 00 F4 03 04 00 0C 94 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B5 01 00 35 04 06 00 5A 00 00 98 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [14:54:03]RAPDU: 90 00 [14:54:03]wFMCommunicate OK [14:54:03]wFMCommunicate request_size=10 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 0D 02 02 05 B7 07 4A 38 BD [14:54:03]Write to MH i2c: E2 0D 00 67 0A 80 0D 02 02 05 00 B7 07 4A 38 BD 00 00 F2 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:03]Read from MH i2c: E2 03 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [14:54:03]RAPDU: 90 00 [14:54:03]wFMCommunicate OK [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 0D 03 02 [14:54:03]Write to MH i2c: E2 08 00 68 0A 80 0D 03 02 00 00 00 00 ED [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0B 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 0B 00 68 0A 00 E1 E3 93 74 71 F4 65 78 90 00 FB [14:54:03]RAPDU: E1 E3 93 74 71 F4 65 78 90 00 [14:54:03]wFMCommunicate OK [14:54:03]SAM_PROTO_SignData done [14:54:03]FM_MakeSignedData done [14:54:03]CreateOFDProtocolMessage [14:54:03]wFMCommunicate request_size=4 [14:54:03]MH_SAM_APDU [14:54:03]CAPDU: 80 11 00 00 [14:54:03]Write to MH i2c: E2 08 00 69 0A 80 11 00 00 00 00 00 00 ED [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:03]Read from MH i2c: E2 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 17 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: E2 17 00 69 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3F [14:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:54:03]wFMCommunicate OK [14:54:03]CreateOFDProtocolMessage done [14:54:03]OFDSenderStorePacket 111969 [14:54:03]StoreOFDPacket docnum=111969 [14:54:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 27 07 01 1F DB 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 89 00 00 00 F4 03 04 00 0C 94 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B5 01 00 35 04 06 00 5A B7 07 4A 38 BD E1 E3 93 74 71 F4 65 78 [14:54:03]CheckFolder [14:54:03]dirname=/storage/ofd_packets [14:54:03]CheckFolder done [14:54:03]ProducePacketName [14:54:03]name=ofd_packets/00111969 [14:54:03]NVStorageSaveData ofd_packets/00111969 [14:54:03]File name is /storage/ofd_packets/00111969 [14:54:03]Write 301 bytes [14:54:03]NVStorageSaveData done [14:54:03]OFDSenderStorePacket done [14:54:03]KKMCreateOFDPacket done [14:54:03]NVStorageSaveData kkm_last_timestamp [14:54:03]File name is /storage/kkm_last_timestamp [14:54:03]Write 4 bytes [14:54:03]NVStorageSaveData done [14:54:03]ExternCall_PrintAddStr [14:54:03]wPrintStart [14:54:03]Write to MH i2c: 01 00 00 6A 0A 74 [14:54:03]Write i2c OK [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 07 00 [14:54:03]MH_I2C_Read... [14:54:03]Read from MH i2c: 01 07 00 6A 0A 00 00 00 00 00 FF 0F 89 [14:54:03]RasterBufferAndPrint [14:54:03]line 小褔械褌 N : (1)320616 [14:54:03]line 袠袧袧: 02508201610067 [14:54:03]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:54:03]line 袩袪袨袛袗袞袗 [14:54:03]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:54:03]line 孝芯胁邪褉: 2710124130 [14:54:03]line 袗懈-92-袣-5 [14:54:03]line 7.540 * 66.40 [14:54:03]line = 500.66 [14:54:03]line 袧袛小 12% 袧小袩 1% [14:54:03]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:54:03]line 袨袣袪校袚袥袝袧袠袝: -0.66 [14:54:03]line 袠孝袨袚袨: 500.00 [14:54:03]line 袙薪械褋械薪芯: 500.00 [14:54:03]line 小袛袗效袗: 0.00 [14:54:03]line 袧小袩 1% : 4.43 [14:54:03]line 袧袛小 12% : 53.17 [14:54:03]line 袧邪谢懈褔薪褘屑懈: 500.00 [14:54:03]line 袘械蟹薪邪谢.: 0.00 [14:54:03]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:54:03]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:54:03]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:54:03]line 效械泻 137 21.06.2024 14:54 [14:54:03]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:54:03]line 袟袧袦: 0300000198 [14:54:03]line 袪袧袦: 0000000000092771 [14:54:03]line 袙械褉褋懈褟 袣袣袦: 001 [14:54:03]line 肖袦: 0000000000875083 [14:54:03]line 肖袛: 111969 [14:54:03]line 肖袩袛: 99742147819709 [14:54:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T145404&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111969&fm=99742147819709&tin=02508201610067®Number=0000000000092771&sum=50000 [14:54:04]OFD Sender: Processing packet 111969 [packets to send 38, broken 37] [14:54:04]ProducePacketName [14:54:04]name=ofd_packets/00111969 [14:54:04]OFD Sender: To server: 嚂鰌G, [14:54:04]CommunicateWithHost lk.salyk.kg:30040 [14:54:04]ConnectInit lk.salyk.kg [14:54:04]written 0, free lines is 4095 [14:54:04]Connected sock=10 [14:54:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 27 07 01 1F DB 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 89 00 00 00 F4 03 04 00 0C 94 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B5 01 00 35 04 06 00 5A B7 07 4A 38 BD E1 E3 93 74 71 F4 65 78 [14:54:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E1 16 47 00 DC 8F 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 30 38 37 35 30 38 33 10 04 04 00 61 B5 01 00 F4 03 04 00 34 2B 75 66 B6 04 01 00 00 84 1F 22 E9 59 02 C0 F1 [14:54:04]CommunicateWithHost err = 0 [14:54:04]CheckOFDResponse [14:54:04]1017 (14) - 77093643461234 [14:54:04]1041 (16) - 0000000000875083 [14:54:04]1040 (4) - 111969 [14:54:04]1012 (4) - 21.06.2024 07:26 [14:54:04]1206 (1) - 0 [14:54:04]OFD Sender: Remove packet 111969 [14:54:04]ProducePacketName [14:54:04]name=ofd_packets/00111969 [14:54:04]NVStorageDeleteData [14:54:04]Write to MH i2c: 01 00 00 95 0A 9F [14:54:04]Write i2c OK [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: 01 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: 01 07 00 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: 01 07 00 95 0A 00 00 00 00 00 DC 0C 8E [14:54:04]RasterBufferAndPrint [14:54:04]line [14:54:04]line [14:54:04]line [14:54:04]line [14:54:04]line [14:54:04]written 0, free lines is 3298 [14:54:04]MH_Cut [14:54:04]Write to MH i2c: D1 01 00 9C 0A 01 78 [14:54:04]Write i2c OK [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: D1 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: D1 01 00 [14:54:04]MH_I2C_Read... [14:54:04]Read from MH i2c: D1 01 00 9C 0A 00 77 [14:54:04]Write to MH i2c: 01 00 00 9D 0A A7 [14:54:04]Write i2c OK [14:54:04]MH_I2C_Read... [14:54:05]OFD Sender: No OFD packet to send [14:54:05]*** Cut start [14:54:05]*** Partial cut [14:54:05]*** CUTSNS_PIN = 1 [14:54:05]*** CUTSNS_PIN = 0 [14:54:05]*** Brake cut motor [14:54:05]Read from MH i2c: 01 [14:54:05]MH_I2C_Read... [14:54:06]*** Stop cut motor [14:54:06]*** Cut end [14:54:06]Read from MH i2c: 01 07 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: 01 07 00 9D 0A 00 00 00 00 00 FF 0F BC [14:54:06]process_action close_receipt done [14:54:06]requested_data is exist [14:54:06]produce_requested_data [14:54:06]requested_item fm.sn is exist - process it [14:54:06]wFMCommunicate request_size=4 [14:54:06]MH_SAM_APDU [14:54:06]CAPDU: 80 11 00 00 [14:54:06]Write to MH i2c: E2 08 00 9E 0A 80 11 00 00 00 00 00 00 22 [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:06]Read from MH i2c: E2 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 17 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 17 00 9E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [14:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:54:06]wFMCommunicate OK [14:54:06]requested_item fd.num is exist - process it [14:54:06]SAM_PROTO_GetFieldsCounters [14:54:06]wFMCommunicate request_size=4 [14:54:06]MH_SAM_APDU [14:54:06]CAPDU: 80 13 00 00 [14:54:06]Write to MH i2c: E2 08 00 9F 0A 80 13 00 00 00 00 00 00 25 [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:06]Read from MH i2c: E2 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 62 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 62 00 9F 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 61 B5 01 00 0E 04 04 00 86 01 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 7F [14:54:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 61 B5 01 00 0E 04 04 00 86 01 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 [14:54:06]wFMCommunicate OK [14:54:06]SAM_PROTO_GetFieldsCounters done [14:54:06]requested_item shift.num is exist - process it [14:54:06]requested_item shift.opened is exist - process it [14:54:06]req_shift_opened [14:54:06]FM_GetShiftState [14:54:06]SAM_PROTO_GetShiftState [14:54:06]wFMCommunicate request_size=4 [14:54:06]MH_SAM_APDU [14:54:06]CAPDU: 80 13 01 00 [14:54:06]Write to MH i2c: E2 08 00 A0 0A 80 13 01 00 00 00 00 00 27 [14:54:06]Write i2c OK [14:54:06]MH_I2C_Read... [14:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:06]Read from MH i2c: E2 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 0E 00 [14:54:06]MH_I2C_Read... [14:54:06]Read from MH i2c: E2 0E 00 A0 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A4 [14:54:06]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:54:06]wFMCommunicate OK [14:54:06]SAM_PROTO_GetShiftState done [14:54:06]FM_GetShiftState done [14:54:06]req_shift_opened done [14:54:06]requested_item shift.open_date is exist - process it [14:54:06]req_shift_open_date [14:54:06]req_shift_open_date done [14:54:06]produce_requested_data done [14:54:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111969,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:54:06]process_action_free close_receipt [14:54:06]json_value_free [14:54:06]json_value_free done [14:54:06]process_json_proto returns [14:54:06]Send response to host [14:54:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111969,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:54:06]free response buf [14:54:06]execute_script done [14:54:06]execute_script returns [14:54:06]free content buf [14:54:06]Sock 7.Close socket [14:54:06]Sock 7.Thread stoped [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [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:57:55]accept exits with 9 [14:57:55]New connection [14:57:55]New thread 3066875236 created [14:57:55]Thread 3066731876 joined [14:57:55]Waiting for new connection... [14:57:55] Sock 9.Parse request [14:57:55]Sock 9.Check first char [14:57:55]Sock 9.First char is OK [14:57:55]request: POST /json_proto HTTP/1.0 [14:57:55]Method: POST [14:57:55]URL: /json_proto [14:57:55]Method is POST - this is cgi request [14:57:55]url: /json_proto [14:57:55]query_string will be loaded in cgi processing [14:57:55]execute_cgi json_proto POST (null) [14:57:55]execute_cgi path=json_proto method=POST [14:57:55]POST find Content-Length [14:57:55]Host: 172.17.59.68:8080 [14:57:55]Content-Length: 674 [14:57:55]Content-Type: application/json [14:57:55] [14:57:55]POST finish read [14:57:55]Found Content-Length = 674 [14:57:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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" ] } } [14:57:55]execute_script... [14:57: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)320617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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" ] } } [14:57:55]POST & json_proto [14:57:55]process_json_proto [14:57:55]json parsed OK: [14:57:55]protocol is kg_v1.0 [14:57:55]action value=close_receipt [14:57:55]process_action close_receipt [14:57:55]cmd_close_receipt [14:57:55]MH_GetDate [14:57:55]Write to MH i2c: F0 00 00 A1 0A 9A [14:57:55]Write i2c OK [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: F0 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: F0 09 00 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: F0 09 00 A1 0A 00 F6 94 75 66 BC EC 60 65 75 [14:57:55]GetLastDocTimeStamp 1718981644 [14:57:55]current date 1718981878 [14:57:55]FM_GetShiftState [14:57:55]SAM_PROTO_GetShiftState [14:57:55]wFMCommunicate request_size=4 [14:57:55]MH_SAM_APDU [14:57:55]CAPDU: 80 13 01 00 [14:57:55]Write to MH i2c: E2 08 00 A2 0A 80 13 01 00 00 00 00 00 29 [14:57:55]Write i2c OK [14:57:55]MH_I2C_Read... [14:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:55]Read from MH i2c: E2 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: E2 0E 00 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: E2 0E 00 A2 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A6 [14:57:55]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:57:55]wFMCommunicate OK [14:57:55]SAM_PROTO_GetShiftState done [14:57:55]FM_GetShiftState done [14:57:55]opened in 1718933695 [14:57:55]opened+sec_in_day 1719020095 [14:57:55]quantity*price = 50009 [14:57:55]sum+1 = 50010 [14:57:55]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.09 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.11 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 138 21.06.2024 14:57 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111970 肖袩袛: 131369372366420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T145758&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111970&fm=131369372366420&tin=02508201610067®Number=0000000000092771&sum=50000 [14:57:56]StoreToDocumentArchive [14:57:56]shift 390 fd 111970 [14:57:56]save to /storage/0390/doc_00111970 [14:57:56]save last doc name /storage/0390/doc_00111970 to /storage/kkm_last_doc_name [14:57:56]save OK [14:57:56]Clear old archive folders... [14:57:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:57:56]tlvbuf is 0044CB10 [14:57:56]SAM_PROTO_ClearQueue [14:57:56]wFMCommunicate request_size=4 [14:57:56]MH_SAM_APDU [14:57:56]CAPDU: 80 09 00 00 [14:57:56]Write to MH i2c: E2 08 00 AF 0A 80 09 00 00 00 00 00 00 2B [14:57:56]Write i2c OK [14:57:56]MH_I2C_Read... [14:57:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:56]Read from MH i2c: E2 [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: E2 03 00 [14:57:56]MH_I2C_Read... [14:57:56]Read from MH i2c: E2 03 00 AF 0A 00 90 00 2D [14:57:56]RAPDU: 90 00 [14:57:56]wFMCommunicate OK [14:57:56]SAM_PROTO_ClearQueue done [14:57:56]KKMCreateOFDPacket [14:57:56]OFDProtocolAddRootSTLVToBuf [14:57:56]FM_MakeSignedData [14:57:56]FM_MakeSignedData [14:57:56]SAM_PROTO_SignData [14:57:56]wFMCommunicate request_size=4 [14:57:56]MH_SAM_APDU [14:57:56]CAPDU: 80 0D 01 02 [14:57:56]Write to MH i2c: E2 08 00 B0 0A 80 0D 01 02 00 00 00 00 33 [14:57:56]Write i2c OK [14:57:56]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 B0 0A 00 90 00 2E [14:57:57]RAPDU: 90 00 [14:57:57]wFMCommunicate OK [14:57:57]wFMCommunicate request_size=255 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 F6 94 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B5 01 00 35 04 06 00 77 7A D0 C6 [14:57:57]Write to MH i2c: E2 02 01 B1 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 F6 94 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B5 01 00 35 04 06 00 77 7A D0 C6 00 00 F2 [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [14:57:57]RAPDU: 90 00 [14:57:57]wFMCommunicate OK [14:57:57]wFMCommunicate request_size=7 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 0D 02 02 02 36 54 [14:57:57]Write to MH i2c: E2 0A 00 B2 0A 80 0D 02 02 02 00 36 54 00 00 C4 [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 B2 0A 00 90 00 30 [14:57:57]RAPDU: 90 00 [14:57:57]wFMCommunicate OK [14:57:57]wFMCommunicate request_size=4 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 0D 03 02 [14:57:57]Write to MH i2c: E2 08 00 B3 0A 80 0D 03 02 00 00 00 00 38 [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 0B 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 0B 00 B3 0A 00 6A 08 E7 3E C3 0B 6B DF 90 00 E8 [14:57:57]RAPDU: 6A 08 E7 3E C3 0B 6B DF 90 00 [14:57:57]wFMCommunicate OK [14:57:57]SAM_PROTO_SignData done [14:57:57]FM_MakeSignedData done [14:57:57]CreateOFDProtocolMessage [14:57:57]wFMCommunicate request_size=4 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 11 00 00 [14:57:57]Write to MH i2c: E2 08 00 B4 0A 80 11 00 00 00 00 00 00 38 [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 17 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 17 00 B4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8A [14:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:57:57]wFMCommunicate OK [14:57:57]CreateOFDProtocolMessage done [14:57:57]OFDSenderStorePacket 111970 [14:57:57]StoreOFDPacket docnum=111970 [14:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F1 8B 04 01 40 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 F6 94 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B5 01 00 35 04 06 00 77 7A D0 C6 36 54 6A 08 E7 3E C3 0B 6B DF [14:57:57]CheckFolder [14:57:57]dirname=/storage/ofd_packets [14:57:57]CheckFolder done [14:57:57]ProducePacketName [14:57:57]name=ofd_packets/00111970 [14:57:57]NVStorageSaveData ofd_packets/00111970 [14:57:57]File name is /storage/ofd_packets/00111970 [14:57:57]Write 298 bytes [14:57:57]NVStorageSaveData done [14:57:57]OFDSenderStorePacket done [14:57:57]KKMCreateOFDPacket done [14:57:57]NVStorageSaveData kkm_last_timestamp [14:57:57]File name is /storage/kkm_last_timestamp [14:57:57]Write 4 bytes [14:57:57]NVStorageSaveData done [14:57:57]ExternCall_PrintAddStr [14:57:57]wPrintStart [14:57:57]Write to MH i2c: 01 00 00 B5 0A BF [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 B5 0A 00 00 00 00 00 FF 0F D4 [14:57:57]RasterBufferAndPrint [14:57:57]line 小褔械褌 N : (1)320617 [14:57:57]line 袠袧袧: 02508201610067 [14:57:57]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:57:57]line 袩袪袨袛袗袞袗 [14:57:57]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [14:57:57]line 孝芯胁邪褉: 2710194210 [14:57:57]line 袛孝-袣-5 [14:57:57]line 6.860 * 72.90 [14:57:57]line = 500.09 [14:57:57]line 袧袛小 12% 袧小袩 1% [14:57:57]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:57:57]line 袨袣袪校袚袥袝袧袠袝: -0.09 [14:57:57]line 袠孝袨袚袨: 500.00 [14:57:57]line 袙薪械褋械薪芯: 500.00 [14:57:57]line 小袛袗效袗: 0.00 [14:57:57]line 袧小袩 1% : 4.43 [14:57:57]line 袧袛小 12% : 53.11 [14:57:57]line 袧邪谢懈褔薪褘屑懈: 500.00 [14:57:57]line 袘械蟹薪邪谢.: 0.00 [14:57:57]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:57:57]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:57:57]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:57:57]line 效械泻 138 21.06.2024 14:57 [14:57:57]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:57:57]line 袟袧袦: 0300000198 [14:57:57]line 袪袧袦: 0000000000092771 [14:57:57]line 袙械褉褋懈褟 袣袣袦: 001 [14:57:57]line 肖袦: 0000000000875083 [14:57:57]line 肖袛: 111970 [14:57:57]line 肖袩袛: 131369372366420 [14:57:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T145758&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111970&fm=131369372366420&tin=02508201610067®Number=0000000000092771&sum=50000 [14:57:57]OFD Sender: Processing packet 111970 [packets to send 38, broken 37] [14:57:57]ProducePacketName [14:57:57]name=ofd_packets/00111970 [14:57:57]OFD Sender: To server: 嚂鰌G, [14:57:57]CommunicateWithHost lk.salyk.kg:30040 [14:57:57]ConnectInit lk.salyk.kg [14:57:57]written 0, free lines is 4095 [14:57:57]Connected sock=10 [14:57:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F1 8B 04 01 40 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 F6 94 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B5 01 00 35 04 06 00 77 7A D0 C6 36 54 6A 08 E7 3E C3 0B 6B DF [14:57:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 66 3B 47 00 98 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 30 38 37 35 30 38 33 10 04 04 00 62 B5 01 00 F4 03 04 00 1E 2C 75 66 B6 04 01 00 00 E8 13 E6 76 9C 7D 6A 8C [14:57:58]CommunicateWithHost err = 0 [14:57:58]CheckOFDResponse [14:57:58]1017 (14) - 77093643461234 [14:57:58]1041 (16) - 0000000000875083 [14:57:58]1040 (4) - 111970 [14:57:58]1012 (4) - 21.06.2024 07:30 [14:57:58]1206 (1) - 0 [14:57:58]OFD Sender: Remove packet 111970 [14:57:58]ProducePacketName [14:57:58]name=ofd_packets/00111970 [14:57:58]NVStorageDeleteData [14:57:58]Write to MH i2c: 01 00 00 E0 0A EA [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 07 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 07 00 E0 0A 00 00 00 00 00 E0 0C DD [14:57:58]RasterBufferAndPrint [14:57:58]line [14:57:58]line [14:57:58]line [14:57:58]line [14:57:58]line [14:57:58]written 0, free lines is 3302 [14:57:58]MH_Cut [14:57:58]Write to MH i2c: D1 01 00 E7 0A 01 C3 [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: D1 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: D1 01 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: D1 01 00 E7 0A 00 C2 [14:57:58]Write to MH i2c: 01 00 00 E8 0A F2 [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]OFD Sender: No OFD packet to send [14:57:58]*** Cut start [14:57:58]*** Partial cut [14:57:58]*** CUTSNS_PIN = 1 [14:57:59]*** CUTSNS_PIN = 0 [14:57:59]*** Brake cut motor [14:57:59]Read from MH i2c: 01 [14:57:59]MH_I2C_Read... [14:57:59]*** Stop cut motor [14:57:59]*** Cut end [14:57:59]Read from MH i2c: 01 07 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 FF 0F 07 [14:57:59]process_action close_receipt done [14:57:59]requested_data is exist [14:57:59]produce_requested_data [14:57:59]requested_item fm.sn is exist - process it [14:57:59]wFMCommunicate request_size=4 [14:57:59]MH_SAM_APDU [14:57:59]CAPDU: 80 11 00 00 [14:57:59]Write to MH i2c: E2 08 00 E9 0A 80 11 00 00 00 00 00 00 6D [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:59]Read from MH i2c: E2 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 17 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 17 00 E9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BF [14:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:57:59]wFMCommunicate OK [14:57:59]requested_item fd.num is exist - process it [14:57:59]SAM_PROTO_GetFieldsCounters [14:57:59]wFMCommunicate request_size=4 [14:57:59]MH_SAM_APDU [14:57:59]CAPDU: 80 13 00 00 [14:57:59]Write to MH i2c: E2 08 00 EA 0A 80 13 00 00 00 00 00 00 70 [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:59]Read from MH i2c: E2 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 62 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 62 00 EA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 62 B5 01 00 0E 04 04 00 86 01 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 CE [14:57:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 62 B5 01 00 0E 04 04 00 86 01 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 [14:57:59]wFMCommunicate OK [14:57:59]SAM_PROTO_GetFieldsCounters done [14:57:59]requested_item shift.num is exist - process it [14:57:59]requested_item shift.opened is exist - process it [14:57:59]req_shift_opened [14:57:59]FM_GetShiftState [14:57:59]SAM_PROTO_GetShiftState [14:57:59]wFMCommunicate request_size=4 [14:57:59]MH_SAM_APDU [14:57:59]CAPDU: 80 13 01 00 [14:57:59]Write to MH i2c: E2 08 00 EB 0A 80 13 01 00 00 00 00 00 72 [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:59]Read from MH i2c: E2 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 0E 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 0E 00 EB 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 EF [14:57:59]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:57:59]wFMCommunicate OK [14:57:59]SAM_PROTO_GetShiftState done [14:57:59]FM_GetShiftState done [14:57:59]req_shift_opened done [14:57:59]requested_item shift.open_date is exist - process it [14:57:59]req_shift_open_date [14:57:59]req_shift_open_date done [14:57:59]produce_requested_data done [14:57:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111970,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:57:59]process_action_free close_receipt [14:57:59]json_value_free [14:57:59]json_value_free done [14:57:59]process_json_proto returns [14:57:59]Send response to host [14:57:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111970,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:57:59]free response buf [14:57:59]execute_script done [14:57:59]execute_script returns [14:57:59]free content buf [14:57:59]Sock 9.Close socket [14:57:59]Sock 9.Thread stoped [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:30]accept exits with 7 [14:59:30]New connection [14:59:30]New thread 3066731876 created [14:59:30]Thread 3066875236 joined [14:59:30]Waiting for new connection... [14:59:30] Sock 7.Parse request [14:59:30]Sock 7.Check first char [14:59:30]Sock 7.First char is OK [14:59:30]request: POST /json_proto HTTP/1.0 [14:59:30]Method: POST [14:59:30]URL: /json_proto [14:59:30]Method is POST - this is cgi request [14:59:30]url: /json_proto [14:59:30]query_string will be loaded in cgi processing [14:59:30]execute_cgi json_proto POST (null) [14:59:30]execute_cgi path=json_proto method=POST [14:59:30]POST find Content-Length [14:59:30]Host: 172.17.59.68:8080 [14:59:30]Content-Length: 677 [14:59:30]Content-Type: application/json [14:59:30] [14:59:30]POST finish read [14:59:30]Found Content-Length = 677 [14:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [14:59:30]execute_script... [14:59: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)320618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [14:59:30]POST & json_proto [14:59:30]process_json_proto [14:59:30]json parsed OK: [14:59:30]protocol is kg_v1.0 [14:59:30]action value=close_receipt [14:59:30]process_action close_receipt [14:59:30]cmd_close_receipt [14:59:30]MH_GetDate [14:59:30]Write to MH i2c: F0 00 00 EC 0A E5 [14:59:30]Write i2c OK [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: F0 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: F0 09 00 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: F0 09 00 EC 0A 00 54 95 75 66 BC EC 60 65 1F [14:59:30]GetLastDocTimeStamp 1718981878 [14:59:30]current date 1718981972 [14:59:30]FM_GetShiftState [14:59:30]SAM_PROTO_GetShiftState [14:59:30]wFMCommunicate request_size=4 [14:59:30]MH_SAM_APDU [14:59:30]CAPDU: 80 13 01 00 [14:59:30]Write to MH i2c: E2 08 00 ED 0A 80 13 01 00 00 00 00 00 74 [14:59:30]Write i2c OK [14:59:30]MH_I2C_Read... [14:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:30]Read from MH i2c: E2 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: E2 0E 00 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: E2 0E 00 ED 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F1 [14:59:30]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:59:30]wFMCommunicate OK [14:59:30]SAM_PROTO_GetShiftState done [14:59:30]FM_GetShiftState done [14:59:30]opened in 1718933695 [14:59:30]opened+sec_in_day 1719020095 [14:59:30]quantity*price = 40039 [14:59:30]sum+1 = 40040 [14:59:30]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.39 袠孝袨袚袨: 400.00 袙薪械褋械薪芯: 400.00 小袛袗效袗: 0.00 袧小袩 1% : 3.54 袧袛小 12% : 42.52 袧邪谢懈褔薪褘屑懈: 400.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 139 21.06.2024 14:59 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111971 肖袩袛: 260961221890612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T145932&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111971&fm=260961221890612&tin=02508201610067®Number=0000000000092771&sum=40000 [14:59:31]StoreToDocumentArchive [14:59:31]shift 390 fd 111971 [14:59:31]save to /storage/0390/doc_00111971 [14:59:31]save last doc name /storage/0390/doc_00111971 to /storage/kkm_last_doc_name [14:59:31]save OK [14:59:31]Clear old archive folders... [14:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:31]tlvbuf is 0046CD30 [14:59:31]SAM_PROTO_ClearQueue [14:59:31]wFMCommunicate request_size=4 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 09 00 00 [14:59:31]Write to MH i2c: E2 08 00 FA 0A 80 09 00 00 00 00 00 00 76 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 FA 0A 00 90 00 78 [14:59:31]RAPDU: 90 00 [14:59:31]wFMCommunicate OK [14:59:31]SAM_PROTO_ClearQueue done [14:59:31]KKMCreateOFDPacket [14:59:31]OFDProtocolAddRootSTLVToBuf [14:59:31]FM_MakeSignedData [14:59:31]FM_MakeSignedData [14:59:31]SAM_PROTO_SignData [14:59:31]wFMCommunicate request_size=4 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 0D 01 02 [14:59:31]Write to MH i2c: E2 08 00 FB 0A 80 0D 01 02 00 00 00 00 7E [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [14:59:31]RAPDU: 90 00 [14:59:31]wFMCommunicate OK [14:59:31]wFMCommunicate request_size=255 [14:59:31]MH_SAM_APDU [14:59:31]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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 8B 00 00 00 F4 03 04 00 54 95 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B5 01 00 35 04 06 00 ED [14:59:31]Write to MH i2c: E2 02 01 FC 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 8B 00 00 00 F4 03 04 00 54 95 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B5 01 00 35 04 06 00 ED 00 00 DC [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [14:59:31]RAPDU: 90 00 [14:59:31]wFMCommunicate OK [14:59:31]wFMCommunicate request_size=10 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 0D 02 02 05 57 C4 EE 52 34 [14:59:31]Write to MH i2c: E2 0D 00 FD 0A 80 0D 02 02 05 00 57 C4 EE 52 34 00 00 1A [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 FD 0A 00 90 00 7B [14:59:31]RAPDU: 90 00 [14:59:31]wFMCommunicate OK [14:59:31]wFMCommunicate request_size=4 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 0D 03 02 [14:59:31]Write to MH i2c: E2 08 00 FE 0A 80 0D 03 02 00 00 00 00 83 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 0B 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 0B 00 FE 0A 00 EA 2E E3 6D DF 01 CC 15 90 00 AD [14:59:31]RAPDU: EA 2E E3 6D DF 01 CC 15 90 00 [14:59:31]wFMCommunicate OK [14:59:31]SAM_PROTO_SignData done [14:59:31]FM_MakeSignedData done [14:59:31]CreateOFDProtocolMessage [14:59:31]wFMCommunicate request_size=4 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 11 00 00 [14:59:31]Write to MH i2c: E2 08 00 FF 0A 80 11 00 00 00 00 00 00 83 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 17 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 17 00 FF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D5 [14:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:59:31]wFMCommunicate OK [14:59:31]CreateOFDProtocolMessage done [14:59:31]OFDSenderStorePacket 111971 [14:59:31]StoreOFDPacket docnum=111971 [14:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 16 07 01 63 99 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 8B 00 00 00 F4 03 04 00 54 95 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B5 01 00 35 04 06 00 ED 57 C4 EE 52 34 EA 2E E3 6D DF 01 CC 15 [14:59:31]CheckFolder [14:59:31]dirname=/storage/ofd_packets [14:59:31]CheckFolder done [14:59:31]ProducePacketName [14:59:31]name=ofd_packets/00111971 [14:59:31]NVStorageSaveData ofd_packets/00111971 [14:59:31]File name is /storage/ofd_packets/00111971 [14:59:31]Write 301 bytes [14:59:31]NVStorageSaveData done [14:59:31]OFDSenderStorePacket done [14:59:31]KKMCreateOFDPacket done [14:59:31]NVStorageSaveData kkm_last_timestamp [14:59:31]File name is /storage/kkm_last_timestamp [14:59:32]Write 4 bytes [14:59:32]NVStorageSaveData done [14:59:32]ExternCall_PrintAddStr [14:59:32]wPrintStart [14:59:32]Write to MH i2c: 01 00 00 00 0B 0B [14:59:32]OFD Sender: Processing packet 111971 [packets to send 38, broken 37] [14:59:32]ProducePacketName [14:59:32]name=ofd_packets/00111971 [14:59:32]OFD Sender: To server: 嚂鰌G, [14:59:32]CommunicateWithHost lk.salyk.kg:30040 [14:59:32]ConnectInit lk.salyk.kg [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: 01 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: 01 07 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: 01 07 00 00 0B 00 00 00 00 00 FF 0F 20 [14:59:32]RasterBufferAndPrint [14:59:32]line 小褔械褌 N : (1)320618 [14:59:32]line 袠袧袧: 02508201610067 [14:59:32]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [14:59:32]line 袩袪袨袛袗袞袗 [14:59:32]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [14:59:32]line 孝芯胁邪褉: 2710124130 [14:59:32]line 袗懈-92-袣-5 [14:59:32]line 6.030 * 66.40 [14:59:32]line = 400.39 [14:59:32]line 袧袛小 12% 袧小袩 1% [14:59:32]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [14:59:32]line 袨袣袪校袚袥袝袧袠袝: -0.39 [14:59:32]line 袠孝袨袚袨: 400.00 [14:59:32]line 袙薪械褋械薪芯: 400.00 [14:59:32]line 小袛袗效袗: 0.00 [14:59:32]line 袧小袩 1% : 3.54 [14:59:32]line 袧袛小 12% : 42.52 [14:59:32]line 袧邪谢懈褔薪褘屑懈: 400.00 [14:59:32]line 袘械蟹薪邪谢.: 0.00 [14:59:32]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [14:59:32]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [14:59:32]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [14:59:32]line 效械泻 139 21.06.2024 14:59 [14:59:32]line 小屑械薪邪: 390 肖肖袛: 1.0 [14:59:32]line 袟袧袦: 0300000198 [14:59:32]line 袪袧袦: 0000000000092771 [14:59:32]line 袙械褉褋懈褟 袣袣袦: 001 [14:59:32]line 肖袦: 0000000000875083 [14:59:32]line 肖袛: 111971 [14:59:32]line 肖袩袛: 260961221890612 [14:59:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T145932&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111971&fm=260961221890612&tin=02508201610067®Number=0000000000092771&sum=40000 [14:59:32]Connected sock=11 [14:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 16 07 01 63 99 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 8B 00 00 00 F4 03 04 00 54 95 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B5 01 00 35 04 06 00 ED 57 C4 EE 52 34 EA 2E E3 6D DF 01 CC 15 [14:59:32]written 0, free lines is 4095 [14:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AC A2 47 00 7F 3C 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 30 38 37 35 30 38 33 10 04 04 00 63 B5 01 00 F4 03 04 00 7C 2C 75 66 B6 04 01 00 00 F1 49 FC 3E A1 4B F4 3F [14:59:32]CommunicateWithHost err = 0 [14:59:32]CheckOFDResponse [14:59:32]1017 (14) - 77093643461234 [14:59:32]1041 (16) - 0000000000875083 [14:59:32]1040 (4) - 111971 [14:59:32]1012 (4) - 21.06.2024 07:32 [14:59:32]1206 (1) - 0 [14:59:32]OFD Sender: Remove packet 111971 [14:59:32]ProducePacketName [14:59:32]name=ofd_packets/00111971 [14:59:32]NVStorageDeleteData [14:59:32]Write to MH i2c: 01 00 00 2B 0B 36 [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: 01 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: 01 07 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: 01 07 00 2B 0B 00 00 00 00 00 D8 0C 21 [14:59:32]RasterBufferAndPrint [14:59:32]line [14:59:32]line [14:59:32]line [14:59:32]line [14:59:32]line [14:59:32]written 0, free lines is 3295 [14:59:32]MH_Cut [14:59:32]Write to MH i2c: D1 01 00 32 0B 01 0F [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: D1 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: D1 01 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: D1 01 00 32 0B 00 0E [14:59:32]Write to MH i2c: 01 00 00 33 0B 3E [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:33]OFD Sender: No OFD packet to send [14:59:33]*** Cut start [14:59:33]*** Partial cut [14:59:33]*** CUTSNS_PIN = 1 [14:59:33]*** CUTSNS_PIN = 0 [14:59:33]*** Brake cut motor [14:59:34]Read from MH i2c: 01 [14:59:34]MH_I2C_Read... [14:59:34]*** Stop cut motor [14:59:34]*** Cut end [14:59:34]Read from MH i2c: 01 07 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: 01 07 00 33 0B 00 00 00 00 00 FF 0F 53 [14:59:34]process_action close_receipt done [14:59:34]requested_data is exist [14:59:34]produce_requested_data [14:59:34]requested_item fm.sn is exist - process it [14:59:34]wFMCommunicate request_size=4 [14:59:34]MH_SAM_APDU [14:59:34]CAPDU: 80 11 00 00 [14:59:34]Write to MH i2c: E2 08 00 34 0B 80 11 00 00 00 00 00 00 B9 [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:34]Read from MH i2c: E2 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 17 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 17 00 34 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0B [14:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:59:34]wFMCommunicate OK [14:59:34]requested_item fd.num is exist - process it [14:59:34]SAM_PROTO_GetFieldsCounters [14:59:34]wFMCommunicate request_size=4 [14:59:34]MH_SAM_APDU [14:59:34]CAPDU: 80 13 00 00 [14:59:34]Write to MH i2c: E2 08 00 35 0B 80 13 00 00 00 00 00 00 BC [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:34]Read from MH i2c: E2 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 62 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 62 00 35 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 63 B5 01 00 0E 04 04 00 86 01 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 1E [14:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 63 B5 01 00 0E 04 04 00 86 01 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 [14:59:34]wFMCommunicate OK [14:59:34]SAM_PROTO_GetFieldsCounters done [14:59:34]requested_item shift.num is exist - process it [14:59:34]requested_item shift.opened is exist - process it [14:59:34]req_shift_opened [14:59:34]FM_GetShiftState [14:59:34]SAM_PROTO_GetShiftState [14:59:34]wFMCommunicate request_size=4 [14:59:34]MH_SAM_APDU [14:59:34]CAPDU: 80 13 01 00 [14:59:34]Write to MH i2c: E2 08 00 36 0B 80 13 01 00 00 00 00 00 BE [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:34]Read from MH i2c: E2 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 0E 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 0E 00 36 0B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 3B [14:59:34]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [14:59:34]wFMCommunicate OK [14:59:34]SAM_PROTO_GetShiftState done [14:59:34]FM_GetShiftState done [14:59:34]req_shift_opened done [14:59:34]requested_item shift.open_date is exist - process it [14:59:34]req_shift_open_date [14:59:34]req_shift_open_date done [14:59:34]produce_requested_data done [14:59:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111971,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [14:59:34]process_action_free close_receipt [14:59:34]json_value_free [14:59:34]json_value_free done [14:59:34]process_json_proto returns [14:59:34]Send response to host [14:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111971,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [14:59:34]free response buf [14:59:34]execute_script done [14:59:34]execute_script returns [14:59:34]free content buf [14:59:34]Sock 7.Close socket [14:59:34]Sock 7.Thread stoped [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:32]accept exits with 9 [15:00:32]New connection [15:00:32]New thread 3066875236 created [15:00:32]Thread 3066731876 joined [15:00:32]Waiting for new connection... [15:00:32] Sock 9.Parse request [15:00:32]Sock 9.Check first char [15:00:32]Sock 9.First char is OK [15:00:32]request: POST /json_proto HTTP/1.0 [15:00:32]Method: POST [15:00:32]URL: /json_proto [15:00:32]Method is POST - this is cgi request [15:00:32]url: /json_proto [15:00:32]query_string will be loaded in cgi processing [15:00:32]execute_cgi json_proto POST (null) [15:00:32]execute_cgi path=json_proto method=POST [15:00:32]POST find Content-Length [15:00:32]Host: 172.17.59.68:8080 [15:00:32]Content-Length: 805 [15:00:32]Content-Type: application/json [15:00:32] [15:00:32]POST finish read [15:00:32]Found Content-Length = 805 [15:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:32]execute_script... [15:00:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:32]POST & json_proto [15:00:32]process_json_proto [15:00:32]json parsed OK: [15:00:32]protocol is kg_v1.0 [15:00:32]action value=close_receipt [15:00:32]process_action close_receipt [15:00:32]cmd_close_receipt [15:00:32]MH_GetDate [15:00:32]Write to MH i2c: F0 00 00 37 0B 31 [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: F0 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: F0 09 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: F0 09 00 37 0B 00 92 95 75 66 BC EC 60 65 A9 [15:00:32]GetLastDocTimeStamp 1718981972 [15:00:32]current date 1718982034 [15:00:32]FM_GetShiftState [15:00:32]SAM_PROTO_GetShiftState [15:00:32]wFMCommunicate request_size=4 [15:00:32]MH_SAM_APDU [15:00:32]CAPDU: 80 13 01 00 [15:00:32]Write to MH i2c: E2 08 00 38 0B 80 13 01 00 00 00 00 00 C0 [15:00:32]Write i2c OK [15:00:32]MH_I2C_Read... [15:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:32]Read from MH i2c: E2 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 0E 00 [15:00:32]MH_I2C_Read... [15:00:32]Read from MH i2c: E2 0E 00 38 0B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 3D [15:00:32]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:00:32]wFMCommunicate OK [15:00:32]SAM_PROTO_GetShiftState done [15:00:32]FM_GetShiftState done [15:00:32]opened in 1718933695 [15:00:32]opened+sec_in_day 1719020095 [15:00:32]quantity*price = 30012 [15:00:32]sum+1 = 30014 [15:00:32]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 300.13 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 300.13 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 140 21.06.2024 15:00 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 111972 肖袩袛: 156532980195598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T150034&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111972&fm=156532980195598&tin=02508201610067®Number=0000000000092771&sum=30013 [15:00:33]StoreToDocumentArchive [15:00:33]shift 390 fd 111972 [15:00:33]save to /storage/0390/doc_00111972 [15:00:33]save last doc name /storage/0390/doc_00111972 to /storage/kkm_last_doc_name [15:00:33]save OK [15:00:33]Clear old archive folders... [15:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:33]tlvbuf is 0033DBF0 [15:00:33]SAM_PROTO_ClearQueue [15:00:33]wFMCommunicate request_size=4 [15:00:33]MH_SAM_APDU [15:00:33]CAPDU: 80 09 00 00 [15:00:33]Write to MH i2c: E2 08 00 45 0B 80 09 00 00 00 00 00 00 C2 [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:33]Read from MH i2c: E2 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 03 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [15:00:33]RAPDU: 90 00 [15:00:33]wFMCommunicate OK [15:00:33]SAM_PROTO_ClearQueue done [15:00:33]KKMCreateOFDPacket [15:00:33]OFDProtocolAddRootSTLVToBuf [15:00:33]FM_MakeSignedData [15:00:33]FM_MakeSignedData [15:00:33]SAM_PROTO_SignData [15:00:33]wFMCommunicate request_size=4 [15:00:33]MH_SAM_APDU [15:00:33]CAPDU: 80 0D 01 02 [15:00:33]Write to MH i2c: E2 08 00 46 0B 80 0D 01 02 00 00 00 00 CA [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:33]Read from MH i2c: E2 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 03 00 [15:00:33]MH_I2C_Read... [15:00:33]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [15:00:33]RAPDU: 90 00 [15:00:33]wFMCommunicate OK [15:00:33]wFMCommunicate request_size=255 [15:00:33]MH_SAM_APDU [15:00: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 92 95 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B5 01 00 35 04 06 00 8E [15:00:33]Write to MH i2c: E2 02 01 47 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 92 95 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B5 01 00 35 04 06 00 8E 00 00 F3 [15:00:33]Write i2c OK [15:00:33]MH_I2C_Read... [15:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:34]Read from MH i2c: E2 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 03 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 03 00 47 0B 00 90 00 C6 [15:00:34]RAPDU: 90 00 [15:00:34]wFMCommunicate OK [15:00:34]wFMCommunicate request_size=10 [15:00:34]MH_SAM_APDU [15:00:34]CAPDU: 80 0D 02 02 05 5D AC AE 21 0E [15:00:34]Write to MH i2c: E2 0D 00 48 0B 80 0D 02 02 05 00 5D AC AE 21 0E 00 00 BD [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:34]Read from MH i2c: E2 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 03 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 03 00 48 0B 00 90 00 C7 [15:00:34]RAPDU: 90 00 [15:00:34]wFMCommunicate OK [15:00:34]wFMCommunicate request_size=4 [15:00:34]MH_SAM_APDU [15:00:34]CAPDU: 80 0D 03 02 [15:00:34]Write to MH i2c: E2 08 00 49 0B 80 0D 03 02 00 00 00 00 CF [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:34]Read from MH i2c: E2 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 0B 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 0B 00 49 0B 00 33 45 59 C5 33 6A 83 E3 90 00 69 [15:00:34]RAPDU: 33 45 59 C5 33 6A 83 E3 90 00 [15:00:34]wFMCommunicate OK [15:00:34]SAM_PROTO_SignData done [15:00:34]FM_MakeSignedData done [15:00:34]CreateOFDProtocolMessage [15:00:34]wFMCommunicate request_size=4 [15:00:34]MH_SAM_APDU [15:00:34]CAPDU: 80 11 00 00 [15:00:34]Write to MH i2c: E2 08 00 4A 0B 80 11 00 00 00 00 00 00 CF [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:34]Read from MH i2c: E2 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 17 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 17 00 4A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 21 [15:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:00:34]wFMCommunicate OK [15:00:34]CreateOFDProtocolMessage done [15:00:34]OFDSenderStorePacket 111972 [15:00:34]StoreOFDPacket docnum=111972 [15:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 20 59 07 01 AC F8 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 92 95 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B5 01 00 35 04 06 00 8E 5D AC AE 21 0E 33 45 59 C5 33 6A 83 E3 [15:00:34]CheckFolder [15:00:34]dirname=/storage/ofd_packets [15:00:34]CheckFolder done [15:00:34]ProducePacketName [15:00:34]name=ofd_packets/00111972 [15:00:34]NVStorageSaveData ofd_packets/00111972 [15:00:34]File name is /storage/ofd_packets/00111972 [15:00:34]Write 301 bytes [15:00:34]NVStorageSaveData done [15:00:34]OFDSenderStorePacket done [15:00:34]KKMCreateOFDPacket done [15:00:34]NVStorageSaveData kkm_last_timestamp [15:00:34]File name is /storage/kkm_last_timestamp [15:00:34]Write 4 bytes [15:00:34]NVStorageSaveData done [15:00:34]ExternCall_PrintAddStr [15:00:34]wPrintStart [15:00:34]Write to MH i2c: 01 00 00 4B 0B 56 [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: 01 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: 01 07 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: 01 07 00 4B 0B 00 00 00 00 00 FF 0F 6B [15:00:34]RasterBufferAndPrint [15:00:34]line 小褔械褌 N : (1)320619 [15:00:34]line 袠袧袧: 02508201610067 [15:00:34]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:00:34]line 袩袪袨袛袗袞袗 [15:00:34]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:00:34]line 孝芯胁邪褉: 2710124130 [15:00:34]line 袗懈-92-袣-5 [15:00:34]line 4.520 * 66.40 [15:00:34]line = 300.13 [15:00:34]line 袧袛小 12% 袧小袩 1% [15:00:34]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:00:34]line 袠孝袨袚袨: 300.13 [15:00:34]line 袧小袩 1% : 2.66 [15:00:34]line 袧袛小 12% : 31.87 [15:00:34]line 袧邪谢懈褔薪褘屑懈: 0.00 [15:00:34]line 袘械蟹薪邪谢.: 300.13 [15:00:34]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:00:34]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:00:34]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:00:34]line 效械泻 140 21.06.2024 15:00 [15:00:34]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:00:34]line 袟袧袦: 0300000198 [15:00:34]line 袪袧袦: 0000000000092771 [15:00:34]line 袙械褉褋懈褟 袣袣袦: 001 [15:00:34]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [15:00:34]line 肖袦: 0000000000875083 [15:00:34]line 肖袛: 111972 [15:00:34]line 肖袩袛: 156532980195598 [15:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T150034&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111972&fm=156532980195598&tin=02508201610067®Number=0000000000092771&sum=30013 [15:00:34]written 0, free lines is 4095 [15:00:34]OFD Sender: Processing packet 111972 [packets to send 38, broken 37] [15:00:34]ProducePacketName [15:00:34]name=ofd_packets/00111972 [15:00:34]OFD Sender: To server: 嚂鰌G, [15:00:34]CommunicateWithHost lk.salyk.kg:30040 [15:00:34]ConnectInit lk.salyk.kg [15:00:34]Connected sock=10 [15:00:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 20 59 07 01 AC F8 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 92 95 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B5 01 00 35 04 06 00 8E 5D AC AE 21 0E 33 45 59 C5 33 6A 83 E3 [15:00:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5F C4 47 00 CE 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B5 01 00 F4 03 04 00 BB 2C 75 66 B6 04 01 00 00 AB CA 41 71 26 5E 88 85 [15:00:34]CommunicateWithHost err = 0 [15:00:34]CheckOFDResponse [15:00:34]1017 (14) - 77093643461234 [15:00:34]1041 (16) - 0000000000875083 [15:00:34]1040 (4) - 111972 [15:00:34]1012 (4) - 21.06.2024 07:33 [15:00:34]1206 (1) - 0 [15:00:34]OFD Sender: Remove packet 111972 [15:00:34]ProducePacketName [15:00:34]name=ofd_packets/00111972 [15:00:34]NVStorageDeleteData [15:00:34]Write to MH i2c: 01 00 00 75 0B 80 [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: 01 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: 01 07 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: 01 07 00 75 0B 00 00 00 00 00 F5 0C 88 [15:00:34]RasterBufferAndPrint [15:00:34]line [15:00:34]line [15:00:34]line [15:00:34]line [15:00:34]line [15:00:34]written 0, free lines is 3324 [15:00:34]MH_Cut [15:00:34]Write to MH i2c: D1 01 00 7C 0B 01 59 [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: D1 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: D1 01 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: D1 01 00 7C 0B 00 58 [15:00:34]Write to MH i2c: 01 00 00 7D 0B 88 [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:35]OFD Sender: No OFD packet to send [15:00:35]*** Cut start [15:00:35]*** Partial cut [15:00:35]*** CUTSNS_PIN = 1 [15:00:35]*** CUTSNS_PIN = 0 [15:00:35]*** Brake cut motor [15:00:36]Read from MH i2c: 01 [15:00:36]MH_I2C_Read... [15:00:36]*** Stop cut motor [15:00:36]*** Cut end [15:00:36]Read from MH i2c: 01 07 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: 01 07 00 7D 0B 00 00 00 00 00 FF 0F 9D [15:00:36]process_action close_receipt done [15:00:36]requested_data is exist [15:00:36]produce_requested_data [15:00:36]requested_item fm.sn is exist - process it [15:00:36]wFMCommunicate request_size=4 [15:00:36]MH_SAM_APDU [15:00:36]CAPDU: 80 11 00 00 [15:00:36]Write to MH i2c: E2 08 00 7E 0B 80 11 00 00 00 00 00 00 03 [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:36]Read from MH i2c: E2 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 17 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 17 00 7E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 55 [15:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:00:36]wFMCommunicate OK [15:00:36]requested_item fd.num is exist - process it [15:00:36]SAM_PROTO_GetFieldsCounters [15:00:36]wFMCommunicate request_size=4 [15:00:36]MH_SAM_APDU [15:00:36]CAPDU: 80 13 00 00 [15:00:36]Write to MH i2c: E2 08 00 7F 0B 80 13 00 00 00 00 00 00 06 [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:36]Read from MH i2c: E2 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 62 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 62 00 7F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 64 B5 01 00 0E 04 04 00 86 01 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 6C [15:00:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 64 B5 01 00 0E 04 04 00 86 01 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 [15:00:36]wFMCommunicate OK [15:00:36]SAM_PROTO_GetFieldsCounters done [15:00:36]requested_item shift.num is exist - process it [15:00:36]requested_item shift.opened is exist - process it [15:00:36]req_shift_opened [15:00:36]FM_GetShiftState [15:00:36]SAM_PROTO_GetShiftState [15:00:36]wFMCommunicate request_size=4 [15:00:36]MH_SAM_APDU [15:00:36]CAPDU: 80 13 01 00 [15:00:36]Write to MH i2c: E2 08 00 80 0B 80 13 01 00 00 00 00 00 08 [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:36]Read from MH i2c: E2 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 0E 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: E2 0E 00 80 0B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 85 [15:00:36]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:00:36]wFMCommunicate OK [15:00:36]SAM_PROTO_GetShiftState done [15:00:36]FM_GetShiftState done [15:00:36]req_shift_opened done [15:00:36]requested_item shift.open_date is exist - process it [15:00:36]req_shift_open_date [15:00:36]req_shift_open_date done [15:00:36]produce_requested_data done [15:00:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111972,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:00:36]process_action_free close_receipt [15:00:36]json_value_free [15:00:36]json_value_free done [15:00:36]process_json_proto returns [15:00:36]Send response to host [15:00:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111972,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:00:36]free response buf [15:00:36]execute_script done [15:00:36]execute_script returns [15:00:36]free content buf [15:00:36]Sock 9.Close socket [15:00:36]Sock 9.Thread stoped [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:07]accept exits with 7 [15:01:07]New connection [15:01:07]New thread 3066731876 created [15:01:07]Thread 3066875236 joined [15:01:07]Waiting for new connection... [15:01:07] Sock 7.Parse request [15:01:07]Sock 7.Check first char [15:01:07]Sock 7.First char is OK [15:01:07]request: POST /json_proto HTTP/1.0 [15:01:07]Method: POST [15:01:07]URL: /json_proto [15:01:07]Method is POST - this is cgi request [15:01:07]url: /json_proto [15:01:07]query_string will be loaded in cgi processing [15:01:07]execute_cgi json_proto POST (null) [15:01:07]execute_cgi path=json_proto method=POST [15:01:07]POST find Content-Length [15:01:07]Host: 172.17.59.68:8080 [15:01:07]Content-Length: 677 [15:01:07]Content-Type: application/json [15:01:07] [15:01:07]POST finish read [15:01:07]Found Content-Length = 677 [15:01:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:07]execute_script... [15:01: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)320620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:07]POST & json_proto [15:01:07]process_json_proto [15:01:07]json parsed OK: [15:01:07]protocol is kg_v1.0 [15:01:07]action value=close_receipt [15:01:07]process_action close_receipt [15:01:07]cmd_close_receipt [15:01:07]MH_GetDate [15:01:07]Write to MH i2c: F0 00 00 81 0B 7B [15:01:07]Write i2c OK [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: F0 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: F0 09 00 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: F0 09 00 81 0B 00 B5 95 75 66 BC EC 60 65 16 [15:01:07]GetLastDocTimeStamp 1718982034 [15:01:07]current date 1718982069 [15:01:07]FM_GetShiftState [15:01:07]SAM_PROTO_GetShiftState [15:01:07]wFMCommunicate request_size=4 [15:01:07]MH_SAM_APDU [15:01:07]CAPDU: 80 13 01 00 [15:01:07]Write to MH i2c: E2 08 00 82 0B 80 13 01 00 00 00 00 00 0A [15:01:07]Write i2c OK [15:01:07]MH_I2C_Read... [15:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:07]Read from MH i2c: E2 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: E2 0E 00 [15:01:07]MH_I2C_Read... [15:01:07]Read from MH i2c: E2 0E 00 82 0B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 87 [15:01:07]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:01:07]wFMCommunicate OK [15:01:07]SAM_PROTO_GetShiftState done [15:01:07]FM_GetShiftState done [15:01:07]opened in 1718933695 [15:01:07]opened+sec_in_day 1719020095 [15:01:07]quantity*price = 20052 [15:01:07]sum+1 = 20054 [15:01:07]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.53 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 141 21.06.2024 15:01 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111973 肖袩袛: 85479065064293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T150109&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111973&fm=85479065064293&tin=02508201610067®Number=0000000000092771&sum=20000 [15:01:08]StoreToDocumentArchive [15:01:08]shift 390 fd 111973 [15:01:08]save to /storage/0390/doc_00111973 [15:01:08]save last doc name /storage/0390/doc_00111973 to /storage/kkm_last_doc_name [15:01:08]save OK [15:01:08]Clear old archive folders... [15:01:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:08]tlvbuf is 0034ECB0 [15:01:08]SAM_PROTO_ClearQueue [15:01:08]wFMCommunicate request_size=4 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 09 00 00 [15:01:08]Write to MH i2c: E2 08 00 8F 0B 80 09 00 00 00 00 00 00 0C [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:08]Read from MH i2c: E2 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 03 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [15:01:08]RAPDU: 90 00 [15:01:08]wFMCommunicate OK [15:01:08]SAM_PROTO_ClearQueue done [15:01:08]KKMCreateOFDPacket [15:01:08]OFDProtocolAddRootSTLVToBuf [15:01:08]FM_MakeSignedData [15:01:08]FM_MakeSignedData [15:01:08]SAM_PROTO_SignData [15:01:08]wFMCommunicate request_size=4 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 0D 01 02 [15:01:08]Write to MH i2c: E2 08 00 90 0B 80 0D 01 02 00 00 00 00 14 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:08]Read from MH i2c: E2 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 03 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [15:01:08]RAPDU: 90 00 [15:01:08]wFMCommunicate OK [15:01:08]wFMCommunicate request_size=255 [15:01:08]MH_SAM_APDU [15:01: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 B5 95 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B5 01 00 35 04 06 00 4D [15:01:08]Write to MH i2c: E2 02 01 91 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 B5 95 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B5 01 00 35 04 06 00 4D 00 00 28 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:08]Read from MH i2c: E2 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 03 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 03 00 91 0B 00 90 00 10 [15:01:08]RAPDU: 90 00 [15:01:08]wFMCommunicate OK [15:01:08]wFMCommunicate request_size=10 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 0D 02 02 05 BE 25 4F 13 65 [15:01:08]Write to MH i2c: E2 0D 00 92 0B 80 0D 02 02 05 00 BE 25 4F 13 65 00 00 CB [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:08]Read from MH i2c: E2 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 03 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 03 00 92 0B 00 90 00 11 [15:01:08]RAPDU: 90 00 [15:01:08]wFMCommunicate OK [15:01:08]wFMCommunicate request_size=4 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 0D 03 02 [15:01:08]Write to MH i2c: E2 08 00 93 0B 80 0D 03 02 00 00 00 00 19 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:08]Read from MH i2c: E2 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 0B 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 0B 00 93 0B 00 24 47 FB 58 BB 7A 75 87 90 00 09 [15:01:08]RAPDU: 24 47 FB 58 BB 7A 75 87 90 00 [15:01:08]wFMCommunicate OK [15:01:08]SAM_PROTO_SignData done [15:01:08]FM_MakeSignedData done [15:01:08]CreateOFDProtocolMessage [15:01:08]wFMCommunicate request_size=4 [15:01:08]MH_SAM_APDU [15:01:08]CAPDU: 80 11 00 00 [15:01:08]Write to MH i2c: E2 08 00 94 0B 80 11 00 00 00 00 00 00 19 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:08]Read from MH i2c: E2 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 17 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: E2 17 00 94 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6B [15:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:01:08]wFMCommunicate OK [15:01:08]CreateOFDProtocolMessage done [15:01:08]OFDSenderStorePacket 111973 [15:01:08]StoreOFDPacket docnum=111973 [15:01:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 95 6E 07 01 28 1E 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 B5 95 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B5 01 00 35 04 06 00 4D BE 25 4F 13 65 24 47 FB 58 BB 7A 75 87 [15:01:08]CheckFolder [15:01:08]dirname=/storage/ofd_packets [15:01:08]CheckFolder done [15:01:08]ProducePacketName [15:01:08]name=ofd_packets/00111973 [15:01:08]NVStorageSaveData ofd_packets/00111973 [15:01:08]File name is /storage/ofd_packets/00111973 [15:01:08]Write 301 bytes [15:01:08]NVStorageSaveData done [15:01:08]OFDSenderStorePacket done [15:01:08]KKMCreateOFDPacket done [15:01:08]NVStorageSaveData kkm_last_timestamp [15:01:08]File name is /storage/kkm_last_timestamp [15:01:08]Write 4 bytes [15:01:08]NVStorageSaveData done [15:01:08]ExternCall_PrintAddStr [15:01:08]wPrintStart [15:01:08]Write to MH i2c: 01 00 00 95 0B A0 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: 01 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: 01 07 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: 01 07 00 95 0B 00 00 00 00 00 FF 0F B5 [15:01:08]RasterBufferAndPrint [15:01:08]line 小褔械褌 N : (1)320620 [15:01:08]line 袠袧袧: 02508201610067 [15:01:08]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:01:08]line 袩袪袨袛袗袞袗 [15:01:08]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:01:08]line 孝芯胁邪褉: 2710124130 [15:01:08]line 袗懈-92-袣-5 [15:01:08]line 3.020 * 66.40 [15:01:08]line = 200.53 [15:01:08]line 袧袛小 12% 袧小袩 1% [15:01:08]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:01:08]line 袨袣袪校袚袥袝袧袠袝: -0.53 [15:01:08]line 袠孝袨袚袨: 200.00 [15:01:08]line 袙薪械褋械薪芯: 200.00 [15:01:08]line 小袛袗效袗: 0.00 [15:01:08]line 袧小袩 1% : 1.77 [15:01:08]line 袧袛小 12% : 21.29 [15:01:08]line 袧邪谢懈褔薪褘屑懈: 200.00 [15:01:08]line 袘械蟹薪邪谢.: 0.00 [15:01:08]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:01:08]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:01:08]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:01:08]line 效械泻 141 21.06.2024 15:01 [15:01:08]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:01:08]line 袟袧袦: 0300000198 [15:01:08]line 袪袧袦: 0000000000092771 [15:01:08]line 袙械褉褋懈褟 袣袣袦: 001 [15:01:08]line 肖袦: 0000000000875083 [15:01:08]line 肖袛: 111973 [15:01:08]line 肖袩袛: 85479065064293 [15:01:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T150109&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111973&fm=85479065064293&tin=02508201610067®Number=0000000000092771&sum=20000 [15:01:09]OFD Sender: Processing packet 111973 [packets to send 38, broken 37] [15:01:09]ProducePacketName [15:01:09]name=ofd_packets/00111973 [15:01:09]OFD Sender: To server: 嚂鰌G, [15:01:09]CommunicateWithHost lk.salyk.kg:30040 [15:01:09]ConnectInit lk.salyk.kg [15:01:09]written 0, free lines is 4095 [15:01:09]Connected sock=10 [15:01:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 95 6E 07 01 28 1E 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 B5 95 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B5 01 00 35 04 06 00 4D BE 25 4F 13 65 24 47 FB 58 BB 7A 75 87 [15:01:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 34 C0 47 00 A5 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B5 01 00 F4 03 04 00 DD 2C 75 66 B6 04 01 00 00 19 CB 55 3F EC E7 2F A5 [15:01:09]CommunicateWithHost err = 0 [15:01:09]CheckOFDResponse [15:01:09]1017 (14) - 77093643461234 [15:01:09]1041 (16) - 0000000000875083 [15:01:09]1040 (4) - 111973 [15:01:09]1012 (4) - 21.06.2024 07:33 [15:01:09]1206 (1) - 0 [15:01:09]OFD Sender: Remove packet 111973 [15:01:09]ProducePacketName [15:01:09]name=ofd_packets/00111973 [15:01:09]NVStorageDeleteData [15:01:09]Write to MH i2c: 01 00 00 C0 0B CB [15:01:09]Write i2c OK [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: 01 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: 01 07 00 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: 01 07 00 C0 0B 00 00 00 00 00 E4 0C C2 [15:01:09]RasterBufferAndPrint [15:01:09]line [15:01:09]line [15:01:09]line [15:01:09]line [15:01:09]line [15:01:09]written 0, free lines is 3306 [15:01:09]MH_Cut [15:01:09]Write to MH i2c: D1 01 00 C7 0B 01 A4 [15:01:09]Write i2c OK [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: D1 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: D1 01 00 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: D1 01 00 C7 0B 00 A3 [15:01:09]Write to MH i2c: 01 00 00 C8 0B D3 [15:01:09]Write i2c OK [15:01:09]MH_I2C_Read... [15:01:09]OFD Sender: No OFD packet to send [15:01:10]*** Cut start [15:01:10]*** Partial cut [15:01:10]*** CUTSNS_PIN = 1 [15:01:10]*** CUTSNS_PIN = 0 [15:01:10]*** Brake cut motor [15:01:10]Read from MH i2c: 01 [15:01:10]MH_I2C_Read... [15:01:10]*** Stop cut motor [15:01:10]*** Cut end [15:01:10]Read from MH i2c: 01 07 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: 01 07 00 C8 0B 00 00 00 00 00 FF 0F E8 [15:01:10]process_action close_receipt done [15:01:10]requested_data is exist [15:01:10]produce_requested_data [15:01:10]requested_item fm.sn is exist - process it [15:01:10]wFMCommunicate request_size=4 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 11 00 00 [15:01:10]Write to MH i2c: E2 08 00 C9 0B 80 11 00 00 00 00 00 00 4E [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 17 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 17 00 C9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A0 [15:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:01:10]wFMCommunicate OK [15:01:10]requested_item fd.num is exist - process it [15:01:10]SAM_PROTO_GetFieldsCounters [15:01:10]wFMCommunicate request_size=4 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 13 00 00 [15:01:10]Write to MH i2c: E2 08 00 CA 0B 80 13 00 00 00 00 00 00 51 [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:11]Read from MH i2c: E2 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: E2 62 00 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: E2 62 00 CA 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 65 B5 01 00 0E 04 04 00 86 01 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 BB [15:01:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 65 B5 01 00 0E 04 04 00 86 01 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 [15:01:11]wFMCommunicate OK [15:01:11]SAM_PROTO_GetFieldsCounters done [15:01:11]requested_item shift.num is exist - process it [15:01:11]requested_item shift.opened is exist - process it [15:01:11]req_shift_opened [15:01:11]FM_GetShiftState [15:01:11]SAM_PROTO_GetShiftState [15:01:11]wFMCommunicate request_size=4 [15:01:11]MH_SAM_APDU [15:01:11]CAPDU: 80 13 01 00 [15:01:11]Write to MH i2c: E2 08 00 CB 0B 80 13 01 00 00 00 00 00 53 [15:01:11]Write i2c OK [15:01:11]MH_I2C_Read... [15:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:11]Read from MH i2c: E2 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: E2 0E 00 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: E2 0E 00 CB 0B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D0 [15:01:11]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:01:11]wFMCommunicate OK [15:01:11]SAM_PROTO_GetShiftState done [15:01:11]FM_GetShiftState done [15:01:11]req_shift_opened done [15:01:11]requested_item shift.open_date is exist - process it [15:01:11]req_shift_open_date [15:01:11]req_shift_open_date done [15:01:11]produce_requested_data done [15:01:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111973,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:01:11]process_action_free close_receipt [15:01:11]json_value_free [15:01:11]json_value_free done [15:01:11]process_json_proto returns [15:01:11]Send response to host [15:01:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111973,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:01:11]free response buf [15:01:11]execute_script done [15:01:11]execute_script returns [15:01:11]free content buf [15:01:11]Sock 7.Close socket [15:01:11]Sock 7.Thread stoped [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]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:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:12]accept exits with 9 [15:10:12]New connection [15:10:12]New thread 3066875236 created [15:10:12]Thread 3066731876 joined [15:10:12]Waiting for new connection... [15:10:12] Sock 9.Parse request [15:10:12]Sock 9.Check first char [15:10:12]Sock 9.First char is OK [15:10:12]request: POST /json_proto HTTP/1.0 [15:10:12]Method: POST [15:10:12]URL: /json_proto [15:10:12]Method is POST - this is cgi request [15:10:12]url: /json_proto [15:10:12]query_string will be loaded in cgi processing [15:10:12]execute_cgi json_proto POST (null) [15:10:12]execute_cgi path=json_proto method=POST [15:10:12]POST find Content-Length [15:10:12]Host: 172.17.59.68:8080 [15:10:12]Content-Length: 805 [15:10:12]Content-Type: application/json [15:10:12] [15:10:12]POST finish read [15:10:12]Found Content-Length = 805 [15:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:12]execute_script... [15: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)320621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:12]POST & json_proto [15:10:12]process_json_proto [15:10:12]json parsed OK: [15:10:12]protocol is kg_v1.0 [15:10:12]action value=close_receipt [15:10:12]process_action close_receipt [15:10:12]cmd_close_receipt [15:10:12]MH_GetDate [15:10:12]Write to MH i2c: F0 00 00 CC 0B C6 [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: F0 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: F0 09 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: F0 09 00 CC 0B 00 D6 97 75 66 BC EC 60 65 84 [15:10:12]GetLastDocTimeStamp 1718982069 [15:10:12]current date 1718982614 [15:10:12]FM_GetShiftState [15:10:12]SAM_PROTO_GetShiftState [15:10:12]wFMCommunicate request_size=4 [15:10:12]MH_SAM_APDU [15:10:12]CAPDU: 80 13 01 00 [15:10:12]Write to MH i2c: E2 08 00 CD 0B 80 13 01 00 00 00 00 00 55 [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:12]Read from MH i2c: E2 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 0E 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 0E 00 CD 0B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D2 [15:10:12]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:10:12]wFMCommunicate OK [15:10:12]SAM_PROTO_GetShiftState done [15:10:12]FM_GetShiftState done [15:10:12]opened in 1718933695 [15:10:12]opened+sec_in_day 1719020095 [15:10:12]quantity*price = 50065 [15:10:12]sum+1 = 50067 [15:10:12]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 500.66 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 500.66 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 142 21.06.2024 15:10 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 111974 肖袩袛: 238325543401641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T151014&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111974&fm=238325543401641&tin=02508201610067®Number=0000000000092771&sum=50066 [15:10:13]StoreToDocumentArchive [15:10:13]shift 390 fd 111974 [15:10:13]save to /storage/0390/doc_00111974 [15:10:13]save last doc name /storage/0390/doc_00111974 to /storage/kkm_last_doc_name [15:10:13]save OK [15:10:13]Clear old archive folders... [15:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:13]tlvbuf is 0036F790 [15:10:13]SAM_PROTO_ClearQueue [15:10:13]wFMCommunicate request_size=4 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 09 00 00 [15:10:13]Write to MH i2c: E2 08 00 DA 0B 80 09 00 00 00 00 00 00 57 [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [15:10:13]RAPDU: 90 00 [15:10:13]wFMCommunicate OK [15:10:13]SAM_PROTO_ClearQueue done [15:10:13]KKMCreateOFDPacket [15:10:13]OFDProtocolAddRootSTLVToBuf [15:10:13]FM_MakeSignedData [15:10:13]FM_MakeSignedData [15:10:13]SAM_PROTO_SignData [15:10:13]wFMCommunicate request_size=4 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 0D 01 02 [15:10:13]Write to MH i2c: E2 08 00 DB 0B 80 0D 01 02 00 00 00 00 5F [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 DB 0B 00 90 00 5A [15:10:13]RAPDU: 90 00 [15:10:13]wFMCommunicate OK [15:10:13]wFMCommunicate request_size=255 [15:10:13]MH_SAM_APDU [15: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 D6 97 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B5 01 00 35 04 06 00 D8 [15:10:13]Write to MH i2c: E2 02 01 DC 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 D6 97 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B5 01 00 35 04 06 00 D8 00 00 E8 [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 DC 0B 00 90 00 5B [15:10:13]RAPDU: 90 00 [15:10:13]wFMCommunicate OK [15:10:13]wFMCommunicate request_size=10 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 0D 02 02 05 C1 7D 5A F8 A9 [15:10:13]Write to MH i2c: E2 0D 00 DD 0B 80 0D 02 02 05 00 C1 7D 5A F8 A9 00 00 A5 [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 03 00 DD 0B 00 90 00 5C [15:10:13]RAPDU: 90 00 [15:10:13]wFMCommunicate OK [15:10:13]wFMCommunicate request_size=4 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 0D 03 02 [15:10:13]Write to MH i2c: E2 08 00 DE 0B 80 0D 03 02 00 00 00 00 64 [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 0B 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 0B 00 DE 0B 00 01 23 59 7A AB BD B6 30 90 00 AA [15:10:13]RAPDU: 01 23 59 7A AB BD B6 30 90 00 [15:10:13]wFMCommunicate OK [15:10:13]SAM_PROTO_SignData done [15:10:13]FM_MakeSignedData done [15:10:13]CreateOFDProtocolMessage [15:10:13]wFMCommunicate request_size=4 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 11 00 00 [15:10:13]Write to MH i2c: E2 08 00 DF 0B 80 11 00 00 00 00 00 00 64 [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 17 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 17 00 DF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B6 [15:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:10:13]wFMCommunicate OK [15:10:13]CreateOFDProtocolMessage done [15:10:13]OFDSenderStorePacket 111974 [15:10:13]StoreOFDPacket docnum=111974 [15:10:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AF D6 07 01 BD 53 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 D6 97 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B5 01 00 35 04 06 00 D8 C1 7D 5A F8 A9 01 23 59 7A AB BD B6 30 [15:10:13]CheckFolder [15:10:13]dirname=/storage/ofd_packets [15:10:13]CheckFolder done [15:10:13]ProducePacketName [15:10:13]name=ofd_packets/00111974 [15:10:13]NVStorageSaveData ofd_packets/00111974 [15:10:13]File name is /storage/ofd_packets/00111974 [15:10:13]Write 301 bytes [15:10:13]NVStorageSaveData done [15:10:13]OFDSenderStorePacket done [15:10:13]KKMCreateOFDPacket done [15:10:13]NVStorageSaveData kkm_last_timestamp [15:10:13]File name is /storage/kkm_last_timestamp [15:10:13]Write 4 bytes [15:10:13]NVStorageSaveData done [15:10:13]ExternCall_PrintAddStr [15:10:13]wPrintStart [15:10:13]Write to MH i2c: 01 00 00 E0 0B EB [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: 01 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: 01 07 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: 01 07 00 E0 0B 00 00 00 00 00 FF 0F 00 [15:10:13]RasterBufferAndPrint [15:10:13]line 小褔械褌 N : (1)320621 [15:10:13]line 袠袧袧: 02508201610067 [15:10:13]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:10:13]line 袩袪袨袛袗袞袗 [15:10:13]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:10:13]line 孝芯胁邪褉: 2710124130 [15:10:13]line 袗懈-92-袣-5 [15:10:13]line 7.540 * 66.40 [15:10:13]line = 500.66 [15:10:13]line 袧袛小 12% 袧小袩 1% [15:10:13]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:10:13]line 袠孝袨袚袨: 500.66 [15:10:13]line 袧小袩 1% : 4.43 [15:10:13]line 袧袛小 12% : 53.17 [15:10:13]line 袧邪谢懈褔薪褘屑懈: 0.00 [15:10:13]line 袘械蟹薪邪谢.: 500.66 [15:10:13]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:10:13]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:10:13]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:10:13]line 效械泻 142 21.06.2024 15:10 [15:10:13]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:10:13]line 袟袧袦: 0300000198 [15:10:13]line 袪袧袦: 0000000000092771 [15:10:13]line 袙械褉褋懈褟 袣袣袦: 001 [15:10:13]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [15:10:13]line 肖袦: 0000000000875083 [15:10:13]line 肖袛: 111974 [15:10:13]line 肖袩袛: 238325543401641 [15:10:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T151014&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111974&fm=238325543401641&tin=02508201610067®Number=0000000000092771&sum=50066 [15:10:14]written 0, free lines is 4095 [15:10:14]OFD Sender: Processing packet 111974 [packets to send 38, broken 37] [15:10:14]ProducePacketName [15:10:14]name=ofd_packets/00111974 [15:10:14]OFD Sender: To server: 嚂鰌G, [15:10:14]CommunicateWithHost lk.salyk.kg:30040 [15:10:14]ConnectInit lk.salyk.kg [15:10:14]Connected sock=10 [15:10:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AF D6 07 01 BD 53 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 D6 97 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B5 01 00 35 04 06 00 D8 C1 7D 5A F8 A9 01 23 59 7A AB BD B6 30 [15:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2C CC 47 00 11 21 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 30 38 37 35 30 38 33 10 04 04 00 66 B5 01 00 F4 03 04 00 FE 2E 75 66 B6 04 01 00 00 11 04 26 0E D4 48 65 E1 [15:10:14]CommunicateWithHost err = 0 [15:10:14]CheckOFDResponse [15:10:14]1017 (14) - 77093643461234 [15:10:14]1041 (16) - 0000000000875083 [15:10:14]1040 (4) - 111974 [15:10:14]1012 (4) - 21.06.2024 07:42 [15:10:14]1206 (1) - 0 [15:10:14]OFD Sender: Remove packet 111974 [15:10:14]ProducePacketName [15:10:14]name=ofd_packets/00111974 [15:10:14]NVStorageDeleteData [15:10:14]Write to MH i2c: 01 00 00 0A 0C 16 [15:10:14]Write i2c OK [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: 01 [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: 01 07 00 [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: 01 07 00 0A 0C 00 00 00 00 00 F6 0C 1F [15:10:14]RasterBufferAndPrint [15:10:14]line [15:10:14]line [15:10:14]line [15:10:14]line [15:10:14]line [15:10:14]written 0, free lines is 3324 [15:10:14]MH_Cut [15:10:14]Write to MH i2c: D1 01 00 11 0C 01 EF [15:10:14]Write i2c OK [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: D1 [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: D1 01 00 [15:10:14]MH_I2C_Read... [15:10:14]Read from MH i2c: D1 01 00 11 0C 00 EE [15:10:14]Write to MH i2c: 01 00 00 12 0C 1E [15:10:14]Write i2c OK [15:10:14]MH_I2C_Read... [15:10:15]OFD Sender: No OFD packet to send [15:10:15]*** Cut start [15:10:15]*** Partial cut [15:10:15]*** CUTSNS_PIN = 1 [15:10:15]*** CUTSNS_PIN = 0 [15:10:15]*** Brake cut motor [15:10:15]Read from MH i2c: 01 [15:10:15]MH_I2C_Read... [15:10:15]*** Stop cut motor [15:10:16]*** Cut end [15:10:16]Read from MH i2c: 01 07 00 [15:10:16]MH_I2C_Read... [15:10:16]Read from MH i2c: 01 07 00 12 0C 00 00 00 00 00 FF 0F 33 [15:10:16]process_action close_receipt done [15:10:16]requested_data is exist [15:10:16]produce_requested_data [15:10:16]requested_item fm.sn is exist - process it [15:10:16]wFMCommunicate request_size=4 [15:10:16]MH_SAM_APDU [15:10:16]CAPDU: 80 11 00 00 [15:10:16]Write to MH i2c: E2 08 00 13 0C 80 11 00 00 00 00 00 00 99 [15:10:16]Write i2c OK [15:10:16]MH_I2C_Read... [15:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:16]Read from MH i2c: E2 [15:10:16]MH_I2C_Read... [15:10:16]Read from MH i2c: E2 17 00 [15:10:16]MH_I2C_Read... [15:10:16]Read from MH i2c: E2 17 00 13 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EB [15:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:10:16]wFMCommunicate OK [15:10:16]requested_item fd.num is exist - process it [15:10:16]SAM_PROTO_GetFieldsCounters [15:10:16]wFMCommunicate request_size=4 [15:10:16]MH_SAM_APDU [15:10:16]CAPDU: 80 13 00 00 [15:10:16]Write to MH i2c: E2 08 00 14 0C 80 13 00 00 00 00 00 00 9C [15:10:16]Write i2c OK [15:10:16]MH_I2C_Read... [15:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:16]Read from MH i2c: E2 [15:10:16]MH_I2C_Read... [15:10:16]Read from MH i2c: E2 62 00 [15:10:16]MH_I2C_Read... [15:10:16]Read from MH i2c: E2 62 00 14 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 66 B5 01 00 0E 04 04 00 86 01 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 0A [15:10:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 66 B5 01 00 0E 04 04 00 86 01 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 [15:10:16]wFMCommunicate OK [15:10:16]SAM_PROTO_GetFieldsCounters done [15:10:16]requested_item shift.num is exist - process it [15:10:16]requested_item shift.opened is exist - process it [15:10:16]req_shift_opened [15:10:16]FM_GetShiftState [15:10:16]SAM_PROTO_GetShiftState [15:10:16]wFMCommunicate request_size=4 [15:10:16]MH_SAM_APDU [15:10:16]CAPDU: 80 13 01 00 [15:10:16]Write to MH i2c: E2 08 00 15 0C 80 13 01 00 00 00 00 00 9E [15:10:16]Write i2c OK [15:10:16]MH_I2C_Read... [15:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:16]Read from MH i2c: E2 [15:10:16]MH_I2C_Read... [15:10:16]Read from MH i2c: E2 0E 00 [15:10:16]MH_I2C_Read... [15:10:16]Read from MH i2c: E2 0E 00 15 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1B [15:10:16]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:10:16]wFMCommunicate OK [15:10:16]SAM_PROTO_GetShiftState done [15:10:16]FM_GetShiftState done [15:10:16]req_shift_opened done [15:10:16]requested_item shift.open_date is exist - process it [15:10:16]req_shift_open_date [15:10:16]req_shift_open_date done [15:10:16]produce_requested_data done [15:10:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111974,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:10:16]process_action_free close_receipt [15:10:16]json_value_free [15:10:16]json_value_free done [15:10:16]process_json_proto returns [15:10:16]Send response to host [15:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111974,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:10:16]free response buf [15:10:16]execute_script done [15:10:16]execute_script returns [15:10:16]free content buf [15:10:16]Sock 9.Close socket [15:10:16]Sock 9.Thread stoped [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:10:57]accept exits with 7 [15:10:57]New connection [15:10:57]New thread 3066731876 created [15:10:57]Thread 3066875236 joined [15:10:57]Waiting for new connection... [15:10:57] Sock 7.Parse request [15:10:57]Sock 7.Check first char [15:10:57]Sock 7.First char is OK [15:10:57]request: POST /json_proto HTTP/1.0 [15:10:57]Method: POST [15:10:57]URL: /json_proto [15:10:57]Method is POST - this is cgi request [15:10:57]url: /json_proto [15:10:57]query_string will be loaded in cgi processing [15:10:57]execute_cgi json_proto POST (null) [15:10:57]execute_cgi path=json_proto method=POST [15:10:57]POST find Content-Length [15:10:57]Host: 172.17.59.68:8080 [15:10:57]Content-Length: 677 [15:10:57]Content-Type: application/json [15:10:57] [15:10:57]POST finish read [15:10:57]Found Content-Length = 677 [15:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:57]execute_script... [15:10: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)320622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:57]POST & json_proto [15:10:57]process_json_proto [15:10:57]json parsed OK: [15:10:57]protocol is kg_v1.0 [15:10:57]action value=close_receipt [15:10:57]process_action close_receipt [15:10:57]cmd_close_receipt [15:10:57]MH_GetDate [15:10:57]Write to MH i2c: F0 00 00 16 0C 11 [15:10:57]Write i2c OK [15:10:57]MH_I2C_Read... [15:10:57]Read from MH i2c: F0 [15:10:57]MH_I2C_Read... [15:10:57]Read from MH i2c: F0 09 00 [15:10:57]MH_I2C_Read... [15:10:57]Read from MH i2c: F0 09 00 16 0C 00 04 98 75 66 BC EC 60 65 FE [15:10:57]GetLastDocTimeStamp 1718982614 [15:10:57]current date 1718982660 [15:10:57]FM_GetShiftState [15:10:57]SAM_PROTO_GetShiftState [15:10:57]wFMCommunicate request_size=4 [15:10:57]MH_SAM_APDU [15:10:57]CAPDU: 80 13 01 00 [15:10:57]Write to MH i2c: E2 08 00 17 0C 80 13 01 00 00 00 00 00 A0 [15:10:57]Write i2c OK [15:10:57]MH_I2C_Read... [15:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:57]Read from MH i2c: E2 [15:10:57]MH_I2C_Read... [15:10:57]Read from MH i2c: E2 0E 00 [15:10:57]MH_I2C_Read... [15:10:57]Read from MH i2c: E2 0E 00 17 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1D [15:10:57]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:10:57]wFMCommunicate OK [15:10:57]SAM_PROTO_GetShiftState done [15:10:57]FM_GetShiftState done [15:10:57]opened in 1718933695 [15:10:57]opened+sec_in_day 1719020095 [15:10:57]quantity*price = 20052 [15:10:57]sum+1 = 20054 [15:10:57]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.53 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 143 21.06.2024 15:11 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111975 肖袩袛: 83813115347057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T151100&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111975&fm=83813115347057&tin=02508201610067®Number=0000000000092771&sum=20000 [15:10:58]StoreToDocumentArchive [15:10:58]shift 390 fd 111975 [15:10:58]save to /storage/0390/doc_00111975 [15:10:58]save last doc name /storage/0390/doc_00111975 to /storage/kkm_last_doc_name [15:10:58]save OK [15:10:58]Clear old archive folders... [15:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:58]tlvbuf is 0031DB90 [15:10:58]SAM_PROTO_ClearQueue [15:10:58]wFMCommunicate request_size=4 [15:10:58]MH_SAM_APDU [15:10:58]CAPDU: 80 09 00 00 [15:10:58]Write to MH i2c: E2 08 00 24 0C 80 09 00 00 00 00 00 00 A2 [15:10:58]Write i2c OK [15:10:58]MH_I2C_Read... [15:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:58]Read from MH i2c: E2 [15:10:58]MH_I2C_Read... [15:10:58]Read from MH i2c: E2 03 00 [15:10:58]MH_I2C_Read... [15:10:58]Read from MH i2c: E2 03 00 24 0C 00 90 00 A4 [15:10:58]RAPDU: 90 00 [15:10:58]wFMCommunicate OK [15:10:58]SAM_PROTO_ClearQueue done [15:10:58]KKMCreateOFDPacket [15:10:58]OFDProtocolAddRootSTLVToBuf [15:10:58]FM_MakeSignedData [15:10:58]FM_MakeSignedData [15:10:58]SAM_PROTO_SignData [15:10:58]wFMCommunicate request_size=4 [15:10:58]MH_SAM_APDU [15:10:58]CAPDU: 80 0D 01 02 [15:10:58]Write to MH i2c: E2 08 00 25 0C 80 0D 01 02 00 00 00 00 AA [15:10:58]Write i2c OK [15:10:58]MH_I2C_Read... [15:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:59]Read from MH i2c: E2 [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: E2 03 00 [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: E2 03 00 25 0C 00 90 00 A5 [15:10:59]RAPDU: 90 00 [15:10:59]wFMCommunicate OK [15:10:59]wFMCommunicate request_size=255 [15:10:59]MH_SAM_APDU [15:10:59]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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 04 98 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B5 01 00 35 04 06 00 4C [15:10:59]Write to MH i2c: E2 02 01 26 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 04 98 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B5 01 00 35 04 06 00 4C 00 00 13 [15:10:59]Write i2c OK [15:10:59]MH_I2C_Read... [15:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:59]Read from MH i2c: E2 [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: E2 03 00 [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: E2 03 00 26 0C 00 90 00 A6 [15:10:59]RAPDU: 90 00 [15:10:59]wFMCommunicate OK [15:10:59]wFMCommunicate request_size=10 [15:10:59]MH_SAM_APDU [15:10:59]CAPDU: 80 0D 02 02 05 3A 42 F7 C0 71 [15:10:59]Write to MH i2c: E2 0D 00 27 0C 80 0D 02 02 05 00 3A 42 F7 C0 71 00 00 5B [15:10:59]Write i2c OK [15:10:59]MH_I2C_Read... [15:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:59]Read from MH i2c: E2 [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: E2 03 00 [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: E2 03 00 27 0C 00 90 00 A7 [15:10:59]RAPDU: 90 00 [15:10:59]wFMCommunicate OK [15:10:59]wFMCommunicate request_size=4 [15:10:59]MH_SAM_APDU [15:10:59]CAPDU: 80 0D 03 02 [15:10:59]Write to MH i2c: E2 08 00 28 0C 80 0D 03 02 00 00 00 00 AF [15:10:59]Write i2c OK [15:10:59]MH_I2C_Read... [15:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:59]Read from MH i2c: E2 [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: E2 0B 00 [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: E2 0B 00 28 0C 00 50 62 30 14 EB E8 5A 8C 90 00 5F [15:10:59]RAPDU: 50 62 30 14 EB E8 5A 8C 90 00 [15:10:59]wFMCommunicate OK [15:10:59]SAM_PROTO_SignData done [15:10:59]FM_MakeSignedData done [15:10:59]CreateOFDProtocolMessage [15:10:59]wFMCommunicate request_size=4 [15:10:59]MH_SAM_APDU [15:10:59]CAPDU: 80 11 00 00 [15:10:59]Write to MH i2c: E2 08 00 29 0C 80 11 00 00 00 00 00 00 AF [15:10:59]Write i2c OK [15:10:59]MH_I2C_Read... [15:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:59]Read from MH i2c: E2 [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: E2 17 00 [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: E2 17 00 29 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 01 [15:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:10:59]wFMCommunicate OK [15:10:59]CreateOFDProtocolMessage done [15:10:59]OFDSenderStorePacket 111975 [15:10:59]StoreOFDPacket docnum=111975 [15:10:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9D 09 07 01 1B 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 04 98 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B5 01 00 35 04 06 00 4C 3A 42 F7 C0 71 50 62 30 14 EB E8 5A 8C [15:10:59]CheckFolder [15:10:59]dirname=/storage/ofd_packets [15:10:59]CheckFolder done [15:10:59]ProducePacketName [15:10:59]name=ofd_packets/00111975 [15:10:59]NVStorageSaveData ofd_packets/00111975 [15:10:59]File name is /storage/ofd_packets/00111975 [15:10:59]Write 301 bytes [15:10:59]NVStorageSaveData done [15:10:59]OFDSenderStorePacket done [15:10:59]KKMCreateOFDPacket done [15:10:59]NVStorageSaveData kkm_last_timestamp [15:10:59]File name is /storage/kkm_last_timestamp [15:10:59]Write 4 bytes [15:10:59]NVStorageSaveData done [15:10:59]ExternCall_PrintAddStr [15:10:59]wPrintStart [15:10:59]Write to MH i2c: 01 00 00 2A 0C 36 [15:10:59]Write i2c OK [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: 01 [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: 01 07 00 [15:10:59]MH_I2C_Read... [15:10:59]Read from MH i2c: 01 07 00 2A 0C 00 00 00 00 00 FF 0F 4B [15:10:59]RasterBufferAndPrint [15:10:59]line 小褔械褌 N : (1)320622 [15:10:59]line 袠袧袧: 02508201610067 [15:10:59]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:10:59]line 袩袪袨袛袗袞袗 [15:10:59]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:10:59]line 孝芯胁邪褉: 2710124130 [15:10:59]line 袗懈-92-袣-5 [15:10:59]line 3.020 * 66.40 [15:10:59]line = 200.53 [15:10:59]line 袧袛小 12% 袧小袩 1% [15:10:59]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:10:59]line 袨袣袪校袚袥袝袧袠袝: -0.53 [15:10:59]line 袠孝袨袚袨: 200.00 [15:10:59]line 袙薪械褋械薪芯: 200.00 [15:10:59]line 小袛袗效袗: 0.00 [15:10:59]line 袧小袩 1% : 1.77 [15:10:59]line 袧袛小 12% : 21.29 [15:10:59]line 袧邪谢懈褔薪褘屑懈: 200.00 [15:10:59]line 袘械蟹薪邪谢.: 0.00 [15:10:59]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:10:59]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:10:59]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:10:59]line 效械泻 143 21.06.2024 15:11 [15:10:59]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:10:59]line 袟袧袦: 0300000198 [15:10:59]line 袪袧袦: 0000000000092771 [15:10:59]line 袙械褉褋懈褟 袣袣袦: 001 [15:10:59]line 肖袦: 0000000000875083 [15:10:59]line 肖袛: 111975 [15:10:59]line 肖袩袛: 83813115347057 [15:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T151100&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111975&fm=83813115347057&tin=02508201610067®Number=0000000000092771&sum=20000 [15:10:59]OFD Sender: Processing packet 111975 [packets to send 38, broken 37] [15:10:59]ProducePacketName [15:10:59]name=ofd_packets/00111975 [15:10:59]OFD Sender: To server: 嚂鰌G, [15:10:59]CommunicateWithHost lk.salyk.kg:30040 [15:10:59]ConnectInit lk.salyk.kg [15:10:59]written 0, free lines is 4095 [15:10:59]Connected sock=10 [15:10:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9D 09 07 01 1B 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 04 98 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B5 01 00 35 04 06 00 4C 3A 42 F7 C0 71 50 62 30 14 EB E8 5A 8C [15:11:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 46 00 47 00 FD EE 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 30 38 37 35 30 38 33 10 04 04 00 67 B5 01 00 F4 03 04 00 2C 2F 75 66 B6 04 01 00 00 AA 14 55 C8 51 62 50 6E [15:11:00]CommunicateWithHost err = 0 [15:11:00]CheckOFDResponse [15:11:00]1017 (14) - 77093643461234 [15:11:00]1041 (16) - 0000000000875083 [15:11:00]1040 (4) - 111975 [15:11:00]1012 (4) - 21.06.2024 07:43 [15:11:00]1206 (1) - 0 [15:11:00]OFD Sender: Remove packet 111975 [15:11:00]ProducePacketName [15:11:00]name=ofd_packets/00111975 [15:11:00]NVStorageDeleteData [15:11:00]Write to MH i2c: 01 00 00 55 0C 61 [15:11:00]Write i2c OK [15:11:00]MH_I2C_Read... [15:11:00]Read from MH i2c: 01 [15:11:00]MH_I2C_Read... [15:11:00]Read from MH i2c: 01 07 00 [15:11:00]MH_I2C_Read... [15:11:00]Read from MH i2c: 01 07 00 55 0C 00 00 00 00 00 DC 0C 50 [15:11:00]RasterBufferAndPrint [15:11:00]line [15:11:00]line [15:11:00]line [15:11:00]line [15:11:00]line [15:11:00]written 0, free lines is 3298 [15:11:00]MH_Cut [15:11:00]Write to MH i2c: D1 01 00 5C 0C 01 3A [15:11:00]Write i2c OK [15:11:00]MH_I2C_Read... [15:11:00]Read from MH i2c: D1 [15:11:00]MH_I2C_Read... [15:11:00]Read from MH i2c: D1 01 00 [15:11:00]MH_I2C_Read... [15:11:00]Read from MH i2c: D1 01 00 5C 0C 00 39 [15:11:00]Write to MH i2c: 01 00 00 5D 0C 69 [15:11:00]Write i2c OK [15:11:00]MH_I2C_Read... [15:11:00]OFD Sender: No OFD packet to send [15:11:00]*** Cut start [15:11:00]*** Partial cut [15:11:00]*** CUTSNS_PIN = 1 [15:11:01]*** CUTSNS_PIN = 0 [15:11:01]*** Brake cut motor [15:11:01]Read from MH i2c: 01 [15:11:01]MH_I2C_Read... [15:11:01]*** Stop cut motor [15:11:01]*** Cut end [15:11:01]Read from MH i2c: 01 07 00 [15:11:01]MH_I2C_Read... [15:11:01]Read from MH i2c: 01 07 00 5D 0C 00 00 00 00 00 FF 0F 7E [15:11:01]process_action close_receipt done [15:11:01]requested_data is exist [15:11:01]produce_requested_data [15:11:01]requested_item fm.sn is exist - process it [15:11:01]wFMCommunicate request_size=4 [15:11:01]MH_SAM_APDU [15:11:01]CAPDU: 80 11 00 00 [15:11:01]Write to MH i2c: E2 08 00 5E 0C 80 11 00 00 00 00 00 00 E4 [15:11:01]Write i2c OK [15:11:01]MH_I2C_Read... [15:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:01]Read from MH i2c: E2 [15:11:01]MH_I2C_Read... [15:11:01]Read from MH i2c: E2 17 00 [15:11:01]MH_I2C_Read... [15:11:01]Read from MH i2c: E2 17 00 5E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 36 [15:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:11:01]wFMCommunicate OK [15:11:01]requested_item fd.num is exist - process it [15:11:01]SAM_PROTO_GetFieldsCounters [15:11:01]wFMCommunicate request_size=4 [15:11:01]MH_SAM_APDU [15:11:01]CAPDU: 80 13 00 00 [15:11:01]Write to MH i2c: E2 08 00 5F 0C 80 13 00 00 00 00 00 00 E7 [15:11:01]Write i2c OK [15:11:01]MH_I2C_Read... [15:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:01]Read from MH i2c: E2 [15:11:01]MH_I2C_Read... [15:11:01]Read from MH i2c: E2 62 00 [15:11:01]MH_I2C_Read... [15:11:01]Read from MH i2c: E2 62 00 5F 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 67 B5 01 00 0E 04 04 00 86 01 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 59 [15:11:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 67 B5 01 00 0E 04 04 00 86 01 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 [15:11:01]wFMCommunicate OK [15:11:01]SAM_PROTO_GetFieldsCounters done [15:11:01]requested_item shift.num is exist - process it [15:11:01]requested_item shift.opened is exist - process it [15:11:01]req_shift_opened [15:11:01]FM_GetShiftState [15:11:01]SAM_PROTO_GetShiftState [15:11:01]wFMCommunicate request_size=4 [15:11:01]MH_SAM_APDU [15:11:01]CAPDU: 80 13 01 00 [15:11:01]Write to MH i2c: E2 08 00 60 0C 80 13 01 00 00 00 00 00 E9 [15:11:01]Write i2c OK [15:11:01]MH_I2C_Read... [15:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:01]Read from MH i2c: E2 [15:11:01]MH_I2C_Read... [15:11:01]Read from MH i2c: E2 0E 00 [15:11:01]MH_I2C_Read... [15:11:01]Read from MH i2c: E2 0E 00 60 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 66 [15:11:01]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:11:01]wFMCommunicate OK [15:11:01]SAM_PROTO_GetShiftState done [15:11:01]FM_GetShiftState done [15:11:01]req_shift_opened done [15:11:01]requested_item shift.open_date is exist - process it [15:11:01]req_shift_open_date [15:11:01]req_shift_open_date done [15:11:01]produce_requested_data done [15:11:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111975,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:11:01]process_action_free close_receipt [15:11:01]json_value_free [15:11:01]json_value_free done [15:11:01]process_json_proto returns [15:11:01]Send response to host [15:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111975,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:11:01]free response buf [15:11:01]execute_script done [15:11:01]execute_script returns [15:11:01]free content buf [15:11:01]Sock 7.Close socket [15:11:01]Sock 7.Thread stoped [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:19:56]accept exits with 9 [15:19:56]New connection [15:19:56]New thread 3066875236 created [15:19:56]Thread 3066731876 joined [15:19:56]Waiting for new connection... [15:19:56] Sock 9.Parse request [15:19:56]Sock 9.Check first char [15:19:56]Sock 9.First char is OK [15:19:56]request: POST /json_proto HTTP/1.0 [15:19:56]Method: POST [15:19:56]URL: /json_proto [15:19:56]Method is POST - this is cgi request [15:19:56]url: /json_proto [15:19:56]query_string will be loaded in cgi processing [15:19:56]execute_cgi json_proto POST (null) [15:19:56]execute_cgi path=json_proto method=POST [15:19:56]POST find Content-Length [15:19:56]Host: 172.17.59.68:8080 [15:19:56]Content-Length: 677 [15:19:56]Content-Type: application/json [15:19:56] [15:19:56]POST finish read [15:19:56]Found Content-Length = 677 [15:19:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:56]execute_script... [15:19: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)320623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:56]POST & json_proto [15:19:56]process_json_proto [15:19:56]json parsed OK: [15:19:56]protocol is kg_v1.0 [15:19:56]action value=close_receipt [15:19:56]process_action close_receipt [15:19:56]cmd_close_receipt [15:19:56]MH_GetDate [15:19:56]Write to MH i2c: F0 00 00 61 0C 5C [15:19:56]Write i2c OK [15:19:56]MH_I2C_Read... [15:19:56]Read from MH i2c: F0 [15:19:56]MH_I2C_Read... [15:19:56]Read from MH i2c: F0 09 00 [15:19:56]MH_I2C_Read... [15:19:56]Read from MH i2c: F0 09 00 61 0C 00 1E 9A 75 66 BC EC 60 65 65 [15:19:56]GetLastDocTimeStamp 1718982660 [15:19:56]current date 1718983198 [15:19:56]FM_GetShiftState [15:19:56]SAM_PROTO_GetShiftState [15:19:56]wFMCommunicate request_size=4 [15:19:56]MH_SAM_APDU [15:19:56]CAPDU: 80 13 01 00 [15:19:56]Write to MH i2c: E2 08 00 62 0C 80 13 01 00 00 00 00 00 EB [15:19:56]Write i2c OK [15:19:56]MH_I2C_Read... [15:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:56]Read from MH i2c: E2 [15:19:56]MH_I2C_Read... [15:19:56]Read from MH i2c: E2 0E 00 [15:19:56]MH_I2C_Read... [15:19:56]Read from MH i2c: E2 0E 00 62 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 68 [15:19:56]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:19:56]wFMCommunicate OK [15:19:56]SAM_PROTO_GetShiftState done [15:19:56]FM_GetShiftState done [15:19:56]opened in 1718933695 [15:19:56]opened+sec_in_day 1719020095 [15:19:56]quantity*price = 30012 [15:19:56]sum+1 = 30014 [15:19:56]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 144 21.06.2024 15:19 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111976 肖袩袛: 53795462097586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T151958&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111976&fm=53795462097586&tin=02508201610067®Number=0000000000092771&sum=30000 [15:19:57]StoreToDocumentArchive [15:19:57]shift 390 fd 111976 [15:19:57]save to /storage/0390/doc_00111976 [15:19:57]save last doc name /storage/0390/doc_00111976 to /storage/kkm_last_doc_name [15:19:57]save OK [15:19:57]Clear old archive folders... [15:19:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:57]tlvbuf is 0044D970 [15:19:57]SAM_PROTO_ClearQueue [15:19:57]wFMCommunicate request_size=4 [15:19:57]MH_SAM_APDU [15:19:57]CAPDU: 80 09 00 00 [15:19:57]Write to MH i2c: E2 08 00 6F 0C 80 09 00 00 00 00 00 00 ED [15:19:57]Write i2c OK [15:19:57]MH_I2C_Read... [15:19:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:57]Read from MH i2c: E2 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: E2 03 00 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [15:19:57]RAPDU: 90 00 [15:19:57]wFMCommunicate OK [15:19:57]SAM_PROTO_ClearQueue done [15:19:57]KKMCreateOFDPacket [15:19:57]OFDProtocolAddRootSTLVToBuf [15:19:57]FM_MakeSignedData [15:19:57]FM_MakeSignedData [15:19:57]SAM_PROTO_SignData [15:19:57]wFMCommunicate request_size=4 [15:19:57]MH_SAM_APDU [15:19:57]CAPDU: 80 0D 01 02 [15:19:57]Write to MH i2c: E2 08 00 70 0C 80 0D 01 02 00 00 00 00 F5 [15:19:57]Write i2c OK [15:19:57]MH_I2C_Read... [15:19:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:57]Read from MH i2c: E2 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: E2 03 00 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [15:19:57]RAPDU: 90 00 [15:19:57]wFMCommunicate OK [15:19:57]wFMCommunicate request_size=255 [15:19:57]MH_SAM_APDU [15:19: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 90 00 00 00 F4 03 04 00 1E 9A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B5 01 00 35 04 06 00 30 [15:19:57]Write to MH i2c: E2 02 01 71 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 90 00 00 00 F4 03 04 00 1E 9A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B5 01 00 35 04 06 00 30 00 00 3F [15:19:57]Write i2c OK [15:19:57]MH_I2C_Read... [15:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:57]Read from MH i2c: E2 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: E2 03 00 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [15:19:57]RAPDU: 90 00 [15:19:57]wFMCommunicate OK [15:19:57]wFMCommunicate request_size=10 [15:19:57]MH_SAM_APDU [15:19:57]CAPDU: 80 0D 02 02 05 ED 3B 68 AA B2 [15:19:57]Write to MH i2c: E2 0D 00 72 0C 80 0D 02 02 05 00 ED 3B 68 AA B2 00 00 EE [15:19:57]Write i2c OK [15:19:57]MH_I2C_Read... [15:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:57]Read from MH i2c: E2 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: E2 03 00 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: E2 03 00 72 0C 00 90 00 F2 [15:19:57]RAPDU: 90 00 [15:19:57]wFMCommunicate OK [15:19:57]wFMCommunicate request_size=4 [15:19:57]MH_SAM_APDU [15:19:57]CAPDU: 80 0D 03 02 [15:19:57]Write to MH i2c: E2 08 00 73 0C 80 0D 03 02 00 00 00 00 FA [15:19:57]Write i2c OK [15:19:57]MH_I2C_Read... [15:19:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:57]Read from MH i2c: E2 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: E2 0B 00 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: E2 0B 00 73 0C 00 15 9C 47 20 9E FB 26 29 90 00 FB [15:19:57]RAPDU: 15 9C 47 20 9E FB 26 29 90 00 [15:19:57]wFMCommunicate OK [15:19:57]SAM_PROTO_SignData done [15:19:57]FM_MakeSignedData done [15:19:57]CreateOFDProtocolMessage [15:19:57]wFMCommunicate request_size=4 [15:19:57]MH_SAM_APDU [15:19:57]CAPDU: 80 11 00 00 [15:19:57]Write to MH i2c: E2 08 00 74 0C 80 11 00 00 00 00 00 00 FA [15:19:57]Write i2c OK [15:19:57]MH_I2C_Read... [15:19:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:57]Read from MH i2c: E2 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: E2 17 00 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: E2 17 00 74 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4C [15:19:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:19:57]wFMCommunicate OK [15:19:57]CreateOFDProtocolMessage done [15:19:57]OFDSenderStorePacket 111976 [15:19:57]StoreOFDPacket docnum=111976 [15:19:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5B 60 07 01 88 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 90 00 00 00 F4 03 04 00 1E 9A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B5 01 00 35 04 06 00 30 ED 3B 68 AA B2 15 9C 47 20 9E FB 26 29 [15:19:57]CheckFolder [15:19:57]dirname=/storage/ofd_packets [15:19:57]CheckFolder done [15:19:57]ProducePacketName [15:19:57]name=ofd_packets/00111976 [15:19:57]NVStorageSaveData ofd_packets/00111976 [15:19:57]File name is /storage/ofd_packets/00111976 [15:19:57]Write 301 bytes [15:19:57]NVStorageSaveData done [15:19:57]OFDSenderStorePacket done [15:19:57]KKMCreateOFDPacket done [15:19:57]NVStorageSaveData kkm_last_timestamp [15:19:57]File name is /storage/kkm_last_timestamp [15:19:57]Write 4 bytes [15:19:57]NVStorageSaveData done [15:19:57]ExternCall_PrintAddStr [15:19:57]wPrintStart [15:19:57]Write to MH i2c: 01 00 00 75 0C 81 [15:19:57]Write i2c OK [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: 01 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: 01 07 00 [15:19:57]MH_I2C_Read... [15:19:57]Read from MH i2c: 01 07 00 75 0C 00 00 00 00 00 FF 0F 96 [15:19:57]RasterBufferAndPrint [15:19:57]line 小褔械褌 N : (1)320623 [15:19:57]line 袠袧袧: 02508201610067 [15:19:57]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:19:57]line 袩袪袨袛袗袞袗 [15:19:57]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:19:57]line 孝芯胁邪褉: 2710124130 [15:19:57]line 袗懈-92-袣-5 [15:19:57]line 4.520 * 66.40 [15:19:57]line = 300.13 [15:19:57]line 袧袛小 12% 袧小袩 1% [15:19:57]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:19:57]line 袨袣袪校袚袥袝袧袠袝: -0.13 [15:19:57]line 袠孝袨袚袨: 300.00 [15:19:57]line 袙薪械褋械薪芯: 300.00 [15:19:57]line 小袛袗效袗: 0.00 [15:19:57]line 袧小袩 1% : 2.66 [15:19:57]line 袧袛小 12% : 31.87 [15:19:57]line 袧邪谢懈褔薪褘屑懈: 300.00 [15:19:57]line 袘械蟹薪邪谢.: 0.00 [15:19:57]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:19:57]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:19:57]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:19:57]line 效械泻 144 21.06.2024 15:19 [15:19:57]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:19:57]line 袟袧袦: 0300000198 [15:19:57]line 袪袧袦: 0000000000092771 [15:19:57]line 袙械褉褋懈褟 袣袣袦: 001 [15:19:57]line 肖袦: 0000000000875083 [15:19:57]line 肖袛: 111976 [15:19:57]line 肖袩袛: 53795462097586 [15:19:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T151958&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111976&fm=53795462097586&tin=02508201610067®Number=0000000000092771&sum=30000 [15:19:58]OFD Sender: Processing packet 111976 [packets to send 38, broken 37] [15:19:58]ProducePacketName [15:19:58]name=ofd_packets/00111976 [15:19:58]OFD Sender: To server: 嚂鰌G, [15:19:58]CommunicateWithHost lk.salyk.kg:30040 [15:19:58]ConnectInit lk.salyk.kg [15:19:58]written 0, free lines is 4095 [15:19:58]Connected sock=10 [15:19:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5B 60 07 01 88 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 90 00 00 00 F4 03 04 00 1E 9A 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B5 01 00 35 04 06 00 30 ED 3B 68 AA B2 15 9C 47 20 9E FB 26 29 [15:19:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 85 C5 47 00 AD 1A 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 30 38 37 35 30 38 33 10 04 04 00 68 B5 01 00 F4 03 04 00 46 31 75 66 B6 04 01 00 00 78 19 08 22 29 E0 B0 74 [15:19:58]CommunicateWithHost err = 0 [15:19:58]CheckOFDResponse [15:19:58]1017 (14) - 77093643461234 [15:19:58]1041 (16) - 0000000000875083 [15:19:58]1040 (4) - 111976 [15:19:58]1012 (4) - 21.06.2024 07:52 [15:19:58]1206 (1) - 0 [15:19:58]OFD Sender: Remove packet 111976 [15:19:58]ProducePacketName [15:19:58]name=ofd_packets/00111976 [15:19:58]NVStorageDeleteData [15:19:58]Write to MH i2c: 01 00 00 A0 0C AC [15:19:58]Write i2c OK [15:19:58]MH_I2C_Read... [15:19:58]Read from MH i2c: 01 [15:19:58]MH_I2C_Read... [15:19:58]Read from MH i2c: 01 07 00 [15:19:58]MH_I2C_Read... [15:19:58]Read from MH i2c: 01 07 00 A0 0C 00 00 00 00 00 E5 0C A4 [15:19:58]RasterBufferAndPrint [15:19:58]line [15:19:58]line [15:19:58]line [15:19:58]line [15:19:58]line [15:19:58]written 0, free lines is 3307 [15:19:58]MH_Cut [15:19:58]Write to MH i2c: D1 01 00 A7 0C 01 85 [15:19:58]Write i2c OK [15:19:58]MH_I2C_Read... [15:19:58]Read from MH i2c: D1 [15:19:58]MH_I2C_Read... [15:19:58]Read from MH i2c: D1 01 00 [15:19:58]MH_I2C_Read... [15:19:58]Read from MH i2c: D1 01 00 A7 0C 00 84 [15:19:58]Write to MH i2c: 01 00 00 A8 0C B4 [15:19:58]Write i2c OK [15:19:58]MH_I2C_Read... [15:19:58]OFD Sender: No OFD packet to send [15:19:59]*** Cut start [15:19:59]*** Partial cut [15:19:59]*** CUTSNS_PIN = 1 [15:19:59]*** CUTSNS_PIN = 0 [15:19:59]*** Brake cut motor [15:19:59]Read from MH i2c: 01 [15:19:59]MH_I2C_Read... [15:19:59]*** Stop cut motor [15:19:59]*** Cut end [15:19:59]Read from MH i2c: 01 07 00 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: 01 07 00 A8 0C 00 00 00 00 00 FF 0F C9 [15:19:59]process_action close_receipt done [15:19:59]requested_data is exist [15:19:59]produce_requested_data [15:19:59]requested_item fm.sn is exist - process it [15:19:59]wFMCommunicate request_size=4 [15:19:59]MH_SAM_APDU [15:19:59]CAPDU: 80 11 00 00 [15:19:59]Write to MH i2c: E2 08 00 A9 0C 80 11 00 00 00 00 00 00 2F [15:19:59]Write i2c OK [15:19:59]MH_I2C_Read... [15:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:59]Read from MH i2c: E2 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 17 00 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 17 00 A9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 81 [15:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:19:59]wFMCommunicate OK [15:19:59]requested_item fd.num is exist - process it [15:19:59]SAM_PROTO_GetFieldsCounters [15:19:59]wFMCommunicate request_size=4 [15:19:59]MH_SAM_APDU [15:19:59]CAPDU: 80 13 00 00 [15:19:59]Write to MH i2c: E2 08 00 AA 0C 80 13 00 00 00 00 00 00 32 [15:19:59]Write i2c OK [15:19:59]MH_I2C_Read... [15:20:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:00]Read from MH i2c: E2 [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: E2 62 00 [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: E2 62 00 AA 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 68 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [15:20:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 68 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:00]wFMCommunicate OK [15:20:00]SAM_PROTO_GetFieldsCounters done [15:20:00]requested_item shift.num is exist - process it [15:20:00]requested_item shift.opened is exist - process it [15:20:00]req_shift_opened [15:20:00]FM_GetShiftState [15:20:00]SAM_PROTO_GetShiftState [15:20:00]wFMCommunicate request_size=4 [15:20:00]MH_SAM_APDU [15:20:00]CAPDU: 80 13 01 00 [15:20:00]Write to MH i2c: E2 08 00 AB 0C 80 13 01 00 00 00 00 00 34 [15:20:00]Write i2c OK [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: E2 [15:20:00]MH_I2C_Read... [15:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:00]Read from MH i2c: E2 0E 00 [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: E2 0E 00 AB 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B1 [15:20:00]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:20:00]wFMCommunicate OK [15:20:00]SAM_PROTO_GetShiftState done [15:20:00]FM_GetShiftState done [15:20:00]req_shift_opened done [15:20:00]requested_item shift.open_date is exist - process it [15:20:00]req_shift_open_date [15:20:00]req_shift_open_date done [15:20:00]produce_requested_data done [15:20:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111976,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:20:00]process_action_free close_receipt [15:20:00]json_value_free [15:20:00]json_value_free done [15:20:00]process_json_proto returns [15:20:00]Send response to host [15:20:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111976,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:20:00]free response buf [15:20:00]execute_script done [15:20:00]execute_script returns [15:20:00]free content buf [15:20:00]Sock 9.Close socket [15:20:00]Sock 9.Thread stoped [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:55]int [15:20:55]Write to MH i2c: 01 00 00 AC 0C B8 [15:20:55]*** FLAG_PRN_PAP1 set [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 07 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 07 00 AC 0C 00 01 00 00 00 FF 0F CE [15:20:55]state=0 [15:20:55]No paper [15:20:55]int [15:20:55]Write to MH i2c: 01 00 00 AD 0C B9 [15:20:55]*** FLAG_PRN_PAP2 set [15:20:55]Write i2c OK [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 07 00 [15:20:55]MH_I2C_Read... [15:20:55]Read from MH i2c: 01 07 00 AD 0C 00 03 00 00 00 FF 0F D1 [15:20:55]state=0 [15:20:55]No paper [15:20:55]Cover opened [15:20:59]OFD Sender: No OFD packet to send [15:21:00]Write to MH i2c: 01 00 00 AE 0C BA [15:21:00]Write i2c OK [15:21:00]MH_I2C_Read... [15:21:00]Read from MH i2c: 01 [15:21:00]MH_I2C_Read... [15:21:00]Read from MH i2c: 01 07 00 [15:21:00]MH_I2C_Read... [15:21:00]Read from MH i2c: 01 07 00 AE 0C 00 03 00 00 00 FF 0F D2 [15:21:00]state=3 [15:21:00]No paper [15:21:00]Cover opened [15:21:04]OFD Sender: No OFD packet to send [15:21:05]Write to MH i2c: 01 00 00 AF 0C BB [15:21:05]Write i2c OK [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: 01 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: 01 07 00 [15:21:05]MH_I2C_Read... [15:21:05]Read from MH i2c: 01 07 00 AF 0C 00 03 00 00 00 FF 0F D3 [15:21:05]state=3 [15:21:05]No paper [15:21:05]Cover opened [15:21:08]int [15:21:08]Write to MH i2c: 01 00 00 B0 0C BC [15:21:08]*** FLAG_PRN_PAP2 reset [15:21:08]Write i2c OK [15:21:08]MH_I2C_Read... [15:21:08]Read from MH i2c: 01 [15:21:08]MH_I2C_Read... [15:21:09]Read from MH i2c: 01 07 00 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: 01 07 00 B0 0C 00 01 00 00 00 FF 0F D2 [15:21:09]state=3 [15:21:09]No paper [15:21:09]Cover closed [15:21:09]int [15:21:09]Write to MH i2c: 01 00 00 B1 0C BD [15:21:09]*** FLAG_PRN_PAP1 reset [15:21:09]Write i2c OK [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: 01 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: 01 07 00 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: 01 07 00 B1 0C 00 00 00 00 00 FF 0F D2 [15:21:09]state=0 [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:40]int [15:23:40]Write to MH i2c: 01 00 00 B2 0C BE [15:23:40]*** FLAG_PRN_PAP1 set [15:23:40]Write i2c OK [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: 01 [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: 01 07 00 [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: 01 07 00 B2 0C 00 01 00 00 00 FF 0F D4 [15:23:40]state=0 [15:23:40]No paper [15:23:40]int [15:23:40]Write to MH i2c: 01 00 00 B3 0C BF [15:23:40]*** FLAG_PRN_PAP2 set [15:23:40]Write i2c OK [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: 01 [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: 01 07 00 [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: 01 07 00 B3 0C 00 03 00 00 00 FF 0F D7 [15:23:40]state=0 [15:23:40]No paper [15:23:40]Cover opened [15:23:44]OFD Sender: No OFD packet to send [15:23:45]Write to MH i2c: 01 00 00 B4 0C C0 [15:23:45]Write i2c OK [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: 01 [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: 01 07 00 [15:23:45]MH_I2C_Read... [15:23:45]Read from MH i2c: 01 07 00 B4 0C 00 03 00 00 00 FF 0F D8 [15:23:45]state=3 [15:23:45]No paper [15:23:45]Cover opened [15:23:49]OFD Sender: No OFD packet to send [15:23:50]Write to MH i2c: 01 00 00 B5 0C C1 [15:23:50]Write i2c OK [15:23:50]MH_I2C_Read... [15:23:50]Read from MH i2c: 01 [15:23:50]MH_I2C_Read... [15:23:50]Read from MH i2c: 01 07 00 [15:23:50]MH_I2C_Read... [15:23:50]Read from MH i2c: 01 07 00 B5 0C 00 03 00 00 00 FF 0F D9 [15:23:50]state=3 [15:23:50]No paper [15:23:50]Cover opened [15:23:54]OFD Sender: No OFD packet to send [15:23:55]Write to MH i2c: 01 00 00 B6 0C C2 [15:23:55]Write i2c OK [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: 01 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: 01 07 00 [15:23:55]MH_I2C_Read... [15:23:55]Read from MH i2c: 01 07 00 B6 0C 00 03 00 00 00 FF 0F DA [15:23:55]state=3 [15:23:55]No paper [15:23:55]Cover opened [15:23:59]OFD Sender: No OFD packet to send [15:24:00]Write to MH i2c: 01 00 00 B7 0C C3 [15:24:00]Write i2c OK [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: 01 [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: 01 07 00 [15:24:00]MH_I2C_Read... [15:24:00]Read from MH i2c: 01 07 00 B7 0C 00 03 00 00 00 FF 0F DB [15:24:00]state=3 [15:24:00]No paper [15:24:00]Cover opened [15:24:04]OFD Sender: No OFD packet to send [15:24:05]Write to MH i2c: 01 00 00 B8 0C C4 [15:24:05]Write i2c OK [15:24:05]MH_I2C_Read... [15:24:05]Read from MH i2c: 01 [15:24:05]MH_I2C_Read... [15:24:05]Read from MH i2c: 01 07 00 [15:24:05]MH_I2C_Read... [15:24:05]Read from MH i2c: 01 07 00 B8 0C 00 03 00 00 00 FF 0F DC [15:24:05]state=3 [15:24:05]No paper [15:24:05]Cover opened [15:24:09]OFD Sender: No OFD packet to send [15:24:10]Write to MH i2c: 01 00 00 B9 0C C5 [15:24:10]Write i2c OK [15:24:10]MH_I2C_Read... [15:24:10]Read from MH i2c: 01 [15:24:10]MH_I2C_Read... [15:24:10]Read from MH i2c: 01 07 00 [15:24:10]MH_I2C_Read... [15:24:10]Read from MH i2c: 01 07 00 B9 0C 00 03 00 00 00 FF 0F DD [15:24:10]state=3 [15:24:10]No paper [15:24:10]Cover opened [15:24:14]OFD Sender: No OFD packet to send [15:24:15]Write to MH i2c: 01 00 00 BA 0C C6 [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: 01 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: 01 07 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: 01 07 00 BA 0C 00 03 00 00 00 FF 0F DE [15:24:15]state=3 [15:24:15]No paper [15:24:15]Cover opened [15:24:17]int [15:24:17]Write to MH i2c: 01 00 00 BB 0C C7 [15:24:17]*** FLAG_PRN_PAP2 reset [15:24:17]Write i2c OK [15:24:17]MH_I2C_Read... [15:24:17]Read from MH i2c: 01 [15:24:17]MH_I2C_Read... [15:24:17]Read from MH i2c: 01 07 00 [15:24:17]MH_I2C_Read... [15:24:17]Read from MH i2c: 01 07 00 BB 0C 00 01 00 00 00 FF 0F DD [15:24:17]state=3 [15:24:17]No paper [15:24:17]Cover closed [15:24:18]int [15:24:18]Write to MH i2c: 01 00 00 BC 0C C8 [15:24:18]*** FLAG_PRN_PAP2 set [15:24:18]Write i2c OK [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: 01 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: 01 07 00 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: 01 07 00 BC 0C 00 03 00 00 00 FF 0F E0 [15:24:18]state=0 [15:24:18]No paper [15:24:18]Cover opened [15:24:19]int [15:24:19]Write to MH i2c: 01 00 00 BD 0C C9 [15:24:19]*** FLAG_PRN_PAP2 reset [15:24:19]Write i2c OK [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: 01 [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: 01 07 00 [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: 01 07 00 BD 0C 00 01 00 00 00 FF 0F DF [15:24:19]state=3 [15:24:19]No paper [15:24:19]Cover closed [15:24:19]int [15:24:19]Write to MH i2c: 01 00 00 BE 0C CA [15:24:19]*** FLAG_PRN_PAP1 reset [15:24:19]Write i2c OK [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: 01 [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: 01 07 00 [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: 01 07 00 BE 0C 00 00 00 00 00 FF 0F DF [15:24:19]state=0 [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:37]accept exits with 7 [15:28:37]New connection [15:28:37]New thread 3066731876 created [15:28:37]Thread 3066875236 joined [15:28:37]Waiting for new connection... [15:28:37] Sock 7.Parse request [15:28:37]Sock 7.Check first char [15:28:37]Sock 7.First char is OK [15:28:37]request: POST /json_proto HTTP/1.0 [15:28:37]Method: POST [15:28:37]URL: /json_proto [15:28:37]Method is POST - this is cgi request [15:28:37]url: /json_proto [15:28:37]query_string will be loaded in cgi processing [15:28:37]execute_cgi json_proto POST (null) [15:28:37]execute_cgi path=json_proto method=POST [15:28:37]POST find Content-Length [15:28:37]Host: 172.17.59.68:8080 [15:28:37]Content-Length: 640 [15:28:37]Content-Type: application/json [15:28:37] [15:28:37]POST finish read [15:28:37]Found Content-Length = 640 [15:28:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:37]execute_script... [15:28: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)320624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:37]POST & json_proto [15:28:37]process_json_proto [15:28:37]json parsed OK: [15:28:37]protocol is kg_v1.0 [15:28:37]action value=close_receipt [15:28:37]process_action close_receipt [15:28:37]cmd_close_receipt [15:28:37]MH_GetDate [15:28:37]Write to MH i2c: F0 00 00 BF 0C BA [15:28:37]Write i2c OK [15:28:37]MH_I2C_Read... [15:28:37]Read from MH i2c: F0 [15:28:37]MH_I2C_Read... [15:28:37]Read from MH i2c: F0 09 00 [15:28:37]MH_I2C_Read... [15:28:37]Read from MH i2c: F0 09 00 BF 0C 00 28 9C 75 66 BC EC 60 65 CF [15:28:37]GetLastDocTimeStamp 1718983198 [15:28:37]current date 1718983720 [15:28:37]FM_GetShiftState [15:28:37]SAM_PROTO_GetShiftState [15:28:37]wFMCommunicate request_size=4 [15:28:37]MH_SAM_APDU [15:28:37]CAPDU: 80 13 01 00 [15:28:37]Write to MH i2c: E2 08 00 C0 0C 80 13 01 00 00 00 00 00 49 [15:28:37]Write i2c OK [15:28:37]MH_I2C_Read... [15:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:37]Read from MH i2c: E2 [15:28:37]MH_I2C_Read... [15:28:37]Read from MH i2c: E2 0E 00 [15:28:37]MH_I2C_Read... [15:28:37]Read from MH i2c: E2 0E 00 C0 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C6 [15:28:37]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:28:37]wFMCommunicate OK [15:28:37]SAM_PROTO_GetShiftState done [15:28:37]FM_GetShiftState done [15:28:37]opened in 1718933695 [15:28:37]opened+sec_in_day 1719020095 [15:28:37]quantity*price = 66400 [15:28:37]sum+1 = 66401 [15:28:37]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 664.00 袧小袩 1% : 5.88 袧袛小 12% : 70.51 袧邪谢懈褔薪褘屑懈: 664.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 145 21.06.2024 15:28 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111977 肖袩袛: 136501388781960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T152840&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111977&fm=136501388781960&tin=02508201610067®Number=0000000000092771&sum=66400 [15:28:39]StoreToDocumentArchive [15:28:39]shift 390 fd 111977 [15:28:39]save to /storage/0390/doc_00111977 [15:28:39]save last doc name /storage/0390/doc_00111977 to /storage/kkm_last_doc_name [15:28:39]save OK [15:28:39]Clear old archive folders... [15:28:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:39]tlvbuf is 0036F400 [15:28:39]SAM_PROTO_ClearQueue [15:28:39]wFMCommunicate request_size=4 [15:28:39]MH_SAM_APDU [15:28:39]CAPDU: 80 09 00 00 [15:28:39]Write to MH i2c: E2 08 00 CD 0C 80 09 00 00 00 00 00 00 4B [15:28:39]Write i2c OK [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 [15:28:39]MH_I2C_Read... [15:28:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:39]Read from MH i2c: E2 03 00 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 03 00 CD 0C 00 90 00 4D [15:28:39]RAPDU: 90 00 [15:28:39]wFMCommunicate OK [15:28:39]SAM_PROTO_ClearQueue done [15:28:39]KKMCreateOFDPacket [15:28:39]OFDProtocolAddRootSTLVToBuf [15:28:39]FM_MakeSignedData [15:28:39]FM_MakeSignedData [15:28:39]SAM_PROTO_SignData [15:28:39]wFMCommunicate request_size=4 [15:28:39]MH_SAM_APDU [15:28:39]CAPDU: 80 0D 01 02 [15:28:39]Write to MH i2c: E2 08 00 CE 0C 80 0D 01 02 00 00 00 00 53 [15:28:39]Write i2c OK [15:28:39]MH_I2C_Read... [15:28:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:39]Read from MH i2c: E2 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 03 00 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 03 00 CE 0C 00 90 00 4E [15:28:39]RAPDU: 90 00 [15:28:39]wFMCommunicate OK [15:28:39]wFMCommunicate request_size=255 [15:28:39]MH_SAM_APDU [15:28:39]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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 91 00 00 00 F4 03 04 00 28 9C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B5 01 00 35 04 06 00 7C [15:28:39]Write to MH i2c: E2 02 01 CF 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 91 00 00 00 F4 03 04 00 28 9C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B5 01 00 35 04 06 00 7C 00 00 0F [15:28:39]Write i2c OK [15:28:39]MH_I2C_Read... [15:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:39]Read from MH i2c: E2 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 03 00 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 03 00 CF 0C 00 90 00 4F [15:28:39]RAPDU: 90 00 [15:28:39]wFMCommunicate OK [15:28:39]wFMCommunicate request_size=10 [15:28:39]MH_SAM_APDU [15:28:39]CAPDU: 80 0D 02 02 05 25 B4 CA 29 88 [15:28:39]Write to MH i2c: E2 0D 00 D0 0C 80 0D 02 02 05 00 25 B4 CA 29 88 00 00 B4 [15:28:39]Write i2c OK [15:28:39]MH_I2C_Read... [15:28:39]OFD Sender: No OFD packet to send [15:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:39]Read from MH i2c: E2 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 03 00 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 03 00 D0 0C 00 90 00 50 [15:28:39]RAPDU: 90 00 [15:28:39]wFMCommunicate OK [15:28:39]wFMCommunicate request_size=4 [15:28:39]MH_SAM_APDU [15:28:39]CAPDU: 80 0D 03 02 [15:28:39]Write to MH i2c: E2 08 00 D1 0C 80 0D 03 02 00 00 00 00 58 [15:28:39]Write i2c OK [15:28:39]MH_I2C_Read... [15:28:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:39]Read from MH i2c: E2 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 0B 00 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 0B 00 D1 0C 00 4D 84 4A 1F D9 F8 F2 A5 90 00 FB [15:28:39]RAPDU: 4D 84 4A 1F D9 F8 F2 A5 90 00 [15:28:39]wFMCommunicate OK [15:28:39]SAM_PROTO_SignData done [15:28:39]FM_MakeSignedData done [15:28:39]CreateOFDProtocolMessage [15:28:39]wFMCommunicate request_size=4 [15:28:39]MH_SAM_APDU [15:28:39]CAPDU: 80 11 00 00 [15:28:39]Write to MH i2c: E2 08 00 D2 0C 80 11 00 00 00 00 00 00 58 [15:28:39]Write i2c OK [15:28:39]MH_I2C_Read... [15:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:39]Read from MH i2c: E2 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 17 00 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: E2 17 00 D2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AA [15:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:28:39]wFMCommunicate OK [15:28:39]CreateOFDProtocolMessage done [15:28:39]OFDSenderStorePacket 111977 [15:28:39]StoreOFDPacket docnum=111977 [15:28:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F7 F0 07 01 05 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 91 00 00 00 F4 03 04 00 28 9C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B5 01 00 35 04 06 00 7C 25 B4 CA 29 88 4D 84 4A 1F D9 F8 F2 A5 [15:28:39]CheckFolder [15:28:39]dirname=/storage/ofd_packets [15:28:39]CheckFolder done [15:28:39]ProducePacketName [15:28:39]name=ofd_packets/00111977 [15:28:39]NVStorageSaveData ofd_packets/00111977 [15:28:39]File name is /storage/ofd_packets/00111977 [15:28:39]Write 301 bytes [15:28:39]NVStorageSaveData done [15:28:39]OFDSenderStorePacket done [15:28:39]KKMCreateOFDPacket done [15:28:39]NVStorageSaveData kkm_last_timestamp [15:28:39]File name is /storage/kkm_last_timestamp [15:28:39]Write 4 bytes [15:28:39]NVStorageSaveData done [15:28:39]ExternCall_PrintAddStr [15:28:39]wPrintStart [15:28:39]Write to MH i2c: 01 00 00 D3 0C DF [15:28:39]Write i2c OK [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: 01 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: 01 07 00 [15:28:39]MH_I2C_Read... [15:28:39]Read from MH i2c: 01 07 00 D3 0C 00 00 00 00 00 FF 0F F4 [15:28:39]RasterBufferAndPrint [15:28:39]line 小褔械褌 N : (1)320624 [15:28:39]line 袠袧袧: 02508201610067 [15:28:39]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:28:39]line 袩袪袨袛袗袞袗 [15:28:39]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:28:39]line 孝芯胁邪褉: 2710124130 [15:28:39]line 袗懈-92-袣-5 [15:28:39]line 10.000 * 66.40 [15:28:39]line = 664.00 [15:28:39]line 袧袛小 12% 袧小袩 1% [15:28:39]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:28:39]line 袠孝袨袚袨: 664.00 [15:28:39]line 袧小袩 1% : 5.88 [15:28:39]line 袧袛小 12% : 70.51 [15:28:39]line 袧邪谢懈褔薪褘屑懈: 664.00 [15:28:39]line 袘械蟹薪邪谢.: 0.00 [15:28:39]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:28:39]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:28:39]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:28:39]line 效械泻 145 21.06.2024 15:28 [15:28:39]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:28:39]line 袟袧袦: 0300000198 [15:28:39]line 袪袧袦: 0000000000092771 [15:28:39]line 袙械褉褋懈褟 袣袣袦: 001 [15:28:39]line 肖袦: 0000000000875083 [15:28:39]line 肖袛: 111977 [15:28:39]line 肖袩袛: 136501388781960 [15:28:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T152840&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111977&fm=136501388781960&tin=02508201610067®Number=0000000000092771&sum=66400 [15:28:39]OFD Sender: Processing packet 111977 [packets to send 38, broken 37] [15:28:39]ProducePacketName [15:28:39]name=ofd_packets/00111977 [15:28:39]OFD Sender: To server: 嚂鰌G, [15:28:39]CommunicateWithHost lk.salyk.kg:30040 [15:28:39]ConnectInit lk.salyk.kg [15:28:39]written 0, free lines is 4095 [15:28:39]Connected sock=10 [15:28:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F7 F0 07 01 05 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 91 00 00 00 F4 03 04 00 28 9C 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B5 01 00 35 04 06 00 7C 25 B4 CA 29 88 4D 84 4A 1F D9 F8 F2 A5 [15:28:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 85 D2 47 00 57 F7 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 30 38 37 35 30 38 33 10 04 04 00 69 B5 01 00 F4 03 04 00 50 33 75 66 B6 04 01 00 00 B8 10 BC 0C 1E F2 BE 94 [15:28:40]CommunicateWithHost err = 0 [15:28:40]CheckOFDResponse [15:28:40]1017 (14) - 77093643461234 [15:28:40]1041 (16) - 0000000000875083 [15:28:40]1040 (4) - 111977 [15:28:40]1012 (4) - 21.06.2024 08:01 [15:28:40]1206 (1) - 0 [15:28:40]OFD Sender: Remove packet 111977 [15:28:40]ProducePacketName [15:28:40]name=ofd_packets/00111977 [15:28:40]NVStorageDeleteData [15:28:40]Write to MH i2c: 01 00 00 FB 0C 07 [15:28:40]Write i2c OK [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: 01 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: 01 07 00 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: 01 07 00 FB 0C 00 00 00 00 00 14 0D 2F [15:28:40]RasterBufferAndPrint [15:28:40]line [15:28:40]line [15:28:40]line [15:28:40]line [15:28:40]line [15:28:40]written 0, free lines is 3354 [15:28:40]MH_Cut [15:28:40]Write to MH i2c: D1 01 00 02 0D 01 E1 [15:28:40]Write i2c OK [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: D1 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: D1 01 00 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: D1 01 00 02 0D 00 E0 [15:28:40]Write to MH i2c: 01 00 00 03 0D 10 [15:28:40]Write i2c OK [15:28:40]MH_I2C_Read... [15:28:40]OFD Sender: No OFD packet to send [15:28:41]*** Cut start [15:28:41]*** Partial cut [15:28:41]*** CUTSNS_PIN = 1 [15:28:41]*** CUTSNS_PIN = 0 [15:28:41]*** Brake cut motor [15:28:41]Read from MH i2c: 01 [15:28:41]MH_I2C_Read... [15:28:41]*** Stop cut motor [15:28:41]*** Cut end [15:28:41]Read from MH i2c: 01 07 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: 01 07 00 03 0D 00 00 00 00 00 FF 0F 25 [15:28:41]process_action close_receipt done [15:28:41]requested_data is exist [15:28:41]produce_requested_data [15:28:41]requested_item fm.sn is exist - process it [15:28:41]wFMCommunicate request_size=4 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 11 00 00 [15:28:41]Write to MH i2c: E2 08 00 04 0D 80 11 00 00 00 00 00 00 8B [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 17 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 17 00 04 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [15:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:28:41]wFMCommunicate OK [15:28:41]requested_item fd.num is exist - process it [15:28:41]SAM_PROTO_GetFieldsCounters [15:28:41]wFMCommunicate request_size=4 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 13 00 00 [15:28:41]Write to MH i2c: E2 08 00 05 0D 80 13 00 00 00 00 00 00 8E [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 62 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 62 00 05 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 69 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [15:28:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 69 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:41]wFMCommunicate OK [15:28:41]SAM_PROTO_GetFieldsCounters done [15:28:41]requested_item shift.num is exist - process it [15:28:41]requested_item shift.opened is exist - process it [15:28:41]req_shift_opened [15:28:41]FM_GetShiftState [15:28:41]SAM_PROTO_GetShiftState [15:28:41]wFMCommunicate request_size=4 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 13 01 00 [15:28:41]Write to MH i2c: E2 08 00 06 0D 80 13 01 00 00 00 00 00 90 [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 0E 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 0E 00 06 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0D [15:28:41]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:28:41]wFMCommunicate OK [15:28:41]SAM_PROTO_GetShiftState done [15:28:41]FM_GetShiftState done [15:28:41]req_shift_opened done [15:28:41]requested_item shift.open_date is exist - process it [15:28:41]req_shift_open_date [15:28:41]req_shift_open_date done [15:28:41]produce_requested_data done [15:28:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111977,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:28:41]process_action_free close_receipt [15:28:41]json_value_free [15:28:41]json_value_free done [15:28:41]process_json_proto returns [15:28:41]Send response to host [15:28:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111977,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:28:41]free response buf [15:28:41]execute_script done [15:28:41]execute_script returns [15:28:41]free content buf [15:28:41]Sock 7.Close socket [15:28:41]Sock 7.Thread stoped [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:35:56]accept exits with 9 [15:35:56]New connection [15:35:56]New thread 3066875236 created [15:35:56]Thread 3066731876 joined [15:35:56]Waiting for new connection... [15:35:56] Sock 9.Parse request [15:35:56]Sock 9.Check first char [15:35:56]Sock 9.First char is OK [15:35:56]request: POST /json_proto HTTP/1.0 [15:35:56]Method: POST [15:35:56]URL: /json_proto [15:35:56]Method is POST - this is cgi request [15:35:56]url: /json_proto [15:35:56]query_string will be loaded in cgi processing [15:35:56]execute_cgi json_proto POST (null) [15:35:56]execute_cgi path=json_proto method=POST [15:35:56]POST find Content-Length [15:35:56]Host: 172.17.59.68:8080 [15:35:56]Content-Length: 677 [15:35:56]Content-Type: application/json [15:35:56] [15:35:56]POST finish read [15:35:56]Found Content-Length = 677 [15:35:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [15:35:56]execute_script... [15:35: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)320625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [15:35:56]POST & json_proto [15:35:56]process_json_proto [15:35:56]json parsed OK: [15:35:56]protocol is kg_v1.0 [15:35:56]action value=close_receipt [15:35:56]process_action close_receipt [15:35:56]cmd_close_receipt [15:35:56]MH_GetDate [15:35:56]Write to MH i2c: F0 00 00 07 0D 03 [15:35:56]Write i2c OK [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: F0 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: F0 09 00 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: F0 09 00 07 0D 00 DF 9D 75 66 BC EC 60 65 D0 [15:35:56]GetLastDocTimeStamp 1718983720 [15:35:56]current date 1718984159 [15:35:56]FM_GetShiftState [15:35:56]SAM_PROTO_GetShiftState [15:35:56]wFMCommunicate request_size=4 [15:35:56]MH_SAM_APDU [15:35:56]CAPDU: 80 13 01 00 [15:35:56]Write to MH i2c: E2 08 00 08 0D 80 13 01 00 00 00 00 00 92 [15:35:56]Write i2c OK [15:35:56]MH_I2C_Read... [15:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:56]Read from MH i2c: E2 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: E2 0E 00 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: E2 0E 00 08 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0F [15:35:56]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:35:56]wFMCommunicate OK [15:35:56]SAM_PROTO_GetShiftState done [15:35:56]FM_GetShiftState done [15:35:56]opened in 1718933695 [15:35:56]opened+sec_in_day 1719020095 [15:35:56]quantity*price = 50065 [15:35:56]sum+1 = 50067 [15:35:56]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 146 21.06.2024 15:35 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111978 肖袩袛: 214667453123495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T153559&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111978&fm=214667453123495&tin=02508201610067®Number=0000000000092771&sum=50000 [15:35:57]StoreToDocumentArchive [15:35:57]shift 390 fd 111978 [15:35:57]save to /storage/0390/doc_00111978 [15:35:57]save last doc name /storage/0390/doc_00111978 to /storage/kkm_last_doc_name [15:35:57]save OK [15:35:57]Clear old archive folders... [15:35:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:57]tlvbuf is 00359020 [15:35:57]SAM_PROTO_ClearQueue [15:35:57]wFMCommunicate request_size=4 [15:35:57]MH_SAM_APDU [15:35:57]CAPDU: 80 09 00 00 [15:35:57]Write to MH i2c: E2 08 00 15 0D 80 09 00 00 00 00 00 00 94 [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:57]Read from MH i2c: E2 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 03 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 03 00 15 0D 00 90 00 96 [15:35:57]RAPDU: 90 00 [15:35:57]wFMCommunicate OK [15:35:57]SAM_PROTO_ClearQueue done [15:35:57]KKMCreateOFDPacket [15:35:57]OFDProtocolAddRootSTLVToBuf [15:35:57]FM_MakeSignedData [15:35:57]FM_MakeSignedData [15:35:57]SAM_PROTO_SignData [15:35:57]wFMCommunicate request_size=4 [15:35:57]MH_SAM_APDU [15:35:57]CAPDU: 80 0D 01 02 [15:35:57]Write to MH i2c: E2 08 00 16 0D 80 0D 01 02 00 00 00 00 9C [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:57]Read from MH i2c: E2 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 03 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 03 00 16 0D 00 90 00 97 [15:35:57]RAPDU: 90 00 [15:35:57]wFMCommunicate OK [15:35:57]wFMCommunicate request_size=255 [15:35:57]MH_SAM_APDU [15:35: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 92 00 00 00 F4 03 04 00 DF 9D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B5 01 00 35 04 06 00 C3 [15:35:57]Write to MH i2c: E2 02 01 17 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 92 00 00 00 F4 03 04 00 DF 9D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B5 01 00 35 04 06 00 C3 00 00 A3 [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:58]Read from MH i2c: E2 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 03 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 03 00 17 0D 00 90 00 98 [15:35:58]RAPDU: 90 00 [15:35:58]wFMCommunicate OK [15:35:58]wFMCommunicate request_size=10 [15:35:58]MH_SAM_APDU [15:35:58]CAPDU: 80 0D 02 02 05 3D 29 49 CB A7 [15:35:58]Write to MH i2c: E2 0D 00 18 0D 80 0D 02 02 05 00 3D 29 49 CB A7 00 00 CA [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:58]Read from MH i2c: E2 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 03 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 03 00 18 0D 00 90 00 99 [15:35:58]RAPDU: 90 00 [15:35:58]wFMCommunicate OK [15:35:58]wFMCommunicate request_size=4 [15:35:58]MH_SAM_APDU [15:35:58]CAPDU: 80 0D 03 02 [15:35:58]Write to MH i2c: E2 08 00 19 0D 80 0D 03 02 00 00 00 00 A1 [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:58]Read from MH i2c: E2 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 0B 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 0B 00 19 0D 00 20 AA EC 7E 15 C7 6E B9 90 00 D9 [15:35:58]RAPDU: 20 AA EC 7E 15 C7 6E B9 90 00 [15:35:58]wFMCommunicate OK [15:35:58]SAM_PROTO_SignData done [15:35:58]FM_MakeSignedData done [15:35:58]CreateOFDProtocolMessage [15:35:58]wFMCommunicate request_size=4 [15:35:58]MH_SAM_APDU [15:35:58]CAPDU: 80 11 00 00 [15:35:58]Write to MH i2c: E2 08 00 1A 0D 80 11 00 00 00 00 00 00 A1 [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:58]Read from MH i2c: E2 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 17 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 17 00 1A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F3 [15:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:35:58]wFMCommunicate OK [15:35:58]CreateOFDProtocolMessage done [15:35:58]OFDSenderStorePacket 111978 [15:35:58]StoreOFDPacket docnum=111978 [15:35:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 18 B3 07 01 DB 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 92 00 00 00 F4 03 04 00 DF 9D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B5 01 00 35 04 06 00 C3 3D 29 49 CB A7 20 AA EC 7E 15 C7 6E B9 [15:35:58]CheckFolder [15:35:58]dirname=/storage/ofd_packets [15:35:58]CheckFolder done [15:35:58]ProducePacketName [15:35:58]name=ofd_packets/00111978 [15:35:58]NVStorageSaveData ofd_packets/00111978 [15:35:58]File name is /storage/ofd_packets/00111978 [15:35:58]Write 301 bytes [15:35:58]NVStorageSaveData done [15:35:58]OFDSenderStorePacket done [15:35:58]KKMCreateOFDPacket done [15:35:58]NVStorageSaveData kkm_last_timestamp [15:35:58]File name is /storage/kkm_last_timestamp [15:35:58]Write 4 bytes [15:35:58]NVStorageSaveData done [15:35:58]ExternCall_PrintAddStr [15:35:58]wPrintStart [15:35:58]Write to MH i2c: 01 00 00 1B 0D 28 [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: 01 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: 01 07 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: 01 07 00 1B 0D 00 00 00 00 00 FF 0F 3D [15:35:58]RasterBufferAndPrint [15:35:58]line 小褔械褌 N : (1)320625 [15:35:58]line 袠袧袧: 02508201610067 [15:35:58]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:35:58]line 袩袪袨袛袗袞袗 [15:35:58]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:35:58]line 孝芯胁邪褉: 2710124130 [15:35:58]line 袗懈-92-袣-5 [15:35:58]line 7.540 * 66.40 [15:35:58]line = 500.66 [15:35:58]line 袧袛小 12% 袧小袩 1% [15:35:58]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:35:58]line 袨袣袪校袚袥袝袧袠袝: -0.66 [15:35:58]line 袠孝袨袚袨: 500.00 [15:35:58]line 袙薪械褋械薪芯: 500.00 [15:35:58]line 小袛袗效袗: 0.00 [15:35:58]line 袧小袩 1% : 4.43 [15:35:58]line 袧袛小 12% : 53.17 [15:35:58]line 袧邪谢懈褔薪褘屑懈: 500.00 [15:35:58]line 袘械蟹薪邪谢.: 0.00 [15:35:58]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:35:58]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:35:58]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:35:58]line 效械泻 146 21.06.2024 15:35 [15:35:58]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:35:58]line 袟袧袦: 0300000198 [15:35:58]line 袪袧袦: 0000000000092771 [15:35:58]line 袙械褉褋懈褟 袣袣袦: 001 [15:35:58]line 肖袦: 0000000000875083 [15:35:58]line 肖袛: 111978 [15:35:58]line 肖袩袛: 214667453123495 [15:35:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T153559&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111978&fm=214667453123495&tin=02508201610067®Number=0000000000092771&sum=50000 [15:35:58]written 0, free lines is 4095 [15:35:58]OFD Sender: Processing packet 111978 [packets to send 38, broken 37] [15:35:58]ProducePacketName [15:35:58]name=ofd_packets/00111978 [15:35:58]OFD Sender: To server: 嚂鰌G, [15:35:58]CommunicateWithHost lk.salyk.kg:30040 [15:35:58]ConnectInit lk.salyk.kg [15:35:58]Write to MH i2c: 01 00 00 46 0D 53 [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: 01 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: 01 07 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 DC 0C 42 [15:35:58]RasterBufferAndPrint [15:35:58]line [15:35:58]line [15:35:58]line [15:35:58]line [15:35:58]line [15:35:58]written 0, free lines is 3299 [15:35:58]MH_Cut [15:35:58]Write to MH i2c: D1 01 00 4D 0D 01 2C [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: D1 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: D1 01 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: D1 01 00 4D 0D 00 2B [15:35:58]Write to MH i2c: 01 00 00 4E 0D 5B [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:59]*** Cut start [15:35:59]*** Partial cut [15:35:59]*** CUTSNS_PIN = 1 [15:35:59]*** CUTSNS_PIN = 0 [15:35:59]*** Brake cut motor [15:35:59]Read from MH i2c: 01 [15:36:00]MH_I2C_Read... [15:36:00]*** Stop cut motor [15:36:00]*** Cut end [15:36:00]Read from MH i2c: 01 07 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 07 00 4E 0D 00 00 00 00 00 FF 0F 70 [15:36:00]process_action close_receipt done [15:36:00]requested_data is exist [15:36:00]produce_requested_data [15:36:00]requested_item fm.sn is exist - process it [15:36:00]wFMCommunicate request_size=4 [15:36:00]MH_SAM_APDU [15:36:00]CAPDU: 80 11 00 00 [15:36:00]Write to MH i2c: E2 08 00 4F 0D 80 11 00 00 00 00 00 00 D6 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:00]Read from MH i2c: E2 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 17 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 17 00 4F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 28 [15:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:36:00]wFMCommunicate OK [15:36:00]requested_item fd.num is exist - process it [15:36:00]SAM_PROTO_GetFieldsCounters [15:36:00]wFMCommunicate request_size=4 [15:36:00]MH_SAM_APDU [15:36:00]CAPDU: 80 13 00 00 [15:36:00]Write to MH i2c: E2 08 00 50 0D 80 13 00 00 00 00 00 00 D9 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:00]Read from MH i2c: E2 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 62 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 62 00 50 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6A B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [15:36:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6A B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:00]wFMCommunicate OK [15:36:00]SAM_PROTO_GetFieldsCounters done [15:36:00]requested_item shift.num is exist - process it [15:36:00]requested_item shift.opened is exist - process it [15:36:00]req_shift_opened [15:36:00]FM_GetShiftState [15:36:00]SAM_PROTO_GetShiftState [15:36:00]wFMCommunicate request_size=4 [15:36:00]MH_SAM_APDU [15:36:00]CAPDU: 80 13 01 00 [15:36:00]Write to MH i2c: E2 08 00 51 0D 80 13 01 00 00 00 00 00 DB [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:00]Read from MH i2c: E2 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 0E 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: E2 0E 00 51 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 58 [15:36:00]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:36:00]wFMCommunicate OK [15:36:00]SAM_PROTO_GetShiftState done [15:36:00]FM_GetShiftState done [15:36:00]req_shift_opened done [15:36:00]requested_item shift.open_date is exist - process it [15:36:00]req_shift_open_date [15:36:00]req_shift_open_date done [15:36:00]produce_requested_data done [15:36:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111978,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:36:00]process_action_free close_receipt [15:36:00]json_value_free [15:36:00]json_value_free done [15:36:00]process_json_proto returns [15:36:00]Send response to host [15:36:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111978,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:36:00]free response buf [15:36:00]execute_script done [15:36:00]execute_script returns [15:36:00]free content buf [15:36:00]Sock 9.Close socket [15:36:00]Sock 9.Thread stoped [15:36:41]accept exits with 7 [15:36:41]New connection [15:36:41]New thread 3066731876 created [15:36:41]Thread 3066875236 joined [15:36:41]Waiting for new connection... [15:36:41] Sock 7.Parse request [15:36:41]Sock 7.Check first char [15:36:41]Sock 7.First char is OK [15:36:41]request: POST /json_proto HTTP/1.0 [15:36:41]Method: POST [15:36:41]URL: /json_proto [15:36:41]Method is POST - this is cgi request [15:36:41]url: /json_proto [15:36:41]query_string will be loaded in cgi processing [15:36:41]execute_cgi json_proto POST (null) [15:36:41]execute_cgi path=json_proto method=POST [15:36:41]POST find Content-Length [15:36:41]Host: 172.17.59.68:8080 [15:36:41]Content-Length: 677 [15:36:41]Content-Type: application/json [15:36:41] [15:36:41]POST finish read [15:36:41]Found Content-Length = 677 [15:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [15:36:41]execute_script... [15:36: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)320626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [15:36:41]POST & json_proto [15:36:41]process_json_proto [15:36:41]json parsed OK: [15:36:41]protocol is kg_v1.0 [15:36:41]action value=close_receipt [15:36:41]process_action close_receipt [15:36:41]cmd_close_receipt [15:36:41]MH_GetDate [15:36:41]Write to MH i2c: F0 00 00 52 0D 4E [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: F0 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: F0 09 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: F0 09 00 52 0D 00 0C 9E 75 66 BC EC 60 65 49 [15:36:41]GetLastDocTimeStamp 1718984159 [15:36:41]current date 1718984204 [15:36:41]FM_GetShiftState [15:36:41]SAM_PROTO_GetShiftState [15:36:41]wFMCommunicate request_size=4 [15:36:41]MH_SAM_APDU [15:36:41]CAPDU: 80 13 01 00 [15:36:41]Write to MH i2c: E2 08 00 53 0D 80 13 01 00 00 00 00 00 DD [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:41]Read from MH i2c: E2 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 0E 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 0E 00 53 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 5A [15:36:41]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:36:41]wFMCommunicate OK [15:36:41]SAM_PROTO_GetShiftState done [15:36:41]FM_GetShiftState done [15:36:41]opened in 1718933695 [15:36:41]opened+sec_in_day 1719020095 [15:36:41]quantity*price = 50065 [15:36:41]sum+1 = 50067 [15:36:41]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 147 21.06.2024 15:36 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111979 肖袩袛: 111232537482629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T153644&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111979&fm=111232537482629&tin=02508201610067®Number=0000000000092771&sum=50000 [15:36:42]StoreToDocumentArchive [15:36:42]shift 390 fd 111979 [15:36:42]save to /storage/0390/doc_00111979 [15:36:42]save last doc name /storage/0390/doc_00111979 to /storage/kkm_last_doc_name [15:36:42]save OK [15:36:42]Clear old archive folders... [15:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:42]tlvbuf is 0045DCD0 [15:36:42]SAM_PROTO_ClearQueue [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 09 00 00 [15:36:42]Write to MH i2c: E2 08 00 60 0D 80 09 00 00 00 00 00 00 DF [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 60 0D 00 90 00 E1 [15:36:42]RAPDU: 90 00 [15:36:42]wFMCommunicate OK [15:36:42]SAM_PROTO_ClearQueue done [15:36:42]KKMCreateOFDPacket [15:36:42]OFDProtocolAddRootSTLVToBuf [15:36:42]FM_MakeSignedData [15:36:42]FM_MakeSignedData [15:36:42]SAM_PROTO_SignData [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 0D 01 02 [15:36:42]Write to MH i2c: E2 08 00 61 0D 80 0D 01 02 00 00 00 00 E7 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 61 0D 00 90 00 E2 [15:36:42]RAPDU: 90 00 [15:36:42]wFMCommunicate OK [15:36:42]wFMCommunicate request_size=255 [15:36:42]MH_SAM_APDU [15:36: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 93 00 00 00 F4 03 04 00 0C 9E 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B5 01 00 35 04 06 00 65 [15:36:42]Write to MH i2c: E2 02 01 62 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 93 00 00 00 F4 03 04 00 0C 9E 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B5 01 00 35 04 06 00 65 00 00 C0 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 62 0D 00 90 00 E3 [15:36:42]RAPDU: 90 00 [15:36:42]wFMCommunicate OK [15:36:42]wFMCommunicate request_size=10 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 0D 02 02 05 2A 57 E2 55 85 [15:36:42]Write to MH i2c: E2 0D 00 63 0D 80 0D 02 02 05 00 2A 57 E2 55 85 00 00 31 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 63 0D 00 90 00 E4 [15:36:42]RAPDU: 90 00 [15:36:42]wFMCommunicate OK [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 0D 03 02 [15:36:42]Write to MH i2c: E2 08 00 64 0D 80 0D 03 02 00 00 00 00 EC [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 0B 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 0B 00 64 0D 00 C7 3F 66 9E B3 08 16 8F 90 00 57 [15:36:42]RAPDU: C7 3F 66 9E B3 08 16 8F 90 00 [15:36:42]wFMCommunicate OK [15:36:42]SAM_PROTO_SignData done [15:36:42]FM_MakeSignedData done [15:36:42]CreateOFDProtocolMessage [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 11 00 00 [15:36:42]Write to MH i2c: E2 08 00 65 0D 80 11 00 00 00 00 00 00 EC [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 17 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 17 00 65 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3E [15:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:36:42]wFMCommunicate OK [15:36:42]CreateOFDProtocolMessage done [15:36:42]OFDSenderStorePacket 111979 [15:36:42]StoreOFDPacket docnum=111979 [15:36:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BB 67 07 01 15 9E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 93 00 00 00 F4 03 04 00 0C 9E 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B5 01 00 35 04 06 00 65 2A 57 E2 55 85 C7 3F 66 9E B3 08 16 8F [15:36:42]CheckFolder [15:36:42]dirname=/storage/ofd_packets [15:36:42]CheckFolder done [15:36:42]ProducePacketName [15:36:42]name=ofd_packets/00111979 [15:36:42]NVStorageSaveData ofd_packets/00111979 [15:36:42]File name is /storage/ofd_packets/00111979 [15:36:42]Write 301 bytes [15:36:42]NVStorageSaveData done [15:36:42]OFDSenderStorePacket done [15:36:42]KKMCreateOFDPacket done [15:36:42]NVStorageSaveData kkm_last_timestamp [15:36:42]File name is /storage/kkm_last_timestamp [15:36:42]Write 4 bytes [15:36:42]NVStorageSaveData done [15:36:42]ExternCall_PrintAddStr [15:36:42]wPrintStart [15:36:42]Write to MH i2c: 01 00 00 66 0D 73 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: 01 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: 01 07 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: 01 07 00 66 0D 00 00 00 00 00 FF 0F 88 [15:36:42]RasterBufferAndPrint [15:36:42]line 小褔械褌 N : (1)320626 [15:36:42]line 袠袧袧: 02508201610067 [15:36:42]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:36:42]line 袩袪袨袛袗袞袗 [15:36:42]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:36:42]line 孝芯胁邪褉: 2710124130 [15:36:42]line 袗懈-92-袣-5 [15:36:42]line 7.540 * 66.40 [15:36:42]line = 500.66 [15:36:42]line 袧袛小 12% 袧小袩 1% [15:36:42]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:36:42]line 袨袣袪校袚袥袝袧袠袝: -0.66 [15:36:42]line 袠孝袨袚袨: 500.00 [15:36:42]line 袙薪械褋械薪芯: 500.00 [15:36:42]line 小袛袗效袗: 0.00 [15:36:42]line 袧小袩 1% : 4.43 [15:36:42]line 袧袛小 12% : 53.17 [15:36:42]line 袧邪谢懈褔薪褘屑懈: 500.00 [15:36:42]line 袘械蟹薪邪谢.: 0.00 [15:36:42]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:36:42]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:36:42]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:36:42]line 效械泻 147 21.06.2024 15:36 [15:36:42]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:36:42]line 袟袧袦: 0300000198 [15:36:42]line 袪袧袦: 0000000000092771 [15:36:42]line 袙械褉褋懈褟 袣袣袦: 001 [15:36:42]line 肖袦: 0000000000875083 [15:36:42]line 肖袛: 111979 [15:36:42]line 肖袩袛: 111232537482629 [15:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T153644&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111979&fm=111232537482629&tin=02508201610067®Number=0000000000092771&sum=50000 [15:36:43]written 0, free lines is 4095 [15:36:43]Write to MH i2c: 01 00 00 91 0D 9E [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: 01 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: 01 07 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: 01 07 00 91 0D 00 00 00 00 00 DC 0C 8D [15:36:43]RasterBufferAndPrint [15:36:43]line [15:36:43]line [15:36:43]line [15:36:43]line [15:36:43]line [15:36:43]written 0, free lines is 3298 [15:36:43]MH_Cut [15:36:43]Write to MH i2c: D1 01 00 98 0D 01 77 [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: D1 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: D1 01 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: D1 01 00 98 0D 00 76 [15:36:43]Write to MH i2c: 01 00 00 99 0D A6 [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:44]*** Cut start [15:36:44]*** Partial cut [15:36:44]*** CUTSNS_PIN = 1 [15:36:44]*** CUTSNS_PIN = 0 [15:36:44]*** Brake cut motor [15:36:44]Read from MH i2c: 01 [15:36:44]MH_I2C_Read... [15:36:44]*** Stop cut motor [15:36:44]*** Cut end [15:36:44]Read from MH i2c: 01 07 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: 01 07 00 99 0D 00 00 00 00 00 FF 0F BB [15:36:44]process_action close_receipt done [15:36:44]requested_data is exist [15:36:44]produce_requested_data [15:36:44]requested_item fm.sn is exist - process it [15:36:44]wFMCommunicate request_size=4 [15:36:44]MH_SAM_APDU [15:36:44]CAPDU: 80 11 00 00 [15:36:44]Write to MH i2c: E2 08 00 9A 0D 80 11 00 00 00 00 00 00 21 [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:44]Read from MH i2c: E2 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 17 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: E2 17 00 9A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 73 [15:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:36:44]wFMCommunicate OK [15:36:44]requested_item fd.num is exist - process it [15:36:44]SAM_PROTO_GetFieldsCounters [15:36:44]wFMCommunicate request_size=4 [15:36:44]MH_SAM_APDU [15:36:44]CAPDU: 80 13 00 00 [15:36:44]Write to MH i2c: E2 08 00 9B 0D 80 13 00 00 00 00 00 00 24 [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:45]Read from MH i2c: E2 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 62 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 62 00 9B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6B B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [15:36:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6B B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:45]wFMCommunicate OK [15:36:45]SAM_PROTO_GetFieldsCounters done [15:36:45]requested_item shift.num is exist - process it [15:36:45]requested_item shift.opened is exist - process it [15:36:45]req_shift_opened [15:36:45]FM_GetShiftState [15:36:45]SAM_PROTO_GetShiftState [15:36:45]wFMCommunicate request_size=4 [15:36:45]MH_SAM_APDU [15:36:45]CAPDU: 80 13 01 00 [15:36:45]Write to MH i2c: E2 08 00 9C 0D 80 13 01 00 00 00 00 00 26 [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:45]Read from MH i2c: E2 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 0E 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 0E 00 9C 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A3 [15:36:45]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:36:45]wFMCommunicate OK [15:36:45]SAM_PROTO_GetShiftState done [15:36:45]FM_GetShiftState done [15:36:45]req_shift_opened done [15:36:45]requested_item shift.open_date is exist - process it [15:36:45]req_shift_open_date [15:36:45]req_shift_open_date done [15:36:45]produce_requested_data done [15:36:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111979,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:36:45]process_action_free close_receipt [15:36:45]json_value_free [15:36:45]json_value_free done [15:36:45]process_json_proto returns [15:36:45]Send response to host [15:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111979,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:36:45]free response buf [15:36:45]execute_script done [15:36:45]execute_script returns [15:36:45]free content buf [15:36:45]Sock 7.Close socket [15:36:45]Sock 7.Thread stoped [15:38:07]ConnectInit Can't connect to host [15:38:07]CommunicateWithHost connect error [15:38:07]CommunicateWithHost err = -1 [15:38:07]OFD Sender: Server communicate error [15:38:07]OFD Sender: Processing packet 111978 [packets to send 39, broken 37] [15:38:07]ProducePacketName [15:38:07]name=ofd_packets/00111978 [15:38:07]OFD Sender: To server: 嚂鰌G, [15:38:07]CommunicateWithHost lk.salyk.kg:30040 [15:38:07]ConnectInit lk.salyk.kg [15:38:07]Connected sock=7 [15:38:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 18 B3 07 01 DB 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 92 00 00 00 F4 03 04 00 DF 9D 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B5 01 00 35 04 06 00 C3 3D 29 49 CB A7 20 AA EC 7E 15 C7 6E B9 [15:38:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 81 B5 47 00 BB F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B5 01 00 F4 03 04 00 88 35 75 66 B6 04 01 00 00 91 DF AF 04 B0 81 98 29 [15:38:08]CommunicateWithHost err = 0 [15:38:08]CheckOFDResponse [15:38:08]1017 (14) - 77093643461234 [15:38:08]1041 (16) - 0000000000875083 [15:38:08]1040 (4) - 111978 [15:38:08]1012 (4) - 21.06.2024 08:10 [15:38:08]1206 (1) - 0 [15:38:08]OFD Sender: Remove packet 111978 [15:38:08]ProducePacketName [15:38:08]name=ofd_packets/00111978 [15:38:08]NVStorageDeleteData [15:38:08]OFD Sender: Processing packet 111979 [packets to send 38, broken 37] [15:38:08]ProducePacketName [15:38:08]name=ofd_packets/00111979 [15:38:08]OFD Sender: To server: 嚂鰌G, [15:38:08]CommunicateWithHost lk.salyk.kg:30040 [15:38:08]ConnectInit lk.salyk.kg [15:38:08]Connected sock=7 [15:38:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BB 67 07 01 15 9E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 93 00 00 00 F4 03 04 00 0C 9E 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B5 01 00 35 04 06 00 65 2A 57 E2 55 85 C7 3F 66 9E B3 08 16 8F [15:38:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6E 72 47 00 11 8C 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 30 38 37 35 30 38 33 10 04 04 00 6B B5 01 00 F4 03 04 00 89 35 75 66 B6 04 01 00 00 B9 5E DA 4E E7 97 A8 42 [15:38:08]CommunicateWithHost err = 0 [15:38:08]CheckOFDResponse [15:38:08]1017 (14) - 77093643461234 [15:38:08]1041 (16) - 0000000000875083 [15:38:08]1040 (4) - 111979 [15:38:08]1012 (4) - 21.06.2024 08:10 [15:38:08]1206 (1) - 0 [15:38:08]OFD Sender: Remove packet 111979 [15:38:08]ProducePacketName [15:38:08]name=ofd_packets/00111979 [15:38:08]NVStorageDeleteData [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:58]accept exits with 9 [15:38:58]New connection [15:38:58]New thread 3066875236 created [15:38:58]Thread 3066731876 joined [15:38:58]Waiting for new connection... [15:38:58] Sock 9.Parse request [15:38:58]Sock 9.Check first char [15:38:58]Sock 9.First char is OK [15:38:58]request: POST /json_proto HTTP/1.0 [15:38:58]Method: POST [15:38:58]URL: /json_proto [15:38:58]Method is POST - this is cgi request [15:38:58]url: /json_proto [15:38:58]query_string will be loaded in cgi processing [15:38:58]execute_cgi json_proto POST (null) [15:38:58]execute_cgi path=json_proto method=POST [15:38:58]POST find Content-Length [15:38:58]Host: 172.17.59.68:8080 [15:38:58]Content-Length: 678 [15:38:58]Content-Type: application/json [15:38:58] [15:38:58]POST finish read [15:38:58]Found Content-Length = 678 [15:38:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [15:38:58]execute_script... [15:38: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)320627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [15:38:58]POST & json_proto [15:38:58]process_json_proto [15:38:58]json parsed OK: [15:38:58]protocol is kg_v1.0 [15:38:58]action value=close_receipt [15:38:58]process_action close_receipt [15:38:58]cmd_close_receipt [15:38:58]MH_GetDate [15:38:58]Write to MH i2c: F0 00 00 9D 0D 99 [15:38:58]Write i2c OK [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: F0 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: F0 09 00 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: F0 09 00 9D 0D 00 96 9E 75 66 BC EC 60 65 1E [15:38:58]GetLastDocTimeStamp 1718984204 [15:38:58]current date 1718984342 [15:38:58]FM_GetShiftState [15:38:58]SAM_PROTO_GetShiftState [15:38:58]wFMCommunicate request_size=4 [15:38:58]MH_SAM_APDU [15:38:58]CAPDU: 80 13 01 00 [15:38:58]Write to MH i2c: E2 08 00 9E 0D 80 13 01 00 00 00 00 00 28 [15:38:58]Write i2c OK [15:38:58]MH_I2C_Read... [15:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:59]Read from MH i2c: E2 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 0E 00 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 0E 00 9E 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A5 [15:38:59]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:38:59]wFMCommunicate OK [15:38:59]SAM_PROTO_GetShiftState done [15:38:59]FM_GetShiftState done [15:38:59]opened in 1718933695 [15:38:59]opened+sec_in_day 1719020095 [15:38:59]quantity*price = 70052 [15:38:59]sum+1 = 70053 [15:38:59]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.52 袠孝袨袚袨: 700.00 袙薪械褋械薪芯: 700.00 小袛袗效袗: 0.00 袧小袩 1% : 6.20 袧袛小 12% : 74.39 袧邪谢懈褔薪褘屑懈: 700.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 148 21.06.2024 15:39 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111980 肖袩袛: 40375171362505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T153902&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111980&fm=40375171362505&tin=02508201610067®Number=0000000000092771&sum=70000 [15:39:00]StoreToDocumentArchive [15:39:00]shift 390 fd 111980 [15:39:00]save to /storage/0390/doc_00111980 [15:39:00]save last doc name /storage/0390/doc_00111980 to /storage/kkm_last_doc_name [15:39:00]save OK [15:39:00]Clear old archive folders... [15:39:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:00]tlvbuf is 0034E230 [15:39:00]SAM_PROTO_ClearQueue [15:39:00]wFMCommunicate request_size=4 [15:39:00]MH_SAM_APDU [15:39:00]CAPDU: 80 09 00 00 [15:39:00]Write to MH i2c: E2 08 00 AB 0D 80 09 00 00 00 00 00 00 2A [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 [15:39:00]MH_I2C_Read... [15:39:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:00]Read from MH i2c: E2 03 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 03 00 AB 0D 00 90 00 2C [15:39:00]RAPDU: 90 00 [15:39:00]wFMCommunicate OK [15:39:00]SAM_PROTO_ClearQueue done [15:39:00]KKMCreateOFDPacket [15:39:00]OFDProtocolAddRootSTLVToBuf [15:39:00]FM_MakeSignedData [15:39:00]FM_MakeSignedData [15:39:00]SAM_PROTO_SignData [15:39:00]wFMCommunicate request_size=4 [15:39:00]MH_SAM_APDU [15:39:00]CAPDU: 80 0D 01 02 [15:39:00]Write to MH i2c: E2 08 00 AC 0D 80 0D 01 02 00 00 00 00 32 [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:00]Read from MH i2c: E2 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 03 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 03 00 AC 0D 00 90 00 2D [15:39:00]RAPDU: 90 00 [15:39:00]wFMCommunicate OK [15:39:00]wFMCommunicate request_size=255 [15:39:00]MH_SAM_APDU [15:39:00]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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 94 00 00 00 F4 03 04 00 96 9E 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B5 01 00 35 04 06 00 24 [15:39:00]Write to MH i2c: E2 02 01 AD 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 94 00 00 00 F4 03 04 00 96 9E 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B5 01 00 35 04 06 00 24 00 00 68 [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:00]Read from MH i2c: E2 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 03 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 03 00 AD 0D 00 90 00 2E [15:39:00]RAPDU: 90 00 [15:39:00]wFMCommunicate OK [15:39:00]wFMCommunicate request_size=10 [15:39:00]MH_SAM_APDU [15:39:00]CAPDU: 80 0D 02 02 05 B8 93 BF 2E C9 [15:39:00]Write to MH i2c: E2 0D 00 AE 0D 80 0D 02 02 05 00 B8 93 BF 2E C9 00 00 40 [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:00]Read from MH i2c: E2 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 03 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 03 00 AE 0D 00 90 00 2F [15:39:00]RAPDU: 90 00 [15:39:00]wFMCommunicate OK [15:39:00]wFMCommunicate request_size=4 [15:39:00]MH_SAM_APDU [15:39:00]CAPDU: 80 0D 03 02 [15:39:00]Write to MH i2c: E2 08 00 AF 0D 80 0D 03 02 00 00 00 00 37 [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:00]Read from MH i2c: E2 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 0B 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 0B 00 AF 0D 00 BE 18 A5 68 5C 6D 8D 36 90 00 A7 [15:39:00]RAPDU: BE 18 A5 68 5C 6D 8D 36 90 00 [15:39:00]wFMCommunicate OK [15:39:00]SAM_PROTO_SignData done [15:39:00]FM_MakeSignedData done [15:39:00]CreateOFDProtocolMessage [15:39:00]wFMCommunicate request_size=4 [15:39:00]MH_SAM_APDU [15:39:00]CAPDU: 80 11 00 00 [15:39:00]Write to MH i2c: E2 08 00 B0 0D 80 11 00 00 00 00 00 00 37 [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:00]Read from MH i2c: E2 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 17 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: E2 17 00 B0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 89 [15:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:39:00]wFMCommunicate OK [15:39:00]CreateOFDProtocolMessage done [15:39:00]OFDSenderStorePacket 111980 [15:39:00]StoreOFDPacket docnum=111980 [15:39:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7C 1B 07 01 C7 13 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 94 00 00 00 F4 03 04 00 96 9E 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B5 01 00 35 04 06 00 24 B8 93 BF 2E C9 BE 18 A5 68 5C 6D 8D 36 [15:39:00]CheckFolder [15:39:00]dirname=/storage/ofd_packets [15:39:00]CheckFolder done [15:39:00]ProducePacketName [15:39:00]name=ofd_packets/00111980 [15:39:00]NVStorageSaveData ofd_packets/00111980 [15:39:00]File name is /storage/ofd_packets/00111980 [15:39:00]Write 301 bytes [15:39:00]NVStorageSaveData done [15:39:00]OFDSenderStorePacket done [15:39:00]KKMCreateOFDPacket done [15:39:00]NVStorageSaveData kkm_last_timestamp [15:39:00]File name is /storage/kkm_last_timestamp [15:39:00]Write 4 bytes [15:39:00]NVStorageSaveData done [15:39:00]ExternCall_PrintAddStr [15:39:00]wPrintStart [15:39:00]Write to MH i2c: 01 00 00 B1 0D BE [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: 01 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: 01 07 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: 01 07 00 B1 0D 00 00 00 00 00 FF 0F D3 [15:39:00]RasterBufferAndPrint [15:39:00]line 小褔械褌 N : (1)320627 [15:39:00]line 袠袧袧: 02508201610067 [15:39:00]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:39:00]line 袩袪袨袛袗袞袗 [15:39:00]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:39:00]line 孝芯胁邪褉: 2710124130 [15:39:00]line 袗懈-92-袣-5 [15:39:00]line 10.550 * 66.40 [15:39:00]line = 700.52 [15:39:00]line 袧袛小 12% 袧小袩 1% [15:39:00]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:39:00]line 袨袣袪校袚袥袝袧袠袝: -0.52 [15:39:00]line 袠孝袨袚袨: 700.00 [15:39:00]line 袙薪械褋械薪芯: 700.00 [15:39:00]line 小袛袗效袗: 0.00 [15:39:00]line 袧小袩 1% : 6.20 [15:39:00]line 袧袛小 12% : 74.39 [15:39:00]line 袧邪谢懈褔薪褘屑懈: 700.00 [15:39:00]line 袘械蟹薪邪谢.: 0.00 [15:39:00]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:39:00]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:39:00]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:39:00]line 效械泻 148 21.06.2024 15:39 [15:39:00]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:39:00]line 袟袧袦: 0300000198 [15:39:00]line 袪袧袦: 0000000000092771 [15:39:00]line 袙械褉褋懈褟 袣袣袦: 001 [15:39:00]line 肖袦: 0000000000875083 [15:39:00]line 肖袛: 111980 [15:39:00]line 肖袩袛: 40375171362505 [15:39:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T153902&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111980&fm=40375171362505&tin=02508201610067®Number=0000000000092771&sum=70000 [15:39:01]OFD Sender: Processing packet 111980 [packets to send 38, broken 37] [15:39:01]ProducePacketName [15:39:01]name=ofd_packets/00111980 [15:39:01]OFD Sender: To server: 嚂鰌G, [15:39:01]CommunicateWithHost lk.salyk.kg:30040 [15:39:01]ConnectInit lk.salyk.kg [15:39:01]written 0, free lines is 4095 [15:39:01]Connected sock=10 [15:39:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7C 1B 07 01 C7 13 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 94 00 00 00 F4 03 04 00 96 9E 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B5 01 00 35 04 06 00 24 B8 93 BF 2E C9 BE 18 A5 68 5C 6D 8D 36 [15:39:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 93 F1 47 00 77 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 30 38 37 35 30 38 33 10 04 04 00 6C B5 01 00 F4 03 04 00 BD 35 75 66 B6 04 01 00 00 69 9F 44 47 31 7B 0B 29 [15:39:01]CommunicateWithHost err = 0 [15:39:01]CheckOFDResponse [15:39:01]1017 (14) - 77093643461234 [15:39:01]1041 (16) - 0000000000875083 [15:39:01]1040 (4) - 111980 [15:39:01]1012 (4) - 21.06.2024 08:11 [15:39:01]1206 (1) - 0 [15:39:01]OFD Sender: Remove packet 111980 [15:39:01]ProducePacketName [15:39:01]name=ofd_packets/00111980 [15:39:01]NVStorageDeleteData [15:39:01]Write to MH i2c: 01 00 00 DC 0D E9 [15:39:01]Write i2c OK [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: 01 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: 01 07 00 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 E4 0C E0 [15:39:01]RasterBufferAndPrint [15:39:01]line [15:39:01]line [15:39:01]line [15:39:01]line [15:39:01]line [15:39:01]written 0, free lines is 3306 [15:39:01]MH_Cut [15:39:01]Write to MH i2c: D1 01 00 E3 0D 01 C2 [15:39:01]Write i2c OK [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: D1 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: D1 01 00 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: D1 01 00 E3 0D 00 C1 [15:39:01]Write to MH i2c: 01 00 00 E4 0D F1 [15:39:01]Write i2c OK [15:39:01]MH_I2C_Read... [15:39:01]OFD Sender: No OFD packet to send [15:39:02]*** Cut start [15:39:02]*** Partial cut [15:39:02]*** CUTSNS_PIN = 1 [15:39:02]*** CUTSNS_PIN = 0 [15:39:02]*** Brake cut motor [15:39:02]Read from MH i2c: 01 [15:39:02]MH_I2C_Read... [15:39:02]*** Stop cut motor [15:39:02]*** Cut end [15:39:02]Read from MH i2c: 01 07 00 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: 01 07 00 E4 0D 00 00 00 00 00 FF 0F 06 [15:39:02]process_action close_receipt done [15:39:02]requested_data is exist [15:39:02]produce_requested_data [15:39:02]requested_item fm.sn is exist - process it [15:39:02]wFMCommunicate request_size=4 [15:39:02]MH_SAM_APDU [15:39:02]CAPDU: 80 11 00 00 [15:39:02]Write to MH i2c: E2 08 00 E5 0D 80 11 00 00 00 00 00 00 6C [15:39:02]Write i2c OK [15:39:02]MH_I2C_Read... [15:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:02]Read from MH i2c: E2 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: E2 17 00 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: E2 17 00 E5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BE [15:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:39:02]wFMCommunicate OK [15:39:02]requested_item fd.num is exist - process it [15:39:02]SAM_PROTO_GetFieldsCounters [15:39:02]wFMCommunicate request_size=4 [15:39:02]MH_SAM_APDU [15:39:02]CAPDU: 80 13 00 00 [15:39:02]Write to MH i2c: E2 08 00 E6 0D 80 13 00 00 00 00 00 00 6F [15:39:02]Write i2c OK [15:39:02]MH_I2C_Read... [15:39:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:02]Read from MH i2c: E2 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: E2 62 00 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: E2 62 00 E6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6C B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [15:39:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6C B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:03]wFMCommunicate OK [15:39:03]SAM_PROTO_GetFieldsCounters done [15:39:03]requested_item shift.num is exist - process it [15:39:03]requested_item shift.opened is exist - process it [15:39:03]req_shift_opened [15:39:03]FM_GetShiftState [15:39:03]SAM_PROTO_GetShiftState [15:39:03]wFMCommunicate request_size=4 [15:39:03]MH_SAM_APDU [15:39:03]CAPDU: 80 13 01 00 [15:39:03]Write to MH i2c: E2 08 00 E7 0D 80 13 01 00 00 00 00 00 71 [15:39:03]Write i2c OK [15:39:03]MH_I2C_Read... [15:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:03]Read from MH i2c: E2 [15:39:03]MH_I2C_Read... [15:39:03]Read from MH i2c: E2 0E 00 [15:39:03]MH_I2C_Read... [15:39:03]Read from MH i2c: E2 0E 00 E7 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 EE [15:39:03]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:39:03]wFMCommunicate OK [15:39:03]SAM_PROTO_GetShiftState done [15:39:03]FM_GetShiftState done [15:39:03]req_shift_opened done [15:39:03]requested_item shift.open_date is exist - process it [15:39:03]req_shift_open_date [15:39:03]req_shift_open_date done [15:39:03]produce_requested_data done [15:39:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111980,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:39:03]process_action_free close_receipt [15:39:03]json_value_free [15:39:03]json_value_free done [15:39:03]process_json_proto returns [15:39:03]Send response to host [15:39:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111980,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:39:03]free response buf [15:39:03]execute_script done [15:39:03]execute_script returns [15:39:03]free content buf [15:39:03]Sock 9.Close socket [15:39:03]Sock 9.Thread stoped [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]accept exits with 7 [15:41:11]New connection [15:41:11]New thread 3066731876 created [15:41:11]Thread 3066875236 joined [15:41:11]Waiting for new connection... [15:41:11] Sock 7.Parse request [15:41:11]Sock 7.Check first char [15:41:11]Sock 7.First char is OK [15:41:11]request: POST /json_proto HTTP/1.0 [15:41:11]Method: POST [15:41:11]URL: /json_proto [15:41:11]Method is POST - this is cgi request [15:41:11]url: /json_proto [15:41:11]query_string will be loaded in cgi processing [15:41:11]execute_cgi json_proto POST (null) [15:41:11]execute_cgi path=json_proto method=POST [15:41:11]POST find Content-Length [15:41:11]Host: 172.17.59.68:8080 [15:41:11]Content-Length: 677 [15:41:11]Content-Type: application/json [15:41:11] [15:41:11]POST finish read [15:41:11]Found Content-Length = 677 [15:41:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.930, "sum" : 460.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:11]execute_script... [15:41: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 : (1)320628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.930, "sum" : 460.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:11]POST & json_proto [15:41:11]process_json_proto [15:41:11]json parsed OK: [15:41:11]protocol is kg_v1.0 [15:41:11]action value=close_receipt [15:41:11]process_action close_receipt [15:41:11]cmd_close_receipt [15:41:11]MH_GetDate [15:41:11]Write to MH i2c: F0 00 00 E8 0D E4 [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: F0 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: F0 09 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: F0 09 00 E8 0D 00 1A 9F 75 66 BC EC 60 65 EE [15:41:11]GetLastDocTimeStamp 1718984342 [15:41:11]current date 1718984474 [15:41:11]FM_GetShiftState [15:41:11]SAM_PROTO_GetShiftState [15:41:11]wFMCommunicate request_size=4 [15:41:11]MH_SAM_APDU [15:41:11]CAPDU: 80 13 01 00 [15:41:11]Write to MH i2c: E2 08 00 E9 0D 80 13 01 00 00 00 00 00 73 [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:11]Read from MH i2c: E2 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 0E 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 0E 00 E9 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F0 [15:41:11]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:41:11]wFMCommunicate OK [15:41:11]SAM_PROTO_GetShiftState done [15:41:11]FM_GetShiftState done [15:41:11]opened in 1718933695 [15:41:11]opened+sec_in_day 1719020095 [15:41:11]quantity*price = 46015 [15:41:11]sum+1 = 46016 [15:41:11]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.15 袠孝袨袚袨: 460.00 袙薪械褋械薪芯: 460.00 小袛袗效袗: 0.00 袧小袩 1% : 4.07 袧袛小 12% : 48.86 袧邪谢懈褔薪褘屑懈: 460.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 149 21.06.2024 15:41 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111981 肖袩袛: 223443551393553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T154114&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111981&fm=223443551393553&tin=02508201610067®Number=0000000000092771&sum=46000 [15:41:12]StoreToDocumentArchive [15:41:12]shift 390 fd 111981 [15:41:12]save to /storage/0390/doc_00111981 [15:41:12]save last doc name /storage/0390/doc_00111981 to /storage/kkm_last_doc_name [15:41:12]save OK [15:41:12]Clear old archive folders... [15:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:12]tlvbuf is 00359B00 [15:41:12]SAM_PROTO_ClearQueue [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 09 00 00 [15:41:12]Write to MH i2c: E2 08 00 F6 0D 80 09 00 00 00 00 00 00 75 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 F6 0D 00 90 00 77 [15:41:12]RAPDU: 90 00 [15:41:12]wFMCommunicate OK [15:41:12]SAM_PROTO_ClearQueue done [15:41:12]KKMCreateOFDPacket [15:41:12]OFDProtocolAddRootSTLVToBuf [15:41:12]FM_MakeSignedData [15:41:12]FM_MakeSignedData [15:41:12]SAM_PROTO_SignData [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 0D 01 02 [15:41:12]Write to MH i2c: E2 08 00 F7 0D 80 0D 01 02 00 00 00 00 7D [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 F7 0D 00 90 00 78 [15:41:12]RAPDU: 90 00 [15:41:12]wFMCommunicate OK [15:41:12]wFMCommunicate request_size=255 [15:41:12]MH_SAM_APDU [15:41: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 12 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BF B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 1A 9F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B5 01 00 35 04 06 00 CB [15:41:12]Write to MH i2c: E2 02 01 F8 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 12 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BF B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 1A 9F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B5 01 00 35 04 06 00 CB 00 00 54 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 F8 0D 00 90 00 79 [15:41:12]RAPDU: 90 00 [15:41:12]wFMCommunicate OK [15:41:12]wFMCommunicate request_size=10 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 0D 02 02 05 38 81 82 17 11 [15:41:12]Write to MH i2c: E2 0D 00 F9 0D 80 0D 02 02 05 00 38 81 82 17 11 00 00 ED [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 F9 0D 00 90 00 7A [15:41:12]RAPDU: 90 00 [15:41:12]wFMCommunicate OK [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 0D 03 02 [15:41:12]Write to MH i2c: E2 08 00 FA 0D 80 0D 03 02 00 00 00 00 82 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 0B 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 0B 00 FA 0D 00 E4 DC 5D 2B D7 03 73 6E 90 00 86 [15:41:12]RAPDU: E4 DC 5D 2B D7 03 73 6E 90 00 [15:41:12]wFMCommunicate OK [15:41:12]SAM_PROTO_SignData done [15:41:12]FM_MakeSignedData done [15:41:12]CreateOFDProtocolMessage [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 11 00 00 [15:41:12]Write to MH i2c: E2 08 00 FB 0D 80 11 00 00 00 00 00 00 82 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 17 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 17 00 FB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D4 [15:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:41:12]wFMCommunicate OK [15:41:12]CreateOFDProtocolMessage done [15:41:12]OFDSenderStorePacket 111981 [15:41:12]StoreOFDPacket docnum=111981 [15:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8F BE 07 01 F0 9B 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 12 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BF B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 1A 9F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B5 01 00 35 04 06 00 CB 38 81 82 17 11 E4 DC 5D 2B D7 03 73 6E [15:41:12]CheckFolder [15:41:12]dirname=/storage/ofd_packets [15:41:12]CheckFolder done [15:41:12]ProducePacketName [15:41:12]name=ofd_packets/00111981 [15:41:12]NVStorageSaveData ofd_packets/00111981 [15:41:12]File name is /storage/ofd_packets/00111981 [15:41:12]Write 301 bytes [15:41:12]NVStorageSaveData done [15:41:12]OFDSenderStorePacket done [15:41:12]KKMCreateOFDPacket done [15:41:12]NVStorageSaveData kkm_last_timestamp [15:41:12]File name is /storage/kkm_last_timestamp [15:41:12]Write 4 bytes [15:41:12]NVStorageSaveData done [15:41:12]ExternCall_PrintAddStr [15:41:12]wPrintStart [15:41:12]Write to MH i2c: 01 00 00 FC 0D 09 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: 01 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: 01 07 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: 01 07 00 FC 0D 00 00 00 00 00 FF 0F 1E [15:41:12]RasterBufferAndPrint [15:41:12]line 小褔械褌 N : (1)320628 [15:41:12]line 袠袧袧: 02508201610067 [15:41:12]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:41:12]line 袩袪袨袛袗袞袗 [15:41:12]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:41:12]line 孝芯胁邪褉: 2710124130 [15:41:12]line 袗懈-92-袣-5 [15:41:12]line 6.930 * 66.40 [15:41:12]line = 460.15 [15:41:12]line 袧袛小 12% 袧小袩 1% [15:41:12]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:41:12]line 袨袣袪校袚袥袝袧袠袝: -0.15 [15:41:12]line 袠孝袨袚袨: 460.00 [15:41:12]line 袙薪械褋械薪芯: 460.00 [15:41:12]line 小袛袗效袗: 0.00 [15:41:12]line 袧小袩 1% : 4.07 [15:41:12]line 袧袛小 12% : 48.86 [15:41:12]line 袧邪谢懈褔薪褘屑懈: 460.00 [15:41:12]line 袘械蟹薪邪谢.: 0.00 [15:41:12]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:41:12]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:41:12]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:41:12]line 效械泻 149 21.06.2024 15:41 [15:41:12]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:41:12]line 袟袧袦: 0300000198 [15:41:12]line 袪袧袦: 0000000000092771 [15:41:12]line 袙械褉褋懈褟 袣袣袦: 001 [15:41:12]line 肖袦: 0000000000875083 [15:41:13]line 肖袛: 111981 [15:41:13]line 肖袩袛: 223443551393553 [15:41:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T154114&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111981&fm=223443551393553&tin=02508201610067®Number=0000000000092771&sum=46000 [15:41:13]OFD Sender: Processing packet 111981 [packets to send 38, broken 37] [15:41:13]ProducePacketName [15:41:13]name=ofd_packets/00111981 [15:41:13]OFD Sender: To server: 嚂鰌G, [15:41:13]CommunicateWithHost lk.salyk.kg:30040 [15:41:13]ConnectInit lk.salyk.kg [15:41:13]written 0, free lines is 4095 [15:41:13]Connected sock=10 [15:41:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8F BE 07 01 F0 9B 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 12 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BF B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 1A 9F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B5 01 00 35 04 06 00 CB 38 81 82 17 11 E4 DC 5D 2B D7 03 73 6E [15:41:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 86 14 47 00 AB 0C 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 30 38 37 35 30 38 33 10 04 04 00 6D B5 01 00 F4 03 04 00 41 36 75 66 B6 04 01 00 00 FD 6C 3A 63 6D 40 CB D2 [15:41:13]CommunicateWithHost err = 0 [15:41:13]CheckOFDResponse [15:41:13]1017 (14) - 77093643461234 [15:41:13]1041 (16) - 0000000000875083 [15:41:13]1040 (4) - 111981 [15:41:13]1012 (4) - 21.06.2024 08:13 [15:41:13]1206 (1) - 0 [15:41:13]OFD Sender: Remove packet 111981 [15:41:13]ProducePacketName [15:41:13]name=ofd_packets/00111981 [15:41:13]NVStorageDeleteData [15:41:13]Write to MH i2c: 01 00 00 27 0E 35 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 07 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 07 00 27 0E 00 00 00 00 00 EC 0C 34 [15:41:13]RasterBufferAndPrint [15:41:13]line [15:41:13]line [15:41:13]line [15:41:13]line [15:41:13]line [15:41:13]written 0, free lines is 3314 [15:41:13]MH_Cut [15:41:13]Write to MH i2c: D1 01 00 2E 0E 01 0E [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: D1 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: D1 01 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: D1 01 00 2E 0E 00 0D [15:41:13]Write to MH i2c: 01 00 00 2F 0E 3D [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]OFD Sender: No OFD packet to send [15:41:14]*** Cut start [15:41:14]*** Partial cut [15:41:14]*** CUTSNS_PIN = 1 [15:41:14]*** CUTSNS_PIN = 0 [15:41:14]*** Brake cut motor [15:41:14]Read from MH i2c: 01 [15:41:14]MH_I2C_Read... [15:41:14]*** Stop cut motor [15:41:14]*** Cut end [15:41:14]Read from MH i2c: 01 07 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: 01 07 00 2F 0E 00 00 00 00 00 FF 0F 52 [15:41:14]process_action close_receipt done [15:41:14]requested_data is exist [15:41:14]produce_requested_data [15:41:14]requested_item fm.sn is exist - process it [15:41:14]wFMCommunicate request_size=4 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 11 00 00 [15:41:14]Write to MH i2c: E2 08 00 30 0E 80 11 00 00 00 00 00 00 B8 [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:14]Read from MH i2c: E2 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 17 00 [15:41:14]MH_I2C_Read... [15:41:14]Read from MH i2c: E2 17 00 30 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0A [15:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:41:14]wFMCommunicate OK [15:41:14]requested_item fd.num is exist - process it [15:41:14]SAM_PROTO_GetFieldsCounters [15:41:14]wFMCommunicate request_size=4 [15:41:14]MH_SAM_APDU [15:41:14]CAPDU: 80 13 00 00 [15:41:14]Write to MH i2c: E2 08 00 31 0E 80 13 00 00 00 00 00 00 BB [15:41:14]Write i2c OK [15:41:14]MH_I2C_Read... [15:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:15]Read from MH i2c: E2 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 62 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 62 00 31 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6D B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [15:41:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6D B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:15]wFMCommunicate OK [15:41:15]SAM_PROTO_GetFieldsCounters done [15:41:15]requested_item shift.num is exist - process it [15:41:15]requested_item shift.opened is exist - process it [15:41:15]req_shift_opened [15:41:15]FM_GetShiftState [15:41:15]SAM_PROTO_GetShiftState [15:41:15]wFMCommunicate request_size=4 [15:41:15]MH_SAM_APDU [15:41:15]CAPDU: 80 13 01 00 [15:41:15]Write to MH i2c: E2 08 00 32 0E 80 13 01 00 00 00 00 00 BD [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:15]Read from MH i2c: E2 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 0E 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 0E 00 32 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 3A [15:41:15]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:41:15]wFMCommunicate OK [15:41:15]SAM_PROTO_GetShiftState done [15:41:15]FM_GetShiftState done [15:41:15]req_shift_opened done [15:41:15]requested_item shift.open_date is exist - process it [15:41:15]req_shift_open_date [15:41:15]req_shift_open_date done [15:41:15]produce_requested_data done [15:41:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111981,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:41:15]process_action_free close_receipt [15:41:15]json_value_free [15:41:15]json_value_free done [15:41:15]process_json_proto returns [15:41:15]Send response to host [15:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111981,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:41:15]free response buf [15:41:15]execute_script done [15:41:15]execute_script returns [15:41:15]free content buf [15:41:15]Sock 7.Close socket [15:41:15]Sock 7.Thread stoped [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]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:54]accept exits with 9 [15:43:54]New connection [15:43:54]New thread 3066875236 created [15:43:54]Thread 3066731876 joined [15:43:54]Waiting for new connection... [15:43:54] Sock 9.Parse request [15:43:54]Sock 9.Check first char [15:43:54]Sock 9.First char is OK [15:43:54]request: POST /json_proto HTTP/1.0 [15:43:54]Method: POST [15:43:54]URL: /json_proto [15:43:54]Method is POST - this is cgi request [15:43:54]url: /json_proto [15:43:54]query_string will be loaded in cgi processing [15:43:54]execute_cgi json_proto POST (null) [15:43:54]execute_cgi path=json_proto method=POST [15:43:54]POST find Content-Length [15:43:54]Host: 172.17.59.68:8080 [15:43:54]Content-Length: 682 [15:43:54]Content-Type: application/json [15:43:54] [15:43:54]POST finish read [15:43:54]Found Content-Length = 682 [15:43:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [15:43:54]execute_script... [15:43: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 : (1)320629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [15:43:54]POST & json_proto [15:43:54]process_json_proto [15:43:54]json parsed OK: [15:43:54]protocol is kg_v1.0 [15:43:54]action value=close_receipt [15:43:54]process_action close_receipt [15:43:54]cmd_close_receipt [15:43:54]MH_GetDate [15:43:54]Write to MH i2c: F0 00 00 33 0E 30 [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: F0 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: F0 09 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: F0 09 00 33 0E 00 BD 9F 75 66 BC EC 60 65 DD [15:43:54]GetLastDocTimeStamp 1718984474 [15:43:54]current date 1718984637 [15:43:54]FM_GetShiftState [15:43:54]SAM_PROTO_GetShiftState [15:43:54]wFMCommunicate request_size=4 [15:43:54]MH_SAM_APDU [15:43:54]CAPDU: 80 13 01 00 [15:43:54]Write to MH i2c: E2 08 00 34 0E 80 13 01 00 00 00 00 00 BF [15:43:54]Write i2c OK [15:43:54]MH_I2C_Read... [15:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:54]Read from MH i2c: E2 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 0E 00 [15:43:54]MH_I2C_Read... [15:43:54]Read from MH i2c: E2 0E 00 34 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 3C [15:43:54]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:43:54]wFMCommunicate OK [15:43:54]SAM_PROTO_GetShiftState done [15:43:54]FM_GetShiftState done [15:43:54]opened in 1718933695 [15:43:54]opened+sec_in_day 1719020095 [15:43:54]quantity*price = 100064 [15:43:54]sum+1 = 100066 [15:43:54]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 150 21.06.2024 15:43 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111982 肖袩袛: 62870368021450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T154357&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111982&fm=62870368021450&tin=02508201610067®Number=0000000000092771&sum=100000 [15:43:55]StoreToDocumentArchive [15:43:55]shift 390 fd 111982 [15:43:55]save to /storage/0390/doc_00111982 [15:43:55]save last doc name /storage/0390/doc_00111982 to /storage/kkm_last_doc_name [15:43:55]save OK [15:43:55]Clear old archive folders... [15:43:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:55]tlvbuf is 0045F110 [15:43:55]SAM_PROTO_ClearQueue [15:43:55]wFMCommunicate request_size=4 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 09 00 00 [15:43:55]Write to MH i2c: E2 08 00 41 0E 80 09 00 00 00 00 00 00 C1 [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 03 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 03 00 41 0E 00 90 00 C3 [15:43:55]RAPDU: 90 00 [15:43:55]wFMCommunicate OK [15:43:55]SAM_PROTO_ClearQueue done [15:43:55]KKMCreateOFDPacket [15:43:55]OFDProtocolAddRootSTLVToBuf [15:43:55]FM_MakeSignedData [15:43:55]FM_MakeSignedData [15:43:55]SAM_PROTO_SignData [15:43:55]wFMCommunicate request_size=4 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 0D 01 02 [15:43:55]Write to MH i2c: E2 08 00 42 0E 80 0D 01 02 00 00 00 00 C9 [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 03 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 03 00 42 0E 00 90 00 C4 [15:43:55]RAPDU: 90 00 [15:43:55]wFMCommunicate OK [15:43:55]wFMCommunicate request_size=255 [15:43:55]MH_SAM_APDU [15:43:55]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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 96 00 00 00 F4 03 04 00 BD 9F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B5 01 00 35 04 06 00 39 [15:43:55]Write to MH i2c: E2 02 01 43 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 96 00 00 00 F4 03 04 00 BD 9F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B5 01 00 35 04 06 00 39 00 00 7E [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 03 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 03 00 43 0E 00 90 00 C5 [15:43:55]RAPDU: 90 00 [15:43:55]wFMCommunicate OK [15:43:55]wFMCommunicate request_size=10 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 0D 02 02 05 2E 25 F3 EB CA [15:43:55]Write to MH i2c: E2 0D 00 44 0E 80 0D 02 02 05 00 2E 25 F3 EB CA 00 00 D1 [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 03 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 03 00 44 0E 00 90 00 C6 [15:43:55]RAPDU: 90 00 [15:43:55]wFMCommunicate OK [15:43:55]wFMCommunicate request_size=4 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 0D 03 02 [15:43:55]Write to MH i2c: E2 08 00 45 0E 80 0D 03 02 00 00 00 00 CE [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 0B 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 0B 00 45 0E 00 D1 08 52 9A A7 62 4C 3A 90 00 23 [15:43:55]RAPDU: D1 08 52 9A A7 62 4C 3A 90 00 [15:43:55]wFMCommunicate OK [15:43:55]SAM_PROTO_SignData done [15:43:55]FM_MakeSignedData done [15:43:55]CreateOFDProtocolMessage [15:43:55]wFMCommunicate request_size=4 [15:43:55]MH_SAM_APDU [15:43:55]CAPDU: 80 11 00 00 [15:43:55]Write to MH i2c: E2 08 00 46 0E 80 11 00 00 00 00 00 00 CE [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:55]Read from MH i2c: E2 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 17 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: E2 17 00 46 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 20 [15:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:43:55]wFMCommunicate OK [15:43:55]CreateOFDProtocolMessage done [15:43:55]OFDSenderStorePacket 111982 [15:43:55]StoreOFDPacket docnum=111982 [15:43:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 29 BB 07 01 51 D6 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 96 00 00 00 F4 03 04 00 BD 9F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B5 01 00 35 04 06 00 39 2E 25 F3 EB CA D1 08 52 9A A7 62 4C 3A [15:43:55]CheckFolder [15:43:55]dirname=/storage/ofd_packets [15:43:55]CheckFolder done [15:43:55]ProducePacketName [15:43:55]name=ofd_packets/00111982 [15:43:55]NVStorageSaveData ofd_packets/00111982 [15:43:55]File name is /storage/ofd_packets/00111982 [15:43:55]Write 301 bytes [15:43:55]NVStorageSaveData done [15:43:55]OFDSenderStorePacket done [15:43:55]KKMCreateOFDPacket done [15:43:55]NVStorageSaveData kkm_last_timestamp [15:43:55]File name is /storage/kkm_last_timestamp [15:43:55]Write 4 bytes [15:43:55]NVStorageSaveData done [15:43:55]ExternCall_PrintAddStr [15:43:55]wPrintStart [15:43:55]Write to MH i2c: 01 00 00 47 0E 55 [15:43:55]Write i2c OK [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: 01 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: 01 07 00 [15:43:55]MH_I2C_Read... [15:43:55]Read from MH i2c: 01 07 00 47 0E 00 00 00 00 00 FF 0F 6A [15:43:55]RasterBufferAndPrint [15:43:55]line 小褔械褌 N : (1)320629 [15:43:55]line 袠袧袧: 02508201610067 [15:43:55]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:43:55]line 袩袪袨袛袗袞袗 [15:43:55]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:43:55]line 孝芯胁邪褉: 2710124130 [15:43:55]line 袗懈-92-袣-5 [15:43:55]line 15.070 * 66.40 [15:43:55]line = 1000.65 [15:43:55]line 袧袛小 12% 袧小袩 1% [15:43:55]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:43:55]line 袨袣袪校袚袥袝袧袠袝: -0.65 [15:43:55]line 袠孝袨袚袨: 1000.00 [15:43:55]line 袙薪械褋械薪芯: 1000.00 [15:43:55]line 小袛袗效袗: 0.00 [15:43:55]line 袧小袩 1% : 8.85 [15:43:55]line 袧袛小 12% : 106.26 [15:43:55]line 袧邪谢懈褔薪褘屑懈: 1000.00 [15:43:55]line 袘械蟹薪邪谢.: 0.00 [15:43:55]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:43:55]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:43:55]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:43:55]line 效械泻 150 21.06.2024 15:43 [15:43:55]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:43:55]line 袟袧袦: 0300000198 [15:43:55]line 袪袧袦: 0000000000092771 [15:43:55]line 袙械褉褋懈褟 袣袣袦: 001 [15:43:55]line 肖袦: 0000000000875083 [15:43:55]line 肖袛: 111982 [15:43:55]line 肖袩袛: 62870368021450 [15:43:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T154357&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111982&fm=62870368021450&tin=02508201610067®Number=0000000000092771&sum=100000 [15:43:56]OFD Sender: Processing packet 111982 [packets to send 38, broken 37] [15:43:56]ProducePacketName [15:43:56]name=ofd_packets/00111982 [15:43:56]OFD Sender: To server: 嚂鰌G, [15:43:56]CommunicateWithHost lk.salyk.kg:30040 [15:43:56]ConnectInit lk.salyk.kg [15:43:56]written 0, free lines is 4095 [15:43:56]Connected sock=11 [15:43:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 29 BB 07 01 51 D6 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 96 00 00 00 F4 03 04 00 BD 9F 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B5 01 00 35 04 06 00 39 2E 25 F3 EB CA D1 08 52 9A A7 62 4C 3A [15:43:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E8 9B 47 00 EA B7 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 30 38 37 35 30 38 33 10 04 04 00 6E B5 01 00 F4 03 04 00 E4 36 75 66 B6 04 01 00 00 61 79 F5 38 C0 ED FF C2 [15:43:56]CommunicateWithHost err = 0 [15:43:56]CheckOFDResponse [15:43:56]1017 (14) - 77093643461234 [15:43:56]1041 (16) - 0000000000875083 [15:43:56]1040 (4) - 111982 [15:43:56]1012 (4) - 21.06.2024 08:16 [15:43:56]1206 (1) - 0 [15:43:56]OFD Sender: Remove packet 111982 [15:43:56]ProducePacketName [15:43:56]name=ofd_packets/00111982 [15:43:56]NVStorageDeleteData [15:43:56]Write to MH i2c: 01 00 00 72 0E 80 [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: 01 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: 01 07 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: 01 07 00 72 0E 00 00 00 00 00 E2 0C 75 [15:43:56]RasterBufferAndPrint [15:43:56]line [15:43:56]line [15:43:56]line [15:43:56]line [15:43:56]line [15:43:56]written 0, free lines is 3304 [15:43:56]MH_Cut [15:43:56]Write to MH i2c: D1 01 00 79 0E 01 59 [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: D1 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: D1 01 00 [15:43:56]MH_I2C_Read... [15:43:56]Read from MH i2c: D1 01 00 79 0E 00 58 [15:43:56]Write to MH i2c: 01 00 00 7A 0E 88 [15:43:56]Write i2c OK [15:43:56]MH_I2C_Read... [15:43:57]OFD Sender: No OFD packet to send [15:43:57]*** Cut start [15:43:57]*** Partial cut [15:43:57]*** CUTSNS_PIN = 1 [15:43:57]*** CUTSNS_PIN = 0 [15:43:57]*** Brake cut motor [15:43:57]Read from MH i2c: 01 [15:43:57]MH_I2C_Read... [15:43:57]*** Stop cut motor [15:43:57]*** Cut end [15:43:57]Read from MH i2c: 01 07 00 [15:43:57]MH_I2C_Read... [15:43:57]Read from MH i2c: 01 07 00 7A 0E 00 00 00 00 00 FF 0F 9D [15:43:57]process_action close_receipt done [15:43:57]requested_data is exist [15:43:57]produce_requested_data [15:43:57]requested_item fm.sn is exist - process it [15:43:57]wFMCommunicate request_size=4 [15:43:57]MH_SAM_APDU [15:43:57]CAPDU: 80 11 00 00 [15:43:57]Write to MH i2c: E2 08 00 7B 0E 80 11 00 00 00 00 00 00 03 [15:43:57]Write i2c OK [15:43:57]MH_I2C_Read... [15:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:58]Read from MH i2c: E2 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: E2 17 00 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: E2 17 00 7B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 55 [15:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:43:58]wFMCommunicate OK [15:43:58]requested_item fd.num is exist - process it [15:43:58]SAM_PROTO_GetFieldsCounters [15:43:58]wFMCommunicate request_size=4 [15:43:58]MH_SAM_APDU [15:43:58]CAPDU: 80 13 00 00 [15:43:58]Write to MH i2c: E2 08 00 7C 0E 80 13 00 00 00 00 00 00 06 [15:43:58]Write i2c OK [15:43:58]MH_I2C_Read... [15:43:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:58]Read from MH i2c: E2 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: E2 62 00 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: E2 62 00 7C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6E B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [15:43:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6E B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:58]wFMCommunicate OK [15:43:58]SAM_PROTO_GetFieldsCounters done [15:43:58]requested_item shift.num is exist - process it [15:43:58]requested_item shift.opened is exist - process it [15:43:58]req_shift_opened [15:43:58]FM_GetShiftState [15:43:58]SAM_PROTO_GetShiftState [15:43:58]wFMCommunicate request_size=4 [15:43:58]MH_SAM_APDU [15:43:58]CAPDU: 80 13 01 00 [15:43:58]Write to MH i2c: E2 08 00 7D 0E 80 13 01 00 00 00 00 00 08 [15:43:58]Write i2c OK [15:43:58]MH_I2C_Read... [15:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:58]Read from MH i2c: E2 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: E2 0E 00 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: E2 0E 00 7D 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 85 [15:43:58]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:43:58]wFMCommunicate OK [15:43:58]SAM_PROTO_GetShiftState done [15:43:58]FM_GetShiftState done [15:43:58]req_shift_opened done [15:43:58]requested_item shift.open_date is exist - process it [15:43:58]req_shift_open_date [15:43:58]req_shift_open_date done [15:43:58]produce_requested_data done [15:43:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111982,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:43:58]process_action_free close_receipt [15:43:58]json_value_free [15:43:58]json_value_free done [15:43:58]process_json_proto returns [15:43:58]Send response to host [15:43:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111982,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:43:58]free response buf [15:43:58]execute_script done [15:43:58]execute_script returns [15:43:58]free content buf [15:43:58]Sock 9.Close socket [15:43:58]Sock 9.Thread stoped [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:20]accept exits with 7 [15:57:20]New connection [15:57:20]New thread 3066731876 created [15:57:20]Thread 3066875236 joined [15:57:20]Waiting for new connection... [15:57:20] Sock 7.Parse request [15:57:20]Sock 7.Check first char [15:57:20]Sock 7.First char is OK [15:57:20]request: POST /json_proto HTTP/1.0 [15:57:20]Method: POST [15:57:20]URL: /json_proto [15:57:20]Method is POST - this is cgi request [15:57:20]url: /json_proto [15:57:20]query_string will be loaded in cgi processing [15:57:20]execute_cgi json_proto POST (null) [15:57:20]execute_cgi path=json_proto method=POST [15:57:20]POST find Content-Length [15:57:20]Host: 172.17.59.68:8080 [15:57:20]Content-Length: 677 [15:57:20]Content-Type: application/json [15:57:20] [15:57:20]POST finish read [15:57:20]Found Content-Length = 677 [15:57:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.320, "sum" : 220.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:20]execute_script... [15:57: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)320630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.320, "sum" : 220.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:20]POST & json_proto [15:57:20]process_json_proto [15:57:20]json parsed OK: [15:57:20]protocol is kg_v1.0 [15:57:20]action value=close_receipt [15:57:20]process_action close_receipt [15:57:20]cmd_close_receipt [15:57:20]MH_GetDate [15:57:20]Write to MH i2c: F0 00 00 7E 0E 7B [15:57:20]Write i2c OK [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: F0 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: F0 09 00 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: F0 09 00 7E 0E 00 E4 A2 75 66 BC EC 60 65 52 [15:57:20]GetLastDocTimeStamp 1718984637 [15:57:20]current date 1718985444 [15:57:20]FM_GetShiftState [15:57:20]SAM_PROTO_GetShiftState [15:57:20]wFMCommunicate request_size=4 [15:57:20]MH_SAM_APDU [15:57:20]CAPDU: 80 13 01 00 [15:57:20]Write to MH i2c: E2 08 00 7F 0E 80 13 01 00 00 00 00 00 0A [15:57:20]Write i2c OK [15:57:20]MH_I2C_Read... [15:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:20]Read from MH i2c: E2 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 0E 00 [15:57:20]MH_I2C_Read... [15:57:20]Read from MH i2c: E2 0E 00 7F 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 87 [15:57:20]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:57:20]wFMCommunicate OK [15:57:20]SAM_PROTO_GetShiftState done [15:57:20]FM_GetShiftState done [15:57:20]opened in 1718933695 [15:57:20]opened+sec_in_day 1719020095 [15:57:20]quantity*price = 22044 [15:57:20]sum+1 = 22046 [15:57:20]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.45 袠孝袨袚袨: 220.00 袙薪械褋械薪芯: 220.00 小袛袗效袗: 0.00 袧小袩 1% : 1.95 袧袛小 12% : 23.41 袧邪谢懈褔薪褘屑懈: 220.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 151 21.06.2024 15:57 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111983 肖袩袛: 258756154384714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T155724&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111983&fm=258756154384714&tin=02508201610067®Number=0000000000092771&sum=22000 [15:57:21]StoreToDocumentArchive [15:57:21]shift 390 fd 111983 [15:57:21]save to /storage/0390/doc_00111983 [15:57:21]save last doc name /storage/0390/doc_00111983 to /storage/kkm_last_doc_name [15:57:21]save OK [15:57:21]Clear old archive folders... [15:57:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:21]tlvbuf is 003412D0 [15:57:21]SAM_PROTO_ClearQueue [15:57:21]wFMCommunicate request_size=4 [15:57:21]MH_SAM_APDU [15:57:21]CAPDU: 80 09 00 00 [15:57:21]Write to MH i2c: E2 08 00 8C 0E 80 09 00 00 00 00 00 00 0C [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:21]Read from MH i2c: E2 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 03 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 03 00 8C 0E 00 90 00 0E [15:57:21]RAPDU: 90 00 [15:57:21]wFMCommunicate OK [15:57:21]SAM_PROTO_ClearQueue done [15:57:21]KKMCreateOFDPacket [15:57:21]OFDProtocolAddRootSTLVToBuf [15:57:21]FM_MakeSignedData [15:57:21]FM_MakeSignedData [15:57:21]SAM_PROTO_SignData [15:57:21]wFMCommunicate request_size=4 [15:57:21]MH_SAM_APDU [15:57:21]CAPDU: 80 0D 01 02 [15:57:21]Write to MH i2c: E2 08 00 8D 0E 80 0D 01 02 00 00 00 00 14 [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:21]Read from MH i2c: E2 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 03 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 03 00 8D 0E 00 90 00 0F [15:57:21]RAPDU: 90 00 [15:57:21]wFMCommunicate OK [15:57:21]wFMCommunicate request_size=255 [15:57:21]MH_SAM_APDU [15:57: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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 97 00 00 00 F4 03 04 00 E4 A2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B5 01 00 35 04 06 00 EB [15:57:21]Write to MH i2c: E2 02 01 8E 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 97 00 00 00 F4 03 04 00 E4 A2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B5 01 00 35 04 06 00 EB 00 00 A8 [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:22]Read from MH i2c: E2 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 03 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 03 00 8E 0E 00 90 00 10 [15:57:22]RAPDU: 90 00 [15:57:22]wFMCommunicate OK [15:57:22]wFMCommunicate request_size=10 [15:57:22]MH_SAM_APDU [15:57:22]CAPDU: 80 0D 02 02 05 56 5C AA 61 4A [15:57:22]Write to MH i2c: E2 0D 00 8F 0E 80 0D 02 02 05 00 56 5C AA 61 4A 00 00 28 [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:22]Read from MH i2c: E2 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 03 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 03 00 8F 0E 00 90 00 11 [15:57:22]RAPDU: 90 00 [15:57:22]wFMCommunicate OK [15:57:22]wFMCommunicate request_size=4 [15:57:22]MH_SAM_APDU [15:57:22]CAPDU: 80 0D 03 02 [15:57:22]Write to MH i2c: E2 08 00 90 0E 80 0D 03 02 00 00 00 00 19 [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:22]Read from MH i2c: E2 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 0B 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 0B 00 90 0E 00 BC 98 9C BD 66 ED 89 E8 90 00 8B [15:57:22]RAPDU: BC 98 9C BD 66 ED 89 E8 90 00 [15:57:22]wFMCommunicate OK [15:57:22]SAM_PROTO_SignData done [15:57:22]FM_MakeSignedData done [15:57:22]CreateOFDProtocolMessage [15:57:22]wFMCommunicate request_size=4 [15:57:22]MH_SAM_APDU [15:57:22]CAPDU: 80 11 00 00 [15:57:22]Write to MH i2c: E2 08 00 91 0E 80 11 00 00 00 00 00 00 19 [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:22]Read from MH i2c: E2 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 17 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 17 00 91 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6B [15:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:57:22]wFMCommunicate OK [15:57:22]CreateOFDProtocolMessage done [15:57:22]OFDSenderStorePacket 111983 [15:57:22]StoreOFDPacket docnum=111983 [15:57:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 83 1B 07 01 56 35 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 97 00 00 00 F4 03 04 00 E4 A2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B5 01 00 35 04 06 00 EB 56 5C AA 61 4A BC 98 9C BD 66 ED 89 E8 [15:57:22]CheckFolder [15:57:22]dirname=/storage/ofd_packets [15:57:22]CheckFolder done [15:57:22]ProducePacketName [15:57:22]name=ofd_packets/00111983 [15:57:22]NVStorageSaveData ofd_packets/00111983 [15:57:22]File name is /storage/ofd_packets/00111983 [15:57:22]Write 301 bytes [15:57:22]NVStorageSaveData done [15:57:22]OFDSenderStorePacket done [15:57:22]KKMCreateOFDPacket done [15:57:22]NVStorageSaveData kkm_last_timestamp [15:57:22]File name is /storage/kkm_last_timestamp [15:57:22]Write 4 bytes [15:57:22]NVStorageSaveData done [15:57:22]ExternCall_PrintAddStr [15:57:22]wPrintStart [15:57:22]Write to MH i2c: 01 00 00 92 0E A0 [15:57:22]OFD Sender: Processing packet 111983 [packets to send 38, broken 37] [15:57:22]ProducePacketName [15:57:22]name=ofd_packets/00111983 [15:57:22]OFD Sender: To server: 嚂鰌G, [15:57:22]CommunicateWithHost lk.salyk.kg:30040 [15:57:22]ConnectInit lk.salyk.kg [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: 01 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: 01 07 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: 01 07 00 92 0E 00 00 00 00 00 FF 0F B5 [15:57:22]RasterBufferAndPrint [15:57:22]line 小褔械褌 N : (1)320630 [15:57:22]line 袠袧袧: 02508201610067 [15:57:22]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:57:22]line 袩袪袨袛袗袞袗 [15:57:22]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:57:22]line 孝芯胁邪褉: 2710124130 [15:57:22]line 袗懈-92-袣-5 [15:57:22]line 3.320 * 66.40 [15:57:22]line = 220.45 [15:57:22]line 袧袛小 12% 袧小袩 1% [15:57:22]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:57:22]line 袨袣袪校袚袥袝袧袠袝: -0.45 [15:57:22]line 袠孝袨袚袨: 220.00 [15:57:22]line 袙薪械褋械薪芯: 220.00 [15:57:22]line 小袛袗效袗: 0.00 [15:57:22]line 袧小袩 1% : 1.95 [15:57:22]line 袧袛小 12% : 23.41 [15:57:22]line 袧邪谢懈褔薪褘屑懈: 220.00 [15:57:22]line 袘械蟹薪邪谢.: 0.00 [15:57:22]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:57:22]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:57:22]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:57:22]line 效械泻 151 21.06.2024 15:57 [15:57:22]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:57:22]line 袟袧袦: 0300000198 [15:57:22]line 袪袧袦: 0000000000092771 [15:57:22]line 袙械褉褋懈褟 袣袣袦: 001 [15:57:22]line 肖袦: 0000000000875083 [15:57:22]line 肖袛: 111983 [15:57:22]line 肖袩袛: 258756154384714 [15:57:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T155724&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111983&fm=258756154384714&tin=02508201610067®Number=0000000000092771&sum=22000 [15:57:22]Connected sock=10 [15:57:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 83 1B 07 01 56 35 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 97 00 00 00 F4 03 04 00 E4 A2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B5 01 00 35 04 06 00 EB 56 5C AA 61 4A BC 98 9C BD 66 ED 89 E8 [15:57:22]written 0, free lines is 4095 [15:57:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DA 93 47 00 04 94 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 30 38 37 35 30 38 33 10 04 04 00 6F B5 01 00 F4 03 04 00 0B 3A 75 66 B6 04 01 00 00 DF 93 90 E2 74 BF DF 87 [15:57:22]CommunicateWithHost err = 0 [15:57:22]CheckOFDResponse [15:57:22]1017 (14) - 77093643461234 [15:57:22]1041 (16) - 0000000000875083 [15:57:22]1040 (4) - 111983 [15:57:22]1012 (4) - 21.06.2024 08:30 [15:57:22]1206 (1) - 0 [15:57:22]OFD Sender: Remove packet 111983 [15:57:22]ProducePacketName [15:57:22]name=ofd_packets/00111983 [15:57:22]NVStorageDeleteData [15:57:22]Write to MH i2c: 01 00 00 BD 0E CB [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: 01 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: 01 07 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: 01 07 00 BD 0E 00 00 00 00 00 DE 0C BC [15:57:22]RasterBufferAndPrint [15:57:22]line [15:57:22]line [15:57:22]line [15:57:22]line [15:57:22]line [15:57:22]written 0, free lines is 3300 [15:57:23]MH_Cut [15:57:23]Write to MH i2c: D1 01 00 C4 0E 01 A4 [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: D1 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: D1 01 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: D1 01 00 C4 0E 00 A3 [15:57:23]Write to MH i2c: 01 00 00 C5 0E D3 [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]OFD Sender: No OFD packet to send [15:57:23]*** Cut start [15:57:23]*** Partial cut [15:57:23]*** CUTSNS_PIN = 1 [15:57:23]*** CUTSNS_PIN = 0 [15:57:23]*** Brake cut motor [15:57:24]Read from MH i2c: 01 [15:57:24]MH_I2C_Read... [15:57:24]*** Stop cut motor [15:57:24]*** Cut end [15:57:24]Read from MH i2c: 01 07 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: 01 07 00 C5 0E 00 00 00 00 00 FF 0F E8 [15:57:24]process_action close_receipt done [15:57:24]requested_data is exist [15:57:24]produce_requested_data [15:57:24]requested_item fm.sn is exist - process it [15:57:24]wFMCommunicate request_size=4 [15:57:24]MH_SAM_APDU [15:57:24]CAPDU: 80 11 00 00 [15:57:24]Write to MH i2c: E2 08 00 C6 0E 80 11 00 00 00 00 00 00 4E [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:24]Read from MH i2c: E2 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 17 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 17 00 C6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A0 [15:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:57:24]wFMCommunicate OK [15:57:24]requested_item fd.num is exist - process it [15:57:24]SAM_PROTO_GetFieldsCounters [15:57:24]wFMCommunicate request_size=4 [15:57:24]MH_SAM_APDU [15:57:24]CAPDU: 80 13 00 00 [15:57:24]Write to MH i2c: E2 08 00 C7 0E 80 13 00 00 00 00 00 00 51 [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:24]Read from MH i2c: E2 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 62 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 62 00 C7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6F B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [15:57:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6F B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:24]wFMCommunicate OK [15:57:24]SAM_PROTO_GetFieldsCounters done [15:57:24]requested_item shift.num is exist - process it [15:57:24]requested_item shift.opened is exist - process it [15:57:24]req_shift_opened [15:57:24]FM_GetShiftState [15:57:24]SAM_PROTO_GetShiftState [15:57:24]wFMCommunicate request_size=4 [15:57:24]MH_SAM_APDU [15:57:24]CAPDU: 80 13 01 00 [15:57:24]Write to MH i2c: E2 08 00 C8 0E 80 13 01 00 00 00 00 00 53 [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:24]Read from MH i2c: E2 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 0E 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: E2 0E 00 C8 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D0 [15:57:24]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:57:24]wFMCommunicate OK [15:57:24]SAM_PROTO_GetShiftState done [15:57:24]FM_GetShiftState done [15:57:24]req_shift_opened done [15:57:24]requested_item shift.open_date is exist - process it [15:57:24]req_shift_open_date [15:57:24]req_shift_open_date done [15:57:24]produce_requested_data done [15:57:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111983,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:57:24]process_action_free close_receipt [15:57:24]json_value_free [15:57:24]json_value_free done [15:57:24]process_json_proto returns [15:57:24]Send response to host [15:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111983,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:57:24]free response buf [15:57:24]execute_script done [15:57:24]execute_script returns [15:57:24]free content buf [15:57:24]Sock 7.Close socket [15:57:24]Sock 7.Thread stoped [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:00]accept exits with 9 [15:59:00]New connection [15:59:00]New thread 3066875236 created [15:59:00]Thread 3066731876 joined [15:59:00]Waiting for new connection... [15:59:00] Sock 9.Parse request [15:59:00]Sock 9.Check first char [15:59:00]Sock 9.First char is OK [15:59:00]request: POST /json_proto HTTP/1.0 [15:59:00]Method: POST [15:59:00]URL: /json_proto [15:59:00]Method is POST - this is cgi request [15:59:00]url: /json_proto [15:59:00]query_string will be loaded in cgi processing [15:59:00]execute_cgi json_proto POST (null) [15:59:00]execute_cgi path=json_proto method=POST [15:59:00]POST find Content-Length [15:59:00]Host: 172.17.59.68:8080 [15:59:00]Content-Length: 677 [15:59:00]Content-Type: application/json [15:59:00] [15:59:00]POST finish read [15:59:00]Found Content-Length = 677 [15:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [15:59:00]execute_script... [15:59: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)320631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [15:59:00]POST & json_proto [15:59:00]process_json_proto [15:59:00]json parsed OK: [15:59:00]protocol is kg_v1.0 [15:59:00]action value=close_receipt [15:59:00]process_action close_receipt [15:59:00]cmd_close_receipt [15:59:00]MH_GetDate [15:59:00]Write to MH i2c: F0 00 00 C9 0E C6 [15:59:00]Write i2c OK [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: F0 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: F0 09 00 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: F0 09 00 C9 0E 00 48 A3 75 66 BC EC 60 65 02 [15:59:00]GetLastDocTimeStamp 1718985444 [15:59:00]current date 1718985544 [15:59:00]FM_GetShiftState [15:59:00]SAM_PROTO_GetShiftState [15:59:00]wFMCommunicate request_size=4 [15:59:00]MH_SAM_APDU [15:59:00]CAPDU: 80 13 01 00 [15:59:00]Write to MH i2c: E2 08 00 CA 0E 80 13 01 00 00 00 00 00 55 [15:59:00]Write i2c OK [15:59:00]MH_I2C_Read... [15:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:00]Read from MH i2c: E2 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: E2 0E 00 [15:59:00]MH_I2C_Read... [15:59:00]Read from MH i2c: E2 0E 00 CA 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D2 [15:59:00]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:59:00]wFMCommunicate OK [15:59:00]SAM_PROTO_GetShiftState done [15:59:00]FM_GetShiftState done [15:59:00]opened in 1718933695 [15:59:00]opened+sec_in_day 1719020095 [15:59:00]quantity*price = 50065 [15:59:00]sum+1 = 50067 [15:59:00]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 152 21.06.2024 15:59 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111984 肖袩袛: 20029573867384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T155904&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111984&fm=20029573867384&tin=02508201610067®Number=0000000000092771&sum=50000 [15:59:01]StoreToDocumentArchive [15:59:01]shift 390 fd 111984 [15:59:01]save to /storage/0390/doc_00111984 [15:59:01]save last doc name /storage/0390/doc_00111984 to /storage/kkm_last_doc_name [15:59:01]save OK [15:59:01]Clear old archive folders... [15:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:01]tlvbuf is 00461920 [15:59:01]SAM_PROTO_ClearQueue [15:59:01]wFMCommunicate request_size=4 [15:59:01]MH_SAM_APDU [15:59:01]CAPDU: 80 09 00 00 [15:59:01]Write to MH i2c: E2 08 00 D7 0E 80 09 00 00 00 00 00 00 57 [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:01]Read from MH i2c: E2 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 D7 0E 00 90 00 59 [15:59:01]RAPDU: 90 00 [15:59:01]wFMCommunicate OK [15:59:01]SAM_PROTO_ClearQueue done [15:59:01]KKMCreateOFDPacket [15:59:01]OFDProtocolAddRootSTLVToBuf [15:59:01]FM_MakeSignedData [15:59:01]FM_MakeSignedData [15:59:01]SAM_PROTO_SignData [15:59:01]wFMCommunicate request_size=4 [15:59:01]MH_SAM_APDU [15:59:01]CAPDU: 80 0D 01 02 [15:59:01]Write to MH i2c: E2 08 00 D8 0E 80 0D 01 02 00 00 00 00 5F [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:01]Read from MH i2c: E2 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 D8 0E 00 90 00 5A [15:59:01]RAPDU: 90 00 [15:59:01]wFMCommunicate OK [15:59:01]wFMCommunicate request_size=255 [15:59:01]MH_SAM_APDU [15:59: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 98 00 00 00 F4 03 04 00 48 A3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B5 01 00 35 04 06 00 12 [15:59:01]Write to MH i2c: E2 02 01 D9 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 98 00 00 00 F4 03 04 00 48 A3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B5 01 00 35 04 06 00 12 00 00 30 [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:01]Read from MH i2c: E2 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 D9 0E 00 90 00 5B [15:59:01]RAPDU: 90 00 [15:59:01]wFMCommunicate OK [15:59:01]wFMCommunicate request_size=10 [15:59:01]MH_SAM_APDU [15:59:01]CAPDU: 80 0D 02 02 05 37 7F A2 A7 78 [15:59:01]Write to MH i2c: E2 0D 00 DA 0E 80 0D 02 02 05 00 37 7F A2 A7 78 00 00 E3 [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:01]Read from MH i2c: E2 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 03 00 DA 0E 00 90 00 5C [15:59:01]RAPDU: 90 00 [15:59:01]wFMCommunicate OK [15:59:01]wFMCommunicate request_size=4 [15:59:01]MH_SAM_APDU [15:59:01]CAPDU: 80 0D 03 02 [15:59:01]Write to MH i2c: E2 08 00 DB 0E 80 0D 03 02 00 00 00 00 64 [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 0B 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 0B 00 DB 0E 00 BE 72 D4 92 2F 2B 72 39 90 00 00 [15:59:02]RAPDU: BE 72 D4 92 2F 2B 72 39 90 00 [15:59:02]wFMCommunicate OK [15:59:02]SAM_PROTO_SignData done [15:59:02]FM_MakeSignedData done [15:59:02]CreateOFDProtocolMessage [15:59:02]wFMCommunicate request_size=4 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 11 00 00 [15:59:02]Write to MH i2c: E2 08 00 DC 0E 80 11 00 00 00 00 00 00 64 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 17 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 17 00 DC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B6 [15:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:59:02]wFMCommunicate OK [15:59:02]CreateOFDProtocolMessage done [15:59:02]OFDSenderStorePacket 111984 [15:59:02]StoreOFDPacket docnum=111984 [15:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA F1 07 01 A9 54 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 98 00 00 00 F4 03 04 00 48 A3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B5 01 00 35 04 06 00 12 37 7F A2 A7 78 BE 72 D4 92 2F 2B 72 39 [15:59:02]CheckFolder [15:59:02]dirname=/storage/ofd_packets [15:59:02]CheckFolder done [15:59:02]ProducePacketName [15:59:02]name=ofd_packets/00111984 [15:59:02]NVStorageSaveData ofd_packets/00111984 [15:59:02]File name is /storage/ofd_packets/00111984 [15:59:02]Write 301 bytes [15:59:02]NVStorageSaveData done [15:59:02]OFDSenderStorePacket done [15:59:02]KKMCreateOFDPacket done [15:59:02]NVStorageSaveData kkm_last_timestamp [15:59:02]File name is /storage/kkm_last_timestamp [15:59:02]Write 4 bytes [15:59:02]NVStorageSaveData done [15:59:02]ExternCall_PrintAddStr [15:59:02]wPrintStart [15:59:02]Write to MH i2c: 01 00 00 DD 0E EB [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 07 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 07 00 DD 0E 00 00 00 00 00 FF 0F 00 [15:59:02]RasterBufferAndPrint [15:59:02]line 小褔械褌 N : (1)320631 [15:59:02]line 袠袧袧: 02508201610067 [15:59:02]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:59:02]line 袩袪袨袛袗袞袗 [15:59:02]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:59:02]line 孝芯胁邪褉: 2710124130 [15:59:02]line 袗懈-92-袣-5 [15:59:02]line 7.540 * 66.40 [15:59:02]line = 500.66 [15:59:02]line 袧袛小 12% 袧小袩 1% [15:59:02]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:59:02]line 袨袣袪校袚袥袝袧袠袝: -0.66 [15:59:02]line 袠孝袨袚袨: 500.00 [15:59:02]line 袙薪械褋械薪芯: 500.00 [15:59:02]line 小袛袗效袗: 0.00 [15:59:02]line 袧小袩 1% : 4.43 [15:59:02]line 袧袛小 12% : 53.17 [15:59:02]line 袧邪谢懈褔薪褘屑懈: 500.00 [15:59:02]line 袘械蟹薪邪谢.: 0.00 [15:59:02]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:59:02]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:59:02]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:59:02]line 效械泻 152 21.06.2024 15:59 [15:59:02]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:59:02]line 袟袧袦: 0300000198 [15:59:02]line 袪袧袦: 0000000000092771 [15:59:02]line 袙械褉褋懈褟 袣袣袦: 001 [15:59:02]line 肖袦: 0000000000875083 [15:59:02]line 肖袛: 111984 [15:59:02]line 肖袩袛: 20029573867384 [15:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T155904&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111984&fm=20029573867384&tin=02508201610067®Number=0000000000092771&sum=50000 [15:59:02]OFD Sender: Processing packet 111984 [packets to send 38, broken 37] [15:59:02]ProducePacketName [15:59:02]name=ofd_packets/00111984 [15:59:02]OFD Sender: To server: 嚂鰌G, [15:59:02]CommunicateWithHost lk.salyk.kg:30040 [15:59:02]ConnectInit lk.salyk.kg [15:59:02]written 0, free lines is 4095 [15:59:02]Connected sock=10 [15:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA F1 07 01 A9 54 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 98 00 00 00 F4 03 04 00 48 A3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B5 01 00 35 04 06 00 12 37 7F A2 A7 78 BE 72 D4 92 2F 2B 72 39 [15:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B5 CC 47 00 91 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 30 38 37 35 30 38 33 10 04 04 00 70 B5 01 00 F4 03 04 00 6F 3A 75 66 B6 04 01 00 00 F8 7F 0D 52 BB C6 8B 35 [15:59:02]CommunicateWithHost err = 0 [15:59:02]CheckOFDResponse [15:59:02]1017 (14) - 77093643461234 [15:59:02]1041 (16) - 0000000000875083 [15:59:02]1040 (4) - 111984 [15:59:02]1012 (4) - 21.06.2024 08:31 [15:59:02]1206 (1) - 0 [15:59:02]OFD Sender: Remove packet 111984 [15:59:02]ProducePacketName [15:59:02]name=ofd_packets/00111984 [15:59:02]NVStorageDeleteData [15:59:02]Write to MH i2c: 01 00 00 08 0F 17 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 07 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 07 00 08 0F 00 00 00 00 00 E1 0C 0B [15:59:02]RasterBufferAndPrint [15:59:02]line [15:59:02]line [15:59:02]line [15:59:02]line [15:59:02]line [15:59:02]written 0, free lines is 3303 [15:59:02]MH_Cut [15:59:02]Write to MH i2c: D1 01 00 0F 0F 01 F0 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: D1 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: D1 01 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: D1 01 00 0F 0F 00 EF [15:59:02]Write to MH i2c: 01 00 00 10 0F 1F [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:03]OFD Sender: No OFD packet to send [15:59:03]*** Cut start [15:59:03]*** Partial cut [15:59:03]*** CUTSNS_PIN = 1 [15:59:03]*** CUTSNS_PIN = 0 [15:59:03]*** Brake cut motor [15:59:04]Read from MH i2c: 01 [15:59:04]MH_I2C_Read... [15:59:04]*** Stop cut motor [15:59:04]*** Cut end [15:59:04]Read from MH i2c: 01 07 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: 01 07 00 10 0F 00 00 00 00 00 FF 0F 34 [15:59:04]process_action close_receipt done [15:59:04]requested_data is exist [15:59:04]produce_requested_data [15:59:04]requested_item fm.sn is exist - process it [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 11 00 00 [15:59:04]Write to MH i2c: E2 08 00 11 0F 80 11 00 00 00 00 00 00 9A [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 17 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 17 00 11 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [15:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:59:04]wFMCommunicate OK [15:59:04]requested_item fd.num is exist - process it [15:59:04]SAM_PROTO_GetFieldsCounters [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 13 00 00 [15:59:04]Write to MH i2c: E2 08 00 12 0F 80 13 00 00 00 00 00 00 9D [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 62 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 62 00 12 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 70 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [15:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 70 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:04]wFMCommunicate OK [15:59:04]SAM_PROTO_GetFieldsCounters done [15:59:04]requested_item shift.num is exist - process it [15:59:04]requested_item shift.opened is exist - process it [15:59:04]req_shift_opened [15:59:04]FM_GetShiftState [15:59:04]SAM_PROTO_GetShiftState [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 13 01 00 [15:59:04]Write to MH i2c: E2 08 00 13 0F 80 13 01 00 00 00 00 00 9F [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 0E 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 0E 00 13 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1C [15:59:04]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:59:04]wFMCommunicate OK [15:59:04]SAM_PROTO_GetShiftState done [15:59:04]FM_GetShiftState done [15:59:04]req_shift_opened done [15:59:04]requested_item shift.open_date is exist - process it [15:59:04]req_shift_open_date [15:59:04]req_shift_open_date done [15:59:04]produce_requested_data done [15:59:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111984,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:59:04]process_action_free close_receipt [15:59:04]json_value_free [15:59:04]json_value_free done [15:59:04]process_json_proto returns [15:59:04]Send response to host [15:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111984,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:59:04]free response buf [15:59:04]execute_script done [15:59:04]execute_script returns [15:59:04]free content buf [15:59:04]Sock 9.Close socket [15:59:04]Sock 9.Thread stoped [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:30]accept exits with 7 [15:59:30]New connection [15:59:30]New thread 3066731876 created [15:59:30]Thread 3066875236 joined [15:59:30]Waiting for new connection... [15:59:30] Sock 7.Parse request [15:59:30]Sock 7.Check first char [15:59:30]Sock 7.First char is OK [15:59:30]request: POST /json_proto HTTP/1.0 [15:59:30]Method: POST [15:59:30]URL: /json_proto [15:59:30]Method is POST - this is cgi request [15:59:30]url: /json_proto [15:59:30]query_string will be loaded in cgi processing [15:59:30]execute_cgi json_proto POST (null) [15:59:30]execute_cgi path=json_proto method=POST [15:59:30]POST find Content-Length [15:59:30]Host: 172.17.59.68:8080 [15:59:30]Content-Length: 677 [15:59:30]Content-Type: application/json [15:59:30] [15:59:30]POST finish read [15:59:30]Found Content-Length = 677 [15:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:30]execute_script... [15:59: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)320632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:30]POST & json_proto [15:59:30]process_json_proto [15:59:30]json parsed OK: [15:59:30]protocol is kg_v1.0 [15:59:30]action value=close_receipt [15:59:30]process_action close_receipt [15:59:30]cmd_close_receipt [15:59:30]MH_GetDate [15:59:30]Write to MH i2c: F0 00 00 14 0F 12 [15:59:30]Write i2c OK [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: F0 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: F0 09 00 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: F0 09 00 14 0F 00 65 A3 75 66 BC EC 60 65 6B [15:59:30]GetLastDocTimeStamp 1718985544 [15:59:30]current date 1718985573 [15:59:30]FM_GetShiftState [15:59:30]SAM_PROTO_GetShiftState [15:59:30]wFMCommunicate request_size=4 [15:59:30]MH_SAM_APDU [15:59:30]CAPDU: 80 13 01 00 [15:59:30]Write to MH i2c: E2 08 00 15 0F 80 13 01 00 00 00 00 00 A1 [15:59:30]Write i2c OK [15:59:30]MH_I2C_Read... [15:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:30]Read from MH i2c: E2 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: E2 0E 00 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: E2 0E 00 15 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1E [15:59:30]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:59:30]wFMCommunicate OK [15:59:30]SAM_PROTO_GetShiftState done [15:59:30]FM_GetShiftState done [15:59:30]opened in 1718933695 [15:59:30]opened+sec_in_day 1719020095 [15:59:30]quantity*price = 20052 [15:59:30]sum+1 = 20054 [15:59:30]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.53 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 153 21.06.2024 15:59 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111985 肖袩袛: 19509337940872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T155933&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111985&fm=19509337940872&tin=02508201610067®Number=0000000000092771&sum=20000 [15:59:31]StoreToDocumentArchive [15:59:31]shift 390 fd 111985 [15:59:31]save to /storage/0390/doc_00111985 [15:59:31]save last doc name /storage/0390/doc_00111985 to /storage/kkm_last_doc_name [15:59:31]save OK [15:59:31]Clear old archive folders... [15:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:31]tlvbuf is 0046BF70 [15:59:31]SAM_PROTO_ClearQueue [15:59:31]wFMCommunicate request_size=4 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 09 00 00 [15:59:31]Write to MH i2c: E2 08 00 22 0F 80 09 00 00 00 00 00 00 A3 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:31]Read from MH i2c: E2 03 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 22 0F 00 90 00 A5 [15:59:31]RAPDU: 90 00 [15:59:31]wFMCommunicate OK [15:59:31]SAM_PROTO_ClearQueue done [15:59:31]KKMCreateOFDPacket [15:59:31]OFDProtocolAddRootSTLVToBuf [15:59:31]FM_MakeSignedData [15:59:31]FM_MakeSignedData [15:59:31]SAM_PROTO_SignData [15:59:31]wFMCommunicate request_size=4 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 0D 01 02 [15:59:31]Write to MH i2c: E2 08 00 23 0F 80 0D 01 02 00 00 00 00 AB [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 23 0F 00 90 00 A6 [15:59:31]RAPDU: 90 00 [15:59:31]wFMCommunicate OK [15:59:31]wFMCommunicate request_size=255 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 0D 02 02 FA 03 00 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 65 A3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B5 01 00 35 04 06 00 11 [15:59:31]Write to MH i2c: E2 02 01 24 0F 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 65 A3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B5 01 00 35 04 06 00 11 00 00 59 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 24 0F 00 90 00 A7 [15:59:31]RAPDU: 90 00 [15:59:31]wFMCommunicate OK [15:59:31]wFMCommunicate request_size=10 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 0D 02 02 05 BE 5F 28 63 88 [15:59:31]Write to MH i2c: E2 0D 00 25 0F 80 0D 02 02 05 00 BE 5F 28 63 88 00 00 E8 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 03 00 25 0F 00 90 00 A8 [15:59:31]RAPDU: 90 00 [15:59:31]wFMCommunicate OK [15:59:31]wFMCommunicate request_size=4 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 0D 03 02 [15:59:31]Write to MH i2c: E2 08 00 26 0F 80 0D 03 02 00 00 00 00 B0 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 0B 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 0B 00 26 0F 00 C4 52 AB C0 69 82 0A 4B 90 00 72 [15:59:31]RAPDU: C4 52 AB C0 69 82 0A 4B 90 00 [15:59:31]wFMCommunicate OK [15:59:31]SAM_PROTO_SignData done [15:59:31]FM_MakeSignedData done [15:59:31]CreateOFDProtocolMessage [15:59:31]wFMCommunicate request_size=4 [15:59:31]MH_SAM_APDU [15:59:31]CAPDU: 80 11 00 00 [15:59:31]Write to MH i2c: E2 08 00 27 0F 80 11 00 00 00 00 00 00 B0 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:31]Read from MH i2c: E2 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 17 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: E2 17 00 27 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 02 [15:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:59:31]wFMCommunicate OK [15:59:31]CreateOFDProtocolMessage done [15:59:31]OFDSenderStorePacket 111985 [15:59:31]StoreOFDPacket docnum=111985 [15:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 98 63 07 01 B8 D5 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 65 A3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B5 01 00 35 04 06 00 11 BE 5F 28 63 88 C4 52 AB C0 69 82 0A 4B [15:59:31]CheckFolder [15:59:31]dirname=/storage/ofd_packets [15:59:31]CheckFolder done [15:59:31]ProducePacketName [15:59:31]name=ofd_packets/00111985 [15:59:31]NVStorageSaveData ofd_packets/00111985 [15:59:31]File name is /storage/ofd_packets/00111985 [15:59:31]Write 301 bytes [15:59:31]NVStorageSaveData done [15:59:31]OFDSenderStorePacket done [15:59:31]KKMCreateOFDPacket done [15:59:31]NVStorageSaveData kkm_last_timestamp [15:59:31]File name is /storage/kkm_last_timestamp [15:59:31]Write 4 bytes [15:59:31]NVStorageSaveData done [15:59:31]ExternCall_PrintAddStr [15:59:31]wPrintStart [15:59:31]Write to MH i2c: 01 00 00 28 0F 37 [15:59:31]Write i2c OK [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: 01 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: 01 07 00 [15:59:31]MH_I2C_Read... [15:59:31]Read from MH i2c: 01 07 00 28 0F 00 00 00 00 00 FF 0F 4C [15:59:31]RasterBufferAndPrint [15:59:31]line 小褔械褌 N : (1)320632 [15:59:31]line 袠袧袧: 02508201610067 [15:59:31]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [15:59:31]line 袩袪袨袛袗袞袗 [15:59:31]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [15:59:31]line 孝芯胁邪褉: 2710124130 [15:59:31]line 袗懈-92-袣-5 [15:59:31]line 3.020 * 66.40 [15:59:31]line = 200.53 [15:59:31]line 袧袛小 12% 袧小袩 1% [15:59:31]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [15:59:31]line 袨袣袪校袚袥袝袧袠袝: -0.53 [15:59:31]line 袠孝袨袚袨: 200.00 [15:59:31]line 袙薪械褋械薪芯: 200.00 [15:59:31]line 小袛袗效袗: 0.00 [15:59:31]line 袧小袩 1% : 1.77 [15:59:31]line 袧袛小 12% : 21.29 [15:59:31]line 袧邪谢懈褔薪褘屑懈: 200.00 [15:59:31]line 袘械蟹薪邪谢.: 0.00 [15:59:31]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [15:59:31]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [15:59:31]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [15:59:31]line 效械泻 153 21.06.2024 15:59 [15:59:31]line 小屑械薪邪: 390 肖肖袛: 1.0 [15:59:31]line 袟袧袦: 0300000198 [15:59:31]line 袪袧袦: 0000000000092771 [15:59:31]line 袙械褉褋懈褟 袣袣袦: 001 [15:59:31]line 肖袦: 0000000000875083 [15:59:31]line 肖袛: 111985 [15:59:31]line 肖袩袛: 19509337940872 [15:59:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T155933&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111985&fm=19509337940872&tin=02508201610067®Number=0000000000092771&sum=20000 [15:59:32]OFD Sender: Processing packet 111985 [packets to send 38, broken 37] [15:59:32]ProducePacketName [15:59:32]name=ofd_packets/00111985 [15:59:32]OFD Sender: To server: 嚂鰌G, [15:59:32]CommunicateWithHost lk.salyk.kg:30040 [15:59:32]ConnectInit lk.salyk.kg [15:59:32]written 0, free lines is 4095 [15:59:32]Connected sock=10 [15:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 98 63 07 01 B8 D5 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 65 A3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B5 01 00 35 04 06 00 11 BE 5F 28 63 88 C4 52 AB C0 69 82 0A 4B [15:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F9 9B 47 00 38 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 30 38 37 35 30 38 33 10 04 04 00 71 B5 01 00 F4 03 04 00 8C 3A 75 66 B6 04 01 00 00 AF 80 81 F8 58 DB DF B3 [15:59:32]CommunicateWithHost err = 0 [15:59:32]CheckOFDResponse [15:59:32]1017 (14) - 77093643461234 [15:59:32]1041 (16) - 0000000000875083 [15:59:32]1040 (4) - 111985 [15:59:32]1012 (4) - 21.06.2024 08:32 [15:59:32]1206 (1) - 0 [15:59:32]OFD Sender: Remove packet 111985 [15:59:32]ProducePacketName [15:59:32]name=ofd_packets/00111985 [15:59:32]NVStorageDeleteData [15:59:32]Write to MH i2c: 01 00 00 53 0F 62 [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: 01 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: 01 07 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 EB 0C 60 [15:59:32]RasterBufferAndPrint [15:59:32]line [15:59:32]line [15:59:32]line [15:59:32]line [15:59:32]line [15:59:32]written 0, free lines is 3313 [15:59:32]MH_Cut [15:59:32]Write to MH i2c: D1 01 00 5A 0F 01 3B [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: D1 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: D1 01 00 [15:59:32]MH_I2C_Read... [15:59:32]Read from MH i2c: D1 01 00 5A 0F 00 3A [15:59:32]Write to MH i2c: 01 00 00 5B 0F 6A [15:59:32]Write i2c OK [15:59:32]MH_I2C_Read... [15:59:32]OFD Sender: No OFD packet to send [15:59:33]*** Cut start [15:59:33]*** Partial cut [15:59:33]*** CUTSNS_PIN = 1 [15:59:33]*** CUTSNS_PIN = 0 [15:59:33]*** Brake cut motor [15:59:33]Read from MH i2c: 01 [15:59:33]MH_I2C_Read... [15:59:33]*** Stop cut motor [15:59:33]*** Cut end [15:59:33]Read from MH i2c: 01 07 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: 01 07 00 5B 0F 00 00 00 00 00 FF 0F 7F [15:59:33]process_action close_receipt done [15:59:33]requested_data is exist [15:59:33]produce_requested_data [15:59:33]requested_item fm.sn is exist - process it [15:59:33]wFMCommunicate request_size=4 [15:59:33]MH_SAM_APDU [15:59:33]CAPDU: 80 11 00 00 [15:59:33]Write to MH i2c: E2 08 00 5C 0F 80 11 00 00 00 00 00 00 E5 [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:33]Read from MH i2c: E2 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 17 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 17 00 5C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 37 [15:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:59:33]wFMCommunicate OK [15:59:33]requested_item fd.num is exist - process it [15:59:33]SAM_PROTO_GetFieldsCounters [15:59:33]wFMCommunicate request_size=4 [15:59:33]MH_SAM_APDU [15:59:33]CAPDU: 80 13 00 00 [15:59:33]Write to MH i2c: E2 08 00 5D 0F 80 13 00 00 00 00 00 00 E8 [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:34]Read from MH i2c: E2 [15:59:34]MH_I2C_Read... [15:59:34]Read from MH i2c: E2 62 00 [15:59:34]MH_I2C_Read... [15:59:34]Read from MH i2c: E2 62 00 5D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 71 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [15:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 71 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:34]wFMCommunicate OK [15:59:34]SAM_PROTO_GetFieldsCounters done [15:59:34]requested_item shift.num is exist - process it [15:59:34]requested_item shift.opened is exist - process it [15:59:34]req_shift_opened [15:59:34]FM_GetShiftState [15:59:34]SAM_PROTO_GetShiftState [15:59:34]wFMCommunicate request_size=4 [15:59:34]MH_SAM_APDU [15:59:34]CAPDU: 80 13 01 00 [15:59:34]Write to MH i2c: E2 08 00 5E 0F 80 13 01 00 00 00 00 00 EA [15:59:34]Write i2c OK [15:59:34]MH_I2C_Read... [15:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:34]Read from MH i2c: E2 [15:59:34]MH_I2C_Read... [15:59:34]Read from MH i2c: E2 0E 00 [15:59:34]MH_I2C_Read... [15:59:34]Read from MH i2c: E2 0E 00 5E 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 67 [15:59:34]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [15:59:34]wFMCommunicate OK [15:59:34]SAM_PROTO_GetShiftState done [15:59:34]FM_GetShiftState done [15:59:34]req_shift_opened done [15:59:34]requested_item shift.open_date is exist - process it [15:59:34]req_shift_open_date [15:59:34]req_shift_open_date done [15:59:34]produce_requested_data done [15:59:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111985,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [15:59:34]process_action_free close_receipt [15:59:34]json_value_free [15:59:34]json_value_free done [15:59:34]process_json_proto returns [15:59:34]Send response to host [15:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111985,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [15:59:34]free response buf [15:59:34]execute_script done [15:59:34]execute_script returns [15:59:34]free content buf [15:59:34]Sock 7.Close socket [15:59:34]Sock 7.Thread stoped [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:38]accept exits with 9 [16:05:38]New connection [16:05:38]New thread 3066875236 created [16:05:38]Thread 3066731876 joined [16:05:38]Waiting for new connection... [16:05:38] Sock 9.Parse request [16:05:38]Sock 9.Check first char [16:05:38]Sock 9.First char is OK [16:05:38]request: POST /json_proto HTTP/1.0 [16:05:38]Method: POST [16:05:38]URL: /json_proto [16:05:38]Method is POST - this is cgi request [16:05:38]url: /json_proto [16:05:38]query_string will be loaded in cgi processing [16:05:38]execute_cgi json_proto POST (null) [16:05:38]execute_cgi path=json_proto method=POST [16:05:38]POST find Content-Length [16:05:38]Host: 172.17.59.68:8080 [16:05:38]Content-Length: 1201 [16:05:38]Content-Type: application/json [16:05:38] [16:05:38]POST finish read [16:05:38]Found Content-Length = 1201 [16:05:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320633\u000A21.06.2024 14:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1660.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68887\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:38]execute_script... [16:05:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320633\u000A21.06.2024 14:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1660.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68887\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:38]POST & json_proto [16:05:38]process_json_proto [16:05:38]json parsed OK: [16:05:38]protocol is kg_v1.0 [16:05:38]action value=print_text [16:05:38]process_action print_text [16:05:38]cmd_print_text [16:05:38]ExternCall_PrintAddStr [16:05:38]wPrintStart [16:05:38]Write to MH i2c: 01 00 00 5F 0F 6E [16:05:38]Write i2c OK [16:05:38]MH_I2C_Read... [16:05:38]Read from MH i2c: 01 [16:05:38]MH_I2C_Read... [16:05:38]Read from MH i2c: 01 07 00 [16:05:38]MH_I2C_Read... [16:05:38]Read from MH i2c: 01 07 00 5F 0F 00 00 00 00 00 FF 0F 83 [16:05:38]RasterBufferAndPrint [16:05:38]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [16:05:38]line 袗袟小 65 [16:05:38]line 袩邪褉褌薪械褉 薪械褎褌褜 [16:05:38]line 02508201610067 [16:05:38]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [16:05:38]line 小褔械褌 N : (1)320633 [16:05:38]line 21.06.2024 14:32 [16:05:38]line 袩袪袨袛袗袞袗 [16:05:38]line 孝袪袣 (袦袪袣, 袚袧袣): 11 [16:05:38]line 袙懈写 袚小袦 : 2710124130 [16:05:38]line 袗懈-92-袣-5 [16:05:38]line 25.000 x 66.40 [16:05:38]line 袠孝袨袚: 1660.00 [16:05:38]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [16:05:38]line 68887 [16:05:38]line ______________________ [16:05:38]line (锌芯写锌懈褋褜) [16:05:38]written 0, free lines is 4095 [16:05:39]Write to MH i2c: 01 00 00 73 0F 82 [16:05:39]Write i2c OK [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: 01 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: 01 07 00 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: 01 07 00 73 0F 00 00 00 00 00 13 0E AA [16:05:39]RasterBufferAndPrint [16:05:39]line [16:05:39]line [16:05:39]line [16:05:39]line [16:05:39]line [16:05:39]written 0, free lines is 3605 [16:05:39]MH_Cut [16:05:39]Write to MH i2c: D1 01 00 7A 0F 01 5B [16:05:39]Write i2c OK [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: D1 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: D1 01 00 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: D1 01 00 7A 0F 00 5A [16:05:39]Write to MH i2c: 01 00 00 7B 0F 8A [16:05:39]Write i2c OK [16:05:39]MH_I2C_Read... [16:05:39]*** Cut start [16:05:39]*** Partial cut [16:05:39]*** CUTSNS_PIN = 1 [16:05:39]*** CUTSNS_PIN = 0 [16:05:39]*** Brake cut motor [16:05:40]Read from MH i2c: 01 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: 01 07 00 [16:05:40]MH_I2C_Read... [16:05:40]*** Stop cut motor [16:05:40]*** Cut end [16:05:40]Read from MH i2c: 01 07 00 7B 0F 00 00 00 00 00 FF 0F 9F [16:05:40]process_action print_text done [16:05:40]requested_data is exist [16:05:40]produce_requested_data [16:05:40]requested_item fm.sn is exist - process it [16:05:40]wFMCommunicate request_size=4 [16:05:40]MH_SAM_APDU [16:05:40]CAPDU: 80 11 00 00 [16:05:40]Write to MH i2c: E2 08 00 7C 0F 80 11 00 00 00 00 00 00 05 [16:05:40]Write i2c OK [16:05:40]MH_I2C_Read... [16:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:40]Read from MH i2c: E2 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: E2 17 00 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: E2 17 00 7C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 57 [16:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:05:40]wFMCommunicate OK [16:05:40]requested_item fd.num is exist - process it [16:05:40]SAM_PROTO_GetFieldsCounters [16:05:40]wFMCommunicate request_size=4 [16:05:40]MH_SAM_APDU [16:05:40]CAPDU: 80 13 00 00 [16:05:40]Write to MH i2c: E2 08 00 7D 0F 80 13 00 00 00 00 00 00 08 [16:05:40]Write i2c OK [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: E2 [16:05:40]MH_I2C_Read... [16:05:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:40]Read from MH i2c: E2 62 00 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: E2 62 00 7D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 71 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [16:05:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 71 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:40]wFMCommunicate OK [16:05:40]SAM_PROTO_GetFieldsCounters done [16:05:40]requested_item shift.num is exist - process it [16:05:40]requested_item shift.opened is exist - process it [16:05:40]req_shift_opened [16:05:40]FM_GetShiftState [16:05:40]SAM_PROTO_GetShiftState [16:05:40]wFMCommunicate request_size=4 [16:05:40]MH_SAM_APDU [16:05:40]CAPDU: 80 13 01 00 [16:05:40]Write to MH i2c: E2 08 00 7E 0F 80 13 01 00 00 00 00 00 0A [16:05:40]Write i2c OK [16:05:40]MH_I2C_Read... [16:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:40]Read from MH i2c: E2 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: E2 0E 00 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: E2 0E 00 7E 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 87 [16:05:40]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:05:40]wFMCommunicate OK [16:05:40]SAM_PROTO_GetShiftState done [16:05:40]FM_GetShiftState done [16:05:40]req_shift_opened done [16:05:40]requested_item shift.open_date is exist - process it [16:05:40]req_shift_open_date [16:05:40]req_shift_open_date done [16:05:40]produce_requested_data done [16:05:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111985,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:05:40]process_action_free print_text [16:05:40]json_value_free [16:05:40]json_value_free done [16:05:40]process_json_proto returns [16:05:40]Send response to host [16:05:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111985,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:05:40]free response buf [16:05:40]execute_script done [16:05:40]execute_script returns [16:05:40]free content buf [16:05:40]Sock 9.Close socket [16:05:40]Sock 9.Thread stoped [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:35]accept exits with 7 [16:07:35]New connection [16:07:35]New thread 3066731876 created [16:07:35]Thread 3066875236 joined [16:07:35]Waiting for new connection... [16:07:35] Sock 7.Parse request [16:07:35]Sock 7.Check first char [16:07:35]Sock 7.First char is OK [16:07:35]request: POST /json_proto HTTP/1.0 [16:07:35]Method: POST [16:07:35]URL: /json_proto [16:07:35]Method is POST - this is cgi request [16:07:35]url: /json_proto [16:07:35]query_string will be loaded in cgi processing [16:07:35]execute_cgi json_proto POST (null) [16:07:35]execute_cgi path=json_proto method=POST [16:07:35]POST find Content-Length [16:07:35]Host: 172.17.59.68:8080 [16:07:35]Content-Length: 682 [16:07:35]Content-Type: application/json [16:07:35] [16:07:35]POST finish read [16:07:35]Found Content-Length = 682 [16:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [16:07:35]execute_script... [16:07:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [16:07:35]POST & json_proto [16:07:35]process_json_proto [16:07:35]json parsed OK: [16:07:35]protocol is kg_v1.0 [16:07:35]action value=close_receipt [16:07:35]process_action close_receipt [16:07:35]cmd_close_receipt [16:07:35]MH_GetDate [16:07:35]Write to MH i2c: F0 00 00 7F 0F 7D [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: F0 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: F0 09 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: F0 09 00 7F 0F 00 4B A5 75 66 BC EC 60 65 BE [16:07:35]GetLastDocTimeStamp 1718985573 [16:07:35]current date 1718986059 [16:07:35]FM_GetShiftState [16:07:35]SAM_PROTO_GetShiftState [16:07:35]wFMCommunicate request_size=4 [16:07:35]MH_SAM_APDU [16:07:35]CAPDU: 80 13 01 00 [16:07:35]Write to MH i2c: E2 08 00 80 0F 80 13 01 00 00 00 00 00 0C [16:07:35]Write i2c OK [16:07:35]MH_I2C_Read... [16:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:35]Read from MH i2c: E2 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 0E 00 [16:07:35]MH_I2C_Read... [16:07:35]Read from MH i2c: E2 0E 00 80 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 89 [16:07:35]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:07:35]wFMCommunicate OK [16:07:35]SAM_PROTO_GetShiftState done [16:07:35]FM_GetShiftState done [16:07:35]opened in 1718933695 [16:07:35]opened+sec_in_day 1719020095 [16:07:35]quantity*price = 100064 [16:07:35]sum+1 = 100066 [16:07:35]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 154 21.06.2024 16:07 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111986 肖袩袛: 77077292753868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T160739&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111986&fm=77077292753868&tin=02508201610067®Number=0000000000092771&sum=100000 [16:07:36]StoreToDocumentArchive [16:07:36]shift 390 fd 111986 [16:07:36]save to /storage/0390/doc_00111986 [16:07:36]save last doc name /storage/0390/doc_00111986 to /storage/kkm_last_doc_name [16:07:36]save OK [16:07:36]Clear old archive folders... [16:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:36]tlvbuf is 0046C080 [16:07:36]SAM_PROTO_ClearQueue [16:07:36]wFMCommunicate request_size=4 [16:07:36]MH_SAM_APDU [16:07:36]CAPDU: 80 09 00 00 [16:07:36]Write to MH i2c: E2 08 00 8D 0F 80 09 00 00 00 00 00 00 0E [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:36]Read from MH i2c: E2 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 8D 0F 00 90 00 10 [16:07:36]RAPDU: 90 00 [16:07:36]wFMCommunicate OK [16:07:36]SAM_PROTO_ClearQueue done [16:07:36]KKMCreateOFDPacket [16:07:36]OFDProtocolAddRootSTLVToBuf [16:07:36]FM_MakeSignedData [16:07:36]FM_MakeSignedData [16:07:36]SAM_PROTO_SignData [16:07:36]wFMCommunicate request_size=4 [16:07:36]MH_SAM_APDU [16:07:36]CAPDU: 80 0D 01 02 [16:07:36]Write to MH i2c: E2 08 00 8E 0F 80 0D 01 02 00 00 00 00 16 [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:36]Read from MH i2c: E2 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 [16:07:36]MH_I2C_Read... [16:07:36]Read from MH i2c: E2 03 00 8E 0F 00 90 00 11 [16:07:36]RAPDU: 90 00 [16:07:36]wFMCommunicate OK [16:07:36]wFMCommunicate request_size=255 [16:07:36]MH_SAM_APDU [16:07:36]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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 9A 00 00 00 F4 03 04 00 4B A5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B5 01 00 35 04 06 00 46 [16:07:36]Write to MH i2c: E2 02 01 8F 0F 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 9A 00 00 00 F4 03 04 00 4B A5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B5 01 00 35 04 06 00 46 00 00 74 [16:07:36]Write i2c OK [16:07:36]MH_I2C_Read... [16:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:37]Read from MH i2c: E2 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 03 00 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 03 00 8F 0F 00 90 00 12 [16:07:37]RAPDU: 90 00 [16:07:37]wFMCommunicate OK [16:07:37]wFMCommunicate request_size=10 [16:07:37]MH_SAM_APDU [16:07:37]CAPDU: 80 0D 02 02 05 19 F4 A7 A3 CC [16:07:37]Write to MH i2c: E2 0D 00 90 0F 80 0D 02 02 05 00 19 F4 A7 A3 CC 00 00 46 [16:07:37]Write i2c OK [16:07:37]MH_I2C_Read... [16:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:37]Read from MH i2c: E2 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 03 00 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 03 00 90 0F 00 90 00 13 [16:07:37]RAPDU: 90 00 [16:07:37]wFMCommunicate OK [16:07:37]wFMCommunicate request_size=4 [16:07:37]MH_SAM_APDU [16:07:37]CAPDU: 80 0D 03 02 [16:07:37]Write to MH i2c: E2 08 00 91 0F 80 0D 03 02 00 00 00 00 1B [16:07:37]Write i2c OK [16:07:37]MH_I2C_Read... [16:07:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:37]Read from MH i2c: E2 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 0B 00 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 0B 00 91 0F 00 CD 6E 36 6F 96 6C 61 46 90 00 A5 [16:07:37]RAPDU: CD 6E 36 6F 96 6C 61 46 90 00 [16:07:37]wFMCommunicate OK [16:07:37]SAM_PROTO_SignData done [16:07:37]FM_MakeSignedData done [16:07:37]CreateOFDProtocolMessage [16:07:37]wFMCommunicate request_size=4 [16:07:37]MH_SAM_APDU [16:07:37]CAPDU: 80 11 00 00 [16:07:37]Write to MH i2c: E2 08 00 92 0F 80 11 00 00 00 00 00 00 1B [16:07:37]Write i2c OK [16:07:37]MH_I2C_Read... [16:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:37]Read from MH i2c: E2 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 17 00 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: E2 17 00 92 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6D [16:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:07:37]wFMCommunicate OK [16:07:37]CreateOFDProtocolMessage done [16:07:37]OFDSenderStorePacket 111986 [16:07:37]StoreOFDPacket docnum=111986 [16:07:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 19 D8 07 01 41 D6 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 9A 00 00 00 F4 03 04 00 4B A5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B5 01 00 35 04 06 00 46 19 F4 A7 A3 CC CD 6E 36 6F 96 6C 61 46 [16:07:37]CheckFolder [16:07:37]dirname=/storage/ofd_packets [16:07:37]CheckFolder done [16:07:37]ProducePacketName [16:07:37]name=ofd_packets/00111986 [16:07:37]NVStorageSaveData ofd_packets/00111986 [16:07:37]File name is /storage/ofd_packets/00111986 [16:07:37]Write 301 bytes [16:07:37]NVStorageSaveData done [16:07:37]OFDSenderStorePacket done [16:07:37]KKMCreateOFDPacket done [16:07:37]NVStorageSaveData kkm_last_timestamp [16:07:37]File name is /storage/kkm_last_timestamp [16:07:37]Write 4 bytes [16:07:37]NVStorageSaveData done [16:07:37]ExternCall_PrintAddStr [16:07:37]wPrintStart [16:07:37]Write to MH i2c: 01 00 00 93 0F A2 [16:07:37]Write i2c OK [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: 01 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: 01 07 00 [16:07:37]MH_I2C_Read... [16:07:37]Read from MH i2c: 01 07 00 93 0F 00 00 00 00 00 FF 0F B7 [16:07:37]RasterBufferAndPrint [16:07:37]line 小褔械褌 N : (1)320634 [16:07:37]line 袠袧袧: 02508201610067 [16:07:37]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:07:37]line 袩袪袨袛袗袞袗 [16:07:37]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:07:37]line 孝芯胁邪褉: 2710124130 [16:07:37]line 袗懈-92-袣-5 [16:07:37]line 15.070 * 66.40 [16:07:37]line = 1000.65 [16:07:37]line 袧袛小 12% 袧小袩 1% [16:07:37]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:07:37]line 袨袣袪校袚袥袝袧袠袝: -0.65 [16:07:37]line 袠孝袨袚袨: 1000.00 [16:07:37]line 袙薪械褋械薪芯: 1000.00 [16:07:37]line 小袛袗效袗: 0.00 [16:07:37]line 袧小袩 1% : 8.85 [16:07:37]line 袧袛小 12% : 106.26 [16:07:37]line 袧邪谢懈褔薪褘屑懈: 1000.00 [16:07:37]line 袘械蟹薪邪谢.: 0.00 [16:07:37]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:07:37]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:07:37]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:07:37]line 效械泻 154 21.06.2024 16:07 [16:07:37]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:07:37]line 袟袧袦: 0300000198 [16:07:37]line 袪袧袦: 0000000000092771 [16:07:37]line 袙械褉褋懈褟 袣袣袦: 001 [16:07:37]line 肖袦: 0000000000875083 [16:07:37]line 肖袛: 111986 [16:07:37]line 肖袩袛: 77077292753868 [16:07:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T160739&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111986&fm=77077292753868&tin=02508201610067®Number=0000000000092771&sum=100000 [16:07:37]OFD Sender: Processing packet 111986 [packets to send 38, broken 37] [16:07:37]ProducePacketName [16:07:37]name=ofd_packets/00111986 [16:07:37]OFD Sender: To server: 嚂鰌G, [16:07:37]CommunicateWithHost lk.salyk.kg:30040 [16:07:37]ConnectInit lk.salyk.kg [16:07:37]written 0, free lines is 4095 [16:07:37]Connected sock=10 [16:07:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 19 D8 07 01 41 D6 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 9A 00 00 00 F4 03 04 00 4B A5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B5 01 00 35 04 06 00 46 19 F4 A7 A3 CC CD 6E 36 6F 96 6C 61 46 [16:07:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 01 11 47 00 F3 39 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 30 38 37 35 30 38 33 10 04 04 00 72 B5 01 00 F4 03 04 00 72 3C 75 66 B6 04 01 00 00 8E 0E 24 C3 3A AE C5 A5 [16:07:38]CommunicateWithHost err = 0 [16:07:38]CheckOFDResponse [16:07:38]1017 (14) - 77093643461234 [16:07:38]1041 (16) - 0000000000875083 [16:07:38]1040 (4) - 111986 [16:07:38]1012 (4) - 21.06.2024 08:40 [16:07:38]1206 (1) - 0 [16:07:38]OFD Sender: Remove packet 111986 [16:07:38]ProducePacketName [16:07:38]name=ofd_packets/00111986 [16:07:38]NVStorageDeleteData [16:07:38]Write to MH i2c: 01 00 00 BE 0F CD [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: 01 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: 01 07 00 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: 01 07 00 BE 0F 00 00 00 00 00 E0 0C C0 [16:07:38]RasterBufferAndPrint [16:07:38]line [16:07:38]line [16:07:38]line [16:07:38]line [16:07:38]line [16:07:38]written 0, free lines is 3302 [16:07:38]MH_Cut [16:07:38]Write to MH i2c: D1 01 00 C5 0F 01 A6 [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: D1 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: D1 01 00 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: D1 01 00 C5 0F 00 A5 [16:07:38]Write to MH i2c: 01 00 00 C6 0F D5 [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:38]OFD Sender: No OFD packet to send [16:07:38]*** Cut start [16:07:38]*** Partial cut [16:07:38]*** CUTSNS_PIN = 1 [16:07:38]*** CUTSNS_PIN = 0 [16:07:39]*** Brake cut motor [16:07:39]Read from MH i2c: 01 [16:07:39]MH_I2C_Read... [16:07:39]*** Stop cut motor [16:07:39]*** Cut end [16:07:39]Read from MH i2c: 01 07 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: 01 07 00 C6 0F 00 00 00 00 00 FF 0F EA [16:07:39]process_action close_receipt done [16:07:39]requested_data is exist [16:07:39]produce_requested_data [16:07:39]requested_item fm.sn is exist - process it [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 11 00 00 [16:07:39]Write to MH i2c: E2 08 00 C7 0F 80 11 00 00 00 00 00 00 50 [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 17 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 17 00 C7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A2 [16:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:07:39]wFMCommunicate OK [16:07:39]requested_item fd.num is exist - process it [16:07:39]SAM_PROTO_GetFieldsCounters [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 13 00 00 [16:07:39]Write to MH i2c: E2 08 00 C8 0F 80 13 00 00 00 00 00 00 53 [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 62 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 62 00 C8 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 72 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [16:07:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 72 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:39]wFMCommunicate OK [16:07:39]SAM_PROTO_GetFieldsCounters done [16:07:39]requested_item shift.num is exist - process it [16:07:39]requested_item shift.opened is exist - process it [16:07:39]req_shift_opened [16:07:39]FM_GetShiftState [16:07:39]SAM_PROTO_GetShiftState [16:07:39]wFMCommunicate request_size=4 [16:07:39]MH_SAM_APDU [16:07:39]CAPDU: 80 13 01 00 [16:07:39]Write to MH i2c: E2 08 00 C9 0F 80 13 01 00 00 00 00 00 55 [16:07:39]Write i2c OK [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:39]Read from MH i2c: E2 0E 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 0E 00 C9 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D2 [16:07:39]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:07:39]wFMCommunicate OK [16:07:39]SAM_PROTO_GetShiftState done [16:07:39]FM_GetShiftState done [16:07:39]req_shift_opened done [16:07:39]requested_item shift.open_date is exist - process it [16:07:39]req_shift_open_date [16:07:39]req_shift_open_date done [16:07:39]produce_requested_data done [16:07:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111986,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:07:39]process_action_free close_receipt [16:07:39]json_value_free [16:07:39]json_value_free done [16:07:39]process_json_proto returns [16:07:39]Send response to host [16:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111986,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:07:39]free response buf [16:07:39]execute_script done [16:07:39]execute_script returns [16:07:39]free content buf [16:07:39]Sock 7.Close socket [16:07:39]Sock 7.Thread stoped [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:49]accept exits with 9 [16:10:49]New connection [16:10:49]New thread 3066875236 created [16:10:49]Thread 3066731876 joined [16:10:49]Waiting for new connection... [16:10:49] Sock 9.Parse request [16:10:49]Sock 9.Check first char [16:10:49]Sock 9.First char is OK [16:10:49]request: POST /json_proto HTTP/1.0 [16:10:49]Method: POST [16:10:49]URL: /json_proto [16:10:49]Method is POST - this is cgi request [16:10:49]url: /json_proto [16:10:49]query_string will be loaded in cgi processing [16:10:49]execute_cgi json_proto POST (null) [16:10:49]execute_cgi path=json_proto method=POST [16:10:49]POST find Content-Length [16:10:49]Host: 172.17.59.68:8080 [16:10:49]Content-Length: 677 [16:10:49]Content-Type: application/json [16:10:49] [16:10:49]POST finish read [16:10:49]Found Content-Length = 677 [16:10:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:49]execute_script... [16:10: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)320635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:49]POST & json_proto [16:10:49]process_json_proto [16:10:49]json parsed OK: [16:10:49]protocol is kg_v1.0 [16:10:49]action value=close_receipt [16:10:49]process_action close_receipt [16:10:49]cmd_close_receipt [16:10:49]MH_GetDate [16:10:49]Write to MH i2c: F0 00 00 CA 0F C8 [16:10:49]Write i2c OK [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: F0 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: F0 09 00 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: F0 09 00 CA 0F 00 0D A6 75 66 BC EC 60 65 CC [16:10:49]GetLastDocTimeStamp 1718986059 [16:10:49]current date 1718986253 [16:10:49]FM_GetShiftState [16:10:49]SAM_PROTO_GetShiftState [16:10:49]wFMCommunicate request_size=4 [16:10:49]MH_SAM_APDU [16:10:49]CAPDU: 80 13 01 00 [16:10:49]Write to MH i2c: E2 08 00 CB 0F 80 13 01 00 00 00 00 00 57 [16:10:49]Write i2c OK [16:10:49]MH_I2C_Read... [16:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:49]Read from MH i2c: E2 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: E2 0E 00 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: E2 0E 00 CB 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D4 [16:10:49]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:10:49]wFMCommunicate OK [16:10:49]SAM_PROTO_GetShiftState done [16:10:49]FM_GetShiftState done [16:10:49]opened in 1718933695 [16:10:49]opened+sec_in_day 1719020095 [16:10:49]quantity*price = 32004 [16:10:49]sum+1 = 32006 [16:10:49]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.05 袠孝袨袚袨: 320.00 袙薪械褋械薪芯: 320.00 小袛袗效袗: 0.00 袧小袩 1% : 2.83 袧袛小 12% : 33.99 袧邪谢懈褔薪褘屑懈: 320.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 155 21.06.2024 16:10 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111987 肖袩袛: 89585062439811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T161053&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111987&fm=89585062439811&tin=02508201610067®Number=0000000000092771&sum=32000 [16:10:51]StoreToDocumentArchive [16:10:51]shift 390 fd 111987 [16:10:51]save to /storage/0390/doc_00111987 [16:10:51]save last doc name /storage/0390/doc_00111987 to /storage/kkm_last_doc_name [16:10:51]save OK [16:10:51]Clear old archive folders... [16:10:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:51]tlvbuf is B6EAE1D0 [16:10:51]SAM_PROTO_ClearQueue [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 09 00 00 [16:10:51]Write to MH i2c: E2 08 00 D8 0F 80 09 00 00 00 00 00 00 59 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 D8 0F 00 90 00 5B [16:10:51]RAPDU: 90 00 [16:10:51]wFMCommunicate OK [16:10:51]SAM_PROTO_ClearQueue done [16:10:51]KKMCreateOFDPacket [16:10:51]OFDProtocolAddRootSTLVToBuf [16:10:51]FM_MakeSignedData [16:10:51]FM_MakeSignedData [16:10:51]SAM_PROTO_SignData [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 0D 01 02 [16:10:51]Write to MH i2c: E2 08 00 D9 0F 80 0D 01 02 00 00 00 00 61 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 D9 0F 00 90 00 5C [16:10:51]RAPDU: 90 00 [16:10:51]wFMCommunicate OK [16:10:51]wFMCommunicate request_size=255 [16:10:51]MH_SAM_APDU [16:10: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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 0D A6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B5 01 00 35 04 06 00 51 [16:10:51]Write to MH i2c: E2 02 01 DA 0F 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 0D A6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B5 01 00 35 04 06 00 51 00 00 70 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 DA 0F 00 90 00 5D [16:10:51]RAPDU: 90 00 [16:10:51]wFMCommunicate OK [16:10:51]wFMCommunicate request_size=10 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 0D 02 02 05 7A 25 D2 EB 83 [16:10:51]Write to MH i2c: E2 0D 00 DB 0F 80 0D 02 02 05 00 7A 25 D2 EB 83 00 00 4D [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 DB 0F 00 90 00 5E [16:10:51]RAPDU: 90 00 [16:10:51]wFMCommunicate OK [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 0D 03 02 [16:10:51]Write to MH i2c: E2 08 00 DC 0F 80 0D 03 02 00 00 00 00 66 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 0B 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 0B 00 DC 0F 00 8C B6 E1 D8 0B 8C E6 4D 90 00 2C [16:10:51]RAPDU: 8C B6 E1 D8 0B 8C E6 4D 90 00 [16:10:51]wFMCommunicate OK [16:10:51]SAM_PROTO_SignData done [16:10:51]FM_MakeSignedData done [16:10:51]CreateOFDProtocolMessage [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 11 00 00 [16:10:51]Write to MH i2c: E2 08 00 DD 0F 80 11 00 00 00 00 00 00 66 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 17 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 17 00 DD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B8 [16:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:10:51]wFMCommunicate OK [16:10:51]CreateOFDProtocolMessage done [16:10:51]OFDSenderStorePacket 111987 [16:10:51]StoreOFDPacket docnum=111987 [16:10:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D2 85 07 01 C1 D7 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 0D A6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B5 01 00 35 04 06 00 51 7A 25 D2 EB 83 8C B6 E1 D8 0B 8C E6 4D [16:10:51]CheckFolder [16:10:51]dirname=/storage/ofd_packets [16:10:51]CheckFolder done [16:10:51]ProducePacketName [16:10:51]name=ofd_packets/00111987 [16:10:51]NVStorageSaveData ofd_packets/00111987 [16:10:51]File name is /storage/ofd_packets/00111987 [16:10:51]Write 301 bytes [16:10:51]NVStorageSaveData done [16:10:51]OFDSenderStorePacket done [16:10:51]KKMCreateOFDPacket done [16:10:51]NVStorageSaveData kkm_last_timestamp [16:10:51]File name is /storage/kkm_last_timestamp [16:10:51]Write 4 bytes [16:10:51]NVStorageSaveData done [16:10:51]ExternCall_PrintAddStr [16:10:51]wPrintStart [16:10:51]Write to MH i2c: 01 00 00 DE 0F ED [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: 01 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: 01 07 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: 01 07 00 DE 0F 00 00 00 00 00 FF 0F 02 [16:10:51]RasterBufferAndPrint [16:10:51]line 小褔械褌 N : (1)320635 [16:10:51]line 袠袧袧: 02508201610067 [16:10:51]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:10:51]line 袩袪袨袛袗袞袗 [16:10:51]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:10:51]line 孝芯胁邪褉: 2710124130 [16:10:51]line 袗懈-92-袣-5 [16:10:51]line 4.820 * 66.40 [16:10:51]line = 320.05 [16:10:51]line 袧袛小 12% 袧小袩 1% [16:10:51]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:10:51]line 袨袣袪校袚袥袝袧袠袝: -0.05 [16:10:51]line 袠孝袨袚袨: 320.00 [16:10:51]line 袙薪械褋械薪芯: 320.00 [16:10:51]line 小袛袗效袗: 0.00 [16:10:51]line 袧小袩 1% : 2.83 [16:10:51]line 袧袛小 12% : 33.99 [16:10:51]line 袧邪谢懈褔薪褘屑懈: 320.00 [16:10:51]line 袘械蟹薪邪谢.: 0.00 [16:10:51]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:10:51]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:10:51]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:10:51]line 效械泻 155 21.06.2024 16:10 [16:10:51]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:10:51]line 袟袧袦: 0300000198 [16:10:51]line 袪袧袦: 0000000000092771 [16:10:51]line 袙械褉褋懈褟 袣袣袦: 001 [16:10:51]line 肖袦: 0000000000875083 [16:10:51]line 肖袛: 111987 [16:10:51]line 肖袩袛: 89585062439811 [16:10:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T161053&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111987&fm=89585062439811&tin=02508201610067®Number=0000000000092771&sum=32000 [16:10:51]OFD Sender: Processing packet 111987 [packets to send 38, broken 37] [16:10:51]ProducePacketName [16:10:51]name=ofd_packets/00111987 [16:10:51]OFD Sender: To server: 嚂鰌G, [16:10:51]CommunicateWithHost lk.salyk.kg:30040 [16:10:51]ConnectInit lk.salyk.kg [16:10:51]written 0, free lines is 4095 [16:10:52]Connected sock=10 [16:10:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D2 85 07 01 C1 D7 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 0D A6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B5 01 00 35 04 06 00 51 7A 25 D2 EB 83 8C B6 E1 D8 0B 8C E6 4D [16:10:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6E 72 47 00 74 0B 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 30 38 37 35 30 38 33 10 04 04 00 73 B5 01 00 F4 03 04 00 34 3D 75 66 B6 04 01 00 00 06 FB 41 90 87 FF A4 D2 [16:10:52]CommunicateWithHost err = 0 [16:10:52]CheckOFDResponse [16:10:52]1017 (14) - 77093643461234 [16:10:52]1041 (16) - 0000000000875083 [16:10:52]1040 (4) - 111987 [16:10:52]1012 (4) - 21.06.2024 08:43 [16:10:52]1206 (1) - 0 [16:10:52]OFD Sender: Remove packet 111987 [16:10:52]ProducePacketName [16:10:52]name=ofd_packets/00111987 [16:10:52]NVStorageDeleteData [16:10:52]Write to MH i2c: 01 00 00 09 10 19 [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: 01 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: 01 07 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: 01 07 00 09 10 00 00 00 00 00 EE 0C 1A [16:10:52]RasterBufferAndPrint [16:10:52]line [16:10:52]line [16:10:52]line [16:10:52]line [16:10:52]line [16:10:52]written 0, free lines is 3316 [16:10:52]MH_Cut [16:10:52]Write to MH i2c: D1 01 00 10 10 01 F2 [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: D1 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: D1 01 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: D1 01 00 10 10 00 F1 [16:10:52]Write to MH i2c: 01 00 00 11 10 21 [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]OFD Sender: No OFD packet to send [16:10:53]*** Cut start [16:10:53]*** Partial cut [16:10:53]*** CUTSNS_PIN = 1 [16:10:53]*** CUTSNS_PIN = 0 [16:10:53]*** Brake cut motor [16:10:53]Read from MH i2c: 01 [16:10:53]MH_I2C_Read... [16:10:53]*** Stop cut motor [16:10:53]*** Cut end [16:10:53]Read from MH i2c: 01 07 00 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: 01 07 00 11 10 00 00 00 00 00 FF 0F 36 [16:10:53]process_action close_receipt done [16:10:53]requested_data is exist [16:10:53]produce_requested_data [16:10:53]requested_item fm.sn is exist - process it [16:10:53]wFMCommunicate request_size=4 [16:10:53]MH_SAM_APDU [16:10:53]CAPDU: 80 11 00 00 [16:10:53]Write to MH i2c: E2 08 00 12 10 80 11 00 00 00 00 00 00 9C [16:10:53]Write i2c OK [16:10:53]MH_I2C_Read... [16:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:53]Read from MH i2c: E2 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: E2 17 00 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: E2 17 00 12 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [16:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:10:53]wFMCommunicate OK [16:10:53]requested_item fd.num is exist - process it [16:10:53]SAM_PROTO_GetFieldsCounters [16:10:53]wFMCommunicate request_size=4 [16:10:53]MH_SAM_APDU [16:10:53]CAPDU: 80 13 00 00 [16:10:53]Write to MH i2c: E2 08 00 13 10 80 13 00 00 00 00 00 00 9F [16:10:53]Write i2c OK [16:10:53]MH_I2C_Read... [16:10:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:53]Read from MH i2c: E2 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: E2 62 00 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: E2 62 00 13 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 73 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [16:10:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 73 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:53]wFMCommunicate OK [16:10:53]SAM_PROTO_GetFieldsCounters done [16:10:53]requested_item shift.num is exist - process it [16:10:53]requested_item shift.opened is exist - process it [16:10:53]req_shift_opened [16:10:53]FM_GetShiftState [16:10:53]SAM_PROTO_GetShiftState [16:10:53]wFMCommunicate request_size=4 [16:10:53]MH_SAM_APDU [16:10:53]CAPDU: 80 13 01 00 [16:10:53]Write to MH i2c: E2 08 00 14 10 80 13 01 00 00 00 00 00 A1 [16:10:53]Write i2c OK [16:10:53]MH_I2C_Read... [16:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:53]Read from MH i2c: E2 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: E2 0E 00 [16:10:53]MH_I2C_Read... [16:10:53]Read from MH i2c: E2 0E 00 14 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1E [16:10:53]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:10:53]wFMCommunicate OK [16:10:53]SAM_PROTO_GetShiftState done [16:10:53]FM_GetShiftState done [16:10:53]req_shift_opened done [16:10:53]requested_item shift.open_date is exist - process it [16:10:53]req_shift_open_date [16:10:53]req_shift_open_date done [16:10:53]produce_requested_data done [16:10:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111987,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:10:53]process_action_free close_receipt [16:10:53]json_value_free [16:10:53]json_value_free done [16:10:53]process_json_proto returns [16:10:53]Send response to host [16:10:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111987,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:10:53]free response buf [16:10:53]execute_script done [16:10:53]execute_script returns [16:10:53]free content buf [16:10:53]Sock 9.Close socket [16:10:53]Sock 9.Thread stoped [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:46]accept exits with 7 [16:11:46]New connection [16:11:46]New thread 3066731876 created [16:11:46]Thread 3066875236 joined [16:11:46]Waiting for new connection... [16:11:46] Sock 7.Parse request [16:11:46]Sock 7.Check first char [16:11:46]Sock 7.First char is OK [16:11:46]request: POST /json_proto HTTP/1.0 [16:11:46]Method: POST [16:11:46]URL: /json_proto [16:11:46]Method is POST - this is cgi request [16:11:46]url: /json_proto [16:11:46]query_string will be loaded in cgi processing [16:11:46]execute_cgi json_proto POST (null) [16:11:46]execute_cgi path=json_proto method=POST [16:11:46]POST find Content-Length [16:11:46]Host: 172.17.59.68:8080 [16:11:46]Content-Length: 677 [16:11:46]Content-Type: application/json [16:11:46] [16:11:46]POST finish read [16:11:46]Found Content-Length = 677 [16:11:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [16:11:46]execute_script... [16:11: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)320636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [16:11:46]POST & json_proto [16:11:46]process_json_proto [16:11:46]json parsed OK: [16:11:46]protocol is kg_v1.0 [16:11:46]action value=close_receipt [16:11:46]process_action close_receipt [16:11:46]cmd_close_receipt [16:11:46]MH_GetDate [16:11:46]Write to MH i2c: F0 00 00 15 10 14 [16:11:46]Write i2c OK [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: F0 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: F0 09 00 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: F0 09 00 15 10 00 46 A6 75 66 BC EC 60 65 51 [16:11:46]GetLastDocTimeStamp 1718986253 [16:11:46]current date 1718986310 [16:11:46]FM_GetShiftState [16:11:46]SAM_PROTO_GetShiftState [16:11:46]wFMCommunicate request_size=4 [16:11:46]MH_SAM_APDU [16:11:46]CAPDU: 80 13 01 00 [16:11:46]Write to MH i2c: E2 08 00 16 10 80 13 01 00 00 00 00 00 A3 [16:11:46]Write i2c OK [16:11:46]MH_I2C_Read... [16:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:46]Read from MH i2c: E2 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: E2 0E 00 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: E2 0E 00 16 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 20 [16:11:46]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:11:46]wFMCommunicate OK [16:11:46]SAM_PROTO_GetShiftState done [16:11:46]FM_GetShiftState done [16:11:46]opened in 1718933695 [16:11:46]opened+sec_in_day 1719020095 [16:11:46]quantity*price = 50065 [16:11:46]sum+1 = 50067 [16:11:46]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 156 21.06.2024 16:11 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111988 肖袩袛: 37775332353160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T161150&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111988&fm=37775332353160&tin=02508201610067®Number=0000000000092771&sum=50000 [16:11:47]StoreToDocumentArchive [16:11:47]shift 390 fd 111988 [16:11:47]save to /storage/0390/doc_00111988 [16:11:47]save last doc name /storage/0390/doc_00111988 to /storage/kkm_last_doc_name [16:11:47]save OK [16:11:47]Clear old archive folders... [16:11:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:47]tlvbuf is 0046C150 [16:11:47]SAM_PROTO_ClearQueue [16:11:47]wFMCommunicate request_size=4 [16:11:47]MH_SAM_APDU [16:11:47]CAPDU: 80 09 00 00 [16:11:47]Write to MH i2c: E2 08 00 23 10 80 09 00 00 00 00 00 00 A5 [16:11:47]Write i2c OK [16:11:47]MH_I2C_Read... [16:11:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:47]Read from MH i2c: E2 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 03 00 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 03 00 23 10 00 90 00 A7 [16:11:47]RAPDU: 90 00 [16:11:47]wFMCommunicate OK [16:11:47]SAM_PROTO_ClearQueue done [16:11:47]KKMCreateOFDPacket [16:11:47]OFDProtocolAddRootSTLVToBuf [16:11:47]FM_MakeSignedData [16:11:47]FM_MakeSignedData [16:11:47]SAM_PROTO_SignData [16:11:47]wFMCommunicate request_size=4 [16:11:47]MH_SAM_APDU [16:11:47]CAPDU: 80 0D 01 02 [16:11:47]Write to MH i2c: E2 08 00 24 10 80 0D 01 02 00 00 00 00 AD [16:11:47]Write i2c OK [16:11:47]MH_I2C_Read... [16:11:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:47]Read from MH i2c: E2 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 03 00 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 03 00 24 10 00 90 00 A8 [16:11:47]RAPDU: 90 00 [16:11:47]wFMCommunicate OK [16:11:47]wFMCommunicate request_size=255 [16:11:47]MH_SAM_APDU [16:11: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 9C 00 00 00 F4 03 04 00 46 A6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B5 01 00 35 04 06 00 22 [16:11:47]Write to MH i2c: E2 02 01 25 10 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 9C 00 00 00 F4 03 04 00 46 A6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B5 01 00 35 04 06 00 22 00 00 97 [16:11:47]Write i2c OK [16:11:47]MH_I2C_Read... [16:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:47]Read from MH i2c: E2 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 03 00 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 03 00 25 10 00 90 00 A9 [16:11:47]RAPDU: 90 00 [16:11:47]wFMCommunicate OK [16:11:47]wFMCommunicate request_size=10 [16:11:47]MH_SAM_APDU [16:11:47]CAPDU: 80 0D 02 02 05 5B 41 44 24 88 [16:11:47]Write to MH i2c: E2 0D 00 26 10 80 0D 02 02 05 00 5B 41 44 24 88 00 00 46 [16:11:47]Write i2c OK [16:11:47]MH_I2C_Read... [16:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:47]Read from MH i2c: E2 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 03 00 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 03 00 26 10 00 90 00 AA [16:11:47]RAPDU: 90 00 [16:11:47]wFMCommunicate OK [16:11:47]wFMCommunicate request_size=4 [16:11:47]MH_SAM_APDU [16:11:47]CAPDU: 80 0D 03 02 [16:11:47]Write to MH i2c: E2 08 00 27 10 80 0D 03 02 00 00 00 00 B2 [16:11:47]Write i2c OK [16:11:47]MH_I2C_Read... [16:11:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:47]Read from MH i2c: E2 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 0B 00 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 0B 00 27 10 00 B4 BE 5B ED CD 85 A5 3A 90 00 9E [16:11:47]RAPDU: B4 BE 5B ED CD 85 A5 3A 90 00 [16:11:47]wFMCommunicate OK [16:11:47]SAM_PROTO_SignData done [16:11:47]FM_MakeSignedData done [16:11:47]CreateOFDProtocolMessage [16:11:47]wFMCommunicate request_size=4 [16:11:47]MH_SAM_APDU [16:11:47]CAPDU: 80 11 00 00 [16:11:47]Write to MH i2c: E2 08 00 28 10 80 11 00 00 00 00 00 00 B2 [16:11:47]Write i2c OK [16:11:47]MH_I2C_Read... [16:11:47]OFD Sender: No OFD packet to send [16:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:47]Read from MH i2c: E2 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 17 00 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 17 00 28 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [16:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:11:47]wFMCommunicate OK [16:11:47]CreateOFDProtocolMessage done [16:11:47]OFDSenderStorePacket 111988 [16:11:47]StoreOFDPacket docnum=111988 [16:11:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1B 7A 07 01 63 27 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 9C 00 00 00 F4 03 04 00 46 A6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B5 01 00 35 04 06 00 22 5B 41 44 24 88 B4 BE 5B ED CD 85 A5 3A [16:11:47]CheckFolder [16:11:47]dirname=/storage/ofd_packets [16:11:47]CheckFolder done [16:11:47]ProducePacketName [16:11:47]name=ofd_packets/00111988 [16:11:47]NVStorageSaveData ofd_packets/00111988 [16:11:47]File name is /storage/ofd_packets/00111988 [16:11:47]Write 301 bytes [16:11:47]NVStorageSaveData done [16:11:47]OFDSenderStorePacket done [16:11:47]KKMCreateOFDPacket done [16:11:47]NVStorageSaveData kkm_last_timestamp [16:11:47]File name is /storage/kkm_last_timestamp [16:11:47]Write 4 bytes [16:11:47]NVStorageSaveData done [16:11:47]ExternCall_PrintAddStr [16:11:47]wPrintStart [16:11:47]Write to MH i2c: 01 00 00 29 10 39 [16:11:47]Write i2c OK [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: 01 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: 01 07 00 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: 01 07 00 29 10 00 00 00 00 00 FF 0F 4E [16:11:47]RasterBufferAndPrint [16:11:47]line 小褔械褌 N : (1)320636 [16:11:47]line 袠袧袧: 02508201610067 [16:11:47]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:11:47]line 袩袪袨袛袗袞袗 [16:11:47]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:11:47]line 孝芯胁邪褉: 2710124130 [16:11:47]line 袗懈-92-袣-5 [16:11:47]line 7.540 * 66.40 [16:11:47]line = 500.66 [16:11:47]line 袧袛小 12% 袧小袩 1% [16:11:47]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:11:47]line 袨袣袪校袚袥袝袧袠袝: -0.66 [16:11:47]line 袠孝袨袚袨: 500.00 [16:11:47]line 袙薪械褋械薪芯: 500.00 [16:11:47]line 小袛袗效袗: 0.00 [16:11:47]line 袧小袩 1% : 4.43 [16:11:47]line 袧袛小 12% : 53.17 [16:11:47]line 袧邪谢懈褔薪褘屑懈: 500.00 [16:11:47]line 袘械蟹薪邪谢.: 0.00 [16:11:47]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:11:47]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:11:47]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:11:47]line 效械泻 156 21.06.2024 16:11 [16:11:47]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:11:47]line 袟袧袦: 0300000198 [16:11:47]line 袪袧袦: 0000000000092771 [16:11:47]line 袙械褉褋懈褟 袣袣袦: 001 [16:11:47]line 肖袦: 0000000000875083 [16:11:47]line 肖袛: 111988 [16:11:47]line 肖袩袛: 37775332353160 [16:11:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T161150&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111988&fm=37775332353160&tin=02508201610067®Number=0000000000092771&sum=50000 [16:11:48]OFD Sender: Processing packet 111988 [packets to send 38, broken 37] [16:11:48]ProducePacketName [16:11:48]name=ofd_packets/00111988 [16:11:48]OFD Sender: To server: 嚂鰌G, [16:11:48]CommunicateWithHost lk.salyk.kg:30040 [16:11:48]ConnectInit lk.salyk.kg [16:11:48]written 0, free lines is 4095 [16:11:48]Connected sock=10 [16:11:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1B 7A 07 01 63 27 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 9C 00 00 00 F4 03 04 00 46 A6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B5 01 00 35 04 06 00 22 5B 41 44 24 88 B4 BE 5B ED CD 85 A5 3A [16:11:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B3 27 47 00 C7 C7 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 30 38 37 35 30 38 33 10 04 04 00 74 B5 01 00 F4 03 04 00 6D 3D 75 66 B6 04 01 00 00 7D D9 7C B5 7B 65 80 4D [16:11:48]CommunicateWithHost err = 0 [16:11:48]CheckOFDResponse [16:11:48]1017 (14) - 77093643461234 [16:11:48]1041 (16) - 0000000000875083 [16:11:48]1040 (4) - 111988 [16:11:48]1012 (4) - 21.06.2024 08:44 [16:11:48]1206 (1) - 0 [16:11:48]OFD Sender: Remove packet 111988 [16:11:48]ProducePacketName [16:11:48]name=ofd_packets/00111988 [16:11:48]NVStorageDeleteData [16:11:48]Write to MH i2c: 01 00 00 54 10 64 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 07 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 07 00 54 10 00 00 00 00 00 E0 0C 57 [16:11:48]RasterBufferAndPrint [16:11:48]line [16:11:48]line [16:11:48]line [16:11:48]line [16:11:48]line [16:11:48]written 0, free lines is 3301 [16:11:48]MH_Cut [16:11:48]Write to MH i2c: D1 01 00 5B 10 01 3D [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: D1 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: D1 01 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: D1 01 00 5B 10 00 3C [16:11:48]Write to MH i2c: 01 00 00 5C 10 6C [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]OFD Sender: No OFD packet to send [16:11:49]*** Cut start [16:11:49]*** Partial cut [16:11:49]*** CUTSNS_PIN = 1 [16:11:49]*** CUTSNS_PIN = 0 [16:11:49]*** Brake cut motor [16:11:49]Read from MH i2c: 01 [16:11:49]MH_I2C_Read... [16:11:49]*** Stop cut motor [16:11:49]*** Cut end [16:11:49]Read from MH i2c: 01 07 00 [16:11:49]MH_I2C_Read... [16:11:49]Read from MH i2c: 01 07 00 5C 10 00 00 00 00 00 FF 0F 81 [16:11:49]process_action close_receipt done [16:11:49]requested_data is exist [16:11:49]produce_requested_data [16:11:49]requested_item fm.sn is exist - process it [16:11:49]wFMCommunicate request_size=4 [16:11:49]MH_SAM_APDU [16:11:49]CAPDU: 80 11 00 00 [16:11:49]Write to MH i2c: E2 08 00 5D 10 80 11 00 00 00 00 00 00 E7 [16:11:49]Write i2c OK [16:11:49]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 17 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 17 00 5D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 39 [16:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:11:50]wFMCommunicate OK [16:11:50]requested_item fd.num is exist - process it [16:11:50]SAM_PROTO_GetFieldsCounters [16:11:50]wFMCommunicate request_size=4 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 13 00 00 [16:11:50]Write to MH i2c: E2 08 00 5E 10 80 13 00 00 00 00 00 00 EA [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 62 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 62 00 5E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 74 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [16:11:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 74 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:50]wFMCommunicate OK [16:11:50]SAM_PROTO_GetFieldsCounters done [16:11:50]requested_item shift.num is exist - process it [16:11:50]requested_item shift.opened is exist - process it [16:11:50]req_shift_opened [16:11:50]FM_GetShiftState [16:11:50]SAM_PROTO_GetShiftState [16:11:50]wFMCommunicate request_size=4 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 13 01 00 [16:11:50]Write to MH i2c: E2 08 00 5F 10 80 13 01 00 00 00 00 00 EC [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 0E 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 0E 00 5F 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 69 [16:11:50]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:11:50]wFMCommunicate OK [16:11:50]SAM_PROTO_GetShiftState done [16:11:50]FM_GetShiftState done [16:11:50]req_shift_opened done [16:11:50]requested_item shift.open_date is exist - process it [16:11:50]req_shift_open_date [16:11:50]req_shift_open_date done [16:11:50]produce_requested_data done [16:11:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111988,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:11:50]process_action_free close_receipt [16:11:50]json_value_free [16:11:50]json_value_free done [16:11:50]process_json_proto returns [16:11:50]Send response to host [16:11:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111988,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:11:50]free response buf [16:11:50]execute_script done [16:11:50]execute_script returns [16:11:50]free content buf [16:11:50]Sock 7.Close socket [16:11:50]Sock 7.Thread stoped [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:20]accept exits with 9 [16:14:20]New connection [16:14:20]New thread 3066875236 created [16:14:20]Thread 3066731876 joined [16:14:20]Waiting for new connection... [16:14:20] Sock 9.Parse request [16:14:20]Sock 9.Check first char [16:14:20]Sock 9.First char is OK [16:14:20]request: POST /json_proto HTTP/1.0 [16:14:20]Method: POST [16:14:20]URL: /json_proto [16:14:20]Method is POST - this is cgi request [16:14:20]url: /json_proto [16:14:20]query_string will be loaded in cgi processing [16:14:20]execute_cgi json_proto POST (null) [16:14:20]execute_cgi path=json_proto method=POST [16:14:20]POST find Content-Length [16:14:20]Host: 172.17.59.68:8080 [16:14:20]Content-Length: 642 [16:14:20]Content-Type: application/json [16:14:20] [16:14:20]POST finish read [16:14:20]Found Content-Length = 642 [16:14:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:20]execute_script... [16:14: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)320637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:20]POST & json_proto [16:14:20]process_json_proto [16:14:20]json parsed OK: [16:14:20]protocol is kg_v1.0 [16:14:20]action value=close_receipt [16:14:20]process_action close_receipt [16:14:20]cmd_close_receipt [16:14:20]MH_GetDate [16:14:20]Write to MH i2c: F0 00 00 60 10 5F [16:14:20]Write i2c OK [16:14:20]MH_I2C_Read... [16:14:20]Read from MH i2c: F0 [16:14:20]MH_I2C_Read... [16:14:20]Read from MH i2c: F0 09 00 [16:14:20]MH_I2C_Read... [16:14:20]Read from MH i2c: F0 09 00 60 10 00 E1 A6 75 66 BC EC 60 65 37 [16:14:20]GetLastDocTimeStamp 1718986310 [16:14:20]current date 1718986465 [16:14:20]FM_GetShiftState [16:14:20]SAM_PROTO_GetShiftState [16:14:20]wFMCommunicate request_size=4 [16:14:20]MH_SAM_APDU [16:14:20]CAPDU: 80 13 01 00 [16:14:20]Write to MH i2c: E2 08 00 61 10 80 13 01 00 00 00 00 00 EE [16:14:20]Write i2c OK [16:14:20]MH_I2C_Read... [16:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:20]Read from MH i2c: E2 [16:14:20]MH_I2C_Read... [16:14:20]Read from MH i2c: E2 0E 00 [16:14:20]MH_I2C_Read... [16:14:20]Read from MH i2c: E2 0E 00 61 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 6B [16:14:20]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:14:20]wFMCommunicate OK [16:14:20]SAM_PROTO_GetShiftState done [16:14:20]FM_GetShiftState done [16:14:20]opened in 1718933695 [16:14:20]opened+sec_in_day 1719020095 [16:14:20]quantity*price = 132800 [16:14:20]sum+1 = 132801 [16:14:20]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 1328.00 袧小袩 1% : 11.75 袧袛小 12% : 141.03 袧邪谢懈褔薪褘屑懈: 1328.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 157 21.06.2024 16:14 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111989 肖袩袛: 244902931354303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T161425&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111989&fm=244902931354303&tin=02508201610067®Number=0000000000092771&sum=132800 [16:14:22]StoreToDocumentArchive [16:14:22]shift 390 fd 111989 [16:14:22]save to /storage/0390/doc_00111989 [16:14:22]save last doc name /storage/0390/doc_00111989 to /storage/kkm_last_doc_name [16:14:22]save OK [16:14:22]Clear old archive folders... [16:14:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:22]tlvbuf is 00441E50 [16:14:22]SAM_PROTO_ClearQueue [16:14:22]wFMCommunicate request_size=4 [16:14:22]MH_SAM_APDU [16:14:22]CAPDU: 80 09 00 00 [16:14:22]Write to MH i2c: E2 08 00 6E 10 80 09 00 00 00 00 00 00 F0 [16:14:22]Write i2c OK [16:14:22]MH_I2C_Read... [16:14:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:22]Read from MH i2c: E2 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: E2 03 00 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: E2 03 00 6E 10 00 90 00 F2 [16:14:22]RAPDU: 90 00 [16:14:22]wFMCommunicate OK [16:14:22]SAM_PROTO_ClearQueue done [16:14:22]KKMCreateOFDPacket [16:14:22]OFDProtocolAddRootSTLVToBuf [16:14:22]FM_MakeSignedData [16:14:22]FM_MakeSignedData [16:14:22]SAM_PROTO_SignData [16:14:22]wFMCommunicate request_size=4 [16:14:22]MH_SAM_APDU [16:14:22]CAPDU: 80 0D 01 02 [16:14:22]Write to MH i2c: E2 08 00 6F 10 80 0D 01 02 00 00 00 00 F8 [16:14:22]Write i2c OK [16:14:22]MH_I2C_Read... [16:14:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:22]Read from MH i2c: E2 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: E2 03 00 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: E2 03 00 6F 10 00 90 00 F3 [16:14:22]RAPDU: 90 00 [16:14:22]wFMCommunicate OK [16:14:22]wFMCommunicate request_size=255 [16:14:22]MH_SAM_APDU [16:14: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 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E1 A6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B5 01 00 35 04 06 00 DE [16:14:22]Write to MH i2c: E2 02 01 70 10 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 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E1 A6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B5 01 00 35 04 06 00 DE 00 00 49 [16:14:22]Write i2c OK [16:14:22]MH_I2C_Read... [16:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:22]Read from MH i2c: E2 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: E2 03 00 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: E2 03 00 70 10 00 90 00 F4 [16:14:22]RAPDU: 90 00 [16:14:22]wFMCommunicate OK [16:14:22]wFMCommunicate request_size=10 [16:14:22]MH_SAM_APDU [16:14:22]CAPDU: 80 0D 02 02 05 BC E8 3A 52 BF [16:14:22]Write to MH i2c: E2 0D 00 71 10 80 0D 02 02 05 00 BC E8 3A 52 BF 00 00 F4 [16:14:22]Write i2c OK [16:14:22]MH_I2C_Read... [16:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:22]Read from MH i2c: E2 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: E2 03 00 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [16:14:22]RAPDU: 90 00 [16:14:22]wFMCommunicate OK [16:14:22]wFMCommunicate request_size=4 [16:14:22]MH_SAM_APDU [16:14:22]CAPDU: 80 0D 03 02 [16:14:22]Write to MH i2c: E2 08 00 72 10 80 0D 03 02 00 00 00 00 FD [16:14:22]Write i2c OK [16:14:22]MH_I2C_Read... [16:14:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:22]Read from MH i2c: E2 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: E2 0B 00 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: E2 0B 00 72 10 00 83 B8 E1 C1 F0 78 34 44 90 00 BB [16:14:22]RAPDU: 83 B8 E1 C1 F0 78 34 44 90 00 [16:14:22]wFMCommunicate OK [16:14:22]SAM_PROTO_SignData done [16:14:22]FM_MakeSignedData done [16:14:22]CreateOFDProtocolMessage [16:14:22]wFMCommunicate request_size=4 [16:14:22]MH_SAM_APDU [16:14:22]CAPDU: 80 11 00 00 [16:14:22]Write to MH i2c: E2 08 00 73 10 80 11 00 00 00 00 00 00 FD [16:14:22]Write i2c OK [16:14:22]MH_I2C_Read... [16:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:22]Read from MH i2c: E2 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: E2 17 00 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: E2 17 00 73 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [16:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:14:22]wFMCommunicate OK [16:14:22]CreateOFDProtocolMessage done [16:14:22]OFDSenderStorePacket 111989 [16:14:22]StoreOFDPacket docnum=111989 [16:14:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E6 14 07 01 B1 22 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 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E1 A6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B5 01 00 35 04 06 00 DE BC E8 3A 52 BF 83 B8 E1 C1 F0 78 34 44 [16:14:22]CheckFolder [16:14:22]dirname=/storage/ofd_packets [16:14:22]CheckFolder done [16:14:22]ProducePacketName [16:14:22]name=ofd_packets/00111989 [16:14:22]NVStorageSaveData ofd_packets/00111989 [16:14:22]File name is /storage/ofd_packets/00111989 [16:14:22]Write 301 bytes [16:14:22]NVStorageSaveData done [16:14:22]OFDSenderStorePacket done [16:14:22]KKMCreateOFDPacket done [16:14:22]NVStorageSaveData kkm_last_timestamp [16:14:22]File name is /storage/kkm_last_timestamp [16:14:22]Write 4 bytes [16:14:22]NVStorageSaveData done [16:14:22]ExternCall_PrintAddStr [16:14:22]wPrintStart [16:14:22]Write to MH i2c: 01 00 00 74 10 84 [16:14:22]Write i2c OK [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: 01 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: 01 07 00 [16:14:22]MH_I2C_Read... [16:14:22]Read from MH i2c: 01 07 00 74 10 00 00 00 00 00 FF 0F 99 [16:14:22]RasterBufferAndPrint [16:14:22]line 小褔械褌 N : (1)320637 [16:14:22]line 袠袧袧: 02508201610067 [16:14:22]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:14:22]line 袩袪袨袛袗袞袗 [16:14:22]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:14:22]line 孝芯胁邪褉: 2710124130 [16:14:22]line 袗懈-92-袣-5 [16:14:22]line 20.000 * 66.40 [16:14:22]line = 1328.00 [16:14:22]line 袧袛小 12% 袧小袩 1% [16:14:22]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:14:22]line 袠孝袨袚袨: 1328.00 [16:14:22]line 袧小袩 1% : 11.75 [16:14:22]line 袧袛小 12% : 141.03 [16:14:22]line 袧邪谢懈褔薪褘屑懈: 1328.00 [16:14:22]line 袘械蟹薪邪谢.: 0.00 [16:14:22]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:14:22]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:14:22]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:14:22]line 效械泻 157 21.06.2024 16:14 [16:14:22]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:14:22]line 袟袧袦: 0300000198 [16:14:22]line 袪袧袦: 0000000000092771 [16:14:22]line 袙械褉褋懈褟 袣袣袦: 001 [16:14:22]line 肖袦: 0000000000875083 [16:14:22]line 肖袛: 111989 [16:14:22]line 肖袩袛: 244902931354303 [16:14:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T161425&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111989&fm=244902931354303&tin=02508201610067®Number=0000000000092771&sum=132800 [16:14:22]OFD Sender: Processing packet 111989 [packets to send 38, broken 37] [16:14:22]ProducePacketName [16:14:22]name=ofd_packets/00111989 [16:14:22]OFD Sender: To server: 嚂鰌G, [16:14:22]CommunicateWithHost lk.salyk.kg:30040 [16:14:22]ConnectInit lk.salyk.kg [16:14:22]written 0, free lines is 4095 [16:14:23]Connected sock=10 [16:14:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E6 14 07 01 B1 22 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 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E1 A6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B5 01 00 35 04 06 00 DE BC E8 3A 52 BF 83 B8 E1 C1 F0 78 34 44 [16:14:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D5 74 47 00 72 77 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 30 38 37 35 30 38 33 10 04 04 00 75 B5 01 00 F4 03 04 00 07 3E 75 66 B6 04 01 00 00 D6 DD F8 0B AE 4C 1B 66 [16:14:23]CommunicateWithHost err = 0 [16:14:23]CheckOFDResponse [16:14:23]1017 (14) - 77093643461234 [16:14:23]1041 (16) - 0000000000875083 [16:14:23]1040 (4) - 111989 [16:14:23]1012 (4) - 21.06.2024 08:47 [16:14:23]1206 (1) - 0 [16:14:23]OFD Sender: Remove packet 111989 [16:14:23]ProducePacketName [16:14:23]name=ofd_packets/00111989 [16:14:23]NVStorageDeleteData [16:14:23]Write to MH i2c: 01 00 00 9C 10 AC [16:14:23]Write i2c OK [16:14:23]MH_I2C_Read... [16:14:23]Read from MH i2c: 01 [16:14:23]MH_I2C_Read... [16:14:23]Read from MH i2c: 01 07 00 [16:14:23]MH_I2C_Read... [16:14:23]Read from MH i2c: 01 07 00 9C 10 00 00 00 00 00 06 0D C6 [16:14:23]RasterBufferAndPrint [16:14:23]line [16:14:23]line [16:14:23]line [16:14:23]line [16:14:23]line [16:14:23]written 0, free lines is 3340 [16:14:23]MH_Cut [16:14:23]Write to MH i2c: D1 01 00 A3 10 01 85 [16:14:23]Write i2c OK [16:14:23]MH_I2C_Read... [16:14:23]Read from MH i2c: D1 [16:14:23]MH_I2C_Read... [16:14:23]Read from MH i2c: D1 01 00 [16:14:23]MH_I2C_Read... [16:14:23]Read from MH i2c: D1 01 00 A3 10 00 84 [16:14:23]Write to MH i2c: 01 00 00 A4 10 B4 [16:14:23]Write i2c OK [16:14:23]MH_I2C_Read... [16:14:23]OFD Sender: No OFD packet to send [16:14:24]*** Cut start [16:14:24]*** Partial cut [16:14:24]*** CUTSNS_PIN = 1 [16:14:24]*** CUTSNS_PIN = 0 [16:14:24]*** Brake cut motor [16:14:24]Read from MH i2c: 01 [16:14:24]MH_I2C_Read... [16:14:24]*** Stop cut motor [16:14:24]*** Cut end [16:14:24]Read from MH i2c: 01 07 00 [16:14:24]MH_I2C_Read... [16:14:24]Read from MH i2c: 01 07 00 A4 10 00 00 00 00 00 FF 0F C9 [16:14:24]process_action close_receipt done [16:14:24]requested_data is exist [16:14:24]produce_requested_data [16:14:24]requested_item fm.sn is exist - process it [16:14:24]wFMCommunicate request_size=4 [16:14:24]MH_SAM_APDU [16:14:24]CAPDU: 80 11 00 00 [16:14:24]Write to MH i2c: E2 08 00 A5 10 80 11 00 00 00 00 00 00 2F [16:14:24]Write i2c OK [16:14:24]MH_I2C_Read... [16:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:24]Read from MH i2c: E2 [16:14:24]MH_I2C_Read... [16:14:24]Read from MH i2c: E2 17 00 [16:14:24]MH_I2C_Read... [16:14:24]Read from MH i2c: E2 17 00 A5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 81 [16:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:14:24]wFMCommunicate OK [16:14:24]requested_item fd.num is exist - process it [16:14:24]SAM_PROTO_GetFieldsCounters [16:14:24]wFMCommunicate request_size=4 [16:14:24]MH_SAM_APDU [16:14:24]CAPDU: 80 13 00 00 [16:14:24]Write to MH i2c: E2 08 00 A6 10 80 13 00 00 00 00 00 00 32 [16:14:24]Write i2c OK [16:14:24]MH_I2C_Read... [16:14:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:24]Read from MH i2c: E2 [16:14:24]MH_I2C_Read... [16:14:24]Read from MH i2c: E2 62 00 [16:14:24]MH_I2C_Read... [16:14:24]Read from MH i2c: E2 62 00 A6 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 75 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [16:14:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 75 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:24]wFMCommunicate OK [16:14:24]SAM_PROTO_GetFieldsCounters done [16:14:24]requested_item shift.num is exist - process it [16:14:24]requested_item shift.opened is exist - process it [16:14:24]req_shift_opened [16:14:24]FM_GetShiftState [16:14:24]SAM_PROTO_GetShiftState [16:14:24]wFMCommunicate request_size=4 [16:14:24]MH_SAM_APDU [16:14:24]CAPDU: 80 13 01 00 [16:14:24]Write to MH i2c: E2 08 00 A7 10 80 13 01 00 00 00 00 00 34 [16:14:24]Write i2c OK [16:14:24]MH_I2C_Read... [16:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:24]Read from MH i2c: E2 [16:14:24]MH_I2C_Read... [16:14:24]Read from MH i2c: E2 0E 00 [16:14:24]MH_I2C_Read... [16:14:24]Read from MH i2c: E2 0E 00 A7 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B1 [16:14:24]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:14:24]wFMCommunicate OK [16:14:24]SAM_PROTO_GetShiftState done [16:14:24]FM_GetShiftState done [16:14:24]req_shift_opened done [16:14:24]requested_item shift.open_date is exist - process it [16:14:24]req_shift_open_date [16:14:24]req_shift_open_date done [16:14:24]produce_requested_data done [16:14:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111989,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:14:24]process_action_free close_receipt [16:14:24]json_value_free [16:14:24]json_value_free done [16:14:24]process_json_proto returns [16:14:24]Send response to host [16:14:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111989,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:14:24]free response buf [16:14:24]execute_script done [16:14:24]execute_script returns [16:14:24]free content buf [16:14:24]Sock 9.Close socket [16:14:24]Sock 9.Thread stoped [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]accept exits with 7 [16:17:18]New connection [16:17:18]New thread 3066731876 created [16:17:18]Thread 3066875236 joined [16:17:18]Waiting for new connection... [16:17:18] Sock 7.Parse request [16:17:18]Sock 7.Check first char [16:17:18]Sock 7.First char is OK [16:17:18]request: POST /json_proto HTTP/1.0 [16:17:18]Method: POST [16:17:18]URL: /json_proto [16:17:18]Method is POST - this is cgi request [16:17:18]url: /json_proto [16:17:18]query_string will be loaded in cgi processing [16:17:18]execute_cgi json_proto POST (null) [16:17:18]execute_cgi path=json_proto method=POST [16:17:18]POST find Content-Length [16:17:18]Host: 172.17.59.68:8080 [16:17:18]Content-Length: 679 [16:17:18]Content-Type: application/json [16:17:18] [16:17:18]POST finish read [16:17:18]Found Content-Length = 679 [16:17:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 25.010, "sum" : 1823.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1823.00, "total" : 1823.00, "payments": [ { "type": 0, "sum" : 1823.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:18]execute_script... [16:17: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)320638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 25.010, "sum" : 1823.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1823.00, "total" : 1823.00, "payments": [ { "type": 0, "sum" : 1823.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:18]POST & json_proto [16:17:18]process_json_proto [16:17:18]json parsed OK: [16:17:18]protocol is kg_v1.0 [16:17:18]action value=close_receipt [16:17:18]process_action close_receipt [16:17:18]cmd_close_receipt [16:17:18]MH_GetDate [16:17:18]Write to MH i2c: F0 00 00 A8 10 A7 [16:17:18]Write i2c OK [16:17:18]MH_I2C_Read... [16:17:18]Read from MH i2c: F0 [16:17:18]MH_I2C_Read... [16:17:18]Read from MH i2c: F0 09 00 [16:17:18]MH_I2C_Read... [16:17:18]Read from MH i2c: F0 09 00 A8 10 00 92 A7 75 66 BC EC 60 65 31 [16:17:18]GetLastDocTimeStamp 1718986465 [16:17:18]current date 1718986642 [16:17:18]FM_GetShiftState [16:17:18]SAM_PROTO_GetShiftState [16:17:18]wFMCommunicate request_size=4 [16:17:18]MH_SAM_APDU [16:17:18]CAPDU: 80 13 01 00 [16:17:18]Write to MH i2c: E2 08 00 A9 10 80 13 01 00 00 00 00 00 36 [16:17:18]Write i2c OK [16:17:18]MH_I2C_Read... [16:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:18]Read from MH i2c: E2 [16:17:18]MH_I2C_Read... [16:17:18]Read from MH i2c: E2 0E 00 [16:17:18]MH_I2C_Read... [16:17:18]Read from MH i2c: E2 0E 00 A9 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B3 [16:17:18]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:17:18]wFMCommunicate OK [16:17:18]SAM_PROTO_GetShiftState done [16:17:18]FM_GetShiftState done [16:17:18]opened in 1718933695 [16:17:18]opened+sec_in_day 1719020095 [16:17:18]quantity*price = 182322 [16:17:18]sum+1 = 182324 [16:17:18]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.23 袠孝袨袚袨: 1823.00 袙薪械褋械薪芯: 1823.00 小袛袗效袗: 0.00 袧小袩 1% : 16.13 袧袛小 12% : 193.62 袧邪谢懈褔薪褘屑懈: 1823.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 158 21.06.2024 16:17 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111990 肖袩袛: 110651687438674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T161722&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111990&fm=110651687438674&tin=02508201610067®Number=0000000000092771&sum=182300 [16:17:19]StoreToDocumentArchive [16:17:19]shift 390 fd 111990 [16:17:19]save to /storage/0390/doc_00111990 [16:17:19]save last doc name /storage/0390/doc_00111990 to /storage/kkm_last_doc_name [16:17:19]save OK [16:17:19]Clear old archive folders... [16:17:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:17:19]tlvbuf is 003378D0 [16:17:19]SAM_PROTO_ClearQueue [16:17:19]wFMCommunicate request_size=4 [16:17:19]MH_SAM_APDU [16:17:19]CAPDU: 80 09 00 00 [16:17:19]Write to MH i2c: E2 08 00 B6 10 80 09 00 00 00 00 00 00 38 [16:17:19]Write i2c OK [16:17:19]MH_I2C_Read... [16:17:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:19]Read from MH i2c: E2 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: E2 03 00 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: E2 03 00 B6 10 00 90 00 3A [16:17:19]RAPDU: 90 00 [16:17:19]wFMCommunicate OK [16:17:19]SAM_PROTO_ClearQueue done [16:17:19]KKMCreateOFDPacket [16:17:19]OFDProtocolAddRootSTLVToBuf [16:17:19]FM_MakeSignedData [16:17:19]FM_MakeSignedData [16:17:19]SAM_PROTO_SignData [16:17:19]wFMCommunicate request_size=4 [16:17:19]MH_SAM_APDU [16:17:19]CAPDU: 80 0D 01 02 [16:17:19]Write to MH i2c: E2 08 00 B7 10 80 0D 01 02 00 00 00 00 40 [16:17:19]Write i2c OK [16:17:19]MH_I2C_Read... [16:17:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:19]Read from MH i2c: E2 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: E2 03 00 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: E2 03 00 B7 10 00 90 00 3B [16:17:19]RAPDU: 90 00 [16:17:19]wFMCommunicate OK [16:17:19]wFMCommunicate request_size=255 [16:17:19]MH_SAM_APDU [16:17:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 61 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 33 C8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C C8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 4B 00 00 00 00 07 04 06 00 1C C8 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 92 A7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B5 01 00 35 04 06 00 64 A3 1A 86 [16:17:19]Write to MH i2c: E2 02 01 B8 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 61 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 33 C8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C C8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 4B 00 00 00 00 07 04 06 00 1C C8 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 92 A7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B5 01 00 35 04 06 00 64 A3 1A 86 00 00 5B [16:17:19]Write i2c OK [16:17:19]MH_I2C_Read... [16:17:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:19]Read from MH i2c: E2 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: E2 03 00 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: E2 03 00 B8 10 00 90 00 3C [16:17:19]RAPDU: 90 00 [16:17:19]wFMCommunicate OK [16:17:19]wFMCommunicate request_size=7 [16:17:19]MH_SAM_APDU [16:17:19]CAPDU: 80 0D 02 02 02 09 52 [16:17:19]Write to MH i2c: E2 0A 00 B9 10 80 0D 02 02 02 00 09 52 00 00 A2 [16:17:19]Write i2c OK [16:17:19]MH_I2C_Read... [16:17:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:19]Read from MH i2c: E2 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: E2 03 00 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: E2 03 00 B9 10 00 90 00 3D [16:17:19]RAPDU: 90 00 [16:17:19]wFMCommunicate OK [16:17:19]wFMCommunicate request_size=4 [16:17:19]MH_SAM_APDU [16:17:19]CAPDU: 80 0D 03 02 [16:17:19]Write to MH i2c: E2 08 00 BA 10 80 0D 03 02 00 00 00 00 45 [16:17:19]Write i2c OK [16:17:19]MH_I2C_Read... [16:17:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:19]Read from MH i2c: E2 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: E2 0B 00 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: E2 0B 00 BA 10 00 35 19 20 31 0F 05 75 B0 90 00 1E [16:17:19]RAPDU: 35 19 20 31 0F 05 75 B0 90 00 [16:17:19]wFMCommunicate OK [16:17:19]SAM_PROTO_SignData done [16:17:19]FM_MakeSignedData done [16:17:19]CreateOFDProtocolMessage [16:17:19]wFMCommunicate request_size=4 [16:17:19]MH_SAM_APDU [16:17:19]CAPDU: 80 11 00 00 [16:17:19]Write to MH i2c: E2 08 00 BB 10 80 11 00 00 00 00 00 00 45 [16:17:19]Write i2c OK [16:17:19]MH_I2C_Read... [16:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:19]Read from MH i2c: E2 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: E2 17 00 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: E2 17 00 BB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 97 [16:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:17:19]wFMCommunicate OK [16:17:19]CreateOFDProtocolMessage done [16:17:19]OFDSenderStorePacket 111990 [16:17:19]StoreOFDPacket docnum=111990 [16:17:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 37 8E 04 01 44 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 61 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 33 C8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C C8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 4B 00 00 00 00 07 04 06 00 1C C8 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 92 A7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B5 01 00 35 04 06 00 64 A3 1A 86 09 52 35 19 20 31 0F 05 75 B0 [16:17:19]CheckFolder [16:17:19]dirname=/storage/ofd_packets [16:17:19]CheckFolder done [16:17:19]ProducePacketName [16:17:19]name=ofd_packets/00111990 [16:17:19]NVStorageSaveData ofd_packets/00111990 [16:17:19]File name is /storage/ofd_packets/00111990 [16:17:19]Write 298 bytes [16:17:19]NVStorageSaveData done [16:17:19]OFDSenderStorePacket done [16:17:19]KKMCreateOFDPacket done [16:17:19]NVStorageSaveData kkm_last_timestamp [16:17:19]File name is /storage/kkm_last_timestamp [16:17:19]Write 4 bytes [16:17:19]NVStorageSaveData done [16:17:19]ExternCall_PrintAddStr [16:17:19]wPrintStart [16:17:19]Write to MH i2c: 01 00 00 BC 10 CC [16:17:19]Write i2c OK [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: 01 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: 01 07 00 [16:17:19]MH_I2C_Read... [16:17:19]Read from MH i2c: 01 07 00 BC 10 00 00 00 00 00 FF 0F E1 [16:17:19]RasterBufferAndPrint [16:17:19]line 小褔械褌 N : (1)320638 [16:17:19]line 袠袧袧: 02508201610067 [16:17:19]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:17:19]line 袩袪袨袛袗袞袗 [16:17:19]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [16:17:19]line 孝芯胁邪褉: 2710194210 [16:17:19]line 袛孝-袣-5 [16:17:19]line 25.010 * 72.90 [16:17:19]line = 1823.23 [16:17:19]line 袧袛小 12% 袧小袩 1% [16:17:19]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:17:19]line 袨袣袪校袚袥袝袧袠袝: -0.23 [16:17:19]line 袠孝袨袚袨: 1823.00 [16:17:19]line 袙薪械褋械薪芯: 1823.00 [16:17:19]line 小袛袗效袗: 0.00 [16:17:19]line 袧小袩 1% : 16.13 [16:17:19]line 袧袛小 12% : 193.62 [16:17:19]line 袧邪谢懈褔薪褘屑懈: 1823.00 [16:17:19]line 袘械蟹薪邪谢.: 0.00 [16:17:19]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:17:19]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:17:19]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:17:19]line 效械泻 158 21.06.2024 16:17 [16:17:19]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:17:19]line 袟袧袦: 0300000198 [16:17:19]line 袪袧袦: 0000000000092771 [16:17:19]line 袙械褉褋懈褟 袣袣袦: 001 [16:17:19]line 肖袦: 0000000000875083 [16:17:19]line 肖袛: 111990 [16:17:19]line 肖袩袛: 110651687438674 [16:17:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T161722&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111990&fm=110651687438674&tin=02508201610067®Number=0000000000092771&sum=182300 [16:17:20]OFD Sender: Processing packet 111990 [packets to send 38, broken 37] [16:17:20]ProducePacketName [16:17:20]name=ofd_packets/00111990 [16:17:20]OFD Sender: To server: 嚂鰌G, [16:17:20]CommunicateWithHost lk.salyk.kg:30040 [16:17:20]ConnectInit lk.salyk.kg [16:17:20]written 0, free lines is 4095 [16:17:20]Connected sock=10 [16:17:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 37 8E 04 01 44 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 61 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 33 C8 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C C8 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 4B 00 00 00 00 07 04 06 00 1C C8 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 92 A7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B5 01 00 35 04 06 00 64 A3 1A 86 09 52 35 19 20 31 0F 05 75 B0 [16:17:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 76 CF 47 00 FC 42 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 30 38 37 35 30 38 33 10 04 04 00 76 B5 01 00 F4 03 04 00 B8 3E 75 66 B6 04 01 00 00 50 8C A3 1E CD 36 91 15 [16:17:20]CommunicateWithHost err = 0 [16:17:20]CheckOFDResponse [16:17:20]1017 (14) - 77093643461234 [16:17:20]1041 (16) - 0000000000875083 [16:17:20]1040 (4) - 111990 [16:17:20]1012 (4) - 21.06.2024 08:50 [16:17:20]1206 (1) - 0 [16:17:20]OFD Sender: Remove packet 111990 [16:17:20]ProducePacketName [16:17:20]name=ofd_packets/00111990 [16:17:20]NVStorageDeleteData [16:17:20]Write to MH i2c: 01 00 00 E7 10 F7 [16:17:20]Write i2c OK [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: 01 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: 01 07 00 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: 01 07 00 E7 10 00 00 00 00 00 DF 0C E9 [16:17:20]RasterBufferAndPrint [16:17:20]line [16:17:20]line [16:17:20]line [16:17:20]line [16:17:20]line [16:17:20]written 0, free lines is 3301 [16:17:20]MH_Cut [16:17:20]Write to MH i2c: D1 01 00 EE 10 01 D0 [16:17:20]Write i2c OK [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: D1 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: D1 01 00 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: D1 01 00 EE 10 00 CF [16:17:20]Write to MH i2c: 01 00 00 EF 10 FF [16:17:20]Write i2c OK [16:17:20]MH_I2C_Read... [16:17:20]OFD Sender: No OFD packet to send [16:17:21]*** Cut start [16:17:21]*** Partial cut [16:17:21]*** CUTSNS_PIN = 1 [16:17:21]*** CUTSNS_PIN = 0 [16:17:21]*** Brake cut motor [16:17:21]Read from MH i2c: 01 [16:17:21]MH_I2C_Read... [16:17:21]*** Stop cut motor [16:17:21]*** Cut end [16:17:21]Read from MH i2c: 01 07 00 [16:17:21]MH_I2C_Read... [16:17:21]Read from MH i2c: 01 07 00 EF 10 00 00 00 00 00 FF 0F 14 [16:17:21]process_action close_receipt done [16:17:21]requested_data is exist [16:17:21]produce_requested_data [16:17:21]requested_item fm.sn is exist - process it [16:17:21]wFMCommunicate request_size=4 [16:17:21]MH_SAM_APDU [16:17:21]CAPDU: 80 11 00 00 [16:17:21]Write to MH i2c: E2 08 00 F0 10 80 11 00 00 00 00 00 00 7A [16:17:21]Write i2c OK [16:17:21]MH_I2C_Read... [16:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 17 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 17 00 F0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CC [16:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:17:22]wFMCommunicate OK [16:17:22]requested_item fd.num is exist - process it [16:17:22]SAM_PROTO_GetFieldsCounters [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 13 00 00 [16:17:22]Write to MH i2c: E2 08 00 F1 10 80 13 00 00 00 00 00 00 7D [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 62 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 62 00 F1 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 76 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [16:17:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 76 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:22]wFMCommunicate OK [16:17:22]SAM_PROTO_GetFieldsCounters done [16:17:22]requested_item shift.num is exist - process it [16:17:22]requested_item shift.opened is exist - process it [16:17:22]req_shift_opened [16:17:22]FM_GetShiftState [16:17:22]SAM_PROTO_GetShiftState [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 13 01 00 [16:17:22]Write to MH i2c: E2 08 00 F2 10 80 13 01 00 00 00 00 00 7F [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 0E 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 0E 00 F2 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 FC [16:17:22]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:17:22]wFMCommunicate OK [16:17:22]SAM_PROTO_GetShiftState done [16:17:22]FM_GetShiftState done [16:17:22]req_shift_opened done [16:17:22]requested_item shift.open_date is exist - process it [16:17:22]req_shift_open_date [16:17:22]req_shift_open_date done [16:17:22]produce_requested_data done [16:17:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111990,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:17:22]process_action_free close_receipt [16:17:22]json_value_free [16:17:22]json_value_free done [16:17:22]process_json_proto returns [16:17:22]Send response to host [16:17:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111990,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:17:22]free response buf [16:17:22]execute_script done [16:17:22]execute_script returns [16:17:22]free content buf [16:17:22]Sock 7.Close socket [16:17:22]Sock 7.Thread stoped [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:25]accept exits with 9 [16:22:25]New connection [16:22:25]New thread 3066875236 created [16:22:25]Thread 3066731876 joined [16:22:25]Waiting for new connection... [16:22:25] Sock 9.Parse request [16:22:25]Sock 9.Check first char [16:22:25]Sock 9.First char is OK [16:22:25]request: POST /json_proto HTTP/1.0 [16:22:25]Method: POST [16:22:25]URL: /json_proto [16:22:25]Method is POST - this is cgi request [16:22:25]url: /json_proto [16:22:25]query_string will be loaded in cgi processing [16:22:25]execute_cgi json_proto POST (null) [16:22:25]execute_cgi path=json_proto method=POST [16:22:25]POST find Content-Length [16:22:25]Host: 172.17.59.68:8080 [16:22:25]Content-Length: 678 [16:22:25]Content-Type: application/json [16:22:25] [16:22:25]POST finish read [16:22:25]Found Content-Length = 678 [16:22:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:25]execute_script... [16:22: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)320639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:25]POST & json_proto [16:22:25]process_json_proto [16:22:25]json parsed OK: [16:22:25]protocol is kg_v1.0 [16:22:25]action value=close_receipt [16:22:25]process_action close_receipt [16:22:25]cmd_close_receipt [16:22:25]MH_GetDate [16:22:25]Write to MH i2c: F0 00 00 F3 10 F2 [16:22:25]Write i2c OK [16:22:25]MH_I2C_Read... [16:22:25]Read from MH i2c: F0 [16:22:25]MH_I2C_Read... [16:22:25]Read from MH i2c: F0 09 00 [16:22:25]MH_I2C_Read... [16:22:25]Read from MH i2c: F0 09 00 F3 10 00 C6 A8 75 66 BC EC 60 65 B1 [16:22:25]GetLastDocTimeStamp 1718986642 [16:22:25]current date 1718986950 [16:22:25]FM_GetShiftState [16:22:25]SAM_PROTO_GetShiftState [16:22:25]wFMCommunicate request_size=4 [16:22:25]MH_SAM_APDU [16:22:25]CAPDU: 80 13 01 00 [16:22:25]Write to MH i2c: E2 08 00 F4 10 80 13 01 00 00 00 00 00 81 [16:22:25]Write i2c OK [16:22:25]MH_I2C_Read... [16:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:25]Read from MH i2c: E2 [16:22:25]MH_I2C_Read... [16:22:25]Read from MH i2c: E2 0E 00 [16:22:25]MH_I2C_Read... [16:22:25]Read from MH i2c: E2 0E 00 F4 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 FE [16:22:25]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:22:25]wFMCommunicate OK [16:22:25]SAM_PROTO_GetShiftState done [16:22:25]FM_GetShiftState done [16:22:25]opened in 1718933695 [16:22:25]opened+sec_in_day 1719020095 [16:22:25]quantity*price = 67064 [16:22:25]sum+1 = 67065 [16:22:25]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.64 袠孝袨袚袨: 670.00 袙薪械褋械薪芯: 670.00 小袛袗效袗: 0.00 袧小袩 1% : 5.93 袧袛小 12% : 71.22 袧邪谢懈褔薪褘屑懈: 670.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 159 21.06.2024 16:22 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111991 肖袩袛: 2899009104072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162230&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111991&fm=2899009104072&tin=02508201610067®Number=0000000000092771&sum=67000 [16:22:26]StoreToDocumentArchive [16:22:26]shift 390 fd 111991 [16:22:26]save to /storage/0390/doc_00111991 [16:22:26]save last doc name /storage/0390/doc_00111991 to /storage/kkm_last_doc_name [16:22:26]save OK [16:22:26]Clear old archive folders... [16:22:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:26]tlvbuf is 00371DF0 [16:22:26]SAM_PROTO_ClearQueue [16:22:26]wFMCommunicate request_size=4 [16:22:26]MH_SAM_APDU [16:22:26]CAPDU: 80 09 00 00 [16:22:26]Write to MH i2c: E2 08 00 01 11 80 09 00 00 00 00 00 00 84 [16:22:26]Write i2c OK [16:22:26]MH_I2C_Read... [16:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:26]Read from MH i2c: E2 [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: E2 03 00 [16:22:26]MH_I2C_Read... [16:22:26]Read from MH i2c: E2 03 00 01 11 00 90 00 86 [16:22:26]RAPDU: 90 00 [16:22:26]wFMCommunicate OK [16:22:26]SAM_PROTO_ClearQueue done [16:22:26]KKMCreateOFDPacket [16:22:26]OFDProtocolAddRootSTLVToBuf [16:22:26]FM_MakeSignedData [16:22:26]FM_MakeSignedData [16:22:26]SAM_PROTO_SignData [16:22:26]wFMCommunicate request_size=4 [16:22:26]MH_SAM_APDU [16:22:26]CAPDU: 80 0D 01 02 [16:22:26]Write to MH i2c: E2 08 00 02 11 80 0D 01 02 00 00 00 00 8C [16:22:26]Write i2c OK [16:22:26]MH_I2C_Read... [16:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:27]Read from MH i2c: E2 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 03 00 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 03 00 02 11 00 90 00 87 [16:22:27]RAPDU: 90 00 [16:22:27]wFMCommunicate OK [16:22:27]wFMCommunicate request_size=255 [16:22:27]MH_SAM_APDU [16:22: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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C6 A8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B5 01 00 35 04 06 00 02 [16:22:27]Write to MH i2c: E2 02 01 03 11 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C6 A8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B5 01 00 35 04 06 00 02 00 00 92 [16:22:27]Write i2c OK [16:22:27]MH_I2C_Read... [16:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:27]Read from MH i2c: E2 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 03 00 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 03 00 03 11 00 90 00 88 [16:22:27]RAPDU: 90 00 [16:22:27]wFMCommunicate OK [16:22:27]wFMCommunicate request_size=10 [16:22:27]MH_SAM_APDU [16:22:27]CAPDU: 80 0D 02 02 05 A2 FA 68 68 C8 [16:22:27]Write to MH i2c: E2 0D 00 04 11 80 0D 02 02 05 00 A2 FA 68 68 C8 00 00 CD [16:22:27]Write i2c OK [16:22:27]MH_I2C_Read... [16:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:27]Read from MH i2c: E2 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 03 00 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 03 00 04 11 00 90 00 89 [16:22:27]RAPDU: 90 00 [16:22:27]wFMCommunicate OK [16:22:27]wFMCommunicate request_size=4 [16:22:27]MH_SAM_APDU [16:22:27]CAPDU: 80 0D 03 02 [16:22:27]Write to MH i2c: E2 08 00 05 11 80 0D 03 02 00 00 00 00 91 [16:22:27]Write i2c OK [16:22:27]MH_I2C_Read... [16:22:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:27]Read from MH i2c: E2 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 0B 00 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 0B 00 05 11 00 F4 C6 78 19 0D BC 26 76 90 00 42 [16:22:27]RAPDU: F4 C6 78 19 0D BC 26 76 90 00 [16:22:27]wFMCommunicate OK [16:22:27]SAM_PROTO_SignData done [16:22:27]FM_MakeSignedData done [16:22:27]CreateOFDProtocolMessage [16:22:27]wFMCommunicate request_size=4 [16:22:27]MH_SAM_APDU [16:22:27]CAPDU: 80 11 00 00 [16:22:27]Write to MH i2c: E2 08 00 06 11 80 11 00 00 00 00 00 00 91 [16:22:27]Write i2c OK [16:22:27]MH_I2C_Read... [16:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:27]Read from MH i2c: E2 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 17 00 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: E2 17 00 06 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E3 [16:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:22:27]wFMCommunicate OK [16:22:27]CreateOFDProtocolMessage done [16:22:27]OFDSenderStorePacket 111991 [16:22:27]StoreOFDPacket docnum=111991 [16:22:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3A 91 07 01 DC 9F 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C6 A8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B5 01 00 35 04 06 00 02 A2 FA 68 68 C8 F4 C6 78 19 0D BC 26 76 [16:22:27]CheckFolder [16:22:27]dirname=/storage/ofd_packets [16:22:27]CheckFolder done [16:22:27]ProducePacketName [16:22:27]name=ofd_packets/00111991 [16:22:27]NVStorageSaveData ofd_packets/00111991 [16:22:27]File name is /storage/ofd_packets/00111991 [16:22:27]Write 301 bytes [16:22:27]NVStorageSaveData done [16:22:27]OFDSenderStorePacket done [16:22:27]KKMCreateOFDPacket done [16:22:27]NVStorageSaveData kkm_last_timestamp [16:22:27]File name is /storage/kkm_last_timestamp [16:22:27]Write 4 bytes [16:22:27]NVStorageSaveData done [16:22:27]ExternCall_PrintAddStr [16:22:27]wPrintStart [16:22:27]Write to MH i2c: 01 00 00 07 11 18 [16:22:27]Write i2c OK [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: 01 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: 01 07 00 [16:22:27]MH_I2C_Read... [16:22:27]Read from MH i2c: 01 07 00 07 11 00 00 00 00 00 FF 0F 2D [16:22:27]RasterBufferAndPrint [16:22:27]line 小褔械褌 N : (1)320639 [16:22:27]line 袠袧袧: 02508201610067 [16:22:27]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:22:27]line 袩袪袨袛袗袞袗 [16:22:27]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:22:27]line 孝芯胁邪褉: 2710124130 [16:22:27]line 袗懈-92-袣-5 [16:22:27]line 10.100 * 66.40 [16:22:27]line = 670.64 [16:22:27]line 袧袛小 12% 袧小袩 1% [16:22:27]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:22:27]line 袨袣袪校袚袥袝袧袠袝: -0.64 [16:22:27]line 袠孝袨袚袨: 670.00 [16:22:27]line 袙薪械褋械薪芯: 670.00 [16:22:27]line 小袛袗效袗: 0.00 [16:22:27]line 袧小袩 1% : 5.93 [16:22:27]line 袧袛小 12% : 71.22 [16:22:27]line 袧邪谢懈褔薪褘屑懈: 670.00 [16:22:27]line 袘械蟹薪邪谢.: 0.00 [16:22:27]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:22:27]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:22:27]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:22:27]line 效械泻 159 21.06.2024 16:22 [16:22:27]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:22:27]line 袟袧袦: 0300000198 [16:22:27]line 袪袧袦: 0000000000092771 [16:22:27]line 袙械褉褋懈褟 袣袣袦: 001 [16:22:27]line 肖袦: 0000000000875083 [16:22:27]line 肖袛: 111991 [16:22:27]line 肖袩袛: 2899009104072 [16:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162230&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111991&fm=2899009104072&tin=02508201610067®Number=0000000000092771&sum=67000 [16:22:27]OFD Sender: Processing packet 111991 [packets to send 38, broken 37] [16:22:27]ProducePacketName [16:22:27]name=ofd_packets/00111991 [16:22:27]OFD Sender: To server: 嚂鰌G, [16:22:27]CommunicateWithHost lk.salyk.kg:30040 [16:22:27]ConnectInit lk.salyk.kg [16:22:27]written 0, free lines is 4095 [16:22:27]Connected sock=10 [16:22:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3A 91 07 01 DC 9F 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 C6 A8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B5 01 00 35 04 06 00 02 A2 FA 68 68 C8 F4 C6 78 19 0D BC 26 76 [16:22:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7A C5 47 00 D8 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 30 38 37 35 30 38 33 10 04 04 00 77 B5 01 00 F4 03 04 00 EC 3F 75 66 B6 04 01 00 00 F1 6F BB F1 BE 5E AF B7 [16:22:28]CommunicateWithHost err = 0 [16:22:28]CheckOFDResponse [16:22:28]1017 (14) - 77093643461234 [16:22:28]1041 (16) - 0000000000875083 [16:22:28]1040 (4) - 111991 [16:22:28]1012 (4) - 21.06.2024 08:55 [16:22:28]1206 (1) - 0 [16:22:28]OFD Sender: Remove packet 111991 [16:22:28]ProducePacketName [16:22:28]name=ofd_packets/00111991 [16:22:28]NVStorageDeleteData [16:22:28]Write to MH i2c: 01 00 00 32 11 43 [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: 01 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: 01 07 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: 01 07 00 32 11 00 00 00 00 00 D1 0C 27 [16:22:28]RasterBufferAndPrint [16:22:28]line [16:22:28]line [16:22:28]line [16:22:28]line [16:22:28]line [16:22:28]written 0, free lines is 3286 [16:22:28]MH_Cut [16:22:28]Write to MH i2c: D1 01 00 39 11 01 1C [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: D1 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: D1 01 00 [16:22:28]MH_I2C_Read... [16:22:28]Read from MH i2c: D1 01 00 39 11 00 1B [16:22:28]Write to MH i2c: 01 00 00 3A 11 4B [16:22:28]Write i2c OK [16:22:28]MH_I2C_Read... [16:22:28]OFD Sender: No OFD packet to send [16:22:28]*** Cut start [16:22:28]*** Partial cut [16:22:28]*** CUTSNS_PIN = 1 [16:22:29]*** CUTSNS_PIN = 0 [16:22:29]*** Brake cut motor [16:22:29]Read from MH i2c: 01 [16:22:29]MH_I2C_Read... [16:22:29]*** Stop cut motor [16:22:29]*** Cut end [16:22:29]Read from MH i2c: 01 07 00 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: 01 07 00 3A 11 00 00 00 00 00 FF 0F 60 [16:22:29]process_action close_receipt done [16:22:29]requested_data is exist [16:22:29]produce_requested_data [16:22:29]requested_item fm.sn is exist - process it [16:22:29]wFMCommunicate request_size=4 [16:22:29]MH_SAM_APDU [16:22:29]CAPDU: 80 11 00 00 [16:22:29]Write to MH i2c: E2 08 00 3B 11 80 11 00 00 00 00 00 00 C6 [16:22:29]Write i2c OK [16:22:29]MH_I2C_Read... [16:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:29]Read from MH i2c: E2 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: E2 17 00 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: E2 17 00 3B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 18 [16:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:22:29]wFMCommunicate OK [16:22:29]requested_item fd.num is exist - process it [16:22:29]SAM_PROTO_GetFieldsCounters [16:22:29]wFMCommunicate request_size=4 [16:22:29]MH_SAM_APDU [16:22:29]CAPDU: 80 13 00 00 [16:22:29]Write to MH i2c: E2 08 00 3C 11 80 13 00 00 00 00 00 00 C9 [16:22:29]Write i2c OK [16:22:29]MH_I2C_Read... [16:22:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:29]Read from MH i2c: E2 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: E2 62 00 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: E2 62 00 3C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 77 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [16:22:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 77 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:29]wFMCommunicate OK [16:22:29]SAM_PROTO_GetFieldsCounters done [16:22:29]requested_item shift.num is exist - process it [16:22:29]requested_item shift.opened is exist - process it [16:22:29]req_shift_opened [16:22:29]FM_GetShiftState [16:22:29]SAM_PROTO_GetShiftState [16:22:29]wFMCommunicate request_size=4 [16:22:29]MH_SAM_APDU [16:22:29]CAPDU: 80 13 01 00 [16:22:29]Write to MH i2c: E2 08 00 3D 11 80 13 01 00 00 00 00 00 CB [16:22:29]Write i2c OK [16:22:29]MH_I2C_Read... [16:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:29]Read from MH i2c: E2 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: E2 0E 00 [16:22:29]MH_I2C_Read... [16:22:29]Read from MH i2c: E2 0E 00 3D 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 48 [16:22:29]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:22:29]wFMCommunicate OK [16:22:29]SAM_PROTO_GetShiftState done [16:22:29]FM_GetShiftState done [16:22:29]req_shift_opened done [16:22:29]requested_item shift.open_date is exist - process it [16:22:29]req_shift_open_date [16:22:29]req_shift_open_date done [16:22:29]produce_requested_data done [16:22:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111991,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:22:29]process_action_free close_receipt [16:22:29]json_value_free [16:22:29]json_value_free done [16:22:29]process_json_proto returns [16:22:29]Send response to host [16:22:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111991,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:22:29]free response buf [16:22:29]execute_script done [16:22:29]execute_script returns [16:22:29]free content buf [16:22:29]Sock 9.Close socket [16:22:29]Sock 9.Thread stoped [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:44]accept exits with 7 [16:23:44]New connection [16:23:44]New thread 3066731876 created [16:23:44]Thread 3066875236 joined [16:23:44]Waiting for new connection... [16:23:44] Sock 7.Parse request [16:23:44]Sock 7.Check first char [16:23:44]Sock 7.First char is OK [16:23:44]request: POST /json_proto HTTP/1.0 [16:23:44]Method: POST [16:23:44]URL: /json_proto [16:23:44]Method is POST - this is cgi request [16:23:44]url: /json_proto [16:23:44]query_string will be loaded in cgi processing [16:23:44]execute_cgi json_proto POST (null) [16:23:44]execute_cgi path=json_proto method=POST [16:23:44]POST find Content-Length [16:23:44]Host: 172.17.59.68:8080 [16:23:44]Content-Length: 677 [16:23:44]Content-Type: application/json [16:23:44] [16:23:44]POST finish read [16:23:44]Found Content-Length = 677 [16:23:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.880, "sum" : 390.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:44]execute_script... [16:23: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)320640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.880, "sum" : 390.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:44]POST & json_proto [16:23:44]process_json_proto [16:23:44]json parsed OK: [16:23:44]protocol is kg_v1.0 [16:23:44]action value=close_receipt [16:23:44]process_action close_receipt [16:23:44]cmd_close_receipt [16:23:44]MH_GetDate [16:23:44]Write to MH i2c: F0 00 00 3E 11 3E [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: F0 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: F0 09 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: F0 09 00 3E 11 00 14 A9 75 66 BC EC 60 65 4C [16:23:44]GetLastDocTimeStamp 1718986950 [16:23:44]current date 1718987028 [16:23:44]FM_GetShiftState [16:23:44]SAM_PROTO_GetShiftState [16:23:44]wFMCommunicate request_size=4 [16:23:44]MH_SAM_APDU [16:23:44]CAPDU: 80 13 01 00 [16:23:44]Write to MH i2c: E2 08 00 3F 11 80 13 01 00 00 00 00 00 CD [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:44]Read from MH i2c: E2 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 0E 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 0E 00 3F 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 4A [16:23:44]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:23:44]wFMCommunicate OK [16:23:44]SAM_PROTO_GetShiftState done [16:23:44]FM_GetShiftState done [16:23:44]opened in 1718933695 [16:23:44]opened+sec_in_day 1719020095 [16:23:44]quantity*price = 39043 [16:23:44]sum+1 = 39044 [16:23:44]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.43 袠孝袨袚袨: 390.00 袙薪械褋械薪芯: 390.00 小袛袗效袗: 0.00 袧小袩 1% : 3.45 袧袛小 12% : 41.46 袧邪谢懈褔薪褘屑懈: 390.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 160 21.06.2024 16:23 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111992 肖袩袛: 273835291275297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162348&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111992&fm=273835291275297&tin=02508201610067®Number=0000000000092771&sum=39000 [16:23:45]StoreToDocumentArchive [16:23:45]shift 390 fd 111992 [16:23:45]save to /storage/0390/doc_00111992 [16:23:45]save last doc name /storage/0390/doc_00111992 to /storage/kkm_last_doc_name [16:23:45]save OK [16:23:45]Clear old archive folders... [16:23:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:45]tlvbuf is 00465F30 [16:23:45]SAM_PROTO_ClearQueue [16:23:45]wFMCommunicate request_size=4 [16:23:45]MH_SAM_APDU [16:23:45]CAPDU: 80 09 00 00 [16:23:45]Write to MH i2c: E2 08 00 4C 11 80 09 00 00 00 00 00 00 CF [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:45]Read from MH i2c: E2 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 03 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 03 00 4C 11 00 90 00 D1 [16:23:45]RAPDU: 90 00 [16:23:45]wFMCommunicate OK [16:23:45]SAM_PROTO_ClearQueue done [16:23:45]KKMCreateOFDPacket [16:23:45]OFDProtocolAddRootSTLVToBuf [16:23:45]FM_MakeSignedData [16:23:45]FM_MakeSignedData [16:23:45]SAM_PROTO_SignData [16:23:45]wFMCommunicate request_size=4 [16:23:45]MH_SAM_APDU [16:23:45]CAPDU: 80 0D 01 02 [16:23:45]Write to MH i2c: E2 08 00 4D 11 80 0D 01 02 00 00 00 00 D7 [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:45]Read from MH i2c: E2 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 03 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 03 00 4D 11 00 90 00 D2 [16:23:45]RAPDU: 90 00 [16:23:45]wFMCommunicate OK [16:23:45]wFMCommunicate request_size=255 [16:23:45]MH_SAM_APDU [16:23: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 83 98 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 32 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 A0 00 00 00 F4 03 04 00 14 A9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B5 01 00 35 04 06 00 F9 [16:23:45]Write to MH i2c: E2 02 01 4E 11 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 F8 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 83 98 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 32 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 A0 00 00 00 F4 03 04 00 14 A9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B5 01 00 35 04 06 00 F9 00 00 75 [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:45]Read from MH i2c: E2 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 03 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 03 00 4E 11 00 90 00 D3 [16:23:45]RAPDU: 90 00 [16:23:45]wFMCommunicate OK [16:23:45]wFMCommunicate request_size=10 [16:23:45]MH_SAM_APDU [16:23:45]CAPDU: 80 0D 02 02 05 0D 3F 43 70 21 [16:23:45]Write to MH i2c: E2 0D 00 4F 11 80 0D 02 02 05 00 0D 3F 43 70 21 00 00 04 [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:45]Read from MH i2c: E2 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 03 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 03 00 4F 11 00 90 00 D4 [16:23:45]RAPDU: 90 00 [16:23:45]wFMCommunicate OK [16:23:45]wFMCommunicate request_size=4 [16:23:45]MH_SAM_APDU [16:23:45]CAPDU: 80 0D 03 02 [16:23:45]Write to MH i2c: E2 08 00 50 11 80 0D 03 02 00 00 00 00 DC [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:45]Read from MH i2c: E2 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 0B 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 0B 00 50 11 00 4A 68 8F 3C 3D 67 6F 9D 90 00 0A [16:23:45]RAPDU: 4A 68 8F 3C 3D 67 6F 9D 90 00 [16:23:45]wFMCommunicate OK [16:23:45]SAM_PROTO_SignData done [16:23:45]FM_MakeSignedData done [16:23:45]CreateOFDProtocolMessage [16:23:45]wFMCommunicate request_size=4 [16:23:45]MH_SAM_APDU [16:23:45]CAPDU: 80 11 00 00 [16:23:45]Write to MH i2c: E2 08 00 51 11 80 11 00 00 00 00 00 00 DC [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:45]Read from MH i2c: E2 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 17 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 17 00 51 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2E [16:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:23:45]wFMCommunicate OK [16:23:45]CreateOFDProtocolMessage done [16:23:45]OFDSenderStorePacket 111992 [16:23:45]StoreOFDPacket docnum=111992 [16:23:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F2 C3 07 01 ED F8 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 F8 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 83 98 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 32 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 A0 00 00 00 F4 03 04 00 14 A9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B5 01 00 35 04 06 00 F9 0D 3F 43 70 21 4A 68 8F 3C 3D 67 6F 9D [16:23:45]CheckFolder [16:23:45]dirname=/storage/ofd_packets [16:23:45]CheckFolder done [16:23:45]ProducePacketName [16:23:45]name=ofd_packets/00111992 [16:23:45]NVStorageSaveData ofd_packets/00111992 [16:23:45]File name is /storage/ofd_packets/00111992 [16:23:45]Write 301 bytes [16:23:45]NVStorageSaveData done [16:23:45]OFDSenderStorePacket done [16:23:45]KKMCreateOFDPacket done [16:23:45]NVStorageSaveData kkm_last_timestamp [16:23:45]File name is /storage/kkm_last_timestamp [16:23:45]Write 4 bytes [16:23:45]NVStorageSaveData done [16:23:45]ExternCall_PrintAddStr [16:23:45]wPrintStart [16:23:45]Write to MH i2c: 01 00 00 52 11 63 [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: 01 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: 01 07 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: 01 07 00 52 11 00 00 00 00 00 FF 0F 78 [16:23:45]RasterBufferAndPrint [16:23:45]line 小褔械褌 N : (1)320640 [16:23:45]line 袠袧袧: 02508201610067 [16:23:45]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:23:45]line 袩袪袨袛袗袞袗 [16:23:45]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:23:45]line 孝芯胁邪褉: 2710124130 [16:23:45]line 袗懈-92-袣-5 [16:23:45]line 5.880 * 66.40 [16:23:45]line = 390.43 [16:23:45]line 袧袛小 12% 袧小袩 1% [16:23:45]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:23:45]line 袨袣袪校袚袥袝袧袠袝: -0.43 [16:23:45]line 袠孝袨袚袨: 390.00 [16:23:45]line 袙薪械褋械薪芯: 390.00 [16:23:45]line 小袛袗效袗: 0.00 [16:23:45]line 袧小袩 1% : 3.45 [16:23:45]line 袧袛小 12% : 41.46 [16:23:45]line 袧邪谢懈褔薪褘屑懈: 390.00 [16:23:45]line 袘械蟹薪邪谢.: 0.00 [16:23:45]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:23:45]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:23:45]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:23:45]line 效械泻 160 21.06.2024 16:23 [16:23:45]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:23:45]line 袟袧袦: 0300000198 [16:23:45]line 袪袧袦: 0000000000092771 [16:23:45]line 袙械褉褋懈褟 袣袣袦: 001 [16:23:45]line 肖袦: 0000000000875083 [16:23:45]line 肖袛: 111992 [16:23:45]line 肖袩袛: 273835291275297 [16:23:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162348&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111992&fm=273835291275297&tin=02508201610067®Number=0000000000092771&sum=39000 [16:23:46]OFD Sender: Processing packet 111992 [packets to send 38, broken 37] [16:23:46]ProducePacketName [16:23:46]name=ofd_packets/00111992 [16:23:46]OFD Sender: To server: 嚂鰌G, [16:23:46]CommunicateWithHost lk.salyk.kg:30040 [16:23:46]ConnectInit lk.salyk.kg [16:23:46]written 0, free lines is 4095 [16:23:46]Connected sock=11 [16:23:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F2 C3 07 01 ED F8 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 F8 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 83 98 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 32 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 A0 00 00 00 F4 03 04 00 14 A9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B5 01 00 35 04 06 00 F9 0D 3F 43 70 21 4A 68 8F 3C 3D 67 6F 9D [16:23:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 64 EB 47 00 CB 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 30 38 37 35 30 38 33 10 04 04 00 78 B5 01 00 F4 03 04 00 3A 40 75 66 B6 04 01 00 00 C5 D4 86 A3 D0 AD 3D 5F [16:23:46]CommunicateWithHost err = 0 [16:23:46]CheckOFDResponse [16:23:46]1017 (14) - 77093643461234 [16:23:46]1041 (16) - 0000000000875083 [16:23:46]1040 (4) - 111992 [16:23:46]1012 (4) - 21.06.2024 08:56 [16:23:46]1206 (1) - 0 [16:23:46]OFD Sender: Remove packet 111992 [16:23:46]ProducePacketName [16:23:46]name=ofd_packets/00111992 [16:23:46]NVStorageDeleteData [16:23:46]Write to MH i2c: 01 00 00 7D 11 8E [16:23:46]Write i2c OK [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: 01 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: 01 07 00 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: 01 07 00 7D 11 00 00 00 00 00 D6 0C 77 [16:23:46]RasterBufferAndPrint [16:23:46]line [16:23:46]line [16:23:46]line [16:23:46]line [16:23:46]line [16:23:46]written 0, free lines is 3293 [16:23:46]MH_Cut [16:23:46]Write to MH i2c: D1 01 00 84 11 01 67 [16:23:46]Write i2c OK [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: D1 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: D1 01 00 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: D1 01 00 84 11 00 66 [16:23:46]Write to MH i2c: 01 00 00 85 11 96 [16:23:46]Write i2c OK [16:23:46]MH_I2C_Read... [16:23:46]OFD Sender: No OFD packet to send [16:23:47]*** Cut start [16:23:47]*** Partial cut [16:23:47]*** CUTSNS_PIN = 1 [16:23:47]*** CUTSNS_PIN = 0 [16:23:47]*** Brake cut motor [16:23:47]Read from MH i2c: 01 [16:23:47]MH_I2C_Read... [16:23:47]*** Stop cut motor [16:23:47]*** Cut end [16:23:47]Read from MH i2c: 01 07 00 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: 01 07 00 85 11 00 00 00 00 00 FF 0F AB [16:23:47]process_action close_receipt done [16:23:47]requested_data is exist [16:23:47]produce_requested_data [16:23:47]requested_item fm.sn is exist - process it [16:23:47]wFMCommunicate request_size=4 [16:23:47]MH_SAM_APDU [16:23:47]CAPDU: 80 11 00 00 [16:23:47]Write to MH i2c: E2 08 00 86 11 80 11 00 00 00 00 00 00 11 [16:23:47]Write i2c OK [16:23:47]MH_I2C_Read... [16:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:47]Read from MH i2c: E2 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: E2 17 00 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: E2 17 00 86 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 63 [16:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:23:47]wFMCommunicate OK [16:23:47]requested_item fd.num is exist - process it [16:23:47]SAM_PROTO_GetFieldsCounters [16:23:47]wFMCommunicate request_size=4 [16:23:47]MH_SAM_APDU [16:23:47]CAPDU: 80 13 00 00 [16:23:47]Write to MH i2c: E2 08 00 87 11 80 13 00 00 00 00 00 00 14 [16:23:47]Write i2c OK [16:23:47]MH_I2C_Read... [16:23:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:48]Read from MH i2c: E2 [16:23:48]MH_I2C_Read... [16:23:48]Read from MH i2c: E2 62 00 [16:23:48]MH_I2C_Read... [16:23:48]Read from MH i2c: E2 62 00 87 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 78 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [16:23:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 78 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:48]wFMCommunicate OK [16:23:48]SAM_PROTO_GetFieldsCounters done [16:23:48]requested_item shift.num is exist - process it [16:23:48]requested_item shift.opened is exist - process it [16:23:48]req_shift_opened [16:23:48]FM_GetShiftState [16:23:48]SAM_PROTO_GetShiftState [16:23:48]wFMCommunicate request_size=4 [16:23:48]MH_SAM_APDU [16:23:48]CAPDU: 80 13 01 00 [16:23:48]Write to MH i2c: E2 08 00 88 11 80 13 01 00 00 00 00 00 16 [16:23:48]Write i2c OK [16:23:48]MH_I2C_Read... [16:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:48]Read from MH i2c: E2 [16:23:48]MH_I2C_Read... [16:23:48]Read from MH i2c: E2 0E 00 [16:23:48]MH_I2C_Read... [16:23:48]Read from MH i2c: E2 0E 00 88 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 93 [16:23:48]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:23:48]wFMCommunicate OK [16:23:48]SAM_PROTO_GetShiftState done [16:23:48]FM_GetShiftState done [16:23:48]req_shift_opened done [16:23:48]requested_item shift.open_date is exist - process it [16:23:48]req_shift_open_date [16:23:48]req_shift_open_date done [16:23:48]produce_requested_data done [16:23:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111992,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:23:48]process_action_free close_receipt [16:23:48]json_value_free [16:23:48]json_value_free done [16:23:48]process_json_proto returns [16:23:48]Send response to host [16:23:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111992,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:23:48]free response buf [16:23:48]execute_script done [16:23:48]execute_script returns [16:23:48]free content buf [16:23:48]Sock 7.Close socket [16:23:48]Sock 7.Thread stoped [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]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:55]accept exits with 9 [16:24:55]New connection [16:24:55]New thread 3066875236 created [16:24:55]Thread 3066731876 joined [16:24:55]Waiting for new connection... [16:24:55] Sock 9.Parse request [16:24:55]Sock 9.Check first char [16:24:55]Sock 9.First char is OK [16:24:55]request: POST /json_proto HTTP/1.0 [16:24:55]Method: POST [16:24:55]URL: /json_proto [16:24:55]Method is POST - this is cgi request [16:24:55]url: /json_proto [16:24:55]query_string will be loaded in cgi processing [16:24:55]execute_cgi json_proto POST (null) [16:24:55]execute_cgi path=json_proto method=POST [16:24:55]POST find Content-Length [16:24:55]Host: 172.17.59.68:8080 [16:24:55]Content-Length: 677 [16:24:55]Content-Type: application/json [16:24:55] [16:24:55]POST finish read [16:24:55]Found Content-Length = 677 [16:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [16:24:55]execute_script... [16:24: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)320641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [16:24:55]POST & json_proto [16:24:55]process_json_proto [16:24:55]json parsed OK: [16:24:55]protocol is kg_v1.0 [16:24:55]action value=close_receipt [16:24:55]process_action close_receipt [16:24:55]cmd_close_receipt [16:24:55]MH_GetDate [16:24:55]Write to MH i2c: F0 00 00 89 11 89 [16:24:55]Write i2c OK [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: F0 [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: F0 09 00 [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: F0 09 00 89 11 00 5B A9 75 66 BC EC 60 65 DE [16:24:55]GetLastDocTimeStamp 1718987028 [16:24:55]current date 1718987099 [16:24:55]FM_GetShiftState [16:24:55]SAM_PROTO_GetShiftState [16:24:55]wFMCommunicate request_size=4 [16:24:55]MH_SAM_APDU [16:24:55]CAPDU: 80 13 01 00 [16:24:55]Write to MH i2c: E2 08 00 8A 11 80 13 01 00 00 00 00 00 18 [16:24:55]Write i2c OK [16:24:55]MH_I2C_Read... [16:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:55]Read from MH i2c: E2 [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: E2 0E 00 [16:24:55]MH_I2C_Read... [16:24:55]Read from MH i2c: E2 0E 00 8A 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 95 [16:24:55]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:24:55]wFMCommunicate OK [16:24:55]SAM_PROTO_GetShiftState done [16:24:55]FM_GetShiftState done [16:24:55]opened in 1718933695 [16:24:55]opened+sec_in_day 1719020095 [16:24:55]quantity*price = 50065 [16:24:55]sum+1 = 50067 [16:24:55]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 161 21.06.2024 16:24 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111993 肖袩袛: 152872519086974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162459&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111993&fm=152872519086974&tin=02508201610067®Number=0000000000092771&sum=50000 [16:24:56]StoreToDocumentArchive [16:24:56]shift 390 fd 111993 [16:24:56]save to /storage/0390/doc_00111993 [16:24:56]save last doc name /storage/0390/doc_00111993 to /storage/kkm_last_doc_name [16:24:56]save OK [16:24:56]Clear old archive folders... [16:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:56]tlvbuf is 0045EF00 [16:24:56]SAM_PROTO_ClearQueue [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 09 00 00 [16:24:56]Write to MH i2c: E2 08 00 97 11 80 09 00 00 00 00 00 00 1A [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 97 11 00 90 00 1C [16:24:56]RAPDU: 90 00 [16:24:56]wFMCommunicate OK [16:24:56]SAM_PROTO_ClearQueue done [16:24:56]KKMCreateOFDPacket [16:24:56]OFDProtocolAddRootSTLVToBuf [16:24:56]FM_MakeSignedData [16:24:56]FM_MakeSignedData [16:24:56]SAM_PROTO_SignData [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 0D 01 02 [16:24:56]Write to MH i2c: E2 08 00 98 11 80 0D 01 02 00 00 00 00 22 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 98 11 00 90 00 1D [16:24:56]RAPDU: 90 00 [16:24:56]wFMCommunicate OK [16:24:56]wFMCommunicate request_size=255 [16:24:56]MH_SAM_APDU [16:24:56]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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A1 00 00 00 F4 03 04 00 5B A9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B5 01 00 35 04 06 00 8B [16:24:56]Write to MH i2c: E2 02 01 99 11 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A1 00 00 00 F4 03 04 00 5B A9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B5 01 00 35 04 06 00 8B 00 00 97 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 03 00 99 11 00 90 00 1E [16:24:56]RAPDU: 90 00 [16:24:56]wFMCommunicate OK [16:24:56]wFMCommunicate request_size=10 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 0D 02 02 05 09 68 32 33 7E [16:24:56]Write to MH i2c: E2 0D 00 9A 11 80 0D 02 02 05 00 09 68 32 33 7E 00 00 83 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:57]Read from MH i2c: E2 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 03 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 03 00 9A 11 00 90 00 1F [16:24:57]RAPDU: 90 00 [16:24:57]wFMCommunicate OK [16:24:57]wFMCommunicate request_size=4 [16:24:57]MH_SAM_APDU [16:24:57]CAPDU: 80 0D 03 02 [16:24:57]Write to MH i2c: E2 08 00 9B 11 80 0D 03 02 00 00 00 00 27 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]OFD Sender: No OFD packet to send [16:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:57]Read from MH i2c: E2 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 0B 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 0B 00 9B 11 00 B4 61 7B 41 C9 B1 96 75 90 00 7E [16:24:57]RAPDU: B4 61 7B 41 C9 B1 96 75 90 00 [16:24:57]wFMCommunicate OK [16:24:57]SAM_PROTO_SignData done [16:24:57]FM_MakeSignedData done [16:24:57]CreateOFDProtocolMessage [16:24:57]wFMCommunicate request_size=4 [16:24:57]MH_SAM_APDU [16:24:57]CAPDU: 80 11 00 00 [16:24:57]Write to MH i2c: E2 08 00 9C 11 80 11 00 00 00 00 00 00 27 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:57]Read from MH i2c: E2 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 17 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 17 00 9C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 79 [16:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:24:57]wFMCommunicate OK [16:24:57]CreateOFDProtocolMessage done [16:24:57]OFDSenderStorePacket 111993 [16:24:57]StoreOFDPacket docnum=111993 [16:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 60 0E 07 01 F0 D1 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A1 00 00 00 F4 03 04 00 5B A9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B5 01 00 35 04 06 00 8B 09 68 32 33 7E B4 61 7B 41 C9 B1 96 75 [16:24:57]CheckFolder [16:24:57]dirname=/storage/ofd_packets [16:24:57]CheckFolder done [16:24:57]ProducePacketName [16:24:57]name=ofd_packets/00111993 [16:24:57]NVStorageSaveData ofd_packets/00111993 [16:24:57]File name is /storage/ofd_packets/00111993 [16:24:57]Write 301 bytes [16:24:57]NVStorageSaveData done [16:24:57]OFDSenderStorePacket done [16:24:57]KKMCreateOFDPacket done [16:24:57]NVStorageSaveData kkm_last_timestamp [16:24:57]File name is /storage/kkm_last_timestamp [16:24:57]Write 4 bytes [16:24:57]NVStorageSaveData done [16:24:57]ExternCall_PrintAddStr [16:24:57]wPrintStart [16:24:57]Write to MH i2c: 01 00 00 9D 11 AE [16:24:57]OFD Sender: Processing packet 111993 [packets to send 38, broken 37] [16:24:57]ProducePacketName [16:24:57]name=ofd_packets/00111993 [16:24:57]OFD Sender: To server: 嚂鰌G, [16:24:57]CommunicateWithHost lk.salyk.kg:30040 [16:24:57]ConnectInit lk.salyk.kg [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 9D 11 00 00 00 00 00 FF 0F C3 [16:24:57]RasterBufferAndPrint [16:24:57]line 小褔械褌 N : (1)320641 [16:24:57]line 袠袧袧: 02508201610067 [16:24:57]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:24:57]line 袩袪袨袛袗袞袗 [16:24:57]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:24:57]line 孝芯胁邪褉: 2710124130 [16:24:57]line 袗懈-92-袣-5 [16:24:57]line 7.540 * 66.40 [16:24:57]line = 500.66 [16:24:57]line 袧袛小 12% 袧小袩 1% [16:24:57]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:24:57]line 袨袣袪校袚袥袝袧袠袝: -0.66 [16:24:57]line 袠孝袨袚袨: 500.00 [16:24:57]line 袙薪械褋械薪芯: 500.00 [16:24:57]line 小袛袗效袗: 0.00 [16:24:57]line 袧小袩 1% : 4.43 [16:24:57]line 袧袛小 12% : 53.17 [16:24:57]line 袧邪谢懈褔薪褘屑懈: 500.00 [16:24:57]line 袘械蟹薪邪谢.: 0.00 [16:24:57]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:24:57]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:24:57]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:24:57]line 效械泻 161 21.06.2024 16:24 [16:24:57]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:24:57]line 袟袧袦: 0300000198 [16:24:57]line 袪袧袦: 0000000000092771 [16:24:57]line 袙械褉褋懈褟 袣袣袦: 001 [16:24:57]line 肖袦: 0000000000875083 [16:24:57]line 肖袛: 111993 [16:24:57]line 肖袩袛: 152872519086974 [16:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162459&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111993&fm=152872519086974&tin=02508201610067®Number=0000000000092771&sum=50000 [16:24:57]Connected sock=10 [16:24:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 60 0E 07 01 F0 D1 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A1 00 00 00 F4 03 04 00 5B A9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B5 01 00 35 04 06 00 8B 09 68 32 33 7E B4 61 7B 41 C9 B1 96 75 [16:24:57]written 0, free lines is 4095 [16:24:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 02 F3 47 00 6D 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 30 38 37 35 30 38 33 10 04 04 00 79 B5 01 00 F4 03 04 00 82 40 75 66 B6 04 01 00 00 85 84 DC 61 6A C5 B2 0F [16:24:57]CommunicateWithHost err = 0 [16:24:57]CheckOFDResponse [16:24:57]1017 (14) - 77093643461234 [16:24:57]1041 (16) - 0000000000875083 [16:24:57]1040 (4) - 111993 [16:24:57]1012 (4) - 21.06.2024 08:57 [16:24:57]1206 (1) - 0 [16:24:57]OFD Sender: Remove packet 111993 [16:24:57]ProducePacketName [16:24:57]name=ofd_packets/00111993 [16:24:57]NVStorageDeleteData [16:24:57]Write to MH i2c: 01 00 00 C8 11 D9 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: 01 07 00 C8 11 00 00 00 00 00 D0 0C BC [16:24:57]RasterBufferAndPrint [16:24:57]line [16:24:57]line [16:24:57]line [16:24:57]line [16:24:57]line [16:24:57]written 0, free lines is 3288 [16:24:57]MH_Cut [16:24:57]Write to MH i2c: D1 01 00 CF 11 01 B2 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: D1 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: D1 01 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: D1 01 00 CF 11 00 B1 [16:24:57]Write to MH i2c: 01 00 00 D0 11 E1 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:58]OFD Sender: No OFD packet to send [16:24:58]*** Cut start [16:24:58]*** Partial cut [16:24:58]*** CUTSNS_PIN = 1 [16:24:58]*** CUTSNS_PIN = 0 [16:24:58]*** Brake cut motor [16:24:59]Read from MH i2c: 01 [16:24:59]MH_I2C_Read... [16:24:59]*** Stop cut motor [16:24:59]*** Cut end [16:24:59]Read from MH i2c: 01 07 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: 01 07 00 D0 11 00 00 00 00 00 FF 0F F6 [16:24:59]process_action close_receipt done [16:24:59]requested_data is exist [16:24:59]produce_requested_data [16:24:59]requested_item fm.sn is exist - process it [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 11 00 00 [16:24:59]Write to MH i2c: E2 08 00 D1 11 80 11 00 00 00 00 00 00 5C [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 17 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 17 00 D1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AE [16:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:24:59]wFMCommunicate OK [16:24:59]requested_item fd.num is exist - process it [16:24:59]SAM_PROTO_GetFieldsCounters [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 13 00 00 [16:24:59]Write to MH i2c: E2 08 00 D2 11 80 13 00 00 00 00 00 00 5F [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 62 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 62 00 D2 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 79 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [16:24:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 79 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:59]wFMCommunicate OK [16:24:59]SAM_PROTO_GetFieldsCounters done [16:24:59]requested_item shift.num is exist - process it [16:24:59]requested_item shift.opened is exist - process it [16:24:59]req_shift_opened [16:24:59]FM_GetShiftState [16:24:59]SAM_PROTO_GetShiftState [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 13 01 00 [16:24:59]Write to MH i2c: E2 08 00 D3 11 80 13 01 00 00 00 00 00 61 [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:59]Read from MH i2c: E2 0E 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 0E 00 D3 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 DE [16:24:59]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:24:59]wFMCommunicate OK [16:24:59]SAM_PROTO_GetShiftState done [16:24:59]FM_GetShiftState done [16:24:59]req_shift_opened done [16:24:59]requested_item shift.open_date is exist - process it [16:24:59]req_shift_open_date [16:24:59]req_shift_open_date done [16:24:59]produce_requested_data done [16:24:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111993,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:24:59]process_action_free close_receipt [16:24:59]json_value_free [16:24:59]json_value_free done [16:24:59]process_json_proto returns [16:24:59]Send response to host [16:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111993,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:24:59]free response buf [16:24:59]execute_script done [16:24:59]execute_script returns [16:24:59]free content buf [16:24:59]Sock 9.Close socket [16:24:59]Sock 9.Thread stoped [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:03]accept exits with 7 [16:26:03]New connection [16:26:03]New thread 3066731876 created [16:26:03]Thread 3066875236 joined [16:26:03]Waiting for new connection... [16:26:03] Sock 7.Parse request [16:26:03]Sock 7.Check first char [16:26:03]Sock 7.First char is OK [16:26:03]request: POST /json_proto HTTP/1.0 [16:26:03]Method: POST [16:26:03]URL: /json_proto [16:26:03]Method is POST - this is cgi request [16:26:03]url: /json_proto [16:26:03]query_string will be loaded in cgi processing [16:26:03]execute_cgi json_proto POST (null) [16:26:03]execute_cgi path=json_proto method=POST [16:26:03]POST find Content-Length [16:26:03]Host: 172.17.59.68:8080 [16:26:03]Content-Length: 677 [16:26:03]Content-Type: application/json [16:26:03] [16:26:03]POST finish read [16:26:03]Found Content-Length = 677 [16:26:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.320, "sum" : 220.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:03]execute_script... [16:26: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)320642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.320, "sum" : 220.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:03]POST & json_proto [16:26:03]process_json_proto [16:26:03]json parsed OK: [16:26:03]protocol is kg_v1.0 [16:26:03]action value=close_receipt [16:26:03]process_action close_receipt [16:26:03]cmd_close_receipt [16:26:03]MH_GetDate [16:26:03]Write to MH i2c: F0 00 00 D4 11 D4 [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: F0 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: F0 09 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: F0 09 00 D4 11 00 A0 A9 75 66 BC EC 60 65 6E [16:26:03]GetLastDocTimeStamp 1718987099 [16:26:03]current date 1718987168 [16:26:03]FM_GetShiftState [16:26:03]SAM_PROTO_GetShiftState [16:26:03]wFMCommunicate request_size=4 [16:26:03]MH_SAM_APDU [16:26:03]CAPDU: 80 13 01 00 [16:26:03]Write to MH i2c: E2 08 00 D5 11 80 13 01 00 00 00 00 00 63 [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:03]Read from MH i2c: E2 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 0E 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 0E 00 D5 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E0 [16:26:03]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:26:03]wFMCommunicate OK [16:26:03]SAM_PROTO_GetShiftState done [16:26:03]FM_GetShiftState done [16:26:03]opened in 1718933695 [16:26:03]opened+sec_in_day 1719020095 [16:26:03]quantity*price = 22044 [16:26:03]sum+1 = 22046 [16:26:03]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.45 袠孝袨袚袨: 220.00 袙薪械褋械薪芯: 220.00 小袛袗效袗: 0.00 袧小袩 1% : 1.95 袧袛小 12% : 23.41 袧邪谢懈褔薪褘屑懈: 220.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 162 21.06.2024 16:26 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111994 肖袩袛: 204628974498348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162608&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111994&fm=204628974498348&tin=02508201610067®Number=0000000000092771&sum=22000 [16:26:04]StoreToDocumentArchive [16:26:04]shift 390 fd 111994 [16:26:04]save to /storage/0390/doc_00111994 [16:26:04]save last doc name /storage/0390/doc_00111994 to /storage/kkm_last_doc_name [16:26:04]save OK [16:26:04]Clear old archive folders... [16:26:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:04]tlvbuf is 00465610 [16:26:04]SAM_PROTO_ClearQueue [16:26:04]wFMCommunicate request_size=4 [16:26:04]MH_SAM_APDU [16:26:04]CAPDU: 80 09 00 00 [16:26:04]Write to MH i2c: E2 08 00 E2 11 80 09 00 00 00 00 00 00 65 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:04]Read from MH i2c: E2 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 03 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 03 00 E2 11 00 90 00 67 [16:26:04]RAPDU: 90 00 [16:26:04]wFMCommunicate OK [16:26:04]SAM_PROTO_ClearQueue done [16:26:04]KKMCreateOFDPacket [16:26:04]OFDProtocolAddRootSTLVToBuf [16:26:04]FM_MakeSignedData [16:26:04]FM_MakeSignedData [16:26:04]SAM_PROTO_SignData [16:26:04]wFMCommunicate request_size=4 [16:26:04]MH_SAM_APDU [16:26:04]CAPDU: 80 0D 01 02 [16:26:04]Write to MH i2c: E2 08 00 E3 11 80 0D 01 02 00 00 00 00 6D [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:04]Read from MH i2c: E2 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 03 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 03 00 E3 11 00 90 00 68 [16:26:04]RAPDU: 90 00 [16:26:04]wFMCommunicate OK [16:26:04]wFMCommunicate request_size=255 [16:26:04]MH_SAM_APDU [16:26: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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 A2 00 00 00 F4 03 04 00 A0 A9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B5 01 00 35 04 06 00 BA [16:26:04]Write to MH i2c: E2 02 01 E4 11 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 A2 00 00 00 F4 03 04 00 A0 A9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B5 01 00 35 04 06 00 BA 00 00 A9 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:05]Read from MH i2c: E2 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 03 00 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 03 00 E4 11 00 90 00 69 [16:26:05]RAPDU: 90 00 [16:26:05]wFMCommunicate OK [16:26:05]wFMCommunicate request_size=10 [16:26:05]MH_SAM_APDU [16:26:05]CAPDU: 80 0D 02 02 05 1B E5 55 F2 2C [16:26:05]Write to MH i2c: E2 0D 00 E5 11 80 0D 02 02 05 00 1B E5 55 F2 2C 00 00 ED [16:26:05]Write i2c OK [16:26:05]MH_I2C_Read... [16:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:05]Read from MH i2c: E2 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 03 00 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 03 00 E5 11 00 90 00 6A [16:26:05]RAPDU: 90 00 [16:26:05]wFMCommunicate OK [16:26:05]wFMCommunicate request_size=4 [16:26:05]MH_SAM_APDU [16:26:05]CAPDU: 80 0D 03 02 [16:26:05]Write to MH i2c: E2 08 00 E6 11 80 0D 03 02 00 00 00 00 72 [16:26:05]Write i2c OK [16:26:05]MH_I2C_Read... [16:26:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:05]Read from MH i2c: E2 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 0B 00 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 0B 00 E6 11 00 25 26 99 7F 78 55 7B 31 90 00 4F [16:26:05]RAPDU: 25 26 99 7F 78 55 7B 31 90 00 [16:26:05]wFMCommunicate OK [16:26:05]SAM_PROTO_SignData done [16:26:05]FM_MakeSignedData done [16:26:05]CreateOFDProtocolMessage [16:26:05]wFMCommunicate request_size=4 [16:26:05]MH_SAM_APDU [16:26:05]CAPDU: 80 11 00 00 [16:26:05]Write to MH i2c: E2 08 00 E7 11 80 11 00 00 00 00 00 00 72 [16:26:05]Write i2c OK [16:26:05]MH_I2C_Read... [16:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:05]Read from MH i2c: E2 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 17 00 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: E2 17 00 E7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C4 [16:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:26:05]wFMCommunicate OK [16:26:05]CreateOFDProtocolMessage done [16:26:05]OFDSenderStorePacket 111994 [16:26:05]StoreOFDPacket docnum=111994 [16:26:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 27 6B 07 01 02 DB 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 A2 00 00 00 F4 03 04 00 A0 A9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B5 01 00 35 04 06 00 BA 1B E5 55 F2 2C 25 26 99 7F 78 55 7B 31 [16:26:05]CheckFolder [16:26:05]dirname=/storage/ofd_packets [16:26:05]CheckFolder done [16:26:05]ProducePacketName [16:26:05]name=ofd_packets/00111994 [16:26:05]NVStorageSaveData ofd_packets/00111994 [16:26:05]File name is /storage/ofd_packets/00111994 [16:26:05]Write 301 bytes [16:26:05]NVStorageSaveData done [16:26:05]OFDSenderStorePacket done [16:26:05]KKMCreateOFDPacket done [16:26:05]NVStorageSaveData kkm_last_timestamp [16:26:05]File name is /storage/kkm_last_timestamp [16:26:05]Write 4 bytes [16:26:05]NVStorageSaveData done [16:26:05]ExternCall_PrintAddStr [16:26:05]wPrintStart [16:26:05]Write to MH i2c: 01 00 00 E8 11 F9 [16:26:05]Write i2c OK [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: 01 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: 01 07 00 [16:26:05]MH_I2C_Read... [16:26:05]Read from MH i2c: 01 07 00 E8 11 00 00 00 00 00 FF 0F 0E [16:26:05]RasterBufferAndPrint [16:26:05]line 小褔械褌 N : (1)320642 [16:26:05]line 袠袧袧: 02508201610067 [16:26:05]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:26:05]line 袩袪袨袛袗袞袗 [16:26:05]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:26:05]line 孝芯胁邪褉: 2710124130 [16:26:05]line 袗懈-92-袣-5 [16:26:05]line 3.320 * 66.40 [16:26:05]line = 220.45 [16:26:05]line 袧袛小 12% 袧小袩 1% [16:26:05]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:26:05]line 袨袣袪校袚袥袝袧袠袝: -0.45 [16:26:05]line 袠孝袨袚袨: 220.00 [16:26:05]line 袙薪械褋械薪芯: 220.00 [16:26:05]line 小袛袗效袗: 0.00 [16:26:05]line 袧小袩 1% : 1.95 [16:26:05]line 袧袛小 12% : 23.41 [16:26:05]line 袧邪谢懈褔薪褘屑懈: 220.00 [16:26:05]line 袘械蟹薪邪谢.: 0.00 [16:26:05]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:26:05]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:26:05]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:26:05]line 效械泻 162 21.06.2024 16:26 [16:26:05]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:26:05]line 袟袧袦: 0300000198 [16:26:05]line 袪袧袦: 0000000000092771 [16:26:05]line 袙械褉褋懈褟 袣袣袦: 001 [16:26:05]line 肖袦: 0000000000875083 [16:26:05]line 肖袛: 111994 [16:26:05]line 肖袩袛: 204628974498348 [16:26:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162608&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111994&fm=204628974498348&tin=02508201610067®Number=0000000000092771&sum=22000 [16:26:05]OFD Sender: Processing packet 111994 [packets to send 38, broken 37] [16:26:05]ProducePacketName [16:26:05]name=ofd_packets/00111994 [16:26:05]OFD Sender: To server: 嚂鰌G, [16:26:05]CommunicateWithHost lk.salyk.kg:30040 [16:26:05]ConnectInit lk.salyk.kg [16:26:05]written 0, free lines is 4095 [16:26:05]Connected sock=10 [16:26:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 27 6B 07 01 02 DB 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 A2 00 00 00 F4 03 04 00 A0 A9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B5 01 00 35 04 06 00 BA 1B E5 55 F2 2C 25 26 99 7F 78 55 7B 31 [16:26:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7E 13 47 00 4E B3 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 30 38 37 35 30 38 33 10 04 04 00 7A B5 01 00 F4 03 04 00 C6 40 75 66 B6 04 01 00 00 C3 1B 38 D5 EC 51 DE 13 [16:26:06]CommunicateWithHost err = 0 [16:26:06]CheckOFDResponse [16:26:06]1017 (14) - 77093643461234 [16:26:06]1041 (16) - 0000000000875083 [16:26:06]1040 (4) - 111994 [16:26:06]1012 (4) - 21.06.2024 08:58 [16:26:06]1206 (1) - 0 [16:26:06]OFD Sender: Remove packet 111994 [16:26:06]ProducePacketName [16:26:06]name=ofd_packets/00111994 [16:26:06]NVStorageDeleteData [16:26:06]Write to MH i2c: 01 00 00 13 12 25 [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: 01 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: 01 07 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: 01 07 00 13 12 00 00 00 00 00 D8 0C 10 [16:26:06]RasterBufferAndPrint [16:26:06]line [16:26:06]line [16:26:06]line [16:26:06]line [16:26:06]line [16:26:06]written 0, free lines is 3295 [16:26:06]MH_Cut [16:26:06]Write to MH i2c: D1 01 00 1A 12 01 FE [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: D1 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: D1 01 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: D1 01 00 1A 12 00 FD [16:26:06]Write to MH i2c: 01 00 00 1B 12 2D [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:06]OFD Sender: No OFD packet to send [16:26:06]*** Cut start [16:26:06]*** Partial cut [16:26:06]*** CUTSNS_PIN = 1 [16:26:06]*** CUTSNS_PIN = 0 [16:26:07]*** Brake cut motor [16:26:07]Read from MH i2c: 01 [16:26:07]MH_I2C_Read... [16:26:07]*** Stop cut motor [16:26:07]*** Cut end [16:26:07]Read from MH i2c: 01 07 00 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: 01 07 00 1B 12 00 00 00 00 00 FF 0F 42 [16:26:07]process_action close_receipt done [16:26:07]requested_data is exist [16:26:07]produce_requested_data [16:26:07]requested_item fm.sn is exist - process it [16:26:07]wFMCommunicate request_size=4 [16:26:07]MH_SAM_APDU [16:26:07]CAPDU: 80 11 00 00 [16:26:07]Write to MH i2c: E2 08 00 1C 12 80 11 00 00 00 00 00 00 A8 [16:26:07]Write i2c OK [16:26:07]MH_I2C_Read... [16:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:07]Read from MH i2c: E2 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 17 00 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 17 00 1C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FA [16:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:26:07]wFMCommunicate OK [16:26:07]requested_item fd.num is exist - process it [16:26:07]SAM_PROTO_GetFieldsCounters [16:26:07]wFMCommunicate request_size=4 [16:26:07]MH_SAM_APDU [16:26:07]CAPDU: 80 13 00 00 [16:26:07]Write to MH i2c: E2 08 00 1D 12 80 13 00 00 00 00 00 00 AB [16:26:07]Write i2c OK [16:26:07]MH_I2C_Read... [16:26:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:07]Read from MH i2c: E2 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 62 00 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 62 00 1D 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7A B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [16:26:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7A B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:07]wFMCommunicate OK [16:26:07]SAM_PROTO_GetFieldsCounters done [16:26:07]requested_item shift.num is exist - process it [16:26:07]requested_item shift.opened is exist - process it [16:26:07]req_shift_opened [16:26:07]FM_GetShiftState [16:26:07]SAM_PROTO_GetShiftState [16:26:07]wFMCommunicate request_size=4 [16:26:07]MH_SAM_APDU [16:26:07]CAPDU: 80 13 01 00 [16:26:07]Write to MH i2c: E2 08 00 1E 12 80 13 01 00 00 00 00 00 AD [16:26:07]Write i2c OK [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 [16:26:07]MH_I2C_Read... [16:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:07]Read from MH i2c: E2 0E 00 [16:26:07]MH_I2C_Read... [16:26:07]Read from MH i2c: E2 0E 00 1E 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 2A [16:26:07]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:26:07]wFMCommunicate OK [16:26:07]SAM_PROTO_GetShiftState done [16:26:07]FM_GetShiftState done [16:26:07]req_shift_opened done [16:26:07]requested_item shift.open_date is exist - process it [16:26:07]req_shift_open_date [16:26:07]req_shift_open_date done [16:26:07]produce_requested_data done [16:26:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111994,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:26:07]process_action_free close_receipt [16:26:07]json_value_free [16:26:07]json_value_free done [16:26:07]process_json_proto returns [16:26:07]Send response to host [16:26:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111994,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:26:07]free response buf [16:26:07]execute_script done [16:26:07]execute_script returns [16:26:07]free content buf [16:26:07]Sock 7.Close socket [16:26:07]Sock 7.Thread stoped [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:48]accept exits with 9 [16:27:48]New connection [16:27:48]New thread 3066875236 created [16:27:48]Thread 3066731876 joined [16:27:48]Waiting for new connection... [16:27:48] Sock 9.Parse request [16:27:48]Sock 9.Check first char [16:27:48]Sock 9.First char is OK [16:27:48]request: POST /json_proto HTTP/1.0 [16:27:48]Method: POST [16:27:48]URL: /json_proto [16:27:48]Method is POST - this is cgi request [16:27:48]url: /json_proto [16:27:48]query_string will be loaded in cgi processing [16:27:48]execute_cgi json_proto POST (null) [16:27:48]execute_cgi path=json_proto method=POST [16:27:48]POST find Content-Length [16:27:48]Host: 172.17.59.68:8080 [16:27:48]Content-Length: 677 [16:27:48]Content-Type: application/json [16:27:48] [16:27:48]POST finish read [16:27:48]Found Content-Length = 677 [16:27:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:48]execute_script... [16:27:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:48]POST & json_proto [16:27:48]process_json_proto [16:27:48]json parsed OK: [16:27:48]protocol is kg_v1.0 [16:27:48]action value=close_receipt [16:27:48]process_action close_receipt [16:27:48]cmd_close_receipt [16:27:48]MH_GetDate [16:27:48]Write to MH i2c: F0 00 00 1F 12 20 [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: F0 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: F0 09 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: F0 09 00 1F 12 00 09 AA 75 66 BC EC 60 65 24 [16:27:48]GetLastDocTimeStamp 1718987168 [16:27:48]current date 1718987273 [16:27:48]FM_GetShiftState [16:27:48]SAM_PROTO_GetShiftState [16:27:48]wFMCommunicate request_size=4 [16:27:48]MH_SAM_APDU [16:27:48]CAPDU: 80 13 01 00 [16:27:48]Write to MH i2c: E2 08 00 20 12 80 13 01 00 00 00 00 00 AF [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:48]Read from MH i2c: E2 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 0E 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 0E 00 20 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 2C [16:27:48]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:27:48]wFMCommunicate OK [16:27:48]SAM_PROTO_GetShiftState done [16:27:48]FM_GetShiftState done [16:27:48]opened in 1718933695 [16:27:48]opened+sec_in_day 1719020095 [16:27:48]quantity*price = 25032 [16:27:48]sum+1 = 25034 [16:27:48]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.33 袠孝袨袚袨: 250.00 袙薪械褋械薪芯: 250.00 小袛袗效袗: 0.00 袧小袩 1% : 2.21 袧袛小 12% : 26.58 袧邪谢懈褔薪褘屑懈: 250.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 163 21.06.2024 16:27 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111995 肖袩袛: 14856814270973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162753&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111995&fm=14856814270973&tin=02508201610067®Number=0000000000092771&sum=25000 [16:27:49]StoreToDocumentArchive [16:27:49]shift 390 fd 111995 [16:27:49]save to /storage/0390/doc_00111995 [16:27:49]save last doc name /storage/0390/doc_00111995 to /storage/kkm_last_doc_name [16:27:49]save OK [16:27:49]Clear old archive folders... [16:27:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:49]tlvbuf is 0031D770 [16:27:49]SAM_PROTO_ClearQueue [16:27:49]wFMCommunicate request_size=4 [16:27:49]MH_SAM_APDU [16:27:49]CAPDU: 80 09 00 00 [16:27:49]Write to MH i2c: E2 08 00 2D 12 80 09 00 00 00 00 00 00 B1 [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:49]Read from MH i2c: E2 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 03 00 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 03 00 2D 12 00 90 00 B3 [16:27:49]RAPDU: 90 00 [16:27:49]wFMCommunicate OK [16:27:49]SAM_PROTO_ClearQueue done [16:27:49]KKMCreateOFDPacket [16:27:49]OFDProtocolAddRootSTLVToBuf [16:27:49]FM_MakeSignedData [16:27:49]FM_MakeSignedData [16:27:49]SAM_PROTO_SignData [16:27:49]wFMCommunicate request_size=4 [16:27:49]MH_SAM_APDU [16:27:49]CAPDU: 80 0D 01 02 [16:27:49]Write to MH i2c: E2 08 00 2E 12 80 0D 01 02 00 00 00 00 B9 [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:49]Read from MH i2c: E2 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 03 00 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 03 00 2E 12 00 90 00 B4 [16:27:49]RAPDU: 90 00 [16:27:49]wFMCommunicate OK [16:27:49]wFMCommunicate request_size=255 [16:27:49]MH_SAM_APDU [16:27:49]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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 09 AA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B5 01 00 35 04 06 00 0D [16:27:49]Write to MH i2c: E2 02 01 2F 12 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 09 AA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B5 01 00 35 04 06 00 0D 00 00 0F [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:50]Read from MH i2c: E2 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 03 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 03 00 2F 12 00 90 00 B5 [16:27:50]RAPDU: 90 00 [16:27:50]wFMCommunicate OK [16:27:50]wFMCommunicate request_size=10 [16:27:50]MH_SAM_APDU [16:27:50]CAPDU: 80 0D 02 02 05 83 1F 23 19 FD [16:27:50]Write to MH i2c: E2 0D 00 30 12 80 0D 02 02 05 00 83 1F 23 19 FD 00 00 A1 [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:50]Read from MH i2c: E2 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 03 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 03 00 30 12 00 90 00 B6 [16:27:50]RAPDU: 90 00 [16:27:50]wFMCommunicate OK [16:27:50]wFMCommunicate request_size=4 [16:27:50]MH_SAM_APDU [16:27:50]CAPDU: 80 0D 03 02 [16:27:50]Write to MH i2c: E2 08 00 31 12 80 0D 03 02 00 00 00 00 BE [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:50]Read from MH i2c: E2 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 0B 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 0B 00 31 12 00 83 A9 18 99 67 E0 45 34 90 00 5C [16:27:50]RAPDU: 83 A9 18 99 67 E0 45 34 90 00 [16:27:50]wFMCommunicate OK [16:27:50]SAM_PROTO_SignData done [16:27:50]FM_MakeSignedData done [16:27:50]CreateOFDProtocolMessage [16:27:50]wFMCommunicate request_size=4 [16:27:50]MH_SAM_APDU [16:27:50]CAPDU: 80 11 00 00 [16:27:50]Write to MH i2c: E2 08 00 32 12 80 11 00 00 00 00 00 00 BE [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:50]Read from MH i2c: E2 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 17 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 17 00 32 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 10 [16:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:27:50]wFMCommunicate OK [16:27:50]CreateOFDProtocolMessage done [16:27:50]OFDSenderStorePacket 111995 [16:27:50]StoreOFDPacket docnum=111995 [16:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 67 72 07 01 70 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 09 AA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B5 01 00 35 04 06 00 0D 83 1F 23 19 FD 83 A9 18 99 67 E0 45 34 [16:27:50]CheckFolder [16:27:50]dirname=/storage/ofd_packets [16:27:50]CheckFolder done [16:27:50]ProducePacketName [16:27:50]name=ofd_packets/00111995 [16:27:50]NVStorageSaveData ofd_packets/00111995 [16:27:50]File name is /storage/ofd_packets/00111995 [16:27:50]Write 301 bytes [16:27:50]NVStorageSaveData done [16:27:50]OFDSenderStorePacket done [16:27:50]KKMCreateOFDPacket done [16:27:50]NVStorageSaveData kkm_last_timestamp [16:27:50]File name is /storage/kkm_last_timestamp [16:27:50]Write 4 bytes [16:27:50]NVStorageSaveData done [16:27:50]ExternCall_PrintAddStr [16:27:50]wPrintStart [16:27:50]Write to MH i2c: 01 00 00 33 12 45 [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: 01 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: 01 07 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: 01 07 00 33 12 00 00 00 00 00 FF 0F 5A [16:27:50]RasterBufferAndPrint [16:27:50]line 小褔械褌 N : (1)320643 [16:27:50]line 袠袧袧: 02508201610067 [16:27:50]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:27:50]line 袩袪袨袛袗袞袗 [16:27:50]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:27:50]line 孝芯胁邪褉: 2710124130 [16:27:50]line 袗懈-92-袣-5 [16:27:50]line 3.770 * 66.40 [16:27:50]line = 250.33 [16:27:50]line 袧袛小 12% 袧小袩 1% [16:27:50]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:27:50]line 袨袣袪校袚袥袝袧袠袝: -0.33 [16:27:50]line 袠孝袨袚袨: 250.00 [16:27:50]line 袙薪械褋械薪芯: 250.00 [16:27:50]line 小袛袗效袗: 0.00 [16:27:50]line 袧小袩 1% : 2.21 [16:27:50]line 袧袛小 12% : 26.58 [16:27:50]line 袧邪谢懈褔薪褘屑懈: 250.00 [16:27:50]line 袘械蟹薪邪谢.: 0.00 [16:27:50]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:27:50]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:27:50]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:27:50]line 效械泻 163 21.06.2024 16:27 [16:27:50]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:27:50]line 袟袧袦: 0300000198 [16:27:50]line 袪袧袦: 0000000000092771 [16:27:50]line 袙械褉褋懈褟 袣袣袦: 001 [16:27:50]line 肖袦: 0000000000875083 [16:27:50]line 肖袛: 111995 [16:27:50]line 肖袩袛: 14856814270973 [16:27:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162753&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111995&fm=14856814270973&tin=02508201610067®Number=0000000000092771&sum=25000 [16:27:50]OFD Sender: Processing packet 111995 [packets to send 38, broken 37] [16:27:50]ProducePacketName [16:27:50]name=ofd_packets/00111995 [16:27:50]OFD Sender: To server: 嚂鰌G, [16:27:50]CommunicateWithHost lk.salyk.kg:30040 [16:27:50]ConnectInit lk.salyk.kg [16:27:50]written 0, free lines is 4095 [16:27:50]Connected sock=10 [16:27:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 67 72 07 01 70 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 09 AA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B5 01 00 35 04 06 00 0D 83 1F 23 19 FD 83 A9 18 99 67 E0 45 34 [16:27:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A2 CA 47 00 86 F1 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 30 38 37 35 30 38 33 10 04 04 00 7B B5 01 00 F4 03 04 00 2F 41 75 66 B6 04 01 00 00 33 A9 BA D9 FA C9 0F F8 [16:27:51]CommunicateWithHost err = 0 [16:27:51]CheckOFDResponse [16:27:51]1017 (14) - 77093643461234 [16:27:51]1041 (16) - 0000000000875083 [16:27:51]1040 (4) - 111995 [16:27:51]1012 (4) - 21.06.2024 09:00 [16:27:51]1206 (1) - 0 [16:27:51]OFD Sender: Remove packet 111995 [16:27:51]ProducePacketName [16:27:51]name=ofd_packets/00111995 [16:27:51]NVStorageDeleteData [16:27:51]Write to MH i2c: 01 00 00 5E 12 70 [16:27:51]Write i2c OK [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: 01 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: 01 07 00 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: 01 07 00 5E 12 00 00 00 00 00 D9 0C 5C [16:27:51]RasterBufferAndPrint [16:27:51]line [16:27:51]line [16:27:51]line [16:27:51]line [16:27:51]line [16:27:51]written 0, free lines is 3296 [16:27:51]MH_Cut [16:27:51]Write to MH i2c: D1 01 00 65 12 01 49 [16:27:51]Write i2c OK [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: D1 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: D1 01 00 [16:27:51]MH_I2C_Read... [16:27:51]Read from MH i2c: D1 01 00 65 12 00 48 [16:27:51]Write to MH i2c: 01 00 00 66 12 78 [16:27:51]Write i2c OK [16:27:51]MH_I2C_Read... [16:27:51]OFD Sender: No OFD packet to send [16:27:51]*** Cut start [16:27:51]*** Partial cut [16:27:51]*** CUTSNS_PIN = 1 [16:27:51]*** CUTSNS_PIN = 0 [16:27:52]*** Brake cut motor [16:27:52]Read from MH i2c: 01 [16:27:52]MH_I2C_Read... [16:27:52]*** Stop cut motor [16:27:52]*** Cut end [16:27:52]Read from MH i2c: 01 07 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: 01 07 00 66 12 00 00 00 00 00 FF 0F 8D [16:27:52]process_action close_receipt done [16:27:52]requested_data is exist [16:27:52]produce_requested_data [16:27:52]requested_item fm.sn is exist - process it [16:27:52]wFMCommunicate request_size=4 [16:27:52]MH_SAM_APDU [16:27:52]CAPDU: 80 11 00 00 [16:27:52]Write to MH i2c: E2 08 00 67 12 80 11 00 00 00 00 00 00 F3 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 17 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 17 00 67 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 45 [16:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:27:52]wFMCommunicate OK [16:27:52]requested_item fd.num is exist - process it [16:27:52]SAM_PROTO_GetFieldsCounters [16:27:52]wFMCommunicate request_size=4 [16:27:52]MH_SAM_APDU [16:27:52]CAPDU: 80 13 00 00 [16:27:52]Write to MH i2c: E2 08 00 68 12 80 13 00 00 00 00 00 00 F6 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 62 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 62 00 68 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7B B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [16:27:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7B B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:52]wFMCommunicate OK [16:27:52]SAM_PROTO_GetFieldsCounters done [16:27:52]requested_item shift.num is exist - process it [16:27:52]requested_item shift.opened is exist - process it [16:27:52]req_shift_opened [16:27:52]FM_GetShiftState [16:27:52]SAM_PROTO_GetShiftState [16:27:52]wFMCommunicate request_size=4 [16:27:52]MH_SAM_APDU [16:27:52]CAPDU: 80 13 01 00 [16:27:52]Write to MH i2c: E2 08 00 69 12 80 13 01 00 00 00 00 00 F8 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 0E 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 0E 00 69 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 75 [16:27:52]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:27:52]wFMCommunicate OK [16:27:52]SAM_PROTO_GetShiftState done [16:27:52]FM_GetShiftState done [16:27:52]req_shift_opened done [16:27:52]requested_item shift.open_date is exist - process it [16:27:52]req_shift_open_date [16:27:52]req_shift_open_date done [16:27:52]produce_requested_data done [16:27:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111995,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:27:52]process_action_free close_receipt [16:27:52]json_value_free [16:27:52]json_value_free done [16:27:52]process_json_proto returns [16:27:52]Send response to host [16:27:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111995,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:27:52]free response buf [16:27:52]execute_script done [16:27:52]execute_script returns [16:27:52]free content buf [16:27:52]Sock 9.Close socket [16:27:52]Sock 9.Thread stoped [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:34]accept exits with 7 [16:29:34]New connection [16:29:34]New thread 3066731876 created [16:29:34]Thread 3066875236 joined [16:29:34]Waiting for new connection... [16:29:34] Sock 7.Parse request [16:29:34]Sock 7.Check first char [16:29:34]Sock 7.First char is OK [16:29:34]request: POST /json_proto HTTP/1.0 [16:29:34]Method: POST [16:29:34]URL: /json_proto [16:29:34]Method is POST - this is cgi request [16:29:34]url: /json_proto [16:29:34]query_string will be loaded in cgi processing [16:29:34]execute_cgi json_proto POST (null) [16:29:34]execute_cgi path=json_proto method=POST [16:29:34]POST find Content-Length [16:29:34]Host: 172.17.59.68:8080 [16:29:34]Content-Length: 682 [16:29:34]Content-Type: application/json [16:29:34] [16:29:34]POST finish read [16:29:34]Found Content-Length = 682 [16:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "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" ] } } [16:29:34]execute_script... [16:29: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 : (1)320644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "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" ] } } [16:29:34]POST & json_proto [16:29:34]process_json_proto [16:29:34]json parsed OK: [16:29:34]protocol is kg_v1.0 [16:29:34]action value=close_receipt [16:29:34]process_action close_receipt [16:29:34]cmd_close_receipt [16:29:34]MH_GetDate [16:29:34]Write to MH i2c: F0 00 00 6A 12 6B [16:29:34]Write i2c OK [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: F0 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: F0 09 00 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: F0 09 00 6A 12 00 73 AA 75 66 BC EC 60 65 D9 [16:29:34]GetLastDocTimeStamp 1718987273 [16:29:34]current date 1718987379 [16:29:34]FM_GetShiftState [16:29:34]SAM_PROTO_GetShiftState [16:29:34]wFMCommunicate request_size=4 [16:29:34]MH_SAM_APDU [16:29:34]CAPDU: 80 13 01 00 [16:29:34]Write to MH i2c: E2 08 00 6B 12 80 13 01 00 00 00 00 00 FA [16:29:34]Write i2c OK [16:29:34]MH_I2C_Read... [16:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:34]Read from MH i2c: E2 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 0E 00 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 0E 00 6B 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 77 [16:29:34]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:29:34]wFMCommunicate OK [16:29:34]SAM_PROTO_GetShiftState done [16:29:34]FM_GetShiftState done [16:29:34]opened in 1718933695 [16:29:34]opened+sec_in_day 1719020095 [16:29:34]quantity*price = 150064 [16:29:34]sum+1 = 150065 [16:29:34]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.64 袠孝袨袚袨: 1500.00 袙薪械褋械薪芯: 1500.00 小袛袗效袗: 0.00 袧小袩 1% : 13.28 袧袛小 12% : 159.36 袧邪谢懈褔薪褘屑懈: 1500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 164 21.06.2024 16:29 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111996 肖袩袛: 161311218956335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162939&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111996&fm=161311218956335&tin=02508201610067®Number=0000000000092771&sum=150000 [16:29:35]StoreToDocumentArchive [16:29:35]shift 390 fd 111996 [16:29:35]save to /storage/0390/doc_00111996 [16:29:35]save last doc name /storage/0390/doc_00111996 to /storage/kkm_last_doc_name [16:29:35]save OK [16:29:35]Clear old archive folders... [16:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:35]tlvbuf is B6EAEB80 [16:29:35]SAM_PROTO_ClearQueue [16:29:35]wFMCommunicate request_size=4 [16:29:35]MH_SAM_APDU [16:29:35]CAPDU: 80 09 00 00 [16:29:35]Write to MH i2c: E2 08 00 78 12 80 09 00 00 00 00 00 00 FC [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:35]Read from MH i2c: E2 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 03 00 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 03 00 78 12 00 90 00 FE [16:29:35]RAPDU: 90 00 [16:29:35]wFMCommunicate OK [16:29:35]SAM_PROTO_ClearQueue done [16:29:35]KKMCreateOFDPacket [16:29:35]OFDProtocolAddRootSTLVToBuf [16:29:35]FM_MakeSignedData [16:29:35]FM_MakeSignedData [16:29:35]SAM_PROTO_SignData [16:29:35]wFMCommunicate request_size=4 [16:29:35]MH_SAM_APDU [16:29:35]CAPDU: 80 0D 01 02 [16:29:35]Write to MH i2c: E2 08 00 79 12 80 0D 01 02 00 00 00 00 04 [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:35]Read from MH i2c: E2 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 03 00 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: E2 03 00 79 12 00 90 00 FF [16:29:35]RAPDU: 90 00 [16:29:35]wFMCommunicate OK [16:29:35]wFMCommunicate request_size=255 [16:29:35]MH_SAM_APDU [16:29:35]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 48 58 00 00 00 00 00 37 04 06 00 F0 19 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 A4 00 00 00 F4 03 04 00 73 AA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B5 01 00 35 04 06 00 92 [16:29:35]Write to MH i2c: E2 02 01 7A 12 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 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 A4 00 00 00 F4 03 04 00 73 AA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B5 01 00 35 04 06 00 92 00 00 43 [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 7A 12 00 90 00 00 [16:29:36]RAPDU: 90 00 [16:29:36]wFMCommunicate OK [16:29:36]wFMCommunicate request_size=10 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 0D 02 02 05 B6 31 E7 78 2F [16:29:36]Write to MH i2c: E2 0D 00 7B 12 80 0D 02 02 05 00 B6 31 E7 78 2F 00 00 86 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 7B 12 00 90 00 01 [16:29:36]RAPDU: 90 00 [16:29:36]wFMCommunicate OK [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 0D 03 02 [16:29:36]Write to MH i2c: E2 08 00 7C 12 80 0D 03 02 00 00 00 00 09 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 0B 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 0B 00 7C 12 00 2F 18 82 FB 95 6F AA B8 90 00 34 [16:29:36]RAPDU: 2F 18 82 FB 95 6F AA B8 90 00 [16:29:36]wFMCommunicate OK [16:29:36]SAM_PROTO_SignData done [16:29:36]FM_MakeSignedData done [16:29:36]CreateOFDProtocolMessage [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 11 00 00 [16:29:36]Write to MH i2c: E2 08 00 7D 12 80 11 00 00 00 00 00 00 09 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 17 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 17 00 7D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5B [16:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:29:36]wFMCommunicate OK [16:29:36]CreateOFDProtocolMessage done [16:29:36]OFDSenderStorePacket 111996 [16:29:36]StoreOFDPacket docnum=111996 [16:29:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FB BE 07 01 52 74 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 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 A4 00 00 00 F4 03 04 00 73 AA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B5 01 00 35 04 06 00 92 B6 31 E7 78 2F 2F 18 82 FB 95 6F AA B8 [16:29:36]CheckFolder [16:29:36]dirname=/storage/ofd_packets [16:29:36]CheckFolder done [16:29:36]ProducePacketName [16:29:36]name=ofd_packets/00111996 [16:29:36]NVStorageSaveData ofd_packets/00111996 [16:29:36]File name is /storage/ofd_packets/00111996 [16:29:36]Write 301 bytes [16:29:36]NVStorageSaveData done [16:29:36]OFDSenderStorePacket done [16:29:36]KKMCreateOFDPacket done [16:29:36]NVStorageSaveData kkm_last_timestamp [16:29:36]File name is /storage/kkm_last_timestamp [16:29:36]Write 4 bytes [16:29:36]NVStorageSaveData done [16:29:36]ExternCall_PrintAddStr [16:29:36]wPrintStart [16:29:36]Write to MH i2c: 01 00 00 7E 12 90 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: 01 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: 01 07 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: 01 07 00 7E 12 00 00 00 00 00 FF 0F A5 [16:29:36]RasterBufferAndPrint [16:29:36]line 小褔械褌 N : (1)320644 [16:29:36]line 袠袧袧: 02508201610067 [16:29:36]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:29:36]line 袩袪袨袛袗袞袗 [16:29:36]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:29:36]line 孝芯胁邪褉: 2710124130 [16:29:36]line 袗懈-92-袣-5 [16:29:36]line 22.600 * 66.40 [16:29:36]line = 1500.64 [16:29:36]line 袧袛小 12% 袧小袩 1% [16:29:36]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:29:36]line 袨袣袪校袚袥袝袧袠袝: -0.64 [16:29:36]line 袠孝袨袚袨: 1500.00 [16:29:36]line 袙薪械褋械薪芯: 1500.00 [16:29:36]line 小袛袗效袗: 0.00 [16:29:36]line 袧小袩 1% : 13.28 [16:29:36]line 袧袛小 12% : 159.36 [16:29:36]line 袧邪谢懈褔薪褘屑懈: 1500.00 [16:29:36]line 袘械蟹薪邪谢.: 0.00 [16:29:36]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:29:36]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:29:36]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:29:36]line 效械泻 164 21.06.2024 16:29 [16:29:36]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:29:36]line 袟袧袦: 0300000198 [16:29:36]line 袪袧袦: 0000000000092771 [16:29:36]line 袙械褉褋懈褟 袣袣袦: 001 [16:29:36]line 肖袦: 0000000000875083 [16:29:36]line 肖袛: 111996 [16:29:36]line 肖袩袛: 161311218956335 [16:29:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T162939&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111996&fm=161311218956335&tin=02508201610067®Number=0000000000092771&sum=150000 [16:29:36]OFD Sender: Processing packet 111996 [packets to send 38, broken 37] [16:29:36]ProducePacketName [16:29:36]name=ofd_packets/00111996 [16:29:36]OFD Sender: To server: 嚂鰌G, [16:29:36]CommunicateWithHost lk.salyk.kg:30040 [16:29:36]ConnectInit lk.salyk.kg [16:29:36]written 0, free lines is 4095 [16:29:36]Connected sock=10 [16:29:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FB BE 07 01 52 74 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 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 A4 00 00 00 F4 03 04 00 73 AA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B5 01 00 35 04 06 00 92 B6 31 E7 78 2F 2F 18 82 FB 95 6F AA B8 [16:29:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EC 90 47 00 E6 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B5 01 00 F4 03 04 00 99 41 75 66 B6 04 01 00 00 7A 29 BF 57 DC 43 BA FF [16:29:37]CommunicateWithHost err = 0 [16:29:37]CheckOFDResponse [16:29:37]1017 (14) - 77093643461234 [16:29:37]1041 (16) - 0000000000875083 [16:29:37]1040 (4) - 111996 [16:29:37]1012 (4) - 21.06.2024 09:02 [16:29:37]1206 (1) - 0 [16:29:37]OFD Sender: Remove packet 111996 [16:29:37]ProducePacketName [16:29:37]name=ofd_packets/00111996 [16:29:37]NVStorageDeleteData [16:29:37]Write to MH i2c: 01 00 00 A9 12 BB [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: 01 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: 01 07 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: 01 07 00 A9 12 00 00 00 00 00 DC 0C AA [16:29:37]RasterBufferAndPrint [16:29:37]line [16:29:37]line [16:29:37]line [16:29:37]line [16:29:37]line [16:29:37]written 0, free lines is 3298 [16:29:37]MH_Cut [16:29:37]Write to MH i2c: D1 01 00 B0 12 01 94 [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: D1 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: D1 01 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: D1 01 00 B0 12 00 93 [16:29:37]Write to MH i2c: 01 00 00 B1 12 C3 [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]OFD Sender: No OFD packet to send [16:29:37]*** Cut start [16:29:37]*** Partial cut [16:29:37]*** CUTSNS_PIN = 1 [16:29:37]*** CUTSNS_PIN = 0 [16:29:38]*** Brake cut motor [16:29:38]Read from MH i2c: 01 [16:29:38]MH_I2C_Read... [16:29:38]*** Stop cut motor [16:29:38]*** Cut end [16:29:38]Read from MH i2c: 01 07 00 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: 01 07 00 B1 12 00 00 00 00 00 FF 0F D8 [16:29:38]process_action close_receipt done [16:29:38]requested_data is exist [16:29:38]produce_requested_data [16:29:38]requested_item fm.sn is exist - process it [16:29:38]wFMCommunicate request_size=4 [16:29:38]MH_SAM_APDU [16:29:38]CAPDU: 80 11 00 00 [16:29:38]Write to MH i2c: E2 08 00 B2 12 80 11 00 00 00 00 00 00 3E [16:29:38]Write i2c OK [16:29:38]MH_I2C_Read... [16:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:38]Read from MH i2c: E2 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: E2 17 00 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: E2 17 00 B2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 90 [16:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:29:38]wFMCommunicate OK [16:29:38]requested_item fd.num is exist - process it [16:29:38]SAM_PROTO_GetFieldsCounters [16:29:38]wFMCommunicate request_size=4 [16:29:38]MH_SAM_APDU [16:29:38]CAPDU: 80 13 00 00 [16:29:38]Write to MH i2c: E2 08 00 B3 12 80 13 00 00 00 00 00 00 41 [16:29:38]Write i2c OK [16:29:38]MH_I2C_Read... [16:29:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:38]Read from MH i2c: E2 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: E2 62 00 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: E2 62 00 B3 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7C B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [16:29:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7C B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:38]wFMCommunicate OK [16:29:38]SAM_PROTO_GetFieldsCounters done [16:29:38]requested_item shift.num is exist - process it [16:29:38]requested_item shift.opened is exist - process it [16:29:38]req_shift_opened [16:29:38]FM_GetShiftState [16:29:38]SAM_PROTO_GetShiftState [16:29:38]wFMCommunicate request_size=4 [16:29:38]MH_SAM_APDU [16:29:38]CAPDU: 80 13 01 00 [16:29:38]Write to MH i2c: E2 08 00 B4 12 80 13 01 00 00 00 00 00 43 [16:29:38]Write i2c OK [16:29:38]MH_I2C_Read... [16:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:38]Read from MH i2c: E2 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: E2 0E 00 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: E2 0E 00 B4 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C0 [16:29:38]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:29:38]wFMCommunicate OK [16:29:38]SAM_PROTO_GetShiftState done [16:29:38]FM_GetShiftState done [16:29:38]req_shift_opened done [16:29:38]requested_item shift.open_date is exist - process it [16:29:38]req_shift_open_date [16:29:38]req_shift_open_date done [16:29:38]produce_requested_data done [16:29:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111996,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:29:38]process_action_free close_receipt [16:29:38]json_value_free [16:29:38]json_value_free done [16:29:38]process_json_proto returns [16:29:38]Send response to host [16:29:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111996,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:29:38]free response buf [16:29:38]execute_script done [16:29:38]execute_script returns [16:29:38]free content buf [16:29:38]Sock 7.Close socket [16:29:38]Sock 7.Thread stoped [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:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:53]accept exits with 9 [16:38:53]New connection [16:38:53]New thread 3066875236 created [16:38:53]Thread 3066731876 joined [16:38:53]Waiting for new connection... [16:38:53] Sock 9.Parse request [16:38:53]Sock 9.Check first char [16:38:53]Sock 9.First char is OK [16:38:53]request: POST /json_proto HTTP/1.0 [16:38:53]Method: POST [16:38:53]URL: /json_proto [16:38:53]Method is POST - this is cgi request [16:38:53]url: /json_proto [16:38:53]query_string will be loaded in cgi processing [16:38:53]execute_cgi json_proto POST (null) [16:38:53]execute_cgi path=json_proto method=POST [16:38:53]POST find Content-Length [16:38:53]Host: 172.17.59.68:8080 [16:38:53]Content-Length: 682 [16:38:53]Content-Type: application/json [16:38:53] [16:38:53]POST finish read [16:38:53]Found Content-Length = 682 [16:38:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [16:38:53]execute_script... [16:38: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)320645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [16:38:53]POST & json_proto [16:38:53]process_json_proto [16:38:53]json parsed OK: [16:38:53]protocol is kg_v1.0 [16:38:53]action value=close_receipt [16:38:53]process_action close_receipt [16:38:53]cmd_close_receipt [16:38:53]MH_GetDate [16:38:53]Write to MH i2c: F0 00 00 B5 12 B6 [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: F0 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: F0 09 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: F0 09 00 B5 12 00 A2 AC 75 66 BC EC 60 65 55 [16:38:53]GetLastDocTimeStamp 1718987379 [16:38:53]current date 1718987938 [16:38:53]FM_GetShiftState [16:38:53]SAM_PROTO_GetShiftState [16:38:53]wFMCommunicate request_size=4 [16:38:53]MH_SAM_APDU [16:38:53]CAPDU: 80 13 01 00 [16:38:53]Write to MH i2c: E2 08 00 B6 12 80 13 01 00 00 00 00 00 45 [16:38:53]Write i2c OK [16:38:53]MH_I2C_Read... [16:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:53]Read from MH i2c: E2 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 0E 00 [16:38:53]MH_I2C_Read... [16:38:53]Read from MH i2c: E2 0E 00 B6 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C2 [16:38:53]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:38:53]wFMCommunicate OK [16:38:53]SAM_PROTO_GetShiftState done [16:38:53]FM_GetShiftState done [16:38:53]opened in 1718933695 [16:38:53]opened+sec_in_day 1719020095 [16:38:53]quantity*price = 100064 [16:38:53]sum+1 = 100066 [16:38:53]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 165 21.06.2024 16:38 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111997 肖袩袛: 227594813845793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T163858&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111997&fm=227594813845793&tin=02508201610067®Number=0000000000092771&sum=100000 [16:38:54]StoreToDocumentArchive [16:38:54]shift 390 fd 111997 [16:38:54]save to /storage/0390/doc_00111997 [16:38:54]save last doc name /storage/0390/doc_00111997 to /storage/kkm_last_doc_name [16:38:54]save OK [16:38:54]Clear old archive folders... [16:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:54]tlvbuf is 0036C120 [16:38:54]SAM_PROTO_ClearQueue [16:38:54]wFMCommunicate request_size=4 [16:38:54]MH_SAM_APDU [16:38:54]CAPDU: 80 09 00 00 [16:38:54]Write to MH i2c: E2 08 00 C3 12 80 09 00 00 00 00 00 00 47 [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: E2 [16:38:54]MH_I2C_Read... [16:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:54]Read from MH i2c: E2 03 00 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: E2 03 00 C3 12 00 90 00 49 [16:38:54]RAPDU: 90 00 [16:38:54]wFMCommunicate OK [16:38:54]SAM_PROTO_ClearQueue done [16:38:54]KKMCreateOFDPacket [16:38:54]OFDProtocolAddRootSTLVToBuf [16:38:54]FM_MakeSignedData [16:38:54]FM_MakeSignedData [16:38:54]SAM_PROTO_SignData [16:38:54]wFMCommunicate request_size=4 [16:38:54]MH_SAM_APDU [16:38:54]CAPDU: 80 0D 01 02 [16:38:54]Write to MH i2c: E2 08 00 C4 12 80 0D 01 02 00 00 00 00 4F [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: E2 [16:38:54]MH_I2C_Read... [16:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:54]Read from MH i2c: E2 03 00 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: E2 03 00 C4 12 00 90 00 4A [16:38:54]RAPDU: 90 00 [16:38:54]wFMCommunicate OK [16:38:54]wFMCommunicate request_size=255 [16:38:54]MH_SAM_APDU [16:38: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 A5 00 00 00 F4 03 04 00 A2 AC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B5 01 00 35 04 06 00 CE [16:38:54]Write to MH i2c: E2 02 01 C5 12 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 A5 00 00 00 F4 03 04 00 A2 AC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B5 01 00 35 04 06 00 CE 00 00 A9 [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:54]Read from MH i2c: E2 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: E2 03 00 [16:38:54]MH_I2C_Read... [16:38:54]Read from MH i2c: E2 03 00 C5 12 00 90 00 4B [16:38:54]RAPDU: 90 00 [16:38:54]wFMCommunicate OK [16:38:54]wFMCommunicate request_size=10 [16:38:54]MH_SAM_APDU [16:38:54]CAPDU: 80 0D 02 02 05 FF 0C 08 31 21 [16:38:54]Write to MH i2c: E2 0D 00 C6 12 80 0D 02 02 05 00 FF 0C 08 31 21 00 00 C1 [16:38:54]Write i2c OK [16:38:54]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 03 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 03 00 C6 12 00 90 00 4C [16:38:55]RAPDU: 90 00 [16:38:55]wFMCommunicate OK [16:38:55]wFMCommunicate request_size=4 [16:38:55]MH_SAM_APDU [16:38:55]CAPDU: 80 0D 03 02 [16:38:55]Write to MH i2c: E2 08 00 C7 12 80 0D 03 02 00 00 00 00 54 [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 0B 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 0B 00 C7 12 00 6B 36 71 E0 BF E6 15 DF 90 00 E0 [16:38:55]RAPDU: 6B 36 71 E0 BF E6 15 DF 90 00 [16:38:55]wFMCommunicate OK [16:38:55]SAM_PROTO_SignData done [16:38:55]FM_MakeSignedData done [16:38:55]CreateOFDProtocolMessage [16:38:55]wFMCommunicate request_size=4 [16:38:55]MH_SAM_APDU [16:38:55]CAPDU: 80 11 00 00 [16:38:55]Write to MH i2c: E2 08 00 C8 12 80 11 00 00 00 00 00 00 54 [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:55]Read from MH i2c: E2 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 17 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: E2 17 00 C8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A6 [16:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:38:55]wFMCommunicate OK [16:38:55]CreateOFDProtocolMessage done [16:38:55]OFDSenderStorePacket 111997 [16:38:55]StoreOFDPacket docnum=111997 [16:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 82 6B 07 01 FD 11 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 A5 00 00 00 F4 03 04 00 A2 AC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B5 01 00 35 04 06 00 CE FF 0C 08 31 21 6B 36 71 E0 BF E6 15 DF [16:38:55]CheckFolder [16:38:55]dirname=/storage/ofd_packets [16:38:55]CheckFolder done [16:38:55]ProducePacketName [16:38:55]name=ofd_packets/00111997 [16:38:55]NVStorageSaveData ofd_packets/00111997 [16:38:55]File name is /storage/ofd_packets/00111997 [16:38:55]Write 301 bytes [16:38:55]NVStorageSaveData done [16:38:55]OFDSenderStorePacket done [16:38:55]KKMCreateOFDPacket done [16:38:55]NVStorageSaveData kkm_last_timestamp [16:38:55]File name is /storage/kkm_last_timestamp [16:38:55]Write 4 bytes [16:38:55]NVStorageSaveData done [16:38:55]ExternCall_PrintAddStr [16:38:55]wPrintStart [16:38:55]Write to MH i2c: 01 00 00 C9 12 DB [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: 01 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: 01 07 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: 01 07 00 C9 12 00 00 00 00 00 FF 0F F0 [16:38:55]RasterBufferAndPrint [16:38:55]line 小褔械褌 N : (1)320645 [16:38:55]line 袠袧袧: 02508201610067 [16:38:55]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:38:55]line 袩袪袨袛袗袞袗 [16:38:55]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:38:55]line 孝芯胁邪褉: 2710124130 [16:38:55]line 袗懈-92-袣-5 [16:38:55]line 15.070 * 66.40 [16:38:55]line = 1000.65 [16:38:55]line 袧袛小 12% 袧小袩 1% [16:38:55]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:38:55]line 袨袣袪校袚袥袝袧袠袝: -0.65 [16:38:55]line 袠孝袨袚袨: 1000.00 [16:38:55]line 袙薪械褋械薪芯: 1000.00 [16:38:55]line 小袛袗效袗: 0.00 [16:38:55]line 袧小袩 1% : 8.85 [16:38:55]line 袧袛小 12% : 106.26 [16:38:55]line 袧邪谢懈褔薪褘屑懈: 1000.00 [16:38:55]line 袘械蟹薪邪谢.: 0.00 [16:38:55]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:38:55]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:38:55]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:38:55]line 效械泻 165 21.06.2024 16:38 [16:38:55]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:38:55]line 袟袧袦: 0300000198 [16:38:55]line 袪袧袦: 0000000000092771 [16:38:55]line 袙械褉褋懈褟 袣袣袦: 001 [16:38:55]line 肖袦: 0000000000875083 [16:38:55]line 肖袛: 111997 [16:38:55]line 肖袩袛: 227594813845793 [16:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T163858&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111997&fm=227594813845793&tin=02508201610067®Number=0000000000092771&sum=100000 [16:38:55]OFD Sender: Processing packet 111997 [packets to send 38, broken 37] [16:38:55]ProducePacketName [16:38:55]name=ofd_packets/00111997 [16:38:55]OFD Sender: To server: 嚂鰌G, [16:38:55]CommunicateWithHost lk.salyk.kg:30040 [16:38:55]ConnectInit lk.salyk.kg [16:38:55]written 0, free lines is 4095 [16:38:55]Connected sock=10 [16:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 82 6B 07 01 FD 11 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 A5 00 00 00 F4 03 04 00 A2 AC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B5 01 00 35 04 06 00 CE FF 0C 08 31 21 6B 36 71 E0 BF E6 15 DF [16:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 68 C9 47 00 96 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 30 38 37 35 30 38 33 10 04 04 00 7D B5 01 00 F4 03 04 00 C8 43 75 66 B6 04 01 00 00 6A B9 AA 24 67 32 D0 0A [16:38:55]CommunicateWithHost err = 0 [16:38:55]CheckOFDResponse [16:38:55]1017 (14) - 77093643461234 [16:38:55]1041 (16) - 0000000000875083 [16:38:55]1040 (4) - 111997 [16:38:55]1012 (4) - 21.06.2024 09:11 [16:38:55]1206 (1) - 0 [16:38:55]OFD Sender: Remove packet 111997 [16:38:55]ProducePacketName [16:38:55]name=ofd_packets/00111997 [16:38:55]NVStorageDeleteData [16:38:55]Write to MH i2c: 01 00 00 F4 12 06 [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: 01 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: 01 07 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: 01 07 00 F4 12 00 00 00 00 00 DD 0C F6 [16:38:55]RasterBufferAndPrint [16:38:55]line [16:38:55]line [16:38:55]line [16:38:55]line [16:38:55]line [16:38:55]written 0, free lines is 3299 [16:38:55]MH_Cut [16:38:55]Write to MH i2c: D1 01 00 FB 12 01 DF [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: D1 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: D1 01 00 [16:38:55]MH_I2C_Read... [16:38:55]Read from MH i2c: D1 01 00 FB 12 00 DE [16:38:55]Write to MH i2c: 01 00 00 FC 12 0E [16:38:55]Write i2c OK [16:38:55]MH_I2C_Read... [16:38:56]OFD Sender: No OFD packet to send [16:38:56]*** Cut start [16:38:56]*** Partial cut [16:38:56]*** CUTSNS_PIN = 1 [16:38:56]*** CUTSNS_PIN = 0 [16:38:56]*** Brake cut motor [16:38:57]Read from MH i2c: 01 [16:38:57]MH_I2C_Read... [16:38:57]*** Stop cut motor [16:38:57]*** Cut end [16:38:57]Read from MH i2c: 01 07 00 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: 01 07 00 FC 12 00 00 00 00 00 FF 0F 23 [16:38:57]process_action close_receipt done [16:38:57]requested_data is exist [16:38:57]produce_requested_data [16:38:57]requested_item fm.sn is exist - process it [16:38:57]wFMCommunicate request_size=4 [16:38:57]MH_SAM_APDU [16:38:57]CAPDU: 80 11 00 00 [16:38:57]Write to MH i2c: E2 08 00 FD 12 80 11 00 00 00 00 00 00 89 [16:38:57]Write i2c OK [16:38:57]MH_I2C_Read... [16:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:57]Read from MH i2c: E2 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 17 00 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 17 00 FD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DB [16:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:38:57]wFMCommunicate OK [16:38:57]requested_item fd.num is exist - process it [16:38:57]SAM_PROTO_GetFieldsCounters [16:38:57]wFMCommunicate request_size=4 [16:38:57]MH_SAM_APDU [16:38:57]CAPDU: 80 13 00 00 [16:38:57]Write to MH i2c: E2 08 00 FE 12 80 13 00 00 00 00 00 00 8C [16:38:57]Write i2c OK [16:38:57]MH_I2C_Read... [16:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:57]Read from MH i2c: E2 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 62 00 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 62 00 FE 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7D B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [16:38:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7D B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:57]wFMCommunicate OK [16:38:57]SAM_PROTO_GetFieldsCounters done [16:38:57]requested_item shift.num is exist - process it [16:38:57]requested_item shift.opened is exist - process it [16:38:57]req_shift_opened [16:38:57]FM_GetShiftState [16:38:57]SAM_PROTO_GetShiftState [16:38:57]wFMCommunicate request_size=4 [16:38:57]MH_SAM_APDU [16:38:57]CAPDU: 80 13 01 00 [16:38:57]Write to MH i2c: E2 08 00 FF 12 80 13 01 00 00 00 00 00 8E [16:38:57]Write i2c OK [16:38:57]MH_I2C_Read... [16:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:57]Read from MH i2c: E2 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 0E 00 [16:38:57]MH_I2C_Read... [16:38:57]Read from MH i2c: E2 0E 00 FF 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0B [16:38:57]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:38:57]wFMCommunicate OK [16:38:57]SAM_PROTO_GetShiftState done [16:38:57]FM_GetShiftState done [16:38:57]req_shift_opened done [16:38:57]requested_item shift.open_date is exist - process it [16:38:57]req_shift_open_date [16:38:57]req_shift_open_date done [16:38:57]produce_requested_data done [16:38:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111997,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:38:57]process_action_free close_receipt [16:38:57]json_value_free [16:38:57]json_value_free done [16:38:57]process_json_proto returns [16:38:57]Send response to host [16:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111997,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:38:57]free response buf [16:38:57]execute_script done [16:38:57]execute_script returns [16:38:57]free content buf [16:38:57]Sock 9.Close socket [16:38:57]Sock 9.Thread stoped [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:33]accept exits with 7 [16:41:33]New connection [16:41:33]New thread 3066731876 created [16:41:33]Thread 3066875236 joined [16:41:33]Waiting for new connection... [16:41:33] Sock 7.Parse request [16:41:33]Sock 7.Check first char [16:41:33]Sock 7.First char is OK [16:41:33]request: POST /json_proto HTTP/1.0 [16:41:33]Method: POST [16:41:33]URL: /json_proto [16:41:33]Method is POST - this is cgi request [16:41:33]url: /json_proto [16:41:33]query_string will be loaded in cgi processing [16:41:33]execute_cgi json_proto POST (null) [16:41:33]execute_cgi path=json_proto method=POST [16:41:33]POST find Content-Length [16:41:33]Host: 172.17.59.68:8080 [16:41:33]Content-Length: 677 [16:41:33]Content-Type: application/json [16:41:33] [16:41:33]POST finish read [16:41:33]Found Content-Length = 677 [16:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [16:41:33]execute_script... [16:41: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 : (1)320646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [16:41:33]POST & json_proto [16:41:33]process_json_proto [16:41:33]json parsed OK: [16:41:33]protocol is kg_v1.0 [16:41:33]action value=close_receipt [16:41:33]process_action close_receipt [16:41:33]cmd_close_receipt [16:41:33]MH_GetDate [16:41:33]Write to MH i2c: F0 00 00 00 13 02 [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: F0 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: F0 09 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: F0 09 00 00 13 00 42 AD 75 66 BC EC 60 65 42 [16:41:33]GetLastDocTimeStamp 1718987938 [16:41:33]current date 1718988098 [16:41:33]FM_GetShiftState [16:41:33]SAM_PROTO_GetShiftState [16:41:33]wFMCommunicate request_size=4 [16:41:33]MH_SAM_APDU [16:41:33]CAPDU: 80 13 01 00 [16:41:33]Write to MH i2c: E2 08 00 01 13 80 13 01 00 00 00 00 00 91 [16:41:33]Write i2c OK [16:41:33]MH_I2C_Read... [16:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:33]Read from MH i2c: E2 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 0E 00 [16:41:33]MH_I2C_Read... [16:41:33]Read from MH i2c: E2 0E 00 01 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0E [16:41:33]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:41:33]wFMCommunicate OK [16:41:33]SAM_PROTO_GetShiftState done [16:41:33]FM_GetShiftState done [16:41:33]opened in 1718933695 [16:41:33]opened+sec_in_day 1719020095 [16:41:33]quantity*price = 50065 [16:41:33]sum+1 = 50067 [16:41:33]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 166 21.06.2024 16:41 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111998 肖袩袛: 184943110332004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T164138&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111998&fm=184943110332004&tin=02508201610067®Number=0000000000092771&sum=50000 [16:41:35]StoreToDocumentArchive [16:41:35]shift 390 fd 111998 [16:41:35]save to /storage/0390/doc_00111998 [16:41:35]save last doc name /storage/0390/doc_00111998 to /storage/kkm_last_doc_name [16:41:35]save OK [16:41:35]Clear old archive folders... [16:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:35]tlvbuf is B6EAE6E0 [16:41:35]SAM_PROTO_ClearQueue [16:41:35]wFMCommunicate request_size=4 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 09 00 00 [16:41:35]Write to MH i2c: E2 08 00 0E 13 80 09 00 00 00 00 00 00 93 [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:35]Read from MH i2c: E2 03 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 03 00 0E 13 00 90 00 95 [16:41:35]RAPDU: 90 00 [16:41:35]wFMCommunicate OK [16:41:35]SAM_PROTO_ClearQueue done [16:41:35]KKMCreateOFDPacket [16:41:35]OFDProtocolAddRootSTLVToBuf [16:41:35]FM_MakeSignedData [16:41:35]FM_MakeSignedData [16:41:35]SAM_PROTO_SignData [16:41:35]wFMCommunicate request_size=4 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 0D 01 02 [16:41:35]Write to MH i2c: E2 08 00 0F 13 80 0D 01 02 00 00 00 00 9B [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 03 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 03 00 0F 13 00 90 00 96 [16:41:35]RAPDU: 90 00 [16:41:35]wFMCommunicate OK [16:41:35]wFMCommunicate request_size=255 [16:41:35]MH_SAM_APDU [16:41:35]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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A6 00 00 00 F4 03 04 00 42 AD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B5 01 00 35 04 06 00 A8 [16:41:35]Write to MH i2c: E2 02 01 10 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A6 00 00 00 F4 03 04 00 42 AD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B5 01 00 35 04 06 00 A8 00 00 22 [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 03 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 03 00 10 13 00 90 00 97 [16:41:35]RAPDU: 90 00 [16:41:35]wFMCommunicate OK [16:41:35]wFMCommunicate request_size=10 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 0D 02 02 05 34 6C 65 1E 64 [16:41:35]Write to MH i2c: E2 0D 00 11 13 80 0D 02 02 05 00 34 6C 65 1E 64 00 00 2F [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 03 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 03 00 11 13 00 90 00 98 [16:41:35]RAPDU: 90 00 [16:41:35]wFMCommunicate OK [16:41:35]wFMCommunicate request_size=4 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 0D 03 02 [16:41:35]Write to MH i2c: E2 08 00 12 13 80 0D 03 02 00 00 00 00 A0 [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 0B 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 0B 00 12 13 00 88 09 F3 1D 7B 79 CF 15 90 00 1A [16:41:35]RAPDU: 88 09 F3 1D 7B 79 CF 15 90 00 [16:41:35]wFMCommunicate OK [16:41:35]SAM_PROTO_SignData done [16:41:35]FM_MakeSignedData done [16:41:35]CreateOFDProtocolMessage [16:41:35]wFMCommunicate request_size=4 [16:41:35]MH_SAM_APDU [16:41:35]CAPDU: 80 11 00 00 [16:41:35]Write to MH i2c: E2 08 00 13 13 80 11 00 00 00 00 00 00 A0 [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:35]Read from MH i2c: E2 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 17 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: E2 17 00 13 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [16:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:41:35]wFMCommunicate OK [16:41:35]CreateOFDProtocolMessage done [16:41:35]OFDSenderStorePacket 111998 [16:41:35]StoreOFDPacket docnum=111998 [16:41:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 32 36 07 01 DA A6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A6 00 00 00 F4 03 04 00 42 AD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B5 01 00 35 04 06 00 A8 34 6C 65 1E 64 88 09 F3 1D 7B 79 CF 15 [16:41:35]CheckFolder [16:41:35]dirname=/storage/ofd_packets [16:41:35]CheckFolder done [16:41:35]ProducePacketName [16:41:35]name=ofd_packets/00111998 [16:41:35]NVStorageSaveData ofd_packets/00111998 [16:41:35]File name is /storage/ofd_packets/00111998 [16:41:35]Write 301 bytes [16:41:35]NVStorageSaveData done [16:41:35]OFDSenderStorePacket done [16:41:35]KKMCreateOFDPacket done [16:41:35]NVStorageSaveData kkm_last_timestamp [16:41:35]File name is /storage/kkm_last_timestamp [16:41:35]Write 4 bytes [16:41:35]NVStorageSaveData done [16:41:35]ExternCall_PrintAddStr [16:41:35]wPrintStart [16:41:35]Write to MH i2c: 01 00 00 14 13 27 [16:41:35]Write i2c OK [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: 01 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: 01 07 00 [16:41:35]MH_I2C_Read... [16:41:35]Read from MH i2c: 01 07 00 14 13 00 00 00 00 00 FF 0F 3C [16:41:35]RasterBufferAndPrint [16:41:35]line 小褔械褌 N : (1)320646 [16:41:35]line 袠袧袧: 02508201610067 [16:41:35]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:41:35]line 袩袪袨袛袗袞袗 [16:41:35]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:41:35]line 孝芯胁邪褉: 2710124130 [16:41:35]line 袗懈-92-袣-5 [16:41:35]line 7.540 * 66.40 [16:41:35]line = 500.66 [16:41:35]line 袧袛小 12% 袧小袩 1% [16:41:35]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:41:35]line 袨袣袪校袚袥袝袧袠袝: -0.66 [16:41:35]line 袠孝袨袚袨: 500.00 [16:41:35]line 袙薪械褋械薪芯: 500.00 [16:41:35]line 小袛袗效袗: 0.00 [16:41:35]line 袧小袩 1% : 4.43 [16:41:35]line 袧袛小 12% : 53.17 [16:41:35]line 袧邪谢懈褔薪褘屑懈: 500.00 [16:41:35]line 袘械蟹薪邪谢.: 0.00 [16:41:35]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:41:35]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:41:35]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:41:35]line 效械泻 166 21.06.2024 16:41 [16:41:35]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:41:35]line 袟袧袦: 0300000198 [16:41:35]line 袪袧袦: 0000000000092771 [16:41:35]line 袙械褉褋懈褟 袣袣袦: 001 [16:41:35]line 肖袦: 0000000000875083 [16:41:35]line 肖袛: 111998 [16:41:35]line 肖袩袛: 184943110332004 [16:41:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T164138&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111998&fm=184943110332004&tin=02508201610067®Number=0000000000092771&sum=50000 [16:41:35]OFD Sender: Processing packet 111998 [packets to send 38, broken 37] [16:41:35]ProducePacketName [16:41:35]name=ofd_packets/00111998 [16:41:35]OFD Sender: To server: 嚂鰌G, [16:41:35]CommunicateWithHost lk.salyk.kg:30040 [16:41:35]ConnectInit lk.salyk.kg [16:41:35]written 0, free lines is 4095 [16:41:35]Connected sock=10 [16:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 32 36 07 01 DA A6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A6 00 00 00 F4 03 04 00 42 AD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B5 01 00 35 04 06 00 A8 34 6C 65 1E 64 88 09 F3 1D 7B 79 CF 15 [16:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B9 8E 47 00 52 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B5 01 00 F4 03 04 00 68 44 75 66 B6 04 01 00 00 D4 32 11 03 1B 46 7E 6B [16:41:36]CommunicateWithHost err = 0 [16:41:36]CheckOFDResponse [16:41:36]1017 (14) - 77093643461234 [16:41:36]1041 (16) - 0000000000875083 [16:41:36]1040 (4) - 111998 [16:41:36]1012 (4) - 21.06.2024 09:14 [16:41:36]1206 (1) - 0 [16:41:36]OFD Sender: Remove packet 111998 [16:41:36]ProducePacketName [16:41:36]name=ofd_packets/00111998 [16:41:36]NVStorageDeleteData [16:41:36]Write to MH i2c: 01 00 00 3F 13 52 [16:41:36]Write i2c OK [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: 01 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: 01 07 00 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: 01 07 00 3F 13 00 00 00 00 00 D4 0C 39 [16:41:36]RasterBufferAndPrint [16:41:36]line [16:41:36]line [16:41:36]line [16:41:36]line [16:41:36]line [16:41:36]written 0, free lines is 3292 [16:41:36]MH_Cut [16:41:36]Write to MH i2c: D1 01 00 46 13 01 2B [16:41:36]Write i2c OK [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: D1 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: D1 01 00 [16:41:36]MH_I2C_Read... [16:41:36]Read from MH i2c: D1 01 00 46 13 00 2A [16:41:36]Write to MH i2c: 01 00 00 47 13 5A [16:41:36]Write i2c OK [16:41:36]MH_I2C_Read... [16:41:36]OFD Sender: No OFD packet to send [16:41:37]*** Cut start [16:41:37]*** Partial cut [16:41:37]*** CUTSNS_PIN = 1 [16:41:37]*** CUTSNS_PIN = 0 [16:41:37]*** Brake cut motor [16:41:37]Read from MH i2c: 01 [16:41:37]MH_I2C_Read... [16:41:37]*** Stop cut motor [16:41:37]*** Cut end [16:41:37]Read from MH i2c: 01 07 00 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: 01 07 00 47 13 00 00 00 00 00 FF 0F 6F [16:41:37]process_action close_receipt done [16:41:37]requested_data is exist [16:41:37]produce_requested_data [16:41:37]requested_item fm.sn is exist - process it [16:41:37]wFMCommunicate request_size=4 [16:41:37]MH_SAM_APDU [16:41:37]CAPDU: 80 11 00 00 [16:41:37]Write to MH i2c: E2 08 00 48 13 80 11 00 00 00 00 00 00 D5 [16:41:37]Write i2c OK [16:41:37]MH_I2C_Read... [16:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:37]Read from MH i2c: E2 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 17 00 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 17 00 48 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 27 [16:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:41:37]wFMCommunicate OK [16:41:37]requested_item fd.num is exist - process it [16:41:37]SAM_PROTO_GetFieldsCounters [16:41:37]wFMCommunicate request_size=4 [16:41:37]MH_SAM_APDU [16:41:37]CAPDU: 80 13 00 00 [16:41:37]Write to MH i2c: E2 08 00 49 13 80 13 00 00 00 00 00 00 D8 [16:41:37]Write i2c OK [16:41:37]MH_I2C_Read... [16:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:37]Read from MH i2c: E2 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 62 00 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 62 00 49 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7E B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [16:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7E B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:37]wFMCommunicate OK [16:41:37]SAM_PROTO_GetFieldsCounters done [16:41:37]requested_item shift.num is exist - process it [16:41:37]requested_item shift.opened is exist - process it [16:41:37]req_shift_opened [16:41:37]FM_GetShiftState [16:41:37]SAM_PROTO_GetShiftState [16:41:37]wFMCommunicate request_size=4 [16:41:37]MH_SAM_APDU [16:41:37]CAPDU: 80 13 01 00 [16:41:37]Write to MH i2c: E2 08 00 4A 13 80 13 01 00 00 00 00 00 DA [16:41:37]Write i2c OK [16:41:37]MH_I2C_Read... [16:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:37]Read from MH i2c: E2 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 0E 00 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 0E 00 4A 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 57 [16:41:37]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:41:37]wFMCommunicate OK [16:41:37]SAM_PROTO_GetShiftState done [16:41:37]FM_GetShiftState done [16:41:37]req_shift_opened done [16:41:37]requested_item shift.open_date is exist - process it [16:41:37]req_shift_open_date [16:41:37]req_shift_open_date done [16:41:37]produce_requested_data done [16:41:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111998,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:41:37]process_action_free close_receipt [16:41:37]json_value_free [16:41:37]json_value_free done [16:41:37]process_json_proto returns [16:41:37]Send response to host [16:41:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111998,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:41:37]free response buf [16:41:37]execute_script done [16:41:37]execute_script returns [16:41:37]free content buf [16:41:37]Sock 7.Close socket [16:41:37]Sock 7.Thread stoped [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:15]accept exits with 9 [16:42:15]New connection [16:42:15]New thread 3066875236 created [16:42:15]Thread 3066731876 joined [16:42:15]Waiting for new connection... [16:42:15] Sock 9.Parse request [16:42:15]Sock 9.Check first char [16:42:15]Sock 9.First char is OK [16:42:15]request: POST /json_proto HTTP/1.0 [16:42:15]Method: POST [16:42:15]URL: /json_proto [16:42:15]Method is POST - this is cgi request [16:42:15]url: /json_proto [16:42:15]query_string will be loaded in cgi processing [16:42:15]execute_cgi json_proto POST (null) [16:42:15]execute_cgi path=json_proto method=POST [16:42:15]POST find Content-Length [16:42:15]Host: 172.17.59.68:8080 [16:42:15]Content-Length: 677 [16:42:15]Content-Type: application/json [16:42:15] [16:42:15]POST finish read [16:42:15]Found Content-Length = 677 [16:42:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [16:42:15]execute_script... [16:42: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)320647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [16:42:15]POST & json_proto [16:42:15]process_json_proto [16:42:15]json parsed OK: [16:42:15]protocol is kg_v1.0 [16:42:15]action value=close_receipt [16:42:15]process_action close_receipt [16:42:15]cmd_close_receipt [16:42:15]MH_GetDate [16:42:15]Write to MH i2c: F0 00 00 4B 13 4D [16:42:15]Write i2c OK [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: F0 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: F0 09 00 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: F0 09 00 4B 13 00 6B AD 75 66 BC EC 60 65 B6 [16:42:15]GetLastDocTimeStamp 1718988098 [16:42:15]current date 1718988139 [16:42:15]FM_GetShiftState [16:42:15]SAM_PROTO_GetShiftState [16:42:15]wFMCommunicate request_size=4 [16:42:15]MH_SAM_APDU [16:42:15]CAPDU: 80 13 01 00 [16:42:15]Write to MH i2c: E2 08 00 4C 13 80 13 01 00 00 00 00 00 DC [16:42:15]Write i2c OK [16:42:15]MH_I2C_Read... [16:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:15]Read from MH i2c: E2 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 0E 00 [16:42:15]MH_I2C_Read... [16:42:15]Read from MH i2c: E2 0E 00 4C 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 59 [16:42:15]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:42:15]wFMCommunicate OK [16:42:15]SAM_PROTO_GetShiftState done [16:42:15]FM_GetShiftState done [16:42:15]opened in 1718933695 [16:42:15]opened+sec_in_day 1719020095 [16:42:15]quantity*price = 50065 [16:42:15]sum+1 = 50067 [16:42:15]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 167 21.06.2024 16:42 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 111999 肖袩袛: 58627962933126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T164220&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111999&fm=58627962933126&tin=02508201610067®Number=0000000000092771&sum=50000 [16:42:16]StoreToDocumentArchive [16:42:16]shift 390 fd 111999 [16:42:16]save to /storage/0390/doc_00111999 [16:42:16]save last doc name /storage/0390/doc_00111999 to /storage/kkm_last_doc_name [16:42:16]save OK [16:42:16]Clear old archive folders... [16:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:16]tlvbuf is 00379CD0 [16:42:16]SAM_PROTO_ClearQueue [16:42:16]wFMCommunicate request_size=4 [16:42:16]MH_SAM_APDU [16:42:16]CAPDU: 80 09 00 00 [16:42:16]Write to MH i2c: E2 08 00 59 13 80 09 00 00 00 00 00 00 DE [16:42:16]Write i2c OK [16:42:16]MH_I2C_Read... [16:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:16]Read from MH i2c: E2 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: E2 03 00 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: E2 03 00 59 13 00 90 00 E0 [16:42:16]RAPDU: 90 00 [16:42:16]wFMCommunicate OK [16:42:16]SAM_PROTO_ClearQueue done [16:42:16]KKMCreateOFDPacket [16:42:16]OFDProtocolAddRootSTLVToBuf [16:42:16]FM_MakeSignedData [16:42:16]FM_MakeSignedData [16:42:16]SAM_PROTO_SignData [16:42:16]wFMCommunicate request_size=4 [16:42:16]MH_SAM_APDU [16:42:16]CAPDU: 80 0D 01 02 [16:42:16]Write to MH i2c: E2 08 00 5A 13 80 0D 01 02 00 00 00 00 E6 [16:42:16]Write i2c OK [16:42:16]MH_I2C_Read... [16:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:16]Read from MH i2c: E2 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: E2 03 00 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: E2 03 00 5A 13 00 90 00 E1 [16:42:16]RAPDU: 90 00 [16:42:16]wFMCommunicate OK [16:42:16]wFMCommunicate request_size=255 [16:42:16]MH_SAM_APDU [16:42: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A7 00 00 00 F4 03 04 00 6C AD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B5 01 00 35 04 06 00 35 [16:42:16]Write to MH i2c: E2 02 01 5B 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A7 00 00 00 F4 03 04 00 6C AD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B5 01 00 35 04 06 00 35 00 00 26 [16:42:16]Write i2c OK [16:42:16]MH_I2C_Read... [16:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:16]Read from MH i2c: E2 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: E2 03 00 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: E2 03 00 5B 13 00 90 00 E2 [16:42:16]RAPDU: 90 00 [16:42:16]wFMCommunicate OK [16:42:16]wFMCommunicate request_size=10 [16:42:16]MH_SAM_APDU [16:42:16]CAPDU: 80 0D 02 02 05 52 62 E7 8F 86 [16:42:16]Write to MH i2c: E2 0D 00 5C 13 80 0D 02 02 05 00 52 62 E7 8F 86 00 00 A3 [16:42:16]Write i2c OK [16:42:16]MH_I2C_Read... [16:42:16]OFD Sender: No OFD packet to send [16:42:16]Read from MH i2c: E2 [16:42:16]MH_I2C_Read... [16:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:16]Read from MH i2c: E2 03 00 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: E2 03 00 5C 13 00 90 00 E3 [16:42:16]RAPDU: 90 00 [16:42:16]wFMCommunicate OK [16:42:16]wFMCommunicate request_size=4 [16:42:16]MH_SAM_APDU [16:42:16]CAPDU: 80 0D 03 02 [16:42:16]Write to MH i2c: E2 08 00 5D 13 80 0D 03 02 00 00 00 00 EB [16:42:16]Write i2c OK [16:42:16]MH_I2C_Read... [16:42:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:16]Read from MH i2c: E2 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: E2 0B 00 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: E2 0B 00 5D 13 00 80 98 A5 AC A2 5A 4C 0B 90 00 A8 [16:42:16]RAPDU: 80 98 A5 AC A2 5A 4C 0B 90 00 [16:42:16]wFMCommunicate OK [16:42:16]SAM_PROTO_SignData done [16:42:16]FM_MakeSignedData done [16:42:16]CreateOFDProtocolMessage [16:42:16]wFMCommunicate request_size=4 [16:42:16]MH_SAM_APDU [16:42:16]CAPDU: 80 11 00 00 [16:42:16]Write to MH i2c: E2 08 00 5E 13 80 11 00 00 00 00 00 00 EB [16:42:16]Write i2c OK [16:42:16]MH_I2C_Read... [16:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:16]Read from MH i2c: E2 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: E2 17 00 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: E2 17 00 5E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3D [16:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:42:16]wFMCommunicate OK [16:42:16]CreateOFDProtocolMessage done [16:42:16]OFDSenderStorePacket 111999 [16:42:16]StoreOFDPacket docnum=111999 [16:42:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FB A3 07 01 5F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A7 00 00 00 F4 03 04 00 6C AD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B5 01 00 35 04 06 00 35 52 62 E7 8F 86 80 98 A5 AC A2 5A 4C 0B [16:42:16]CheckFolder [16:42:16]dirname=/storage/ofd_packets [16:42:16]CheckFolder done [16:42:16]ProducePacketName [16:42:16]name=ofd_packets/00111999 [16:42:16]NVStorageSaveData ofd_packets/00111999 [16:42:16]File name is /storage/ofd_packets/00111999 [16:42:16]Write 301 bytes [16:42:16]NVStorageSaveData done [16:42:16]OFDSenderStorePacket done [16:42:16]KKMCreateOFDPacket done [16:42:16]NVStorageSaveData kkm_last_timestamp [16:42:16]File name is /storage/kkm_last_timestamp [16:42:16]Write 4 bytes [16:42:16]NVStorageSaveData done [16:42:16]ExternCall_PrintAddStr [16:42:16]wPrintStart [16:42:16]Write to MH i2c: 01 00 00 5F 13 72 [16:42:16]Write i2c OK [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: 01 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: 01 07 00 [16:42:16]MH_I2C_Read... [16:42:16]Read from MH i2c: 01 07 00 5F 13 00 00 00 00 00 FF 0F 87 [16:42:16]RasterBufferAndPrint [16:42:16]line 小褔械褌 N : (1)320647 [16:42:16]line 袠袧袧: 02508201610067 [16:42:16]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:42:16]line 袩袪袨袛袗袞袗 [16:42:16]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:42:16]line 孝芯胁邪褉: 2710124130 [16:42:16]line 袗懈-92-袣-5 [16:42:16]line 7.540 * 66.40 [16:42:16]line = 500.66 [16:42:16]line 袧袛小 12% 袧小袩 1% [16:42:16]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:42:16]line 袨袣袪校袚袥袝袧袠袝: -0.66 [16:42:16]line 袠孝袨袚袨: 500.00 [16:42:16]line 袙薪械褋械薪芯: 500.00 [16:42:16]line 小袛袗效袗: 0.00 [16:42:16]line 袧小袩 1% : 4.43 [16:42:16]line 袧袛小 12% : 53.17 [16:42:16]line 袧邪谢懈褔薪褘屑懈: 500.00 [16:42:16]line 袘械蟹薪邪谢.: 0.00 [16:42:16]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:42:16]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:42:16]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:42:16]line 效械泻 167 21.06.2024 16:42 [16:42:16]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:42:17]line 袟袧袦: 0300000198 [16:42:17]line 袪袧袦: 0000000000092771 [16:42:17]line 袙械褉褋懈褟 袣袣袦: 001 [16:42:17]line 肖袦: 0000000000875083 [16:42:17]line 肖袛: 111999 [16:42:17]line 肖袩袛: 58627962933126 [16:42:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T164220&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111999&fm=58627962933126&tin=02508201610067®Number=0000000000092771&sum=50000 [16:42:17]OFD Sender: Processing packet 111999 [packets to send 38, broken 37] [16:42:17]ProducePacketName [16:42:17]name=ofd_packets/00111999 [16:42:17]OFD Sender: To server: 嚂鰌G, [16:42:17]CommunicateWithHost lk.salyk.kg:30040 [16:42:17]ConnectInit lk.salyk.kg [16:42:17]written 0, free lines is 4095 [16:42:17]Connected sock=10 [16:42:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FB A3 07 01 5F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 A7 00 00 00 F4 03 04 00 6C AD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B5 01 00 35 04 06 00 35 52 62 E7 8F 86 80 98 A5 AC A2 5A 4C 0B [16:42:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BB 15 47 00 54 6B 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 30 38 37 35 30 38 33 10 04 04 00 7F B5 01 00 F4 03 04 00 92 44 75 66 B6 04 01 00 00 A4 25 7F CF 72 63 ED 15 [16:42:17]CommunicateWithHost err = 0 [16:42:17]CheckOFDResponse [16:42:17]1017 (14) - 77093643461234 [16:42:17]1041 (16) - 0000000000875083 [16:42:17]1040 (4) - 111999 [16:42:17]1012 (4) - 21.06.2024 09:14 [16:42:17]1206 (1) - 0 [16:42:17]OFD Sender: Remove packet 111999 [16:42:17]ProducePacketName [16:42:17]name=ofd_packets/00111999 [16:42:17]NVStorageDeleteData [16:42:17]Write to MH i2c: 01 00 00 8A 13 9D [16:42:17]Write i2c OK [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: 01 [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: 01 07 00 [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: 01 07 00 8A 13 00 00 00 00 00 EA 0C 9A [16:42:17]RasterBufferAndPrint [16:42:17]line [16:42:17]line [16:42:17]line [16:42:17]line [16:42:17]line [16:42:17]written 0, free lines is 3312 [16:42:17]MH_Cut [16:42:17]Write to MH i2c: D1 01 00 91 13 01 76 [16:42:17]Write i2c OK [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: D1 [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: D1 01 00 [16:42:17]MH_I2C_Read... [16:42:17]Read from MH i2c: D1 01 00 91 13 00 75 [16:42:17]Write to MH i2c: 01 00 00 92 13 A5 [16:42:17]Write i2c OK [16:42:17]MH_I2C_Read... [16:42:18]OFD Sender: No OFD packet to send [16:42:18]*** Cut start [16:42:18]*** Partial cut [16:42:18]*** CUTSNS_PIN = 1 [16:42:18]*** CUTSNS_PIN = 0 [16:42:18]*** Brake cut motor [16:42:18]Read from MH i2c: 01 [16:42:18]MH_I2C_Read... [16:42:18]*** Stop cut motor [16:42:19]*** Cut end [16:42:19]Read from MH i2c: 01 07 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: 01 07 00 92 13 00 00 00 00 00 FF 0F BA [16:42:19]process_action close_receipt done [16:42:19]requested_data is exist [16:42:19]produce_requested_data [16:42:19]requested_item fm.sn is exist - process it [16:42:19]wFMCommunicate request_size=4 [16:42:19]MH_SAM_APDU [16:42:19]CAPDU: 80 11 00 00 [16:42:19]Write to MH i2c: E2 08 00 93 13 80 11 00 00 00 00 00 00 20 [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:19]Read from MH i2c: E2 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 17 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 17 00 93 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 72 [16:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:42:19]wFMCommunicate OK [16:42:19]requested_item fd.num is exist - process it [16:42:19]SAM_PROTO_GetFieldsCounters [16:42:19]wFMCommunicate request_size=4 [16:42:19]MH_SAM_APDU [16:42:19]CAPDU: 80 13 00 00 [16:42:19]Write to MH i2c: E2 08 00 94 13 80 13 00 00 00 00 00 00 23 [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:19]Read from MH i2c: E2 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 62 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 62 00 94 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [16:42:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:19]wFMCommunicate OK [16:42:19]SAM_PROTO_GetFieldsCounters done [16:42:19]requested_item shift.num is exist - process it [16:42:19]requested_item shift.opened is exist - process it [16:42:19]req_shift_opened [16:42:19]FM_GetShiftState [16:42:19]SAM_PROTO_GetShiftState [16:42:19]wFMCommunicate request_size=4 [16:42:19]MH_SAM_APDU [16:42:19]CAPDU: 80 13 01 00 [16:42:19]Write to MH i2c: E2 08 00 95 13 80 13 01 00 00 00 00 00 25 [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:19]Read from MH i2c: E2 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 0E 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 0E 00 95 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A2 [16:42:19]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:42:19]wFMCommunicate OK [16:42:19]SAM_PROTO_GetShiftState done [16:42:19]FM_GetShiftState done [16:42:19]req_shift_opened done [16:42:19]requested_item shift.open_date is exist - process it [16:42:19]req_shift_open_date [16:42:19]req_shift_open_date done [16:42:19]produce_requested_data done [16:42:19]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111999,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:42:19]process_action_free close_receipt [16:42:19]json_value_free [16:42:19]json_value_free done [16:42:19]process_json_proto returns [16:42:19]Send response to host [16:42:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111999,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:42:19]free response buf [16:42:19]execute_script done [16:42:19]execute_script returns [16:42:19]free content buf [16:42:19]Sock 9.Close socket [16:42:19]Sock 9.Thread stoped [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:11]accept exits with 7 [16:44:11]New connection [16:44:11]New thread 3066731876 created [16:44:11]Thread 3066875236 joined [16:44:11]Waiting for new connection... [16:44:11] Sock 7.Parse request [16:44:11]Sock 7.Check first char [16:44:11]Sock 7.First char is OK [16:44:11]request: POST /json_proto HTTP/1.0 [16:44:11]Method: POST [16:44:11]URL: /json_proto [16:44:11]Method is POST - this is cgi request [16:44:11]url: /json_proto [16:44:11]query_string will be loaded in cgi processing [16:44:11]execute_cgi json_proto POST (null) [16:44:11]execute_cgi path=json_proto method=POST [16:44:11]POST find Content-Length [16:44:11]Host: 172.17.59.68:8080 [16:44:11]Content-Length: 1200 [16:44:11]Content-Type: application/json [16:44:11] [16:44:11]POST finish read [16:44:11]Found Content-Length = 1200 [16:44:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320648\u000A21.06.2024 15:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54662\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:11]execute_script... [16:44:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320648\u000A21.06.2024 15:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54662\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:11]POST & json_proto [16:44:11]process_json_proto [16:44:11]json parsed OK: [16:44:11]protocol is kg_v1.0 [16:44:11]action value=print_text [16:44:11]process_action print_text [16:44:11]cmd_print_text [16:44:11]ExternCall_PrintAddStr [16:44:11]wPrintStart [16:44:11]Write to MH i2c: 01 00 00 96 13 A9 [16:44:11]Write i2c OK [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: 01 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: 01 07 00 [16:44:11]MH_I2C_Read... [16:44:11]Read from MH i2c: 01 07 00 96 13 00 00 00 00 00 FF 0F BE [16:44:11]RasterBufferAndPrint [16:44:11]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [16:44:11]line 袗袟小 65 [16:44:11]line 袩邪褉褌薪械褉 薪械褎褌褜 [16:44:11]line 02508201610067 [16:44:11]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [16:44:11]line 小褔械褌 N : (1)320648 [16:44:11]line 21.06.2024 15:11 [16:44:11]line 袩袪袨袛袗袞袗 [16:44:11]line 孝袪袣 (袦袪袣, 袚袧袣): 11 [16:44:11]line 袙懈写 袚小袦 : 2710124130 [16:44:11]line 袗懈-92-袣-5 [16:44:11]line 10.000 x 66.40 [16:44:11]line 袠孝袨袚: 664.00 [16:44:11]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [16:44:11]line 54662 [16:44:11]line ______________________ [16:44:11]line (锌芯写锌懈褋褜) [16:44:11]written 0, free lines is 4095 [16:44:12]Write to MH i2c: 01 00 00 AA 13 BD [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: 01 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: 01 07 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: 01 07 00 AA 13 00 00 00 00 00 11 0E E3 [16:44:12]RasterBufferAndPrint [16:44:12]line [16:44:12]line [16:44:12]line [16:44:12]line [16:44:12]line [16:44:12]written 0, free lines is 3602 [16:44:12]MH_Cut [16:44:12]Write to MH i2c: D1 01 00 B1 13 01 96 [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: D1 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: D1 01 00 [16:44:12]MH_I2C_Read... [16:44:12]Read from MH i2c: D1 01 00 B1 13 00 95 [16:44:12]Write to MH i2c: 01 00 00 B2 13 C5 [16:44:12]Write i2c OK [16:44:12]MH_I2C_Read... [16:44:12]*** Cut start [16:44:12]*** Partial cut [16:44:12]*** CUTSNS_PIN = 1 [16:44:12]*** CUTSNS_PIN = 0 [16:44:12]*** Brake cut motor [16:44:13]OFD Sender: No OFD packet to send [16:44:13]Read from MH i2c: 01 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: 01 07 00 [16:44:13]MH_I2C_Read... [16:44:13]*** Stop cut motor [16:44:13]*** Cut end [16:44:13]Read from MH i2c: 01 07 00 B2 13 00 00 00 00 00 FF 0F DA [16:44:13]process_action print_text done [16:44:13]requested_data is exist [16:44:13]produce_requested_data [16:44:13]requested_item fm.sn is exist - process it [16:44:13]wFMCommunicate request_size=4 [16:44:13]MH_SAM_APDU [16:44:13]CAPDU: 80 11 00 00 [16:44:13]Write to MH i2c: E2 08 00 B3 13 80 11 00 00 00 00 00 00 40 [16:44:13]Write i2c OK [16:44:13]MH_I2C_Read... [16:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:13]Read from MH i2c: E2 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: E2 17 00 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: E2 17 00 B3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [16:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:44:13]wFMCommunicate OK [16:44:13]requested_item fd.num is exist - process it [16:44:13]SAM_PROTO_GetFieldsCounters [16:44:13]wFMCommunicate request_size=4 [16:44:13]MH_SAM_APDU [16:44:13]CAPDU: 80 13 00 00 [16:44:13]Write to MH i2c: E2 08 00 B4 13 80 13 00 00 00 00 00 00 43 [16:44:13]Write i2c OK [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: E2 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: E2 62 00 [16:44:13]MH_I2C_Read... [16:44:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:13]Read from MH i2c: E2 62 00 B4 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [16:44:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:13]wFMCommunicate OK [16:44:13]SAM_PROTO_GetFieldsCounters done [16:44:13]requested_item shift.num is exist - process it [16:44:13]requested_item shift.opened is exist - process it [16:44:13]req_shift_opened [16:44:13]FM_GetShiftState [16:44:13]SAM_PROTO_GetShiftState [16:44:13]wFMCommunicate request_size=4 [16:44:13]MH_SAM_APDU [16:44:13]CAPDU: 80 13 01 00 [16:44:13]Write to MH i2c: E2 08 00 B5 13 80 13 01 00 00 00 00 00 45 [16:44:13]Write i2c OK [16:44:13]MH_I2C_Read... [16:44:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:13]Read from MH i2c: E2 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: E2 0E 00 [16:44:13]MH_I2C_Read... [16:44:13]Read from MH i2c: E2 0E 00 B5 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C2 [16:44:13]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:44:13]wFMCommunicate OK [16:44:13]SAM_PROTO_GetShiftState done [16:44:13]FM_GetShiftState done [16:44:13]req_shift_opened done [16:44:13]requested_item shift.open_date is exist - process it [16:44:13]req_shift_open_date [16:44:13]req_shift_open_date done [16:44:13]produce_requested_data done [16:44:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111999,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:44:13]process_action_free print_text [16:44:13]json_value_free [16:44:13]json_value_free done [16:44:13]process_json_proto returns [16:44:13]Send response to host [16:44:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111999,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:44:13]free response buf [16:44:13]execute_script done [16:44:13]execute_script returns [16:44:13]free content buf [16:44:13]Sock 7.Close socket [16:44:13]Sock 7.Thread stoped [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:09]accept exits with 10 [16:46:09]New connection [16:46:09]New thread 3066875236 created [16:46:09]Thread 3066731876 joined [16:46:09]Waiting for new connection... [16:46:09] Sock 10.Parse request [16:46:09]Sock 10.Check first char [16:46:09]Sock 10.First char is OK [16:46:09]request: POST /json_proto HTTP/1.0 [16:46:09]Method: POST [16:46:09]URL: /json_proto [16:46:09]Method is POST - this is cgi request [16:46:09]url: /json_proto [16:46:09]query_string will be loaded in cgi processing [16:46:09]execute_cgi json_proto POST (null) [16:46:09]execute_cgi path=json_proto method=POST [16:46:09]POST find Content-Length [16:46:09]Host: 172.17.59.68:8080 [16:46:09]Content-Length: 1200 [16:46:09]Content-Type: application/json [16:46:09] [16:46:09]POST finish read [16:46:09]Found Content-Length = 1200 [16:46:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320650\u000A21.06.2024 15:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54662\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:09]execute_script... [16:46:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320650\u000A21.06.2024 15:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54662\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:09]POST & json_proto [16:46:09]process_json_proto [16:46:09]json parsed OK: [16:46:09]protocol is kg_v1.0 [16:46:09]action value=print_text [16:46:09]process_action print_text [16:46:09]cmd_print_text [16:46:09]ExternCall_PrintAddStr [16:46:09]wPrintStart [16:46:09]Write to MH i2c: 01 00 00 B6 13 C9 [16:46:09]Write i2c OK [16:46:09]MH_I2C_Read... [16:46:09]Read from MH i2c: 01 [16:46:09]MH_I2C_Read... [16:46:09]Read from MH i2c: 01 07 00 [16:46:09]MH_I2C_Read... [16:46:09]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 FF 0F DE [16:46:09]RasterBufferAndPrint [16:46:09]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [16:46:09]line 袗袟小 65 [16:46:09]line 袩邪褉褌薪械褉 薪械褎褌褜 [16:46:09]line 02508201610067 [16:46:09]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [16:46:09]line 小褔械褌 N : (1)320650 [16:46:09]line 21.06.2024 15:13 [16:46:09]line 袩袪袨袛袗袞袗 [16:46:09]line 孝袪袣 (袦袪袣, 袚袧袣): 11 [16:46:09]line 袙懈写 袚小袦 : 2710124130 [16:46:09]line 袗懈-92-袣-5 [16:46:09]line 10.000 x 66.40 [16:46:09]line 袠孝袨袚: 664.00 [16:46:09]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [16:46:09]line 54662 [16:46:09]line ______________________ [16:46:09]line (锌芯写锌懈褋褜) [16:46:09]written 0, free lines is 4095 [16:46:09]Write to MH i2c: 01 00 00 CA 13 DD [16:46:09]Write i2c OK [16:46:09]MH_I2C_Read... [16:46:09]Read from MH i2c: 01 [16:46:09]MH_I2C_Read... [16:46:09]Read from MH i2c: 01 07 00 [16:46:09]MH_I2C_Read... [16:46:09]Read from MH i2c: 01 07 00 CA 13 00 00 00 00 00 10 0E 02 [16:46:09]RasterBufferAndPrint [16:46:09]line [16:46:09]line [16:46:09]line [16:46:09]line [16:46:09]line [16:46:09]written 0, free lines is 3601 [16:46:09]MH_Cut [16:46:09]Write to MH i2c: D1 01 00 D1 13 01 B6 [16:46:09]Write i2c OK [16:46:09]MH_I2C_Read... [16:46:09]Read from MH i2c: D1 [16:46:09]MH_I2C_Read... [16:46:09]Read from MH i2c: D1 01 00 [16:46:09]MH_I2C_Read... [16:46:09]Read from MH i2c: D1 01 00 D1 13 00 B5 [16:46:09]Write to MH i2c: 01 00 00 D2 13 E5 [16:46:09]Write i2c OK [16:46:09]MH_I2C_Read... [16:46:10]*** Cut start [16:46:10]*** Partial cut [16:46:10]*** CUTSNS_PIN = 1 [16:46:10]*** CUTSNS_PIN = 0 [16:46:10]*** Brake cut motor [16:46:11]Read from MH i2c: 01 [16:46:11]MH_I2C_Read... [16:46:11]*** Stop cut motor [16:46:11]*** Cut end [16:46:11]Read from MH i2c: 01 07 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: 01 07 00 D2 13 00 00 00 00 00 FF 0F FA [16:46:11]process_action print_text done [16:46:11]requested_data is exist [16:46:11]produce_requested_data [16:46:11]requested_item fm.sn is exist - process it [16:46:11]wFMCommunicate request_size=4 [16:46:11]MH_SAM_APDU [16:46:11]CAPDU: 80 11 00 00 [16:46:11]Write to MH i2c: E2 08 00 D3 13 80 11 00 00 00 00 00 00 60 [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:11]Read from MH i2c: E2 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 17 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 17 00 D3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B2 [16:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:46:11]wFMCommunicate OK [16:46:11]requested_item fd.num is exist - process it [16:46:11]SAM_PROTO_GetFieldsCounters [16:46:11]wFMCommunicate request_size=4 [16:46:11]MH_SAM_APDU [16:46:11]CAPDU: 80 13 00 00 [16:46:11]Write to MH i2c: E2 08 00 D4 13 80 13 00 00 00 00 00 00 63 [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:11]Read from MH i2c: E2 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 62 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 62 00 D4 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [16:46:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:11]wFMCommunicate OK [16:46:11]SAM_PROTO_GetFieldsCounters done [16:46:11]requested_item shift.num is exist - process it [16:46:11]requested_item shift.opened is exist - process it [16:46:11]req_shift_opened [16:46:11]FM_GetShiftState [16:46:11]SAM_PROTO_GetShiftState [16:46:11]wFMCommunicate request_size=4 [16:46:11]MH_SAM_APDU [16:46:11]CAPDU: 80 13 01 00 [16:46:11]Write to MH i2c: E2 08 00 D5 13 80 13 01 00 00 00 00 00 65 [16:46:11]Write i2c OK [16:46:11]MH_I2C_Read... [16:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:11]Read from MH i2c: E2 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 0E 00 [16:46:11]MH_I2C_Read... [16:46:11]Read from MH i2c: E2 0E 00 D5 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E2 [16:46:11]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:46:11]wFMCommunicate OK [16:46:11]SAM_PROTO_GetShiftState done [16:46:11]FM_GetShiftState done [16:46:11]req_shift_opened done [16:46:11]requested_item shift.open_date is exist - process it [16:46:11]req_shift_open_date [16:46:11]req_shift_open_date done [16:46:11]produce_requested_data done [16:46:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111999,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:46:11]process_action_free print_text [16:46:11]json_value_free [16:46:11]json_value_free done [16:46:11]process_json_proto returns [16:46:11]Send response to host [16:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111999,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:46:11]free response buf [16:46:11]execute_script done [16:46:11]execute_script returns [16:46:11]free content buf [16:46:11]Sock 10.Close socket [16:46:11]Sock 10.Thread stoped [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:00]accept exits with 7 [16:47:00]New connection [16:47:00]New thread 3066731876 created [16:47:00]Thread 3066875236 joined [16:47:00]Waiting for new connection... [16:47:00] Sock 7.Parse request [16:47:00]Sock 7.Check first char [16:47:00]Sock 7.First char is OK [16:47:00]request: POST /json_proto HTTP/1.0 [16:47:00]Method: POST [16:47:00]URL: /json_proto [16:47:00]Method is POST - this is cgi request [16:47:00]url: /json_proto [16:47:00]query_string will be loaded in cgi processing [16:47:00]execute_cgi json_proto POST (null) [16:47:00]execute_cgi path=json_proto method=POST [16:47:00]POST find Content-Length [16:47:00]Host: 172.17.59.68:8080 [16:47:00]Content-Length: 637 [16:47:00]Content-Type: application/json [16:47:00] [16:47:00]POST finish read [16:47:00]Found Content-Length = 637 [16:47:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:00]execute_script... [16:47: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)320651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:00]POST & json_proto [16:47:00]process_json_proto [16:47:00]json parsed OK: [16:47:00]protocol is kg_v1.0 [16:47:00]action value=close_receipt [16:47:00]process_action close_receipt [16:47:00]cmd_close_receipt [16:47:00]MH_GetDate [16:47:00]Write to MH i2c: F0 00 00 D6 13 D8 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: F0 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: F0 09 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: F0 09 00 D6 13 00 89 AE 75 66 BC EC 60 65 60 [16:47:00]GetLastDocTimeStamp 1718988140 [16:47:00]current date 1718988425 [16:47:00]FM_GetShiftState [16:47:00]SAM_PROTO_GetShiftState [16:47:00]wFMCommunicate request_size=4 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 13 01 00 [16:47:00]Write to MH i2c: E2 08 00 D7 13 80 13 01 00 00 00 00 00 67 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 0E 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 0E 00 D7 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E4 [16:47:00]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:47:00]wFMCommunicate OK [16:47:00]SAM_PROTO_GetShiftState done [16:47:00]FM_GetShiftState done [16:47:00]opened in 1718933695 [16:47:00]opened+sec_in_day 1719020095 [16:47:00]quantity*price = 72900 [16:47:00]sum+1 = 72901 [16:47:00]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 729.00 袧小袩 1% : 6.45 袧袛小 12% : 77.42 袧邪谢懈褔薪褘屑懈: 729.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 168 21.06.2024 16:47 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112000 肖袩袛: 151894820497216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T164705&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112000&fm=151894820497216&tin=02508201610067®Number=0000000000092771&sum=72900 [16:47:01]StoreToDocumentArchive [16:47:01]shift 390 fd 112000 [16:47:01]save to /storage/0390/doc_00112000 [16:47:01]save last doc name /storage/0390/doc_00112000 to /storage/kkm_last_doc_name [16:47:01]save OK [16:47:01]Clear old archive folders... [16:47:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:47:01]tlvbuf is 00353110 [16:47:01]SAM_PROTO_ClearQueue [16:47:01]wFMCommunicate request_size=4 [16:47:01]MH_SAM_APDU [16:47:01]CAPDU: 80 09 00 00 [16:47:01]Write to MH i2c: E2 08 00 E4 13 80 09 00 00 00 00 00 00 69 [16:47:01]Write i2c OK [16:47:01]MH_I2C_Read... [16:47:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:01]Read from MH i2c: E2 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 03 00 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 03 00 E4 13 00 90 00 6B [16:47:01]RAPDU: 90 00 [16:47:01]wFMCommunicate OK [16:47:01]SAM_PROTO_ClearQueue done [16:47:01]KKMCreateOFDPacket [16:47:01]OFDProtocolAddRootSTLVToBuf [16:47:01]FM_MakeSignedData [16:47:01]FM_MakeSignedData [16:47:01]SAM_PROTO_SignData [16:47:01]wFMCommunicate request_size=4 [16:47:01]MH_SAM_APDU [16:47:01]CAPDU: 80 0D 01 02 [16:47:01]Write to MH i2c: E2 08 00 E5 13 80 0D 01 02 00 00 00 00 71 [16:47:01]Write i2c OK [16:47:01]MH_I2C_Read... [16:47:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:01]Read from MH i2c: E2 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 03 00 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 03 00 E5 13 00 90 00 6C [16:47:01]RAPDU: 90 00 [16:47:01]wFMCommunicate OK [16:47:01]wFMCommunicate request_size=255 [16:47:01]MH_SAM_APDU [16:47:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 89 AE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B5 01 00 35 04 06 00 8A 25 C4 D1 [16:47:01]Write to MH i2c: E2 02 01 E6 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 89 AE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B5 01 00 35 04 06 00 8A 25 C4 D1 00 00 DC [16:47:01]Write i2c OK [16:47:01]MH_I2C_Read... [16:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:01]Read from MH i2c: E2 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 03 00 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 03 00 E6 13 00 90 00 6D [16:47:01]RAPDU: 90 00 [16:47:01]wFMCommunicate OK [16:47:01]wFMCommunicate request_size=7 [16:47:01]MH_SAM_APDU [16:47:01]CAPDU: 80 0D 02 02 02 A7 40 [16:47:01]Write to MH i2c: E2 0A 00 E7 13 80 0D 02 02 02 00 A7 40 00 00 5F [16:47:01]Write i2c OK [16:47:01]MH_I2C_Read... [16:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:01]Read from MH i2c: E2 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 03 00 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 03 00 E7 13 00 90 00 6E [16:47:01]RAPDU: 90 00 [16:47:01]wFMCommunicate OK [16:47:01]wFMCommunicate request_size=4 [16:47:01]MH_SAM_APDU [16:47:01]CAPDU: 80 0D 03 02 [16:47:01]Write to MH i2c: E2 08 00 E8 13 80 0D 03 02 00 00 00 00 76 [16:47:01]Write i2c OK [16:47:01]MH_I2C_Read... [16:47:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:01]Read from MH i2c: E2 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 0B 00 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 0B 00 E8 13 00 44 1F 6B D0 2C 62 49 5E 90 00 4A [16:47:01]RAPDU: 44 1F 6B D0 2C 62 49 5E 90 00 [16:47:01]wFMCommunicate OK [16:47:01]SAM_PROTO_SignData done [16:47:01]FM_MakeSignedData done [16:47:01]CreateOFDProtocolMessage [16:47:01]wFMCommunicate request_size=4 [16:47:01]MH_SAM_APDU [16:47:01]CAPDU: 80 11 00 00 [16:47:01]Write to MH i2c: E2 08 00 E9 13 80 11 00 00 00 00 00 00 76 [16:47:01]Write i2c OK [16:47:01]MH_I2C_Read... [16:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:01]Read from MH i2c: E2 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 17 00 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: E2 17 00 E9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C8 [16:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:47:01]wFMCommunicate OK [16:47:01]CreateOFDProtocolMessage done [16:47:01]OFDSenderStorePacket 112000 [16:47:01]StoreOFDPacket docnum=112000 [16:47:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 47 BF 04 01 58 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 89 AE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B5 01 00 35 04 06 00 8A 25 C4 D1 A7 40 44 1F 6B D0 2C 62 49 5E [16:47:01]CheckFolder [16:47:01]dirname=/storage/ofd_packets [16:47:01]CheckFolder done [16:47:01]ProducePacketName [16:47:01]name=ofd_packets/00112000 [16:47:01]NVStorageSaveData ofd_packets/00112000 [16:47:01]File name is /storage/ofd_packets/00112000 [16:47:01]Write 298 bytes [16:47:01]NVStorageSaveData done [16:47:01]OFDSenderStorePacket done [16:47:01]KKMCreateOFDPacket done [16:47:01]NVStorageSaveData kkm_last_timestamp [16:47:01]File name is /storage/kkm_last_timestamp [16:47:01]Write 4 bytes [16:47:01]NVStorageSaveData done [16:47:01]ExternCall_PrintAddStr [16:47:01]wPrintStart [16:47:01]Write to MH i2c: 01 00 00 EA 13 FD [16:47:01]Write i2c OK [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: 01 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: 01 07 00 [16:47:01]MH_I2C_Read... [16:47:01]Read from MH i2c: 01 07 00 EA 13 00 00 00 00 00 FF 0F 12 [16:47:01]RasterBufferAndPrint [16:47:01]line 小褔械褌 N : (1)320651 [16:47:01]line 袠袧袧: 02508201610067 [16:47:01]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:47:01]line 袩袪袨袛袗袞袗 [16:47:01]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [16:47:01]line 孝芯胁邪褉: 2710194210 [16:47:01]line 袛孝-袣-5 [16:47:01]line 10.000 * 72.90 [16:47:01]line = 729.00 [16:47:01]line 袧袛小 12% 袧小袩 1% [16:47:01]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:47:01]line 袠孝袨袚袨: 729.00 [16:47:01]line 袧小袩 1% : 6.45 [16:47:01]line 袧袛小 12% : 77.42 [16:47:01]line 袧邪谢懈褔薪褘屑懈: 729.00 [16:47:01]line 袘械蟹薪邪谢.: 0.00 [16:47:01]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:47:01]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:47:01]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:47:01]line 效械泻 168 21.06.2024 16:47 [16:47:01]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:47:01]line 袟袧袦: 0300000198 [16:47:01]line 袪袧袦: 0000000000092771 [16:47:01]line 袙械褉褋懈褟 袣袣袦: 001 [16:47:01]line 肖袦: 0000000000875083 [16:47:01]line 肖袛: 112000 [16:47:01]line 肖袩袛: 151894820497216 [16:47:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T164705&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112000&fm=151894820497216&tin=02508201610067®Number=0000000000092771&sum=72900 [16:47:02]OFD Sender: Processing packet 112000 [packets to send 38, broken 37] [16:47:02]ProducePacketName [16:47:02]name=ofd_packets/00112000 [16:47:02]OFD Sender: To server: 嚂鰌G, [16:47:02]CommunicateWithHost lk.salyk.kg:30040 [16:47:02]ConnectInit lk.salyk.kg [16:47:02]written 0, free lines is 4095 [16:47:02]Connected sock=10 [16:47:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 47 BF 04 01 58 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 89 AE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B5 01 00 35 04 06 00 8A 25 C4 D1 A7 40 44 1F 6B D0 2C 62 49 5E [16:47:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 22 CB 47 00 FC 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 30 38 37 35 30 38 33 10 04 04 00 80 B5 01 00 F4 03 04 00 AF 45 75 66 B6 04 01 00 00 95 83 73 CD E6 26 B2 8D [16:47:02]CommunicateWithHost err = 0 [16:47:02]CheckOFDResponse [16:47:02]1017 (14) - 77093643461234 [16:47:02]1041 (16) - 0000000000875083 [16:47:02]1040 (4) - 112000 [16:47:02]1012 (4) - 21.06.2024 09:19 [16:47:02]1206 (1) - 0 [16:47:02]OFD Sender: Remove packet 112000 [16:47:02]ProducePacketName [16:47:02]name=ofd_packets/00112000 [16:47:02]NVStorageDeleteData [16:47:02]Write to MH i2c: 01 00 00 12 14 26 [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: 01 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: 01 07 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: 01 07 00 12 14 00 00 00 00 00 0E 0D 48 [16:47:02]RasterBufferAndPrint [16:47:02]line [16:47:02]line [16:47:02]line [16:47:02]line [16:47:02]line [16:47:02]written 0, free lines is 3348 [16:47:02]MH_Cut [16:47:02]Write to MH i2c: D1 01 00 19 14 01 FF [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: D1 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: D1 01 00 [16:47:02]MH_I2C_Read... [16:47:02]Read from MH i2c: D1 01 00 19 14 00 FE [16:47:02]Write to MH i2c: 01 00 00 1A 14 2E [16:47:02]Write i2c OK [16:47:02]MH_I2C_Read... [16:47:02]OFD Sender: No OFD packet to send [16:47:03]*** Cut start [16:47:03]*** Partial cut [16:47:03]*** CUTSNS_PIN = 1 [16:47:03]*** CUTSNS_PIN = 0 [16:47:03]*** Brake cut motor [16:47:03]Read from MH i2c: 01 [16:47:03]MH_I2C_Read... [16:47:03]*** Stop cut motor [16:47:03]*** Cut end [16:47:03]Read from MH i2c: 01 07 00 [16:47:03]MH_I2C_Read... [16:47:03]Read from MH i2c: 01 07 00 1A 14 00 00 00 00 00 FF 0F 43 [16:47:03]process_action close_receipt done [16:47:03]requested_data is exist [16:47:03]produce_requested_data [16:47:03]requested_item fm.sn is exist - process it [16:47:03]wFMCommunicate request_size=4 [16:47:03]MH_SAM_APDU [16:47:03]CAPDU: 80 11 00 00 [16:47:03]Write to MH i2c: E2 08 00 1B 14 80 11 00 00 00 00 00 00 A9 [16:47:03]Write i2c OK [16:47:03]MH_I2C_Read... [16:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:03]Read from MH i2c: E2 [16:47:03]MH_I2C_Read... [16:47:03]Read from MH i2c: E2 17 00 [16:47:03]MH_I2C_Read... [16:47:03]Read from MH i2c: E2 17 00 1B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [16:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:47:03]wFMCommunicate OK [16:47:03]requested_item fd.num is exist - process it [16:47:03]SAM_PROTO_GetFieldsCounters [16:47:03]wFMCommunicate request_size=4 [16:47:03]MH_SAM_APDU [16:47:03]CAPDU: 80 13 00 00 [16:47:03]Write to MH i2c: E2 08 00 1C 14 80 13 00 00 00 00 00 00 AC [16:47:03]Write i2c OK [16:47:03]MH_I2C_Read... [16:47:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:04]Read from MH i2c: E2 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 62 00 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 62 00 1C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 80 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [16:47:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 80 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:04]wFMCommunicate OK [16:47:04]SAM_PROTO_GetFieldsCounters done [16:47:04]requested_item shift.num is exist - process it [16:47:04]requested_item shift.opened is exist - process it [16:47:04]req_shift_opened [16:47:04]FM_GetShiftState [16:47:04]SAM_PROTO_GetShiftState [16:47:04]wFMCommunicate request_size=4 [16:47:04]MH_SAM_APDU [16:47:04]CAPDU: 80 13 01 00 [16:47:04]Write to MH i2c: E2 08 00 1D 14 80 13 01 00 00 00 00 00 AE [16:47:04]Write i2c OK [16:47:04]MH_I2C_Read... [16:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:04]Read from MH i2c: E2 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 0E 00 [16:47:04]MH_I2C_Read... [16:47:04]Read from MH i2c: E2 0E 00 1D 14 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 2B [16:47:04]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:47:04]wFMCommunicate OK [16:47:04]SAM_PROTO_GetShiftState done [16:47:04]FM_GetShiftState done [16:47:04]req_shift_opened done [16:47:04]requested_item shift.open_date is exist - process it [16:47:04]req_shift_open_date [16:47:04]req_shift_open_date done [16:47:04]produce_requested_data done [16:47:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112000,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:47:04]process_action_free close_receipt [16:47:04]json_value_free [16:47:04]json_value_free done [16:47:04]process_json_proto returns [16:47:04]Send response to host [16:47:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112000,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:47:04]free response buf [16:47:04]execute_script done [16:47:04]execute_script returns [16:47:04]free content buf [16:47:04]Sock 7.Close socket [16:47:04]Sock 7.Thread stoped [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]accept exits with 9 [16:48:07]New connection [16:48:07]New thread 3066875236 created [16:48:07]Thread 3066731876 joined [16:48:07]Waiting for new connection... [16:48:07] Sock 9.Parse request [16:48:07]Sock 9.Check first char [16:48:07]Sock 9.First char is OK [16:48:07]request: POST /json_proto HTTP/1.0 [16:48:07]Method: POST [16:48:07]URL: /json_proto [16:48:07]Method is POST - this is cgi request [16:48:07]url: /json_proto [16:48:07]query_string will be loaded in cgi processing [16:48:07]execute_cgi json_proto POST (null) [16:48:07]execute_cgi path=json_proto method=POST [16:48:07]POST find Content-Length [16:48:07]Host: 172.17.59.68:8080 [16:48:07]Content-Length: 682 [16:48:07]Content-Type: application/json [16:48:07] [16:48:07]POST finish read [16:48:07]Found Content-Length = 682 [16:48:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 25.610, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:07]execute_script... [16:48: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)320652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 25.610, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:07]POST & json_proto [16:48:07]process_json_proto [16:48:07]json parsed OK: [16:48:07]protocol is kg_v1.0 [16:48:07]action value=close_receipt [16:48:07]process_action close_receipt [16:48:07]cmd_close_receipt [16:48:07]MH_GetDate [16:48:07]Write to MH i2c: F0 00 00 1E 14 21 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: F0 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: F0 09 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: F0 09 00 1E 14 00 CC AE 75 66 BC EC 60 65 EC [16:48:07]GetLastDocTimeStamp 1718988425 [16:48:07]current date 1718988492 [16:48:07]FM_GetShiftState [16:48:07]SAM_PROTO_GetShiftState [16:48:07]wFMCommunicate request_size=4 [16:48:07]MH_SAM_APDU [16:48:07]CAPDU: 80 13 01 00 [16:48:07]Write to MH i2c: E2 08 00 1F 14 80 13 01 00 00 00 00 00 B0 [16:48:07]Write i2c OK [16:48:07]MH_I2C_Read... [16:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:07]Read from MH i2c: E2 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 0E 00 [16:48:07]MH_I2C_Read... [16:48:07]Read from MH i2c: E2 0E 00 1F 14 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 2D [16:48:07]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:48:07]wFMCommunicate OK [16:48:07]SAM_PROTO_GetShiftState done [16:48:07]FM_GetShiftState done [16:48:07]opened in 1718933695 [16:48:07]opened+sec_in_day 1719020095 [16:48:07]quantity*price = 170050 [16:48:07]sum+1 = 170051 [16:48:07]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.50 袠孝袨袚袨: 1700.00 袙薪械褋械薪芯: 1700.00 小袛袗效袗: 0.00 袧小袩 1% : 15.05 袧袛小 12% : 180.58 袧邪谢懈褔薪褘屑懈: 1700.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 169 21.06.2024 16:48 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112001 肖袩袛: 98703796860147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T164812&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112001&fm=98703796860147&tin=02508201610067®Number=0000000000092771&sum=170000 [16:48:08]StoreToDocumentArchive [16:48:08]shift 390 fd 112001 [16:48:08]save to /storage/0390/doc_00112001 [16:48:08]save last doc name /storage/0390/doc_00112001 to /storage/kkm_last_doc_name [16:48:08]save OK [16:48:08]Clear old archive folders... [16:48:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:08]tlvbuf is 004579C0 [16:48:08]SAM_PROTO_ClearQueue [16:48:08]wFMCommunicate request_size=4 [16:48:08]MH_SAM_APDU [16:48:08]CAPDU: 80 09 00 00 [16:48:08]Write to MH i2c: E2 08 00 2C 14 80 09 00 00 00 00 00 00 B2 [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:08]Read from MH i2c: E2 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 03 00 [16:48:08]MH_I2C_Read... [16:48:08]Read from MH i2c: E2 03 00 2C 14 00 90 00 B4 [16:48:08]RAPDU: 90 00 [16:48:08]wFMCommunicate OK [16:48:08]SAM_PROTO_ClearQueue done [16:48:08]KKMCreateOFDPacket [16:48:08]OFDProtocolAddRootSTLVToBuf [16:48:08]FM_MakeSignedData [16:48:08]FM_MakeSignedData [16:48:08]SAM_PROTO_SignData [16:48:08]wFMCommunicate request_size=4 [16:48:08]MH_SAM_APDU [16:48:08]CAPDU: 80 0D 01 02 [16:48:08]Write to MH i2c: E2 08 00 2D 14 80 0D 01 02 00 00 00 00 BA [16:48:08]Write i2c OK [16:48:08]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 2D 14 00 90 00 B5 [16:48:09]RAPDU: 90 00 [16:48:09]wFMCommunicate OK [16:48:09]wFMCommunicate request_size=255 [16:48:09]MH_SAM_APDU [16:48: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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 CC AE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B5 01 00 35 04 06 00 59 [16:48:09]Write to MH i2c: E2 02 01 2E 14 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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 CC AE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B5 01 00 35 04 06 00 59 00 00 36 [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 2E 14 00 90 00 B6 [16:48:09]RAPDU: 90 00 [16:48:09]wFMCommunicate OK [16:48:09]wFMCommunicate request_size=10 [16:48:09]MH_SAM_APDU [16:48:09]CAPDU: 80 0D 02 02 05 C5 44 BF F4 F3 [16:48:09]Write to MH i2c: E2 0D 00 2F 14 80 0D 02 02 05 00 C5 44 BF F4 F3 00 00 76 [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 03 00 2F 14 00 90 00 B7 [16:48:09]RAPDU: 90 00 [16:48:09]wFMCommunicate OK [16:48:09]wFMCommunicate request_size=4 [16:48:09]MH_SAM_APDU [16:48:09]CAPDU: 80 0D 03 02 [16:48:09]Write to MH i2c: E2 08 00 30 14 80 0D 03 02 00 00 00 00 BF [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 0B 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 0B 00 30 14 00 2C 06 E8 F3 0B 67 0B B1 90 00 FB [16:48:09]RAPDU: 2C 06 E8 F3 0B 67 0B B1 90 00 [16:48:09]wFMCommunicate OK [16:48:09]SAM_PROTO_SignData done [16:48:09]FM_MakeSignedData done [16:48:09]CreateOFDProtocolMessage [16:48:09]wFMCommunicate request_size=4 [16:48:09]MH_SAM_APDU [16:48:09]CAPDU: 80 11 00 00 [16:48:09]Write to MH i2c: E2 08 00 31 14 80 11 00 00 00 00 00 00 BF [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:09]Read from MH i2c: E2 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 17 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: E2 17 00 31 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 11 [16:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:48:09]wFMCommunicate OK [16:48:09]CreateOFDProtocolMessage done [16:48:09]OFDSenderStorePacket 112001 [16:48:09]StoreOFDPacket docnum=112001 [16:48:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 85 D8 07 01 02 E2 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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 CC AE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B5 01 00 35 04 06 00 59 C5 44 BF F4 F3 2C 06 E8 F3 0B 67 0B B1 [16:48:09]CheckFolder [16:48:09]dirname=/storage/ofd_packets [16:48:09]CheckFolder done [16:48:09]ProducePacketName [16:48:09]name=ofd_packets/00112001 [16:48:09]NVStorageSaveData ofd_packets/00112001 [16:48:09]File name is /storage/ofd_packets/00112001 [16:48:09]Write 301 bytes [16:48:09]NVStorageSaveData done [16:48:09]OFDSenderStorePacket done [16:48:09]KKMCreateOFDPacket done [16:48:09]NVStorageSaveData kkm_last_timestamp [16:48:09]File name is /storage/kkm_last_timestamp [16:48:09]Write 4 bytes [16:48:09]NVStorageSaveData done [16:48:09]ExternCall_PrintAddStr [16:48:09]wPrintStart [16:48:09]Write to MH i2c: 01 00 00 32 14 46 [16:48:09]Write i2c OK [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: 01 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: 01 07 00 [16:48:09]MH_I2C_Read... [16:48:09]Read from MH i2c: 01 07 00 32 14 00 00 00 00 00 FF 0F 5B [16:48:09]RasterBufferAndPrint [16:48:09]line 小褔械褌 N : (1)320652 [16:48:09]line 袠袧袧: 02508201610067 [16:48:09]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:48:09]line 袩袪袨袛袗袞袗 [16:48:09]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:48:09]line 孝芯胁邪褉: 2710124130 [16:48:09]line 袗懈-92-袣-5 [16:48:09]line 25.610 * 66.40 [16:48:09]line = 1700.50 [16:48:09]line 袧袛小 12% 袧小袩 1% [16:48:09]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:48:09]line 袨袣袪校袚袥袝袧袠袝: -0.50 [16:48:09]line 袠孝袨袚袨: 1700.00 [16:48:09]line 袙薪械褋械薪芯: 1700.00 [16:48:09]line 小袛袗效袗: 0.00 [16:48:09]line 袧小袩 1% : 15.05 [16:48:09]line 袧袛小 12% : 180.58 [16:48:09]line 袧邪谢懈褔薪褘屑懈: 1700.00 [16:48:09]line 袘械蟹薪邪谢.: 0.00 [16:48:09]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:48:09]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:48:09]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:48:09]line 效械泻 169 21.06.2024 16:48 [16:48:09]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:48:09]line 袟袧袦: 0300000198 [16:48:09]line 袪袧袦: 0000000000092771 [16:48:09]line 袙械褉褋懈褟 袣袣袦: 001 [16:48:09]line 肖袦: 0000000000875083 [16:48:09]line 肖袛: 112001 [16:48:09]line 肖袩袛: 98703796860147 [16:48:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T164812&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112001&fm=98703796860147&tin=02508201610067®Number=0000000000092771&sum=170000 [16:48:09]OFD Sender: Processing packet 112001 [packets to send 38, broken 37] [16:48:09]ProducePacketName [16:48:09]name=ofd_packets/00112001 [16:48:09]OFD Sender: To server: 嚂鰌G, [16:48:09]CommunicateWithHost lk.salyk.kg:30040 [16:48:09]ConnectInit lk.salyk.kg [16:48:09]written 0, free lines is 4095 [16:48:09]Connected sock=10 [16:48:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 85 D8 07 01 02 E2 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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 CC AE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B5 01 00 35 04 06 00 59 C5 44 BF F4 F3 2C 06 E8 F3 0B 67 0B B1 [16:48:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 76 84 47 00 EF 85 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 30 38 37 35 30 38 33 10 04 04 00 81 B5 01 00 F4 03 04 00 F2 45 75 66 B6 04 01 00 00 19 B0 1A 94 93 8E 6A 9A [16:48:10]CommunicateWithHost err = 0 [16:48:10]CheckOFDResponse [16:48:10]1017 (14) - 77093643461234 [16:48:10]1041 (16) - 0000000000875083 [16:48:10]1040 (4) - 112001 [16:48:10]1012 (4) - 21.06.2024 09:20 [16:48:10]1206 (1) - 0 [16:48:10]OFD Sender: Remove packet 112001 [16:48:10]ProducePacketName [16:48:10]name=ofd_packets/00112001 [16:48:10]NVStorageDeleteData [16:48:10]Write to MH i2c: 01 00 00 5D 14 71 [16:48:10]Write i2c OK [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: 01 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: 01 07 00 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: 01 07 00 5D 14 00 00 00 00 00 DC 0C 60 [16:48:10]RasterBufferAndPrint [16:48:10]line [16:48:10]line [16:48:10]line [16:48:10]line [16:48:10]line [16:48:10]written 0, free lines is 3299 [16:48:10]MH_Cut [16:48:10]Write to MH i2c: D1 01 00 64 14 01 4A [16:48:10]Write i2c OK [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: D1 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: D1 01 00 [16:48:10]MH_I2C_Read... [16:48:10]Read from MH i2c: D1 01 00 64 14 00 49 [16:48:10]Write to MH i2c: 01 00 00 65 14 79 [16:48:10]Write i2c OK [16:48:10]MH_I2C_Read... [16:48:10]OFD Sender: No OFD packet to send [16:48:10]*** Cut start [16:48:10]*** Partial cut [16:48:10]*** CUTSNS_PIN = 1 [16:48:11]*** CUTSNS_PIN = 0 [16:48:11]*** Brake cut motor [16:48:11]Read from MH i2c: 01 [16:48:11]MH_I2C_Read... [16:48:11]*** Stop cut motor [16:48:11]*** Cut end [16:48:11]Read from MH i2c: 01 07 00 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: 01 07 00 65 14 00 00 00 00 00 FF 0F 8E [16:48:11]process_action close_receipt done [16:48:11]requested_data is exist [16:48:11]produce_requested_data [16:48:11]requested_item fm.sn is exist - process it [16:48:11]wFMCommunicate request_size=4 [16:48:11]MH_SAM_APDU [16:48:11]CAPDU: 80 11 00 00 [16:48:11]Write to MH i2c: E2 08 00 66 14 80 11 00 00 00 00 00 00 F4 [16:48:11]Write i2c OK [16:48:11]MH_I2C_Read... [16:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:11]Read from MH i2c: E2 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 17 00 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 17 00 66 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 46 [16:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:48:11]wFMCommunicate OK [16:48:11]requested_item fd.num is exist - process it [16:48:11]SAM_PROTO_GetFieldsCounters [16:48:11]wFMCommunicate request_size=4 [16:48:11]MH_SAM_APDU [16:48:11]CAPDU: 80 13 00 00 [16:48:11]Write to MH i2c: E2 08 00 67 14 80 13 00 00 00 00 00 00 F7 [16:48:11]Write i2c OK [16:48:11]MH_I2C_Read... [16:48:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:11]Read from MH i2c: E2 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 62 00 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 62 00 67 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 81 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [16:48:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 81 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:11]wFMCommunicate OK [16:48:11]SAM_PROTO_GetFieldsCounters done [16:48:11]requested_item shift.num is exist - process it [16:48:11]requested_item shift.opened is exist - process it [16:48:11]req_shift_opened [16:48:11]FM_GetShiftState [16:48:11]SAM_PROTO_GetShiftState [16:48:11]wFMCommunicate request_size=4 [16:48:11]MH_SAM_APDU [16:48:11]CAPDU: 80 13 01 00 [16:48:11]Write to MH i2c: E2 08 00 68 14 80 13 01 00 00 00 00 00 F9 [16:48:11]Write i2c OK [16:48:11]MH_I2C_Read... [16:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:11]Read from MH i2c: E2 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 0E 00 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 0E 00 68 14 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 76 [16:48:11]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:48:11]wFMCommunicate OK [16:48:11]SAM_PROTO_GetShiftState done [16:48:11]FM_GetShiftState done [16:48:11]req_shift_opened done [16:48:11]requested_item shift.open_date is exist - process it [16:48:11]req_shift_open_date [16:48:11]req_shift_open_date done [16:48:11]produce_requested_data done [16:48:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112001,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:48:11]process_action_free close_receipt [16:48:11]json_value_free [16:48:11]json_value_free done [16:48:11]process_json_proto returns [16:48:11]Send response to host [16:48:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112001,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:48:11]free response buf [16:48:11]execute_script done [16:48:11]execute_script returns [16:48:11]free content buf [16:48:11]Sock 9.Close socket [16:48:11]Sock 9.Thread stoped [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:02]accept exits with 7 [16:53:02]New connection [16:53:02]New thread 3066731876 created [16:53:02]Thread 3066875236 joined [16:53:02]Waiting for new connection... [16:53:02] Sock 7.Parse request [16:53:02]Sock 7.Check first char [16:53:02]Sock 7.First char is OK [16:53:02]request: POST /json_proto HTTP/1.0 [16:53:02]Method: POST [16:53:02]URL: /json_proto [16:53:02]Method is POST - this is cgi request [16:53:02]url: /json_proto [16:53:02]query_string will be loaded in cgi processing [16:53:02]execute_cgi json_proto POST (null) [16:53:02]execute_cgi path=json_proto method=POST [16:53:02]POST find Content-Length [16:53:02]Host: 172.17.59.68:8080 [16:53:02]Content-Length: 677 [16:53:02]Content-Type: application/json [16:53:02] [16:53:02]POST finish read [16:53:02]Found Content-Length = 677 [16:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.970, "sum" : 330.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:02]execute_script... [16:53: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)320653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.970, "sum" : 330.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:02]POST & json_proto [16:53:02]process_json_proto [16:53:02]json parsed OK: [16:53:02]protocol is kg_v1.0 [16:53:02]action value=close_receipt [16:53:02]process_action close_receipt [16:53:02]cmd_close_receipt [16:53:02]MH_GetDate [16:53:02]Write to MH i2c: F0 00 00 69 14 6C [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: F0 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: F0 09 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: F0 09 00 69 14 00 F3 AF 75 66 BC EC 60 65 5F [16:53:02]GetLastDocTimeStamp 1718988492 [16:53:02]current date 1718988787 [16:53:02]FM_GetShiftState [16:53:02]SAM_PROTO_GetShiftState [16:53:02]wFMCommunicate request_size=4 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 13 01 00 [16:53:02]Write to MH i2c: E2 08 00 6A 14 80 13 01 00 00 00 00 00 FB [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:02]Read from MH i2c: E2 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 0E 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 0E 00 6A 14 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 78 [16:53:02]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:53:02]wFMCommunicate OK [16:53:02]SAM_PROTO_GetShiftState done [16:53:02]FM_GetShiftState done [16:53:02]opened in 1718933695 [16:53:02]opened+sec_in_day 1719020095 [16:53:02]quantity*price = 33000 [16:53:02]sum+1 = 33002 [16:53:02]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.01 袠孝袨袚袨: 330.00 袙薪械褋械薪芯: 330.00 小袛袗效袗: 0.00 袧小袩 1% : 2.92 袧袛小 12% : 35.04 袧邪谢懈褔薪褘屑懈: 330.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 170 21.06.2024 16:53 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112002 肖袩袛: 91566776764696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T165307&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112002&fm=91566776764696&tin=02508201610067®Number=0000000000092771&sum=33000 [16:53:03]StoreToDocumentArchive [16:53:03]shift 390 fd 112002 [16:53:03]save to /storage/0390/doc_00112002 [16:53:03]save last doc name /storage/0390/doc_00112002 to /storage/kkm_last_doc_name [16:53:03]save OK [16:53:03]Clear old archive folders... [16:53:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:03]tlvbuf is 004659E0 [16:53:03]SAM_PROTO_ClearQueue [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 09 00 00 [16:53:03]Write to MH i2c: E2 08 00 77 14 80 09 00 00 00 00 00 00 FD [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 03 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 03 00 77 14 00 90 00 FF [16:53:03]RAPDU: 90 00 [16:53:03]wFMCommunicate OK [16:53:03]SAM_PROTO_ClearQueue done [16:53:03]KKMCreateOFDPacket [16:53:03]OFDProtocolAddRootSTLVToBuf [16:53:03]FM_MakeSignedData [16:53:03]FM_MakeSignedData [16:53:03]SAM_PROTO_SignData [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 0D 01 02 [16:53:03]Write to MH i2c: E2 08 00 78 14 80 0D 01 02 00 00 00 00 05 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 03 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 03 00 78 14 00 90 00 00 [16:53:03]RAPDU: 90 00 [16:53:03]wFMCommunicate OK [16:53:03]wFMCommunicate request_size=255 [16:53:03]MH_SAM_APDU [16:53:03]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 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 F3 AF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B5 01 00 35 04 06 00 53 [16:53:03]Write to MH i2c: E2 02 01 79 14 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 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 F3 AF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B5 01 00 35 04 06 00 53 00 00 E9 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:04]Read from MH i2c: E2 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: E2 03 00 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: E2 03 00 79 14 00 90 00 01 [16:53:04]RAPDU: 90 00 [16:53:04]wFMCommunicate OK [16:53:04]wFMCommunicate request_size=10 [16:53:04]MH_SAM_APDU [16:53:04]CAPDU: 80 0D 02 02 05 47 8D 33 C9 18 [16:53:04]Write to MH i2c: E2 0D 00 7A 14 80 0D 02 02 05 00 47 8D 33 C9 18 00 00 FA [16:53:04]Write i2c OK [16:53:04]MH_I2C_Read... [16:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:04]Read from MH i2c: E2 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: E2 03 00 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: E2 03 00 7A 14 00 90 00 02 [16:53:04]RAPDU: 90 00 [16:53:04]wFMCommunicate OK [16:53:04]wFMCommunicate request_size=4 [16:53:04]MH_SAM_APDU [16:53:04]CAPDU: 80 0D 03 02 [16:53:04]Write to MH i2c: E2 08 00 7B 14 80 0D 03 02 00 00 00 00 0A [16:53:04]Write i2c OK [16:53:04]MH_I2C_Read... [16:53:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:04]Read from MH i2c: E2 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: E2 0B 00 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: E2 0B 00 7B 14 00 F7 3A 79 5E F1 45 4C 0F 90 00 A4 [16:53:04]RAPDU: F7 3A 79 5E F1 45 4C 0F 90 00 [16:53:04]wFMCommunicate OK [16:53:04]SAM_PROTO_SignData done [16:53:04]FM_MakeSignedData done [16:53:04]CreateOFDProtocolMessage [16:53:04]wFMCommunicate request_size=4 [16:53:04]MH_SAM_APDU [16:53:04]CAPDU: 80 11 00 00 [16:53:04]Write to MH i2c: E2 08 00 7C 14 80 11 00 00 00 00 00 00 0A [16:53:04]Write i2c OK [16:53:04]MH_I2C_Read... [16:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:04]Read from MH i2c: E2 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: E2 17 00 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: E2 17 00 7C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5C [16:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:53:04]wFMCommunicate OK [16:53:04]CreateOFDProtocolMessage done [16:53:04]OFDSenderStorePacket 112002 [16:53:04]StoreOFDPacket docnum=112002 [16:53:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D2 BF 07 01 DB F7 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 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 F3 AF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B5 01 00 35 04 06 00 53 47 8D 33 C9 18 F7 3A 79 5E F1 45 4C 0F [16:53:04]CheckFolder [16:53:04]dirname=/storage/ofd_packets [16:53:04]CheckFolder done [16:53:04]ProducePacketName [16:53:04]name=ofd_packets/00112002 [16:53:04]NVStorageSaveData ofd_packets/00112002 [16:53:04]File name is /storage/ofd_packets/00112002 [16:53:04]Write 301 bytes [16:53:04]NVStorageSaveData done [16:53:04]OFDSenderStorePacket done [16:53:04]KKMCreateOFDPacket done [16:53:04]NVStorageSaveData kkm_last_timestamp [16:53:04]File name is /storage/kkm_last_timestamp [16:53:04]Write 4 bytes [16:53:04]NVStorageSaveData done [16:53:04]ExternCall_PrintAddStr [16:53:04]wPrintStart [16:53:04]Write to MH i2c: 01 00 00 7D 14 91 [16:53:04]Write i2c OK [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: 01 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: 01 07 00 [16:53:04]MH_I2C_Read... [16:53:04]Read from MH i2c: 01 07 00 7D 14 00 00 00 00 00 FF 0F A6 [16:53:04]RasterBufferAndPrint [16:53:04]line 小褔械褌 N : (1)320653 [16:53:04]line 袠袧袧: 02508201610067 [16:53:04]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:53:04]line 袩袪袨袛袗袞袗 [16:53:04]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:53:04]line 孝芯胁邪褉: 2710124130 [16:53:04]line 袗懈-92-袣-5 [16:53:04]line 4.970 * 66.40 [16:53:04]line = 330.01 [16:53:04]line 袧袛小 12% 袧小袩 1% [16:53:04]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:53:04]line 袨袣袪校袚袥袝袧袠袝: -0.01 [16:53:04]line 袠孝袨袚袨: 330.00 [16:53:04]line 袙薪械褋械薪芯: 330.00 [16:53:04]line 小袛袗效袗: 0.00 [16:53:04]line 袧小袩 1% : 2.92 [16:53:04]line 袧袛小 12% : 35.04 [16:53:04]line 袧邪谢懈褔薪褘屑懈: 330.00 [16:53:04]line 袘械蟹薪邪谢.: 0.00 [16:53:04]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:53:04]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:53:04]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:53:04]line 效械泻 170 21.06.2024 16:53 [16:53:04]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:53:04]line 袟袧袦: 0300000198 [16:53:04]line 袪袧袦: 0000000000092771 [16:53:04]line 袙械褉褋懈褟 袣袣袦: 001 [16:53:04]line 肖袦: 0000000000875083 [16:53:04]line 肖袛: 112002 [16:53:04]line 肖袩袛: 91566776764696 [16:53:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T165307&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112002&fm=91566776764696&tin=02508201610067®Number=0000000000092771&sum=33000 [16:53:04]OFD Sender: Processing packet 112002 [packets to send 38, broken 37] [16:53:04]ProducePacketName [16:53:04]name=ofd_packets/00112002 [16:53:04]OFD Sender: To server: 嚂鰌G, [16:53:04]CommunicateWithHost lk.salyk.kg:30040 [16:53:04]ConnectInit lk.salyk.kg [16:53:04]written 0, free lines is 4095 [16:53:04]Connected sock=10 [16:53:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D2 BF 07 01 DB F7 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 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 F3 AF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B5 01 00 35 04 06 00 53 47 8D 33 C9 18 F7 3A 79 5E F1 45 4C 0F [16:53:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 60 6D 47 00 E9 51 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 30 38 37 35 30 38 33 10 04 04 00 82 B5 01 00 F4 03 04 00 19 47 75 66 B6 04 01 00 00 58 D8 FB E8 1F 39 D8 9A [16:53:04]CommunicateWithHost err = 0 [16:53:04]CheckOFDResponse [16:53:04]1017 (14) - 77093643461234 [16:53:04]1041 (16) - 0000000000875083 [16:53:04]1040 (4) - 112002 [16:53:04]1012 (4) - 21.06.2024 09:25 [16:53:04]1206 (1) - 0 [16:53:04]OFD Sender: Remove packet 112002 [16:53:04]ProducePacketName [16:53:04]name=ofd_packets/00112002 [16:53:04]NVStorageDeleteData [16:53:05]Write to MH i2c: 01 00 00 A8 14 BC [16:53:05]Write i2c OK [16:53:05]MH_I2C_Read... [16:53:05]Read from MH i2c: 01 [16:53:05]MH_I2C_Read... [16:53:05]Read from MH i2c: 01 07 00 [16:53:05]MH_I2C_Read... [16:53:05]Read from MH i2c: 01 07 00 A8 14 00 00 00 00 00 E1 0C B0 [16:53:05]RasterBufferAndPrint [16:53:05]line [16:53:05]line [16:53:05]line [16:53:05]line [16:53:05]line [16:53:05]written 0, free lines is 3303 [16:53:05]MH_Cut [16:53:05]Write to MH i2c: D1 01 00 AF 14 01 95 [16:53:05]Write i2c OK [16:53:05]MH_I2C_Read... [16:53:05]Read from MH i2c: D1 [16:53:05]MH_I2C_Read... [16:53:05]Read from MH i2c: D1 01 00 [16:53:05]MH_I2C_Read... [16:53:05]Read from MH i2c: D1 01 00 AF 14 00 94 [16:53:05]Write to MH i2c: 01 00 00 B0 14 C4 [16:53:05]Write i2c OK [16:53:05]MH_I2C_Read... [16:53:05]OFD Sender: No OFD packet to send [16:53:05]*** Cut start [16:53:05]*** Partial cut [16:53:05]*** CUTSNS_PIN = 1 [16:53:05]*** CUTSNS_PIN = 0 [16:53:06]*** Brake cut motor [16:53:06]Read from MH i2c: 01 [16:53:06]MH_I2C_Read... [16:53:06]*** Stop cut motor [16:53:06]*** Cut end [16:53:06]Read from MH i2c: 01 07 00 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: 01 07 00 B0 14 00 00 00 00 00 FF 0F D9 [16:53:06]process_action close_receipt done [16:53:06]requested_data is exist [16:53:06]produce_requested_data [16:53:06]requested_item fm.sn is exist - process it [16:53:06]wFMCommunicate request_size=4 [16:53:06]MH_SAM_APDU [16:53:06]CAPDU: 80 11 00 00 [16:53:06]Write to MH i2c: E2 08 00 B1 14 80 11 00 00 00 00 00 00 3F [16:53:06]Write i2c OK [16:53:06]MH_I2C_Read... [16:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:06]Read from MH i2c: E2 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 17 00 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 17 00 B1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 91 [16:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:53:06]wFMCommunicate OK [16:53:06]requested_item fd.num is exist - process it [16:53:06]SAM_PROTO_GetFieldsCounters [16:53:06]wFMCommunicate request_size=4 [16:53:06]MH_SAM_APDU [16:53:06]CAPDU: 80 13 00 00 [16:53:06]Write to MH i2c: E2 08 00 B2 14 80 13 00 00 00 00 00 00 42 [16:53:06]Write i2c OK [16:53:06]MH_I2C_Read... [16:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:06]Read from MH i2c: E2 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 62 00 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 62 00 B2 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 82 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [16:53:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 82 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:06]wFMCommunicate OK [16:53:06]SAM_PROTO_GetFieldsCounters done [16:53:06]requested_item shift.num is exist - process it [16:53:06]requested_item shift.opened is exist - process it [16:53:06]req_shift_opened [16:53:06]FM_GetShiftState [16:53:06]SAM_PROTO_GetShiftState [16:53:06]wFMCommunicate request_size=4 [16:53:06]MH_SAM_APDU [16:53:06]CAPDU: 80 13 01 00 [16:53:06]Write to MH i2c: E2 08 00 B3 14 80 13 01 00 00 00 00 00 44 [16:53:06]Write i2c OK [16:53:06]MH_I2C_Read... [16:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:06]Read from MH i2c: E2 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 0E 00 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 0E 00 B3 14 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C1 [16:53:06]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:53:06]wFMCommunicate OK [16:53:06]SAM_PROTO_GetShiftState done [16:53:06]FM_GetShiftState done [16:53:06]req_shift_opened done [16:53:06]requested_item shift.open_date is exist - process it [16:53:06]req_shift_open_date [16:53:06]req_shift_open_date done [16:53:06]produce_requested_data done [16:53:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112002,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:53:06]process_action_free close_receipt [16:53:06]json_value_free [16:53:06]json_value_free done [16:53:06]process_json_proto returns [16:53:06]Send response to host [16:53:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112002,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:53:06]free response buf [16:53:06]execute_script done [16:53:06]execute_script returns [16:53:06]free content buf [16:53:06]Sock 7.Close socket [16:53:06]Sock 7.Thread stoped [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]accept exits with 9 [16:59:00]New connection [16:59:00]New thread 3066875236 created [16:59:00]Thread 3066731876 joined [16:59:00]Waiting for new connection... [16:59:00] Sock 9.Parse request [16:59:00]Sock 9.Check first char [16:59:00]Sock 9.First char is OK [16:59:00]request: POST /json_proto HTTP/1.0 [16:59:00]Method: POST [16:59:00]URL: /json_proto [16:59:00]Method is POST - this is cgi request [16:59:00]url: /json_proto [16:59:00]query_string will be loaded in cgi processing [16:59:00]execute_cgi json_proto POST (null) [16:59:00]execute_cgi path=json_proto method=POST [16:59:00]POST find Content-Length [16:59:00]Host: 172.17.59.68:8080 [16:59:00]Content-Length: 677 [16:59:00]Content-Type: application/json [16:59:00] [16:59:00]POST finish read [16:59:00]Found Content-Length = 677 [16:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:00]execute_script... [16:59: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)320654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:00]POST & json_proto [16:59:00]process_json_proto [16:59:00]json parsed OK: [16:59:00]protocol is kg_v1.0 [16:59:00]action value=close_receipt [16:59:00]process_action close_receipt [16:59:00]cmd_close_receipt [16:59:00]MH_GetDate [16:59:00]Write to MH i2c: F0 00 00 B4 14 B7 [16:59:00]Write i2c OK [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: F0 [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: F0 09 00 [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: F0 09 00 B4 14 00 59 B1 75 66 BC EC 60 65 12 [16:59:00]GetLastDocTimeStamp 1718988787 [16:59:00]current date 1718989145 [16:59:00]FM_GetShiftState [16:59:00]SAM_PROTO_GetShiftState [16:59:00]wFMCommunicate request_size=4 [16:59:00]MH_SAM_APDU [16:59:00]CAPDU: 80 13 01 00 [16:59:00]Write to MH i2c: E2 08 00 B5 14 80 13 01 00 00 00 00 00 46 [16:59:00]Write i2c OK [16:59:00]MH_I2C_Read... [16:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:00]Read from MH i2c: E2 [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: E2 0E 00 [16:59:00]MH_I2C_Read... [16:59:00]Read from MH i2c: E2 0E 00 B5 14 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C3 [16:59:00]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:59:00]wFMCommunicate OK [16:59:00]SAM_PROTO_GetShiftState done [16:59:00]FM_GetShiftState done [16:59:00]opened in 1718933695 [16:59:00]opened+sec_in_day 1719020095 [16:59:00]quantity*price = 30012 [16:59:00]sum+1 = 30014 [16:59:00]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 171 21.06.2024 16:59 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112003 肖袩袛: 89690878643169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T165905&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112003&fm=89690878643169&tin=02508201610067®Number=0000000000092771&sum=30000 [16:59:01]StoreToDocumentArchive [16:59:01]shift 390 fd 112003 [16:59:01]save to /storage/0390/doc_00112003 [16:59:01]save last doc name /storage/0390/doc_00112003 to /storage/kkm_last_doc_name [16:59:01]save OK [16:59:01]Clear old archive folders... [16:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:01]tlvbuf is B6F45230 [16:59:01]SAM_PROTO_ClearQueue [16:59:01]wFMCommunicate request_size=4 [16:59:01]MH_SAM_APDU [16:59:01]CAPDU: 80 09 00 00 [16:59:01]Write to MH i2c: E2 08 00 C2 14 80 09 00 00 00 00 00 00 48 [16:59:01]Write i2c OK [16:59:01]MH_I2C_Read... [16:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:01]Read from MH i2c: E2 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 03 00 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 03 00 C2 14 00 90 00 4A [16:59:01]RAPDU: 90 00 [16:59:01]wFMCommunicate OK [16:59:01]SAM_PROTO_ClearQueue done [16:59:01]KKMCreateOFDPacket [16:59:01]OFDProtocolAddRootSTLVToBuf [16:59:01]FM_MakeSignedData [16:59:01]FM_MakeSignedData [16:59:01]SAM_PROTO_SignData [16:59:01]wFMCommunicate request_size=4 [16:59:01]MH_SAM_APDU [16:59:01]CAPDU: 80 0D 01 02 [16:59:01]Write to MH i2c: E2 08 00 C3 14 80 0D 01 02 00 00 00 00 50 [16:59:01]Write i2c OK [16:59:01]MH_I2C_Read... [16:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:01]Read from MH i2c: E2 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 03 00 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 03 00 C3 14 00 90 00 4B [16:59:01]RAPDU: 90 00 [16:59:01]wFMCommunicate OK [16:59:01]wFMCommunicate request_size=255 [16:59:01]MH_SAM_APDU [16:59: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 AB 00 00 00 F4 03 04 00 59 B1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B5 01 00 35 04 06 00 51 [16:59:01]Write to MH i2c: E2 02 01 C4 14 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 AB 00 00 00 F4 03 04 00 59 B1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B5 01 00 35 04 06 00 51 00 00 43 [16:59:01]Write i2c OK [16:59:01]MH_I2C_Read... [16:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:01]Read from MH i2c: E2 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 03 00 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 03 00 C4 14 00 90 00 4C [16:59:01]RAPDU: 90 00 [16:59:01]wFMCommunicate OK [16:59:01]wFMCommunicate request_size=10 [16:59:01]MH_SAM_APDU [16:59:01]CAPDU: 80 0D 02 02 05 92 C8 F6 0B E1 [16:59:01]Write to MH i2c: E2 0D 00 C5 14 80 0D 02 02 05 00 92 C8 F6 0B E1 00 00 99 [16:59:01]Write i2c OK [16:59:01]MH_I2C_Read... [16:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:01]Read from MH i2c: E2 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 03 00 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [16:59:01]RAPDU: 90 00 [16:59:01]wFMCommunicate OK [16:59:01]wFMCommunicate request_size=4 [16:59:01]MH_SAM_APDU [16:59:01]CAPDU: 80 0D 03 02 [16:59:01]Write to MH i2c: E2 08 00 C6 14 80 0D 03 02 00 00 00 00 55 [16:59:01]Write i2c OK [16:59:01]MH_I2C_Read... [16:59:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:01]Read from MH i2c: E2 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 0B 00 [16:59:01]MH_I2C_Read... [16:59:01]Read from MH i2c: E2 0B 00 C6 14 00 32 87 50 EA A0 EE 56 D6 90 00 03 [16:59:01]RAPDU: 32 87 50 EA A0 EE 56 D6 90 00 [16:59:01]wFMCommunicate OK [16:59:01]SAM_PROTO_SignData done [16:59:01]FM_MakeSignedData done [16:59:01]CreateOFDProtocolMessage [16:59:01]wFMCommunicate request_size=4 [16:59:01]MH_SAM_APDU [16:59:01]CAPDU: 80 11 00 00 [16:59:01]Write to MH i2c: E2 08 00 C7 14 80 11 00 00 00 00 00 00 55 [16:59:01]Write i2c OK [16:59:01]MH_I2C_Read... [16:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:02]Read from MH i2c: E2 [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: E2 17 00 [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: E2 17 00 C7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [16:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:59:02]wFMCommunicate OK [16:59:02]CreateOFDProtocolMessage done [16:59:02]OFDSenderStorePacket 112003 [16:59:02]StoreOFDPacket docnum=112003 [16:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F3 54 07 01 E3 1B 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 AB 00 00 00 F4 03 04 00 59 B1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B5 01 00 35 04 06 00 51 92 C8 F6 0B E1 32 87 50 EA A0 EE 56 D6 [16:59:02]CheckFolder [16:59:02]dirname=/storage/ofd_packets [16:59:02]CheckFolder done [16:59:02]ProducePacketName [16:59:02]name=ofd_packets/00112003 [16:59:02]NVStorageSaveData ofd_packets/00112003 [16:59:02]File name is /storage/ofd_packets/00112003 [16:59:02]Write 301 bytes [16:59:02]NVStorageSaveData done [16:59:02]OFDSenderStorePacket done [16:59:02]KKMCreateOFDPacket done [16:59:02]NVStorageSaveData kkm_last_timestamp [16:59:02]File name is /storage/kkm_last_timestamp [16:59:02]Write 4 bytes [16:59:02]NVStorageSaveData done [16:59:02]ExternCall_PrintAddStr [16:59:02]wPrintStart [16:59:02]Write to MH i2c: 01 00 00 C8 14 DC [16:59:02]Write i2c OK [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: 01 [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: 01 07 00 [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: 01 07 00 C8 14 00 00 00 00 00 FF 0F F1 [16:59:02]RasterBufferAndPrint [16:59:02]line 小褔械褌 N : (1)320654 [16:59:02]line 袠袧袧: 02508201610067 [16:59:02]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [16:59:02]line 袩袪袨袛袗袞袗 [16:59:02]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [16:59:02]line 孝芯胁邪褉: 2710124130 [16:59:02]line 袗懈-92-袣-5 [16:59:02]line 4.520 * 66.40 [16:59:02]line = 300.13 [16:59:02]line 袧袛小 12% 袧小袩 1% [16:59:02]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [16:59:02]line 袨袣袪校袚袥袝袧袠袝: -0.13 [16:59:02]line 袠孝袨袚袨: 300.00 [16:59:02]line 袙薪械褋械薪芯: 300.00 [16:59:02]line 小袛袗效袗: 0.00 [16:59:02]line 袧小袩 1% : 2.66 [16:59:02]line 袧袛小 12% : 31.87 [16:59:02]line 袧邪谢懈褔薪褘屑懈: 300.00 [16:59:02]line 袘械蟹薪邪谢.: 0.00 [16:59:02]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [16:59:02]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [16:59:02]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [16:59:02]line 效械泻 171 21.06.2024 16:59 [16:59:02]line 小屑械薪邪: 390 肖肖袛: 1.0 [16:59:02]line 袟袧袦: 0300000198 [16:59:02]line 袪袧袦: 0000000000092771 [16:59:02]line 袙械褉褋懈褟 袣袣袦: 001 [16:59:02]line 肖袦: 0000000000875083 [16:59:02]line 肖袛: 112003 [16:59:02]line 肖袩袛: 89690878643169 [16:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T165905&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112003&fm=89690878643169&tin=02508201610067®Number=0000000000092771&sum=30000 [16:59:02]OFD Sender: Processing packet 112003 [packets to send 38, broken 37] [16:59:02]ProducePacketName [16:59:02]name=ofd_packets/00112003 [16:59:02]OFD Sender: To server: 嚂鰌G, [16:59:02]CommunicateWithHost lk.salyk.kg:30040 [16:59:02]ConnectInit lk.salyk.kg [16:59:02]written 0, free lines is 4095 [16:59:02]Connected sock=10 [16:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F3 54 07 01 E3 1B 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 AB 00 00 00 F4 03 04 00 59 B1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B5 01 00 35 04 06 00 51 92 C8 F6 0B E1 32 87 50 EA A0 EE 56 D6 [16:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 44 EC 47 00 BC 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 30 38 37 35 30 38 33 10 04 04 00 83 B5 01 00 F4 03 04 00 7F 48 75 66 B6 04 01 00 00 8D D9 C4 29 C6 A2 07 D6 [16:59:02]CommunicateWithHost err = 0 [16:59:02]CheckOFDResponse [16:59:02]1017 (14) - 77093643461234 [16:59:02]1041 (16) - 0000000000875083 [16:59:02]1040 (4) - 112003 [16:59:02]1012 (4) - 21.06.2024 09:31 [16:59:02]1206 (1) - 0 [16:59:02]OFD Sender: Remove packet 112003 [16:59:02]ProducePacketName [16:59:02]name=ofd_packets/00112003 [16:59:02]NVStorageDeleteData [16:59:02]Write to MH i2c: 01 00 00 F3 14 07 [16:59:02]Write i2c OK [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: 01 [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: 01 07 00 [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: 01 07 00 F3 14 00 00 00 00 00 E4 0C FE [16:59:02]RasterBufferAndPrint [16:59:02]line [16:59:02]line [16:59:02]line [16:59:02]line [16:59:02]line [16:59:02]written 0, free lines is 3306 [16:59:02]MH_Cut [16:59:02]Write to MH i2c: D1 01 00 FA 14 01 E0 [16:59:02]Write i2c OK [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: D1 [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: D1 01 00 [16:59:02]MH_I2C_Read... [16:59:02]Read from MH i2c: D1 01 00 FA 14 00 DF [16:59:02]Write to MH i2c: 01 00 00 FB 14 0F [16:59:02]Write i2c OK [16:59:02]MH_I2C_Read... [16:59:03]OFD Sender: No OFD packet to send [16:59:03]*** Cut start [16:59:03]*** Partial cut [16:59:03]*** CUTSNS_PIN = 1 [16:59:03]*** CUTSNS_PIN = 0 [16:59:03]*** Brake cut motor [16:59:04]Read from MH i2c: 01 [16:59:04]MH_I2C_Read... [16:59:04]*** Stop cut motor [16:59:04]*** Cut end [16:59:04]Read from MH i2c: 01 07 00 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: 01 07 00 FB 14 00 00 00 00 00 FF 0F 24 [16:59:04]process_action close_receipt done [16:59:04]requested_data is exist [16:59:04]produce_requested_data [16:59:04]requested_item fm.sn is exist - process it [16:59:04]wFMCommunicate request_size=4 [16:59:04]MH_SAM_APDU [16:59:04]CAPDU: 80 11 00 00 [16:59:04]Write to MH i2c: E2 08 00 FC 14 80 11 00 00 00 00 00 00 8A [16:59:04]Write i2c OK [16:59:04]MH_I2C_Read... [16:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:04]Read from MH i2c: E2 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: E2 17 00 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: E2 17 00 FC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DC [16:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:59:04]wFMCommunicate OK [16:59:04]requested_item fd.num is exist - process it [16:59:04]SAM_PROTO_GetFieldsCounters [16:59:04]wFMCommunicate request_size=4 [16:59:04]MH_SAM_APDU [16:59:04]CAPDU: 80 13 00 00 [16:59:04]Write to MH i2c: E2 08 00 FD 14 80 13 00 00 00 00 00 00 8D [16:59:04]Write i2c OK [16:59:04]MH_I2C_Read... [16:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:04]Read from MH i2c: E2 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: E2 62 00 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: E2 62 00 FD 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 83 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [16:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 83 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:04]wFMCommunicate OK [16:59:04]SAM_PROTO_GetFieldsCounters done [16:59:04]requested_item shift.num is exist - process it [16:59:04]requested_item shift.opened is exist - process it [16:59:04]req_shift_opened [16:59:04]FM_GetShiftState [16:59:04]SAM_PROTO_GetShiftState [16:59:04]wFMCommunicate request_size=4 [16:59:04]MH_SAM_APDU [16:59:04]CAPDU: 80 13 01 00 [16:59:04]Write to MH i2c: E2 08 00 FE 14 80 13 01 00 00 00 00 00 8F [16:59:04]Write i2c OK [16:59:04]MH_I2C_Read... [16:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:04]Read from MH i2c: E2 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: E2 0E 00 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: E2 0E 00 FE 14 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0C [16:59:04]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [16:59:04]wFMCommunicate OK [16:59:04]SAM_PROTO_GetShiftState done [16:59:04]FM_GetShiftState done [16:59:04]req_shift_opened done [16:59:04]requested_item shift.open_date is exist - process it [16:59:04]req_shift_open_date [16:59:04]req_shift_open_date done [16:59:04]produce_requested_data done [16:59:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112003,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [16:59:04]process_action_free close_receipt [16:59:04]json_value_free [16:59:04]json_value_free done [16:59:04]process_json_proto returns [16:59:04]Send response to host [16:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112003,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [16:59:04]free response buf [16:59:04]execute_script done [16:59:04]execute_script returns [16:59:04]free content buf [16:59:04]Sock 9.Close socket [16:59:04]Sock 9.Thread stoped [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:04]accept exits with 7 [17:01:04]New connection [17:01:04]New thread 3066731876 created [17:01:04]Thread 3066875236 joined [17:01:04]Waiting for new connection... [17:01:04] Sock 7.Parse request [17:01:04]Sock 7.Check first char [17:01:04]Sock 7.First char is OK [17:01:04]request: POST /json_proto HTTP/1.0 [17:01:04]Method: POST [17:01:04]URL: /json_proto [17:01:04]Method is POST - this is cgi request [17:01:04]url: /json_proto [17:01:04]query_string will be loaded in cgi processing [17:01:04]execute_cgi json_proto POST (null) [17:01:04]execute_cgi path=json_proto method=POST [17:01:04]POST find Content-Length [17:01:04]Host: 172.17.59.68:8080 [17:01:04]Content-Length: 682 [17:01:04]Content-Type: application/json [17:01:04] [17:01:04]POST finish read [17:01:04]Found Content-Length = 682 [17:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:04]execute_script... [17:01: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)320655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:04]POST & json_proto [17:01:04]process_json_proto [17:01:04]json parsed OK: [17:01:04]protocol is kg_v1.0 [17:01:04]action value=close_receipt [17:01:04]process_action close_receipt [17:01:04]cmd_close_receipt [17:01:04]MH_GetDate [17:01:04]Write to MH i2c: F0 00 00 FF 14 02 [17:01:04]Write i2c OK [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: F0 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: F0 09 00 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: F0 09 00 FF 14 00 D5 B1 75 66 BC EC 60 65 D9 [17:01:04]GetLastDocTimeStamp 1718989145 [17:01:04]current date 1718989269 [17:01:04]FM_GetShiftState [17:01:04]SAM_PROTO_GetShiftState [17:01:04]wFMCommunicate request_size=4 [17:01:04]MH_SAM_APDU [17:01:04]CAPDU: 80 13 01 00 [17:01:04]Write to MH i2c: E2 08 00 00 15 80 13 01 00 00 00 00 00 92 [17:01:04]Write i2c OK [17:01:04]MH_I2C_Read... [17:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:04]Read from MH i2c: E2 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 0E 00 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 0E 00 00 15 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0F [17:01:04]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:01:04]wFMCommunicate OK [17:01:04]SAM_PROTO_GetShiftState done [17:01:04]FM_GetShiftState done [17:01:04]opened in 1718933695 [17:01:04]opened+sec_in_day 1719020095 [17:01:04]quantity*price = 300061 [17:01:04]sum+1 = 300063 [17:01:04]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.62 袠孝袨袚袨: 3000.00 袙薪械褋械薪芯: 3000.00 小袛袗效袗: 0.00 袧小袩 1% : 26.55 袧袛小 12% : 318.65 袧邪谢懈褔薪褘屑懈: 3000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 172 21.06.2024 17:01 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112004 肖袩袛: 180550951366073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T170109&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112004&fm=180550951366073&tin=02508201610067®Number=0000000000092771&sum=300000 [17:01:05]StoreToDocumentArchive [17:01:05]shift 390 fd 112004 [17:01:05]save to /storage/0390/doc_00112004 [17:01:05]save last doc name /storage/0390/doc_00112004 to /storage/kkm_last_doc_name [17:01:05]save OK [17:01:05]Clear old archive folders... [17:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:05]tlvbuf is 00465A40 [17:01:05]SAM_PROTO_ClearQueue [17:01:05]wFMCommunicate request_size=4 [17:01:05]MH_SAM_APDU [17:01:05]CAPDU: 80 09 00 00 [17:01:05]Write to MH i2c: E2 08 00 0D 15 80 09 00 00 00 00 00 00 94 [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:05]Read from MH i2c: E2 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 03 00 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 03 00 0D 15 00 90 00 96 [17:01:05]RAPDU: 90 00 [17:01:05]wFMCommunicate OK [17:01:05]SAM_PROTO_ClearQueue done [17:01:05]KKMCreateOFDPacket [17:01:05]OFDProtocolAddRootSTLVToBuf [17:01:05]FM_MakeSignedData [17:01:05]FM_MakeSignedData [17:01:05]SAM_PROTO_SignData [17:01:05]wFMCommunicate request_size=4 [17:01:05]MH_SAM_APDU [17:01:05]CAPDU: 80 0D 01 02 [17:01:05]Write to MH i2c: E2 08 00 0E 15 80 0D 01 02 00 00 00 00 9C [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:05]Read from MH i2c: E2 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 03 00 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 03 00 0E 15 00 90 00 97 [17:01:05]RAPDU: 90 00 [17:01:05]wFMCommunicate OK [17:01:05]wFMCommunicate request_size=255 [17:01:05]MH_SAM_APDU [17:01: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 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 D5 B1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B5 01 00 35 04 06 00 A4 [17:01:05]Write to MH i2c: E2 02 01 0F 15 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 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 D5 B1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B5 01 00 35 04 06 00 A4 00 00 59 [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:05]Read from MH i2c: E2 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 03 00 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 03 00 0F 15 00 90 00 98 [17:01:05]RAPDU: 90 00 [17:01:05]wFMCommunicate OK [17:01:05]wFMCommunicate request_size=10 [17:01:05]MH_SAM_APDU [17:01:05]CAPDU: 80 0D 02 02 05 35 CB 51 ED B9 [17:01:05]Write to MH i2c: E2 0D 00 10 15 80 0D 02 02 05 00 35 CB 51 ED B9 00 00 A0 [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:05]Read from MH i2c: E2 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 03 00 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 03 00 10 15 00 90 00 99 [17:01:05]RAPDU: 90 00 [17:01:05]wFMCommunicate OK [17:01:05]wFMCommunicate request_size=4 [17:01:05]MH_SAM_APDU [17:01:05]CAPDU: 80 0D 03 02 [17:01:05]Write to MH i2c: E2 08 00 11 15 80 0D 03 02 00 00 00 00 A1 [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:05]Read from MH i2c: E2 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 0B 00 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 0B 00 11 15 00 9B EF BE 1F 69 02 6D B1 90 00 92 [17:01:05]RAPDU: 9B EF BE 1F 69 02 6D B1 90 00 [17:01:05]wFMCommunicate OK [17:01:05]SAM_PROTO_SignData done [17:01:05]FM_MakeSignedData done [17:01:05]CreateOFDProtocolMessage [17:01:05]wFMCommunicate request_size=4 [17:01:05]MH_SAM_APDU [17:01:05]CAPDU: 80 11 00 00 [17:01:05]Write to MH i2c: E2 08 00 12 15 80 11 00 00 00 00 00 00 A1 [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:05]Read from MH i2c: E2 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 17 00 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 17 00 12 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F3 [17:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:01:05]wFMCommunicate OK [17:01:05]CreateOFDProtocolMessage done [17:01:05]OFDSenderStorePacket 112004 [17:01:05]StoreOFDPacket docnum=112004 [17:01:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A0 D6 07 01 3F 5E 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 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 D5 B1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B5 01 00 35 04 06 00 A4 35 CB 51 ED B9 9B EF BE 1F 69 02 6D B1 [17:01:05]CheckFolder [17:01:05]dirname=/storage/ofd_packets [17:01:05]CheckFolder done [17:01:05]ProducePacketName [17:01:05]name=ofd_packets/00112004 [17:01:05]NVStorageSaveData ofd_packets/00112004 [17:01:05]File name is /storage/ofd_packets/00112004 [17:01:05]Write 301 bytes [17:01:05]NVStorageSaveData done [17:01:05]OFDSenderStorePacket done [17:01:05]KKMCreateOFDPacket done [17:01:05]NVStorageSaveData kkm_last_timestamp [17:01:05]File name is /storage/kkm_last_timestamp [17:01:05]Write 4 bytes [17:01:05]NVStorageSaveData done [17:01:05]ExternCall_PrintAddStr [17:01:05]wPrintStart [17:01:05]Write to MH i2c: 01 00 00 13 15 28 [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: 01 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: 01 07 00 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: 01 07 00 13 15 00 00 00 00 00 FF 0F 3D [17:01:05]RasterBufferAndPrint [17:01:05]line 小褔械褌 N : (1)320655 [17:01:05]line 袠袧袧: 02508201610067 [17:01:05]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:01:05]line 袩袪袨袛袗袞袗 [17:01:05]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:01:05]line 孝芯胁邪褉: 2710124130 [17:01:05]line 袗懈-92-袣-5 [17:01:05]line 45.190 * 66.40 [17:01:05]line = 3000.62 [17:01:05]line 袧袛小 12% 袧小袩 1% [17:01:05]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:01:05]line 袨袣袪校袚袥袝袧袠袝: -0.62 [17:01:05]line 袠孝袨袚袨: 3000.00 [17:01:05]line 袙薪械褋械薪芯: 3000.00 [17:01:05]line 小袛袗效袗: 0.00 [17:01:05]line 袧小袩 1% : 26.55 [17:01:05]line 袧袛小 12% : 318.65 [17:01:05]line 袧邪谢懈褔薪褘屑懈: 3000.00 [17:01:05]line 袘械蟹薪邪谢.: 0.00 [17:01:05]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:01:05]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:01:05]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:01:05]line 效械泻 172 21.06.2024 17:01 [17:01:05]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:01:05]line 袟袧袦: 0300000198 [17:01:05]line 袪袧袦: 0000000000092771 [17:01:05]line 袙械褉褋懈褟 袣袣袦: 001 [17:01:05]line 肖袦: 0000000000875083 [17:01:05]line 肖袛: 112004 [17:01:05]line 肖袩袛: 180550951366073 [17:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T170109&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112004&fm=180550951366073&tin=02508201610067®Number=0000000000092771&sum=300000 [17:01:06]OFD Sender: Processing packet 112004 [packets to send 38, broken 37] [17:01:06]ProducePacketName [17:01:06]name=ofd_packets/00112004 [17:01:06]OFD Sender: To server: 嚂鰌G, [17:01:06]CommunicateWithHost lk.salyk.kg:30040 [17:01:06]ConnectInit lk.salyk.kg [17:01:06]written 0, free lines is 4095 [17:01:06]Connected sock=10 [17:01:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A0 D6 07 01 3F 5E 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 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 D5 B1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B5 01 00 35 04 06 00 A4 35 CB 51 ED B9 9B EF BE 1F 69 02 6D B1 [17:01:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 18 1F 47 00 83 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 30 38 37 35 30 38 33 10 04 04 00 84 B5 01 00 F4 03 04 00 FB 48 75 66 B6 04 01 00 00 6A 4F 63 0C 86 59 06 4F [17:01:06]CommunicateWithHost err = 0 [17:01:06]CheckOFDResponse [17:01:06]1017 (14) - 77093643461234 [17:01:06]1041 (16) - 0000000000875083 [17:01:06]1040 (4) - 112004 [17:01:06]1012 (4) - 21.06.2024 09:33 [17:01:06]1206 (1) - 0 [17:01:06]OFD Sender: Remove packet 112004 [17:01:06]ProducePacketName [17:01:06]name=ofd_packets/00112004 [17:01:06]NVStorageDeleteData [17:01:06]Write to MH i2c: 01 00 00 3E 15 53 [17:01:06]Write i2c OK [17:01:06]MH_I2C_Read... [17:01:06]Read from MH i2c: 01 [17:01:06]MH_I2C_Read... [17:01:06]Read from MH i2c: 01 07 00 [17:01:06]MH_I2C_Read... [17:01:06]Read from MH i2c: 01 07 00 3E 15 00 00 00 00 00 DD 0C 43 [17:01:06]RasterBufferAndPrint [17:01:06]line [17:01:06]line [17:01:06]line [17:01:06]line [17:01:06]line [17:01:06]written 0, free lines is 3299 [17:01:06]MH_Cut [17:01:06]Write to MH i2c: D1 01 00 45 15 01 2C [17:01:06]Write i2c OK [17:01:06]MH_I2C_Read... [17:01:06]Read from MH i2c: D1 [17:01:06]MH_I2C_Read... [17:01:06]Read from MH i2c: D1 01 00 [17:01:06]MH_I2C_Read... [17:01:06]Read from MH i2c: D1 01 00 45 15 00 2B [17:01:06]Write to MH i2c: 01 00 00 46 15 5B [17:01:06]Write i2c OK [17:01:06]MH_I2C_Read... [17:01:07]OFD Sender: No OFD packet to send [17:01:07]*** Cut start [17:01:07]*** Partial cut [17:01:07]*** CUTSNS_PIN = 1 [17:01:07]*** CUTSNS_PIN = 0 [17:01:07]*** Brake cut motor [17:01:08]Read from MH i2c: 01 [17:01:08]MH_I2C_Read... [17:01:08]*** Stop cut motor [17:01:08]*** Cut end [17:01:08]Read from MH i2c: 01 07 00 [17:01:08]MH_I2C_Read... [17:01:08]Read from MH i2c: 01 07 00 46 15 00 00 00 00 00 FF 0F 70 [17:01:08]process_action close_receipt done [17:01:08]requested_data is exist [17:01:08]produce_requested_data [17:01:08]requested_item fm.sn is exist - process it [17:01:08]wFMCommunicate request_size=4 [17:01:08]MH_SAM_APDU [17:01:08]CAPDU: 80 11 00 00 [17:01:08]Write to MH i2c: E2 08 00 47 15 80 11 00 00 00 00 00 00 D6 [17:01:08]Write i2c OK [17:01:08]MH_I2C_Read... [17:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:08]Read from MH i2c: E2 [17:01:08]MH_I2C_Read... [17:01:08]Read from MH i2c: E2 17 00 [17:01:08]MH_I2C_Read... [17:01:08]Read from MH i2c: E2 17 00 47 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 28 [17:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:01:08]wFMCommunicate OK [17:01:08]requested_item fd.num is exist - process it [17:01:08]SAM_PROTO_GetFieldsCounters [17:01:08]wFMCommunicate request_size=4 [17:01:08]MH_SAM_APDU [17:01:08]CAPDU: 80 13 00 00 [17:01:08]Write to MH i2c: E2 08 00 48 15 80 13 00 00 00 00 00 00 D9 [17:01:08]Write i2c OK [17:01:08]MH_I2C_Read... [17:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:08]Read from MH i2c: E2 [17:01:08]MH_I2C_Read... [17:01:08]Read from MH i2c: E2 62 00 [17:01:08]MH_I2C_Read... [17:01:08]Read from MH i2c: E2 62 00 48 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 84 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [17:01:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 84 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:08]wFMCommunicate OK [17:01:08]SAM_PROTO_GetFieldsCounters done [17:01:08]requested_item shift.num is exist - process it [17:01:08]requested_item shift.opened is exist - process it [17:01:08]req_shift_opened [17:01:08]FM_GetShiftState [17:01:08]SAM_PROTO_GetShiftState [17:01:08]wFMCommunicate request_size=4 [17:01:08]MH_SAM_APDU [17:01:08]CAPDU: 80 13 01 00 [17:01:08]Write to MH i2c: E2 08 00 49 15 80 13 01 00 00 00 00 00 DB [17:01:08]Write i2c OK [17:01:08]MH_I2C_Read... [17:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:08]Read from MH i2c: E2 [17:01:08]MH_I2C_Read... [17:01:08]Read from MH i2c: E2 0E 00 [17:01:08]MH_I2C_Read... [17:01:08]Read from MH i2c: E2 0E 00 49 15 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 58 [17:01:08]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:01:08]wFMCommunicate OK [17:01:08]SAM_PROTO_GetShiftState done [17:01:08]FM_GetShiftState done [17:01:08]req_shift_opened done [17:01:08]requested_item shift.open_date is exist - process it [17:01:08]req_shift_open_date [17:01:08]req_shift_open_date done [17:01:08]produce_requested_data done [17:01:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112004,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:01:08]process_action_free close_receipt [17:01:08]json_value_free [17:01:08]json_value_free done [17:01:08]process_json_proto returns [17:01:08]Send response to host [17:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112004,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:01:08]free response buf [17:01:08]execute_script done [17:01:08]execute_script returns [17:01:08]free content buf [17:01:08]Sock 7.Close socket [17:01:08]Sock 7.Thread stoped [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:42]accept exits with 9 [17:01:42]New connection [17:01:42]New thread 3066875236 created [17:01:42]Thread 3066731876 joined [17:01:42]Waiting for new connection... [17:01:42] Sock 9.Parse request [17:01:42]Sock 9.Check first char [17:01:42]Sock 9.First char is OK [17:01:42]request: POST /json_proto HTTP/1.0 [17:01:42]Method: POST [17:01:42]URL: /json_proto [17:01:42]Method is POST - this is cgi request [17:01:42]url: /json_proto [17:01:42]query_string will be loaded in cgi processing [17:01:42]execute_cgi json_proto POST (null) [17:01:42]execute_cgi path=json_proto method=POST [17:01:42]POST find Content-Length [17:01:42]Host: 172.17.59.68:8080 [17:01:42]Content-Length: 677 [17:01:42]Content-Type: application/json [17:01:42] [17:01:42]POST finish read [17:01:42]Found Content-Length = 677 [17:01:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [17:01:42]execute_script... [17:01: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 : (1)320656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [17:01:42]POST & json_proto [17:01:42]process_json_proto [17:01:42]json parsed OK: [17:01:42]protocol is kg_v1.0 [17:01:42]action value=close_receipt [17:01:42]process_action close_receipt [17:01:42]cmd_close_receipt [17:01:42]MH_GetDate [17:01:42]Write to MH i2c: F0 00 00 4A 15 4E [17:01:42]Write i2c OK [17:01:42]MH_I2C_Read... [17:01:42]Read from MH i2c: F0 [17:01:42]MH_I2C_Read... [17:01:42]Read from MH i2c: F0 09 00 [17:01:42]MH_I2C_Read... [17:01:42]Read from MH i2c: F0 09 00 4A 15 00 FC B1 75 66 BC EC 60 65 4C [17:01:42]GetLastDocTimeStamp 1718989269 [17:01:42]current date 1718989308 [17:01:42]FM_GetShiftState [17:01:42]SAM_PROTO_GetShiftState [17:01:42]wFMCommunicate request_size=4 [17:01:42]MH_SAM_APDU [17:01:42]CAPDU: 80 13 01 00 [17:01:42]Write to MH i2c: E2 08 00 4B 15 80 13 01 00 00 00 00 00 DD [17:01:42]Write i2c OK [17:01:42]MH_I2C_Read... [17:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:42]Read from MH i2c: E2 [17:01:42]MH_I2C_Read... [17:01:42]Read from MH i2c: E2 0E 00 [17:01:42]MH_I2C_Read... [17:01:42]Read from MH i2c: E2 0E 00 4B 15 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 5A [17:01:42]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:01:42]wFMCommunicate OK [17:01:42]SAM_PROTO_GetShiftState done [17:01:42]FM_GetShiftState done [17:01:42]opened in 1718933695 [17:01:42]opened+sec_in_day 1719020095 [17:01:42]quantity*price = 60025 [17:01:42]sum+1 = 60027 [17:01:42]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.26 袠孝袨袚袨: 600.00 袙薪械褋械薪芯: 600.00 小袛袗效袗: 0.00 袧小袩 1% : 5.31 袧袛小 12% : 63.74 袧邪谢懈褔薪褘屑懈: 600.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 173 21.06.2024 17:01 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112005 肖袩袛: 182476800248359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T170148&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112005&fm=182476800248359&tin=02508201610067®Number=0000000000092771&sum=60000 [17:01:44]StoreToDocumentArchive [17:01:44]shift 390 fd 112005 [17:01:44]save to /storage/0390/doc_00112005 [17:01:44]save last doc name /storage/0390/doc_00112005 to /storage/kkm_last_doc_name [17:01:44]save OK [17:01:44]Clear old archive folders... [17:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:44]tlvbuf is 003411F0 [17:01:44]SAM_PROTO_ClearQueue [17:01:44]wFMCommunicate request_size=4 [17:01:44]MH_SAM_APDU [17:01:44]CAPDU: 80 09 00 00 [17:01:44]Write to MH i2c: E2 08 00 58 15 80 09 00 00 00 00 00 00 DF [17:01:44]Write i2c OK [17:01:44]MH_I2C_Read... [17:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:44]Read from MH i2c: E2 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 03 00 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 03 00 58 15 00 90 00 E1 [17:01:44]RAPDU: 90 00 [17:01:44]wFMCommunicate OK [17:01:44]SAM_PROTO_ClearQueue done [17:01:44]KKMCreateOFDPacket [17:01:44]OFDProtocolAddRootSTLVToBuf [17:01:44]FM_MakeSignedData [17:01:44]FM_MakeSignedData [17:01:44]SAM_PROTO_SignData [17:01:44]wFMCommunicate request_size=4 [17:01:44]MH_SAM_APDU [17:01:44]CAPDU: 80 0D 01 02 [17:01:44]Write to MH i2c: E2 08 00 59 15 80 0D 01 02 00 00 00 00 E7 [17:01:44]Write i2c OK [17:01:44]MH_I2C_Read... [17:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:44]Read from MH i2c: E2 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 03 00 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 03 00 59 15 00 90 00 E2 [17:01:44]RAPDU: 90 00 [17:01:44]wFMCommunicate OK [17:01:44]wFMCommunicate request_size=255 [17:01:44]MH_SAM_APDU [17:01: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 AD 00 00 00 F4 03 04 00 FC B1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B5 01 00 35 04 06 00 A5 [17:01:44]Write to MH i2c: E2 02 01 5A 15 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 AD 00 00 00 F4 03 04 00 FC B1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B5 01 00 35 04 06 00 A5 00 00 14 [17:01:44]Write i2c OK [17:01:44]MH_I2C_Read... [17:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:44]Read from MH i2c: E2 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 03 00 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 03 00 5A 15 00 90 00 E3 [17:01:44]RAPDU: 90 00 [17:01:44]wFMCommunicate OK [17:01:44]wFMCommunicate request_size=10 [17:01:44]MH_SAM_APDU [17:01:44]CAPDU: 80 0D 02 02 05 F6 30 DB CA 27 [17:01:44]Write to MH i2c: E2 0D 00 5B 15 80 0D 02 02 05 00 F6 30 DB CA 27 00 00 E6 [17:01:44]Write i2c OK [17:01:44]MH_I2C_Read... [17:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:44]Read from MH i2c: E2 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 03 00 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 03 00 5B 15 00 90 00 E4 [17:01:44]RAPDU: 90 00 [17:01:44]wFMCommunicate OK [17:01:44]wFMCommunicate request_size=4 [17:01:44]MH_SAM_APDU [17:01:44]CAPDU: 80 0D 03 02 [17:01:44]Write to MH i2c: E2 08 00 5C 15 80 0D 03 02 00 00 00 00 EC [17:01:44]Write i2c OK [17:01:44]MH_I2C_Read... [17:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:44]Read from MH i2c: E2 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 0B 00 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 0B 00 5C 15 00 30 23 58 76 5B EB 10 28 90 00 8C [17:01:44]RAPDU: 30 23 58 76 5B EB 10 28 90 00 [17:01:44]wFMCommunicate OK [17:01:44]SAM_PROTO_SignData done [17:01:44]FM_MakeSignedData done [17:01:44]CreateOFDProtocolMessage [17:01:44]wFMCommunicate request_size=4 [17:01:44]MH_SAM_APDU [17:01:44]CAPDU: 80 11 00 00 [17:01:44]Write to MH i2c: E2 08 00 5D 15 80 11 00 00 00 00 00 00 EC [17:01:44]Write i2c OK [17:01:44]MH_I2C_Read... [17:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:44]Read from MH i2c: E2 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 17 00 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: E2 17 00 5D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3E [17:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:01:44]wFMCommunicate OK [17:01:44]CreateOFDProtocolMessage done [17:01:44]OFDSenderStorePacket 112005 [17:01:44]StoreOFDPacket docnum=112005 [17:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DC 39 07 01 89 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 AD 00 00 00 F4 03 04 00 FC B1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B5 01 00 35 04 06 00 A5 F6 30 DB CA 27 30 23 58 76 5B EB 10 28 [17:01:44]CheckFolder [17:01:44]dirname=/storage/ofd_packets [17:01:44]CheckFolder done [17:01:44]ProducePacketName [17:01:44]name=ofd_packets/00112005 [17:01:44]NVStorageSaveData ofd_packets/00112005 [17:01:44]File name is /storage/ofd_packets/00112005 [17:01:44]Write 301 bytes [17:01:44]NVStorageSaveData done [17:01:44]OFDSenderStorePacket done [17:01:44]KKMCreateOFDPacket done [17:01:44]NVStorageSaveData kkm_last_timestamp [17:01:44]File name is /storage/kkm_last_timestamp [17:01:44]Write 4 bytes [17:01:44]NVStorageSaveData done [17:01:44]ExternCall_PrintAddStr [17:01:44]wPrintStart [17:01:44]Write to MH i2c: 01 00 00 5E 15 73 [17:01:44]Write i2c OK [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: 01 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: 01 07 00 [17:01:44]MH_I2C_Read... [17:01:44]Read from MH i2c: 01 07 00 5E 15 00 00 00 00 00 FF 0F 88 [17:01:44]RasterBufferAndPrint [17:01:44]line 小褔械褌 N : (1)320656 [17:01:44]line 袠袧袧: 02508201610067 [17:01:44]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:01:44]line 袩袪袨袛袗袞袗 [17:01:44]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:01:44]line 孝芯胁邪褉: 2710124130 [17:01:44]line 袗懈-92-袣-5 [17:01:44]line 9.040 * 66.40 [17:01:44]line = 600.26 [17:01:44]line 袧袛小 12% 袧小袩 1% [17:01:44]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:01:44]line 袨袣袪校袚袥袝袧袠袝: -0.26 [17:01:44]line 袠孝袨袚袨: 600.00 [17:01:44]line 袙薪械褋械薪芯: 600.00 [17:01:44]line 小袛袗效袗: 0.00 [17:01:44]line 袧小袩 1% : 5.31 [17:01:44]line 袧袛小 12% : 63.74 [17:01:44]line 袧邪谢懈褔薪褘屑懈: 600.00 [17:01:44]line 袘械蟹薪邪谢.: 0.00 [17:01:44]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:01:44]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:01:44]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:01:44]line 效械泻 173 21.06.2024 17:01 [17:01:44]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:01:44]line 袟袧袦: 0300000198 [17:01:44]line 袪袧袦: 0000000000092771 [17:01:44]line 袙械褉褋懈褟 袣袣袦: 001 [17:01:44]line 肖袦: 0000000000875083 [17:01:44]line 肖袛: 112005 [17:01:44]line 肖袩袛: 182476800248359 [17:01:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T170148&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112005&fm=182476800248359&tin=02508201610067®Number=0000000000092771&sum=60000 [17:01:44]OFD Sender: Processing packet 112005 [packets to send 38, broken 37] [17:01:44]ProducePacketName [17:01:44]name=ofd_packets/00112005 [17:01:44]OFD Sender: To server: 嚂鰌G, [17:01:44]CommunicateWithHost lk.salyk.kg:30040 [17:01:44]ConnectInit lk.salyk.kg [17:01:44]written 0, free lines is 4095 [17:01:45]Connected sock=10 [17:01:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DC 39 07 01 89 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 AD 00 00 00 F4 03 04 00 FC B1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B5 01 00 35 04 06 00 A5 F6 30 DB CA 27 30 23 58 76 5B EB 10 28 [17:01:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F8 81 47 00 8C F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B5 01 00 F4 03 04 00 21 49 75 66 B6 04 01 00 00 AC CB CD 06 5F 82 5B F0 [17:01:45]CommunicateWithHost err = 0 [17:01:45]CheckOFDResponse [17:01:45]1017 (14) - 77093643461234 [17:01:45]1041 (16) - 0000000000875083 [17:01:45]1040 (4) - 112005 [17:01:45]1012 (4) - 21.06.2024 09:34 [17:01:45]1206 (1) - 0 [17:01:45]OFD Sender: Remove packet 112005 [17:01:45]ProducePacketName [17:01:45]name=ofd_packets/00112005 [17:01:45]NVStorageDeleteData [17:01:45]Write to MH i2c: 01 00 00 89 15 9E [17:01:45]Write i2c OK [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: 01 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: 01 07 00 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: 01 07 00 89 15 00 00 00 00 00 D4 0C 85 [17:01:45]RasterBufferAndPrint [17:01:45]line [17:01:45]line [17:01:45]line [17:01:45]line [17:01:45]line [17:01:45]written 0, free lines is 3290 [17:01:45]MH_Cut [17:01:45]Write to MH i2c: D1 01 00 90 15 01 77 [17:01:45]Write i2c OK [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: D1 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: D1 01 00 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: D1 01 00 90 15 00 76 [17:01:45]Write to MH i2c: 01 00 00 91 15 A6 [17:01:45]Write i2c OK [17:01:45]MH_I2C_Read... [17:01:45]OFD Sender: No OFD packet to send [17:01:46]*** Cut start [17:01:46]*** Partial cut [17:01:46]*** CUTSNS_PIN = 1 [17:01:46]*** CUTSNS_PIN = 0 [17:01:46]*** Brake cut motor [17:01:46]Read from MH i2c: 01 [17:01:46]MH_I2C_Read... [17:01:46]*** Stop cut motor [17:01:46]*** Cut end [17:01:46]Read from MH i2c: 01 07 00 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: 01 07 00 91 15 00 00 00 00 00 FF 0F BB [17:01:46]process_action close_receipt done [17:01:46]requested_data is exist [17:01:46]produce_requested_data [17:01:46]requested_item fm.sn is exist - process it [17:01:46]wFMCommunicate request_size=4 [17:01:46]MH_SAM_APDU [17:01:46]CAPDU: 80 11 00 00 [17:01:46]Write to MH i2c: E2 08 00 92 15 80 11 00 00 00 00 00 00 21 [17:01:46]Write i2c OK [17:01:46]MH_I2C_Read... [17:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:46]Read from MH i2c: E2 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: E2 17 00 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: E2 17 00 92 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 73 [17:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:01:46]wFMCommunicate OK [17:01:46]requested_item fd.num is exist - process it [17:01:46]SAM_PROTO_GetFieldsCounters [17:01:46]wFMCommunicate request_size=4 [17:01:46]MH_SAM_APDU [17:01:46]CAPDU: 80 13 00 00 [17:01:46]Write to MH i2c: E2 08 00 93 15 80 13 00 00 00 00 00 00 24 [17:01:46]Write i2c OK [17:01:46]MH_I2C_Read... [17:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:46]Read from MH i2c: E2 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: E2 62 00 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: E2 62 00 93 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 85 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [17:01:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 85 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:46]wFMCommunicate OK [17:01:46]SAM_PROTO_GetFieldsCounters done [17:01:46]requested_item shift.num is exist - process it [17:01:46]requested_item shift.opened is exist - process it [17:01:46]req_shift_opened [17:01:46]FM_GetShiftState [17:01:46]SAM_PROTO_GetShiftState [17:01:46]wFMCommunicate request_size=4 [17:01:46]MH_SAM_APDU [17:01:46]CAPDU: 80 13 01 00 [17:01:46]Write to MH i2c: E2 08 00 94 15 80 13 01 00 00 00 00 00 26 [17:01:46]Write i2c OK [17:01:46]MH_I2C_Read... [17:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:46]Read from MH i2c: E2 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: E2 0E 00 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: E2 0E 00 94 15 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A3 [17:01:46]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:01:46]wFMCommunicate OK [17:01:46]SAM_PROTO_GetShiftState done [17:01:46]FM_GetShiftState done [17:01:46]req_shift_opened done [17:01:46]requested_item shift.open_date is exist - process it [17:01:46]req_shift_open_date [17:01:46]req_shift_open_date done [17:01:46]produce_requested_data done [17:01:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112005,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:01:46]process_action_free close_receipt [17:01:46]json_value_free [17:01:46]json_value_free done [17:01:46]process_json_proto returns [17:01:46]Send response to host [17:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112005,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:01:46]free response buf [17:01:46]execute_script done [17:01:46]execute_script returns [17:01:46]free content buf [17:01:46]Sock 9.Close socket [17:01:46]Sock 9.Thread stoped [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:44]accept exits with 7 [17:02:44]New connection [17:02:44]New thread 3066731876 created [17:02:44]Thread 3066875236 joined [17:02:44]Waiting for new connection... [17:02:44] Sock 7.Parse request [17:02:44]Sock 7.Check first char [17:02:44]Sock 7.First char is OK [17:02:44]request: POST /json_proto HTTP/1.0 [17:02:44]Method: POST [17:02:44]URL: /json_proto [17:02:44]Method is POST - this is cgi request [17:02:44]url: /json_proto [17:02:44]query_string will be loaded in cgi processing [17:02:44]execute_cgi json_proto POST (null) [17:02:44]execute_cgi path=json_proto method=POST [17:02:44]POST find Content-Length [17:02:44]Host: 172.17.59.68:8080 [17:02:44]Content-Length: 678 [17:02:44]Content-Type: application/json [17:02:44] [17:02:44]POST finish read [17:02:44]Found Content-Length = 678 [17:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [17:02:44]execute_script... [17:02: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)320657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [17:02:44]POST & json_proto [17:02:44]process_json_proto [17:02:44]json parsed OK: [17:02:44]protocol is kg_v1.0 [17:02:44]action value=close_receipt [17:02:44]process_action close_receipt [17:02:44]cmd_close_receipt [17:02:44]MH_GetDate [17:02:44]Write to MH i2c: F0 00 00 95 15 99 [17:02:44]Write i2c OK [17:02:44]MH_I2C_Read... [17:02:44]Read from MH i2c: F0 [17:02:44]MH_I2C_Read... [17:02:44]Read from MH i2c: F0 09 00 [17:02:44]MH_I2C_Read... [17:02:44]Read from MH i2c: F0 09 00 95 15 00 39 B2 75 66 BC EC 60 65 D5 [17:02:44]GetLastDocTimeStamp 1718989308 [17:02:44]current date 1718989369 [17:02:44]FM_GetShiftState [17:02:44]SAM_PROTO_GetShiftState [17:02:44]wFMCommunicate request_size=4 [17:02:44]MH_SAM_APDU [17:02:44]CAPDU: 80 13 01 00 [17:02:44]Write to MH i2c: E2 08 00 96 15 80 13 01 00 00 00 00 00 28 [17:02:44]Write i2c OK [17:02:44]MH_I2C_Read... [17:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:44]Read from MH i2c: E2 [17:02:44]MH_I2C_Read... [17:02:44]Read from MH i2c: E2 0E 00 [17:02:44]MH_I2C_Read... [17:02:44]Read from MH i2c: E2 0E 00 96 15 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A5 [17:02:44]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:02:44]wFMCommunicate OK [17:02:44]SAM_PROTO_GetShiftState done [17:02:44]FM_GetShiftState done [17:02:44]opened in 1718933695 [17:02:44]opened+sec_in_day 1719020095 [17:02:44]quantity*price = 70052 [17:02:44]sum+1 = 70053 [17:02:44]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.52 袠孝袨袚袨: 700.00 袙薪械褋械薪芯: 700.00 小袛袗效袗: 0.00 袧小袩 1% : 6.20 袧袛小 12% : 74.39 袧邪谢懈褔薪褘屑懈: 700.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 174 21.06.2024 17:02 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112006 肖袩袛: 53027223803106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T170249&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112006&fm=53027223803106&tin=02508201610067®Number=0000000000092771&sum=70000 [17:02:45]StoreToDocumentArchive [17:02:45]shift 390 fd 112006 [17:02:45]save to /storage/0390/doc_00112006 [17:02:45]save last doc name /storage/0390/doc_00112006 to /storage/kkm_last_doc_name [17:02:45]save OK [17:02:45]Clear old archive folders... [17:02:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:45]tlvbuf is 00465310 [17:02:45]SAM_PROTO_ClearQueue [17:02:45]wFMCommunicate request_size=4 [17:02:45]MH_SAM_APDU [17:02:45]CAPDU: 80 09 00 00 [17:02:45]Write to MH i2c: E2 08 00 A3 15 80 09 00 00 00 00 00 00 2A [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:45]Read from MH i2c: E2 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 A3 15 00 90 00 2C [17:02:45]RAPDU: 90 00 [17:02:45]wFMCommunicate OK [17:02:45]SAM_PROTO_ClearQueue done [17:02:45]KKMCreateOFDPacket [17:02:45]OFDProtocolAddRootSTLVToBuf [17:02:45]FM_MakeSignedData [17:02:45]FM_MakeSignedData [17:02:45]SAM_PROTO_SignData [17:02:45]wFMCommunicate request_size=4 [17:02:45]MH_SAM_APDU [17:02:45]CAPDU: 80 0D 01 02 [17:02:45]Write to MH i2c: E2 08 00 A4 15 80 0D 01 02 00 00 00 00 32 [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:45]Read from MH i2c: E2 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 A4 15 00 90 00 2D [17:02:45]RAPDU: 90 00 [17:02:45]wFMCommunicate OK [17:02:45]wFMCommunicate request_size=255 [17:02:45]MH_SAM_APDU [17:02: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 AE 00 00 00 F4 03 04 00 39 B2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B5 01 00 35 04 06 00 30 [17:02:45]Write to MH i2c: E2 02 01 A5 15 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 AE 00 00 00 F4 03 04 00 39 B2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B5 01 00 35 04 06 00 30 00 00 5F [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]OFD Sender: No OFD packet to send [17:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:45]Read from MH i2c: E2 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 [17:02:45]MH_I2C_Read... [17:02:45]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [17:02:45]RAPDU: 90 00 [17:02:45]wFMCommunicate OK [17:02:45]wFMCommunicate request_size=10 [17:02:45]MH_SAM_APDU [17:02:45]CAPDU: 80 0D 02 02 05 3A 5C D6 94 E2 [17:02:45]Write to MH i2c: E2 0D 00 A6 15 80 0D 02 02 05 00 3A 5C D6 94 E2 00 00 21 [17:02:45]Write i2c OK [17:02:45]MH_I2C_Read... [17:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [17:02:46]RAPDU: 90 00 [17:02:46]wFMCommunicate OK [17:02:46]wFMCommunicate request_size=4 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 0D 03 02 [17:02:46]Write to MH i2c: E2 08 00 A7 15 80 0D 03 02 00 00 00 00 37 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 0B 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 0B 00 A7 15 00 8E E9 B9 B1 D2 39 3D 64 90 00 C5 [17:02:46]RAPDU: 8E E9 B9 B1 D2 39 3D 64 90 00 [17:02:46]wFMCommunicate OK [17:02:46]SAM_PROTO_SignData done [17:02:46]FM_MakeSignedData done [17:02:46]CreateOFDProtocolMessage [17:02:46]wFMCommunicate request_size=4 [17:02:46]MH_SAM_APDU [17:02:46]CAPDU: 80 11 00 00 [17:02:46]Write to MH i2c: E2 08 00 A8 15 80 11 00 00 00 00 00 00 37 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:46]Read from MH i2c: E2 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 17 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: E2 17 00 A8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 89 [17:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:02:46]wFMCommunicate OK [17:02:46]CreateOFDProtocolMessage done [17:02:46]OFDSenderStorePacket 112006 [17:02:46]StoreOFDPacket docnum=112006 [17:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 A2 07 01 EF 9C 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 AE 00 00 00 F4 03 04 00 39 B2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B5 01 00 35 04 06 00 30 3A 5C D6 94 E2 8E E9 B9 B1 D2 39 3D 64 [17:02:46]CheckFolder [17:02:46]dirname=/storage/ofd_packets [17:02:46]CheckFolder done [17:02:46]ProducePacketName [17:02:46]name=ofd_packets/00112006 [17:02:46]NVStorageSaveData ofd_packets/00112006 [17:02:46]File name is /storage/ofd_packets/00112006 [17:02:46]Write 301 bytes [17:02:46]NVStorageSaveData done [17:02:46]OFDSenderStorePacket done [17:02:46]KKMCreateOFDPacket done [17:02:46]NVStorageSaveData kkm_last_timestamp [17:02:46]File name is /storage/kkm_last_timestamp [17:02:46]Write 4 bytes [17:02:46]NVStorageSaveData done [17:02:46]ExternCall_PrintAddStr [17:02:46]wPrintStart [17:02:46]Write to MH i2c: 01 00 00 A9 15 BE [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: 01 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: 01 07 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: 01 07 00 A9 15 00 00 00 00 00 FF 0F D3 [17:02:46]RasterBufferAndPrint [17:02:46]line 小褔械褌 N : (1)320657 [17:02:46]line 袠袧袧: 02508201610067 [17:02:46]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:02:46]line 袩袪袨袛袗袞袗 [17:02:46]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:02:46]line 孝芯胁邪褉: 2710124130 [17:02:46]line 袗懈-92-袣-5 [17:02:46]line 10.550 * 66.40 [17:02:46]line = 700.52 [17:02:46]line 袧袛小 12% 袧小袩 1% [17:02:46]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:02:46]line 袨袣袪校袚袥袝袧袠袝: -0.52 [17:02:46]line 袠孝袨袚袨: 700.00 [17:02:46]line 袙薪械褋械薪芯: 700.00 [17:02:46]line 小袛袗效袗: 0.00 [17:02:46]line 袧小袩 1% : 6.20 [17:02:46]line 袧袛小 12% : 74.39 [17:02:46]line 袧邪谢懈褔薪褘屑懈: 700.00 [17:02:46]line 袘械蟹薪邪谢.: 0.00 [17:02:46]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:02:46]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:02:46]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:02:46]line 效械泻 174 21.06.2024 17:02 [17:02:46]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:02:46]line 袟袧袦: 0300000198 [17:02:46]line 袪袧袦: 0000000000092771 [17:02:46]line 袙械褉褋懈褟 袣袣袦: 001 [17:02:46]line 肖袦: 0000000000875083 [17:02:46]line 肖袛: 112006 [17:02:46]line 肖袩袛: 53027223803106 [17:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T170249&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112006&fm=53027223803106&tin=02508201610067®Number=0000000000092771&sum=70000 [17:02:46]written 0, free lines is 4095 [17:02:46]OFD Sender: Processing packet 112006 [packets to send 38, broken 37] [17:02:46]ProducePacketName [17:02:46]name=ofd_packets/00112006 [17:02:46]OFD Sender: To server: 嚂鰌G, [17:02:46]CommunicateWithHost lk.salyk.kg:30040 [17:02:46]ConnectInit lk.salyk.kg [17:02:46]Connected sock=10 [17:02:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 A2 07 01 EF 9C 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 AE 00 00 00 F4 03 04 00 39 B2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B5 01 00 35 04 06 00 30 3A 5C D6 94 E2 8E E9 B9 B1 D2 39 3D 64 [17:02:46]Write to MH i2c: 01 00 00 D4 15 E9 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: 01 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: 01 07 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: 01 07 00 D4 15 00 00 00 00 00 D8 0C D4 [17:02:46]RasterBufferAndPrint [17:02:46]line [17:02:46]line [17:02:46]line [17:02:46]line [17:02:46]line [17:02:46]written 0, free lines is 3295 [17:02:46]MH_Cut [17:02:46]Write to MH i2c: D1 01 00 DB 15 01 C2 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: D1 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: D1 01 00 [17:02:46]MH_I2C_Read... [17:02:46]Read from MH i2c: D1 01 00 DB 15 00 C1 [17:02:46]Write to MH i2c: 01 00 00 DC 15 F1 [17:02:46]Write i2c OK [17:02:46]MH_I2C_Read... [17:02:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 88 58 47 00 30 CC 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 30 38 37 35 30 38 33 10 04 04 00 86 B5 01 00 F4 03 04 00 5F 49 75 66 B6 04 01 00 00 47 D2 DA 37 CD 94 91 51 [17:02:46]CommunicateWithHost err = 0 [17:02:46]CheckOFDResponse [17:02:46]1017 (14) - 77093643461234 [17:02:46]1041 (16) - 0000000000875083 [17:02:46]1040 (4) - 112006 [17:02:46]1012 (4) - 21.06.2024 09:35 [17:02:46]1206 (1) - 0 [17:02:46]OFD Sender: Remove packet 112006 [17:02:46]ProducePacketName [17:02:46]name=ofd_packets/00112006 [17:02:46]NVStorageDeleteData [17:02:47]OFD Sender: No OFD packet to send [17:02:47]*** Cut start [17:02:47]*** Partial cut [17:02:47]*** CUTSNS_PIN = 1 [17:02:47]*** CUTSNS_PIN = 0 [17:02:47]*** Brake cut motor [17:02:47]Read from MH i2c: 01 [17:02:47]MH_I2C_Read... [17:02:47]*** Stop cut motor [17:02:47]*** Cut end [17:02:47]Read from MH i2c: 01 07 00 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: 01 07 00 DC 15 00 00 00 00 00 FF 0F 06 [17:02:47]process_action close_receipt done [17:02:47]requested_data is exist [17:02:47]produce_requested_data [17:02:47]requested_item fm.sn is exist - process it [17:02:47]wFMCommunicate request_size=4 [17:02:47]MH_SAM_APDU [17:02:47]CAPDU: 80 11 00 00 [17:02:47]Write to MH i2c: E2 08 00 DD 15 80 11 00 00 00 00 00 00 6C [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:47]Read from MH i2c: E2 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: E2 17 00 [17:02:47]MH_I2C_Read... [17:02:47]Read from MH i2c: E2 17 00 DD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BE [17:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:02:47]wFMCommunicate OK [17:02:47]requested_item fd.num is exist - process it [17:02:47]SAM_PROTO_GetFieldsCounters [17:02:47]wFMCommunicate request_size=4 [17:02:47]MH_SAM_APDU [17:02:47]CAPDU: 80 13 00 00 [17:02:47]Write to MH i2c: E2 08 00 DE 15 80 13 00 00 00 00 00 00 6F [17:02:47]Write i2c OK [17:02:47]MH_I2C_Read... [17:02:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:48]Read from MH i2c: E2 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: E2 62 00 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: E2 62 00 DE 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 86 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [17:02:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 86 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:48]wFMCommunicate OK [17:02:48]SAM_PROTO_GetFieldsCounters done [17:02:48]requested_item shift.num is exist - process it [17:02:48]requested_item shift.opened is exist - process it [17:02:48]req_shift_opened [17:02:48]FM_GetShiftState [17:02:48]SAM_PROTO_GetShiftState [17:02:48]wFMCommunicate request_size=4 [17:02:48]MH_SAM_APDU [17:02:48]CAPDU: 80 13 01 00 [17:02:48]Write to MH i2c: E2 08 00 DF 15 80 13 01 00 00 00 00 00 71 [17:02:48]Write i2c OK [17:02:48]MH_I2C_Read... [17:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:48]Read from MH i2c: E2 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: E2 0E 00 [17:02:48]MH_I2C_Read... [17:02:48]Read from MH i2c: E2 0E 00 DF 15 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 EE [17:02:48]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:02:48]wFMCommunicate OK [17:02:48]SAM_PROTO_GetShiftState done [17:02:48]FM_GetShiftState done [17:02:48]req_shift_opened done [17:02:48]requested_item shift.open_date is exist - process it [17:02:48]req_shift_open_date [17:02:48]req_shift_open_date done [17:02:48]produce_requested_data done [17:02:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112006,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:02:48]process_action_free close_receipt [17:02:48]json_value_free [17:02:48]json_value_free done [17:02:48]process_json_proto returns [17:02:48]Send response to host [17:02:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112006,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:02:48]free response buf [17:02:48]execute_script done [17:02:48]execute_script returns [17:02:48]free content buf [17:02:48]Sock 7.Close socket [17:02:48]Sock 7.Thread stoped [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:06]accept exits with 9 [17:06:06]New connection [17:06:06]New thread 3066875236 created [17:06:06]Thread 3066731876 joined [17:06:06]Waiting for new connection... [17:06:06] Sock 9.Parse request [17:06:06]Sock 9.Check first char [17:06:06]Sock 9.First char is OK [17:06:06]request: POST /json_proto HTTP/1.0 [17:06:06]Method: POST [17:06:06]URL: /json_proto [17:06:06]Method is POST - this is cgi request [17:06:06]url: /json_proto [17:06:06]query_string will be loaded in cgi processing [17:06:06]execute_cgi json_proto POST (null) [17:06:06]execute_cgi path=json_proto method=POST [17:06:06]POST find Content-Length [17:06:06]Host: 172.17.59.68:8080 [17:06:06]Content-Length: 642 [17:06:06]Content-Type: application/json [17:06:06] [17:06:06]POST finish read [17:06:06]Found Content-Length = 642 [17:06:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 50.000, "sum" : 3320.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:06]execute_script... [17:06: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)320658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 50.000, "sum" : 3320.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:06]POST & json_proto [17:06:06]process_json_proto [17:06:06]json parsed OK: [17:06:06]protocol is kg_v1.0 [17:06:06]action value=close_receipt [17:06:06]process_action close_receipt [17:06:06]cmd_close_receipt [17:06:06]MH_GetDate [17:06:06]Write to MH i2c: F0 00 00 E0 15 E4 [17:06:06]Write i2c OK [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: F0 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: F0 09 00 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: F0 09 00 E0 15 00 03 B3 75 66 BC EC 60 65 EB [17:06:06]GetLastDocTimeStamp 1718989369 [17:06:06]current date 1718989571 [17:06:06]FM_GetShiftState [17:06:06]SAM_PROTO_GetShiftState [17:06:06]wFMCommunicate request_size=4 [17:06:06]MH_SAM_APDU [17:06:06]CAPDU: 80 13 01 00 [17:06:06]Write to MH i2c: E2 08 00 E1 15 80 13 01 00 00 00 00 00 73 [17:06:06]Write i2c OK [17:06:06]MH_I2C_Read... [17:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:06]Read from MH i2c: E2 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 0E 00 [17:06:06]MH_I2C_Read... [17:06:06]Read from MH i2c: E2 0E 00 E1 15 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F0 [17:06:06]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:06:06]wFMCommunicate OK [17:06:06]SAM_PROTO_GetShiftState done [17:06:06]FM_GetShiftState done [17:06:06]opened in 1718933695 [17:06:06]opened+sec_in_day 1719020095 [17:06:06]quantity*price = 332000 [17:06:06]sum+1 = 332001 [17:06:06]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 3320.00 袧小袩 1% : 29.38 袧袛小 12% : 352.57 袧邪谢懈褔薪褘屑懈: 3320.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 175 21.06.2024 17:06 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112007 肖袩袛: 225730559183985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T170611&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112007&fm=225730559183985&tin=02508201610067®Number=0000000000092771&sum=332000 [17:06:07]StoreToDocumentArchive [17:06:07]shift 390 fd 112007 [17:06:07]save to /storage/0390/doc_00112007 [17:06:07]save last doc name /storage/0390/doc_00112007 to /storage/kkm_last_doc_name [17:06:07]save OK [17:06:07]Clear old archive folders... [17:06:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:07]tlvbuf is 004658B0 [17:06:07]SAM_PROTO_ClearQueue [17:06:07]wFMCommunicate request_size=4 [17:06:07]MH_SAM_APDU [17:06:07]CAPDU: 80 09 00 00 [17:06:07]Write to MH i2c: E2 08 00 EE 15 80 09 00 00 00 00 00 00 75 [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 [17:06:07]MH_I2C_Read... [17:06:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:07]Read from MH i2c: E2 03 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 03 00 EE 15 00 90 00 77 [17:06:07]RAPDU: 90 00 [17:06:07]wFMCommunicate OK [17:06:07]SAM_PROTO_ClearQueue done [17:06:07]KKMCreateOFDPacket [17:06:07]OFDProtocolAddRootSTLVToBuf [17:06:07]FM_MakeSignedData [17:06:07]FM_MakeSignedData [17:06:07]SAM_PROTO_SignData [17:06:07]wFMCommunicate request_size=4 [17:06:07]MH_SAM_APDU [17:06:07]CAPDU: 80 0D 01 02 [17:06:07]Write to MH i2c: E2 08 00 EF 15 80 0D 01 02 00 00 00 00 7D [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:07]Read from MH i2c: E2 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 03 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 03 00 EF 15 00 90 00 78 [17:06:07]RAPDU: 90 00 [17:06:07]wFMCommunicate OK [17:06:07]wFMCommunicate request_size=255 [17:06:07]MH_SAM_APDU [17:06: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 50 C3 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E0 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 89 00 00 00 00 07 04 06 00 E0 10 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 03 B3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B5 01 00 35 04 06 00 CD [17:06:07]Write to MH i2c: E2 02 01 F0 15 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 50 C3 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E0 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 89 00 00 00 00 07 04 06 00 E0 10 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 03 B3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B5 01 00 35 04 06 00 CD 00 00 1A [17:06:07]OFD Sender: No OFD packet to send [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:07]Read from MH i2c: E2 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 03 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 03 00 F0 15 00 90 00 79 [17:06:07]RAPDU: 90 00 [17:06:07]wFMCommunicate OK [17:06:07]wFMCommunicate request_size=10 [17:06:07]MH_SAM_APDU [17:06:07]CAPDU: 80 0D 02 02 05 4C FD CB 8C 71 [17:06:07]Write to MH i2c: E2 0D 00 F1 15 80 0D 02 02 05 00 4C FD CB 8C 71 00 00 9B [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:07]Read from MH i2c: E2 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 03 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 03 00 F1 15 00 90 00 7A [17:06:07]RAPDU: 90 00 [17:06:07]wFMCommunicate OK [17:06:07]wFMCommunicate request_size=4 [17:06:07]MH_SAM_APDU [17:06:07]CAPDU: 80 0D 03 02 [17:06:07]Write to MH i2c: E2 08 00 F2 15 80 0D 03 02 00 00 00 00 82 [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:07]Read from MH i2c: E2 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 0B 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 0B 00 F2 15 00 C7 6C 66 BE EC 42 35 FC 90 00 39 [17:06:07]RAPDU: C7 6C 66 BE EC 42 35 FC 90 00 [17:06:07]wFMCommunicate OK [17:06:07]SAM_PROTO_SignData done [17:06:07]FM_MakeSignedData done [17:06:07]CreateOFDProtocolMessage [17:06:07]wFMCommunicate request_size=4 [17:06:07]MH_SAM_APDU [17:06:07]CAPDU: 80 11 00 00 [17:06:07]Write to MH i2c: E2 08 00 F3 15 80 11 00 00 00 00 00 00 82 [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:07]Read from MH i2c: E2 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 17 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: E2 17 00 F3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D4 [17:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:06:07]wFMCommunicate OK [17:06:07]CreateOFDProtocolMessage done [17:06:07]OFDSenderStorePacket 112007 [17:06:07]StoreOFDPacket docnum=112007 [17:06:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 43 E4 07 01 8E 8A 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 50 C3 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E0 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 89 00 00 00 00 07 04 06 00 E0 10 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 03 B3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B5 01 00 35 04 06 00 CD 4C FD CB 8C 71 C7 6C 66 BE EC 42 35 FC [17:06:07]CheckFolder [17:06:07]dirname=/storage/ofd_packets [17:06:07]CheckFolder done [17:06:07]ProducePacketName [17:06:07]name=ofd_packets/00112007 [17:06:07]NVStorageSaveData ofd_packets/00112007 [17:06:07]File name is /storage/ofd_packets/00112007 [17:06:07]Write 301 bytes [17:06:07]NVStorageSaveData done [17:06:07]OFDSenderStorePacket done [17:06:07]KKMCreateOFDPacket done [17:06:07]NVStorageSaveData kkm_last_timestamp [17:06:07]File name is /storage/kkm_last_timestamp [17:06:07]Write 4 bytes [17:06:07]NVStorageSaveData done [17:06:07]ExternCall_PrintAddStr [17:06:07]wPrintStart [17:06:07]Write to MH i2c: 01 00 00 F4 15 09 [17:06:07]Write i2c OK [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: 01 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: 01 07 00 [17:06:07]MH_I2C_Read... [17:06:07]Read from MH i2c: 01 07 00 F4 15 00 00 00 00 00 FF 0F 1E [17:06:07]RasterBufferAndPrint [17:06:07]line 小褔械褌 N : (1)320658 [17:06:07]line 袠袧袧: 02508201610067 [17:06:07]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:06:07]line 袩袪袨袛袗袞袗 [17:06:07]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:06:07]line 孝芯胁邪褉: 2710124130 [17:06:07]line 袗懈-92-袣-5 [17:06:07]line 50.000 * 66.40 [17:06:07]line = 3320.00 [17:06:07]line 袧袛小 12% 袧小袩 1% [17:06:07]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:06:07]line 袠孝袨袚袨: 3320.00 [17:06:07]line 袧小袩 1% : 29.38 [17:06:07]line 袧袛小 12% : 352.57 [17:06:07]line 袧邪谢懈褔薪褘屑懈: 3320.00 [17:06:07]line 袘械蟹薪邪谢.: 0.00 [17:06:07]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:06:07]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:06:07]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:06:07]line 效械泻 175 21.06.2024 17:06 [17:06:07]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:06:07]line 袟袧袦: 0300000198 [17:06:07]line 袪袧袦: 0000000000092771 [17:06:07]line 袙械褉褋懈褟 袣袣袦: 001 [17:06:08]line 肖袦: 0000000000875083 [17:06:08]line 肖袛: 112007 [17:06:08]line 肖袩袛: 225730559183985 [17:06:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T170611&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112007&fm=225730559183985&tin=02508201610067®Number=0000000000092771&sum=332000 [17:06:08]OFD Sender: Processing packet 112007 [packets to send 38, broken 37] [17:06:08]ProducePacketName [17:06:08]name=ofd_packets/00112007 [17:06:08]OFD Sender: To server: 嚂鰌G, [17:06:08]CommunicateWithHost lk.salyk.kg:30040 [17:06:08]ConnectInit lk.salyk.kg [17:06:08]written 0, free lines is 4095 [17:06:08]Connected sock=10 [17:06:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 43 E4 07 01 8E 8A 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 50 C3 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E0 10 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 10 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 89 00 00 00 00 07 04 06 00 E0 10 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 03 B3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B5 01 00 35 04 06 00 CD 4C FD CB 8C 71 C7 6C 66 BE EC 42 35 FC [17:06:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A8 DE 47 00 17 42 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 30 38 37 35 30 38 33 10 04 04 00 87 B5 01 00 F4 03 04 00 29 4A 75 66 B6 04 01 00 00 6A 67 BC F0 6F 63 3D 40 [17:06:08]CommunicateWithHost err = 0 [17:06:08]CheckOFDResponse [17:06:08]1017 (14) - 77093643461234 [17:06:08]1041 (16) - 0000000000875083 [17:06:08]1040 (4) - 112007 [17:06:08]1012 (4) - 21.06.2024 09:38 [17:06:08]1206 (1) - 0 [17:06:08]OFD Sender: Remove packet 112007 [17:06:08]ProducePacketName [17:06:08]name=ofd_packets/00112007 [17:06:08]NVStorageDeleteData [17:06:08]Write to MH i2c: 01 00 00 1C 16 32 [17:06:08]Write i2c OK [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: 01 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: 01 07 00 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: 01 07 00 1C 16 00 00 00 00 00 09 0D 4F [17:06:08]RasterBufferAndPrint [17:06:08]line [17:06:08]line [17:06:08]line [17:06:08]line [17:06:08]line [17:06:08]written 0, free lines is 3343 [17:06:08]MH_Cut [17:06:08]Write to MH i2c: D1 01 00 23 16 01 0B [17:06:08]Write i2c OK [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: D1 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: D1 01 00 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: D1 01 00 23 16 00 0A [17:06:08]Write to MH i2c: 01 00 00 24 16 3A [17:06:08]Write i2c OK [17:06:08]MH_I2C_Read... [17:06:08]OFD Sender: No OFD packet to send [17:06:09]*** Cut start [17:06:09]*** Partial cut [17:06:09]*** CUTSNS_PIN = 1 [17:06:09]*** CUTSNS_PIN = 0 [17:06:09]*** Brake cut motor [17:06:09]Read from MH i2c: 01 [17:06:09]MH_I2C_Read... [17:06:09]*** Stop cut motor [17:06:09]*** Cut end [17:06:09]Read from MH i2c: 01 07 00 [17:06:09]MH_I2C_Read... [17:06:09]Read from MH i2c: 01 07 00 24 16 00 00 00 00 00 FF 0F 4F [17:06:09]process_action close_receipt done [17:06:09]requested_data is exist [17:06:09]produce_requested_data [17:06:09]requested_item fm.sn is exist - process it [17:06:09]wFMCommunicate request_size=4 [17:06:09]MH_SAM_APDU [17:06:09]CAPDU: 80 11 00 00 [17:06:09]Write to MH i2c: E2 08 00 25 16 80 11 00 00 00 00 00 00 B5 [17:06:09]Write i2c OK [17:06:09]MH_I2C_Read... [17:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:09]Read from MH i2c: E2 [17:06:09]MH_I2C_Read... [17:06:09]Read from MH i2c: E2 17 00 [17:06:09]MH_I2C_Read... [17:06:09]Read from MH i2c: E2 17 00 25 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 07 [17:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:06:09]wFMCommunicate OK [17:06:09]requested_item fd.num is exist - process it [17:06:09]SAM_PROTO_GetFieldsCounters [17:06:09]wFMCommunicate request_size=4 [17:06:09]MH_SAM_APDU [17:06:09]CAPDU: 80 13 00 00 [17:06:09]Write to MH i2c: E2 08 00 26 16 80 13 00 00 00 00 00 00 B8 [17:06:09]Write i2c OK [17:06:09]MH_I2C_Read... [17:06:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:10]Read from MH i2c: E2 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 62 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 62 00 26 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 87 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [17:06:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 87 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:10]wFMCommunicate OK [17:06:10]SAM_PROTO_GetFieldsCounters done [17:06:10]requested_item shift.num is exist - process it [17:06:10]requested_item shift.opened is exist - process it [17:06:10]req_shift_opened [17:06:10]FM_GetShiftState [17:06:10]SAM_PROTO_GetShiftState [17:06:10]wFMCommunicate request_size=4 [17:06:10]MH_SAM_APDU [17:06:10]CAPDU: 80 13 01 00 [17:06:10]Write to MH i2c: E2 08 00 27 16 80 13 01 00 00 00 00 00 BA [17:06:10]Write i2c OK [17:06:10]MH_I2C_Read... [17:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:10]Read from MH i2c: E2 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 0E 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 0E 00 27 16 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 37 [17:06:10]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:06:10]wFMCommunicate OK [17:06:10]SAM_PROTO_GetShiftState done [17:06:10]FM_GetShiftState done [17:06:10]req_shift_opened done [17:06:10]requested_item shift.open_date is exist - process it [17:06:10]req_shift_open_date [17:06:10]req_shift_open_date done [17:06:10]produce_requested_data done [17:06:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112007,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:06:10]process_action_free close_receipt [17:06:10]json_value_free [17:06:10]json_value_free done [17:06:10]process_json_proto returns [17:06:10]Send response to host [17:06:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112007,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:06:10]free response buf [17:06:10]execute_script done [17:06:10]execute_script returns [17:06:10]free content buf [17:06:10]Sock 9.Close socket [17:06:10]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:34]accept exits with 7 [17:07:34]New connection [17:07:34]New thread 3066731876 created [17:07:34]Thread 3066875236 joined [17:07:34]Waiting for new connection... [17:07:34] Sock 7.Parse request [17:07:34]Sock 7.Check first char [17:07:34]Sock 7.First char is OK [17:07:34]request: POST /json_proto HTTP/1.0 [17:07:34]Method: POST [17:07:34]URL: /json_proto [17:07:34]Method is POST - this is cgi request [17:07:34]url: /json_proto [17:07:34]query_string will be loaded in cgi processing [17:07:34]execute_cgi json_proto POST (null) [17:07:34]execute_cgi path=json_proto method=POST [17:07:34]POST find Content-Length [17:07:34]Host: 172.17.59.68:8080 [17:07:34]Content-Length: 682 [17:07:34]Content-Type: application/json [17:07:34] [17:07:34]POST finish read [17:07:34]Found Content-Length = 682 [17:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.280, "sum" : 1280.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1280.00, "total" : 1280.00, "payments": [ { "type": 0, "sum" : 1280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:34]execute_script... [17:07: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 : (1)320659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 19.280, "sum" : 1280.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1280.00, "total" : 1280.00, "payments": [ { "type": 0, "sum" : 1280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:34]POST & json_proto [17:07:34]process_json_proto [17:07:34]json parsed OK: [17:07:34]protocol is kg_v1.0 [17:07:34]action value=close_receipt [17:07:34]process_action close_receipt [17:07:34]cmd_close_receipt [17:07:34]MH_GetDate [17:07:34]Write to MH i2c: F0 00 00 28 16 2D [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: F0 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: F0 09 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: F0 09 00 28 16 00 5B B3 75 66 BC EC 60 65 8C [17:07:34]GetLastDocTimeStamp 1718989571 [17:07:34]current date 1718989659 [17:07:34]FM_GetShiftState [17:07:34]SAM_PROTO_GetShiftState [17:07:34]wFMCommunicate request_size=4 [17:07:34]MH_SAM_APDU [17:07:34]CAPDU: 80 13 01 00 [17:07:34]Write to MH i2c: E2 08 00 29 16 80 13 01 00 00 00 00 00 BC [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:34]Read from MH i2c: E2 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 0E 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 0E 00 29 16 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 39 [17:07:34]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:07:34]wFMCommunicate OK [17:07:34]SAM_PROTO_GetShiftState done [17:07:34]FM_GetShiftState done [17:07:34]opened in 1718933695 [17:07:34]opened+sec_in_day 1719020095 [17:07:34]quantity*price = 128019 [17:07:34]sum+1 = 128020 [17:07:34]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.19 袠孝袨袚袨: 1280.00 袙薪械褋械薪芯: 1280.00 小袛袗效袗: 0.00 袧小袩 1% : 11.33 袧袛小 12% : 135.95 袧邪谢懈褔薪褘屑懈: 1280.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 176 21.06.2024 17:07 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112008 肖袩袛: 3164362879670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T170739&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112008&fm=3164362879670&tin=02508201610067®Number=0000000000092771&sum=128000 [17:07:35]StoreToDocumentArchive [17:07:35]shift 390 fd 112008 [17:07:35]save to /storage/0390/doc_00112008 [17:07:35]save last doc name /storage/0390/doc_00112008 to /storage/kkm_last_doc_name [17:07:35]save OK [17:07:35]Clear old archive folders... [17:07:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:35]tlvbuf is 0033C040 [17:07:35]SAM_PROTO_ClearQueue [17:07:35]wFMCommunicate request_size=4 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 09 00 00 [17:07:35]Write to MH i2c: E2 08 00 36 16 80 09 00 00 00 00 00 00 BE [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 36 16 00 90 00 C0 [17:07:35]RAPDU: 90 00 [17:07:35]wFMCommunicate OK [17:07:35]SAM_PROTO_ClearQueue done [17:07:35]KKMCreateOFDPacket [17:07:35]OFDProtocolAddRootSTLVToBuf [17:07:35]FM_MakeSignedData [17:07:35]FM_MakeSignedData [17:07:35]SAM_PROTO_SignData [17:07:35]wFMCommunicate request_size=4 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 0D 01 02 [17:07:35]Write to MH i2c: E2 08 00 37 16 80 0D 01 02 00 00 00 00 C6 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 37 16 00 90 00 C1 [17:07:35]RAPDU: 90 00 [17:07:35]wFMCommunicate OK [17:07:35]wFMCommunicate request_size=255 [17:07:35]MH_SAM_APDU [17:07:35]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 50 4B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 13 F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 35 00 00 00 00 07 04 06 00 00 F4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5B B3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B5 01 00 35 04 06 00 02 [17:07:35]Write to MH i2c: E2 02 01 38 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 50 4B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 13 F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 35 00 00 00 00 07 04 06 00 00 F4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5B B3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B5 01 00 35 04 06 00 02 00 00 87 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 38 16 00 90 00 C2 [17:07:35]RAPDU: 90 00 [17:07:35]wFMCommunicate OK [17:07:35]wFMCommunicate request_size=10 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 0D 02 02 05 E0 C2 B9 B2 B6 [17:07:35]Write to MH i2c: E2 0D 00 39 16 80 0D 02 02 05 00 E0 C2 B9 B2 B6 00 00 96 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 39 16 00 90 00 C3 [17:07:35]RAPDU: 90 00 [17:07:35]wFMCommunicate OK [17:07:35]wFMCommunicate request_size=4 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 0D 03 02 [17:07:35]Write to MH i2c: E2 08 00 3A 16 80 0D 03 02 00 00 00 00 CB [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:36]Read from MH i2c: E2 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: E2 0B 00 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: E2 0B 00 3A 16 00 3C EB 66 FF 93 2A 02 03 90 00 1A [17:07:36]RAPDU: 3C EB 66 FF 93 2A 02 03 90 00 [17:07:36]wFMCommunicate OK [17:07:36]SAM_PROTO_SignData done [17:07:36]FM_MakeSignedData done [17:07:36]CreateOFDProtocolMessage [17:07:36]wFMCommunicate request_size=4 [17:07:36]MH_SAM_APDU [17:07:36]CAPDU: 80 11 00 00 [17:07:36]Write to MH i2c: E2 08 00 3B 16 80 11 00 00 00 00 00 00 CB [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:36]Read from MH i2c: E2 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: E2 17 00 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: E2 17 00 3B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1D [17:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:07:36]wFMCommunicate OK [17:07:36]CreateOFDProtocolMessage done [17:07:36]OFDSenderStorePacket 112008 [17:07:36]StoreOFDPacket docnum=112008 [17:07:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9A A8 07 01 A3 74 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 50 4B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 13 F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 35 00 00 00 00 07 04 06 00 00 F4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5B B3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B5 01 00 35 04 06 00 02 E0 C2 B9 B2 B6 3C EB 66 FF 93 2A 02 03 [17:07:36]CheckFolder [17:07:36]dirname=/storage/ofd_packets [17:07:36]CheckFolder done [17:07:36]ProducePacketName [17:07:36]name=ofd_packets/00112008 [17:07:36]NVStorageSaveData ofd_packets/00112008 [17:07:36]File name is /storage/ofd_packets/00112008 [17:07:36]Write 301 bytes [17:07:36]NVStorageSaveData done [17:07:36]OFDSenderStorePacket done [17:07:36]KKMCreateOFDPacket done [17:07:36]NVStorageSaveData kkm_last_timestamp [17:07:36]File name is /storage/kkm_last_timestamp [17:07:36]Write 4 bytes [17:07:36]NVStorageSaveData done [17:07:36]ExternCall_PrintAddStr [17:07:36]wPrintStart [17:07:36]Write to MH i2c: 01 00 00 3C 16 52 [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: 01 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: 01 07 00 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: 01 07 00 3C 16 00 00 00 00 00 FF 0F 67 [17:07:36]RasterBufferAndPrint [17:07:36]line 小褔械褌 N : (1)320659 [17:07:36]line 袠袧袧: 02508201610067 [17:07:36]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:07:36]line 袩袪袨袛袗袞袗 [17:07:36]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:07:36]line 孝芯胁邪褉: 2710124130 [17:07:36]line 袗懈-92-袣-5 [17:07:36]line 19.280 * 66.40 [17:07:36]line = 1280.19 [17:07:36]line 袧袛小 12% 袧小袩 1% [17:07:36]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:07:36]line 袨袣袪校袚袥袝袧袠袝: -0.19 [17:07:36]line 袠孝袨袚袨: 1280.00 [17:07:36]line 袙薪械褋械薪芯: 1280.00 [17:07:36]line 小袛袗效袗: 0.00 [17:07:36]line 袧小袩 1% : 11.33 [17:07:36]line 袧袛小 12% : 135.95 [17:07:36]line 袧邪谢懈褔薪褘屑懈: 1280.00 [17:07:36]line 袘械蟹薪邪谢.: 0.00 [17:07:36]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:07:36]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:07:36]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:07:36]line 效械泻 176 21.06.2024 17:07 [17:07:36]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:07:36]line 袟袧袦: 0300000198 [17:07:36]line 袪袧袦: 0000000000092771 [17:07:36]line 袙械褉褋懈褟 袣袣袦: 001 [17:07:36]line 肖袦: 0000000000875083 [17:07:36]line 肖袛: 112008 [17:07:36]line 肖袩袛: 3164362879670 [17:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T170739&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112008&fm=3164362879670&tin=02508201610067®Number=0000000000092771&sum=128000 [17:07:36]OFD Sender: Processing packet 112008 [packets to send 38, broken 37] [17:07:36]ProducePacketName [17:07:36]name=ofd_packets/00112008 [17:07:36]OFD Sender: To server: 嚂鰌G, [17:07:36]CommunicateWithHost lk.salyk.kg:30040 [17:07:36]ConnectInit lk.salyk.kg [17:07:36]written 0, free lines is 4095 [17:07:36]Connected sock=10 [17:07:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9A A8 07 01 A3 74 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 50 4B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 13 F4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 F4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 35 00 00 00 00 07 04 06 00 00 F4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5B B3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B5 01 00 35 04 06 00 02 E0 C2 B9 B2 B6 3C EB 66 FF 93 2A 02 03 [17:07:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B1 97 47 00 0A 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 30 38 37 35 30 38 33 10 04 04 00 88 B5 01 00 F4 03 04 00 81 4A 75 66 B6 04 01 00 00 50 BD C1 AB 65 33 F2 BA [17:07:36]CommunicateWithHost err = 0 [17:07:36]CheckOFDResponse [17:07:36]1017 (14) - 77093643461234 [17:07:36]1041 (16) - 0000000000875083 [17:07:36]1040 (4) - 112008 [17:07:36]1012 (4) - 21.06.2024 09:40 [17:07:36]1206 (1) - 0 [17:07:36]OFD Sender: Remove packet 112008 [17:07:36]ProducePacketName [17:07:36]name=ofd_packets/00112008 [17:07:36]NVStorageDeleteData [17:07:36]Write to MH i2c: 01 00 00 67 16 7D [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: 01 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: 01 07 00 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: 01 07 00 67 16 00 00 00 00 00 DC 0C 6C [17:07:36]RasterBufferAndPrint [17:07:36]line [17:07:36]line [17:07:36]line [17:07:36]line [17:07:36]line [17:07:36]written 0, free lines is 3298 [17:07:36]MH_Cut [17:07:36]Write to MH i2c: D1 01 00 6E 16 01 56 [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: D1 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: D1 01 00 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: D1 01 00 6E 16 00 55 [17:07:36]Write to MH i2c: 01 00 00 6F 16 85 [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:37]OFD Sender: No OFD packet to send [17:07:37]*** Cut start [17:07:37]*** Partial cut [17:07:37]*** CUTSNS_PIN = 1 [17:07:37]*** CUTSNS_PIN = 0 [17:07:37]*** Brake cut motor [17:07:38]Read from MH i2c: 01 [17:07:38]MH_I2C_Read... [17:07:38]*** Stop cut motor [17:07:38]*** Cut end [17:07:38]Read from MH i2c: 01 07 00 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: 01 07 00 6F 16 00 00 00 00 00 FF 0F 9A [17:07:38]process_action close_receipt done [17:07:38]requested_data is exist [17:07:38]produce_requested_data [17:07:38]requested_item fm.sn is exist - process it [17:07:38]wFMCommunicate request_size=4 [17:07:38]MH_SAM_APDU [17:07:38]CAPDU: 80 11 00 00 [17:07:38]Write to MH i2c: E2 08 00 70 16 80 11 00 00 00 00 00 00 00 [17:07:38]Write i2c OK [17:07:38]MH_I2C_Read... [17:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:38]Read from MH i2c: E2 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: E2 17 00 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: E2 17 00 70 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 52 [17:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:07:38]wFMCommunicate OK [17:07:38]requested_item fd.num is exist - process it [17:07:38]SAM_PROTO_GetFieldsCounters [17:07:38]wFMCommunicate request_size=4 [17:07:38]MH_SAM_APDU [17:07:38]CAPDU: 80 13 00 00 [17:07:38]Write to MH i2c: E2 08 00 71 16 80 13 00 00 00 00 00 00 03 [17:07:38]Write i2c OK [17:07:38]MH_I2C_Read... [17:07:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:38]Read from MH i2c: E2 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: E2 62 00 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: E2 62 00 71 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 88 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [17:07:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 88 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:38]wFMCommunicate OK [17:07:38]SAM_PROTO_GetFieldsCounters done [17:07:38]requested_item shift.num is exist - process it [17:07:38]requested_item shift.opened is exist - process it [17:07:38]req_shift_opened [17:07:38]FM_GetShiftState [17:07:38]SAM_PROTO_GetShiftState [17:07:38]wFMCommunicate request_size=4 [17:07:38]MH_SAM_APDU [17:07:38]CAPDU: 80 13 01 00 [17:07:38]Write to MH i2c: E2 08 00 72 16 80 13 01 00 00 00 00 00 05 [17:07:38]Write i2c OK [17:07:38]MH_I2C_Read... [17:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:38]Read from MH i2c: E2 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: E2 0E 00 [17:07:38]MH_I2C_Read... [17:07:38]Read from MH i2c: E2 0E 00 72 16 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 82 [17:07:38]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:07:38]wFMCommunicate OK [17:07:38]SAM_PROTO_GetShiftState done [17:07:38]FM_GetShiftState done [17:07:38]req_shift_opened done [17:07:38]requested_item shift.open_date is exist - process it [17:07:38]req_shift_open_date [17:07:38]req_shift_open_date done [17:07:38]produce_requested_data done [17:07:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112008,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:07:38]process_action_free close_receipt [17:07:38]json_value_free [17:07:38]json_value_free done [17:07:38]process_json_proto returns [17:07:38]Send response to host [17:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112008,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:07:38]free response buf [17:07:38]execute_script done [17:07:38]execute_script returns [17:07:38]free content buf [17:07:38]Sock 7.Close socket [17:07:38]Sock 7.Thread stoped [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:55]accept exits with 9 [17:12:55]New connection [17:12:55]New thread 3066875236 created [17:12:55]Thread 3066731876 joined [17:12:55]Waiting for new connection... [17:12:55] Sock 9.Parse request [17:12:55]Sock 9.Check first char [17:12:55]Sock 9.First char is OK [17:12:55]request: POST /json_proto HTTP/1.0 [17:12:55]Method: POST [17:12:55]URL: /json_proto [17:12:55]Method is POST - this is cgi request [17:12:55]url: /json_proto [17:12:55]query_string will be loaded in cgi processing [17:12:55]execute_cgi json_proto POST (null) [17:12:55]execute_cgi path=json_proto method=POST [17:12:55]POST find Content-Length [17:12:55]Host: 172.17.59.68:8080 [17:12:55]Content-Length: 682 [17:12:55]Content-Type: application/json [17:12:55] [17:12:55]POST finish read [17:12:55]Found Content-Length = 682 [17:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [17:12:55]execute_script... [17:12: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)320660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [17:12:55]POST & json_proto [17:12:55]process_json_proto [17:12:55]json parsed OK: [17:12:55]protocol is kg_v1.0 [17:12:55]action value=close_receipt [17:12:55]process_action close_receipt [17:12:55]cmd_close_receipt [17:12:55]MH_GetDate [17:12:55]Write to MH i2c: F0 00 00 73 16 78 [17:12:55]Write i2c OK [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: F0 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: F0 09 00 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: F0 09 00 73 16 00 9C B4 75 66 BC EC 60 65 19 [17:12:55]GetLastDocTimeStamp 1718989659 [17:12:55]current date 1718989980 [17:12:55]FM_GetShiftState [17:12:55]SAM_PROTO_GetShiftState [17:12:55]wFMCommunicate request_size=4 [17:12:55]MH_SAM_APDU [17:12:55]CAPDU: 80 13 01 00 [17:12:55]Write to MH i2c: E2 08 00 74 16 80 13 01 00 00 00 00 00 07 [17:12:55]Write i2c OK [17:12:55]MH_I2C_Read... [17:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:55]Read from MH i2c: E2 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 0E 00 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 0E 00 74 16 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 84 [17:12:55]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:12:55]wFMCommunicate OK [17:12:55]SAM_PROTO_GetShiftState done [17:12:55]FM_GetShiftState done [17:12:55]opened in 1718933695 [17:12:55]opened+sec_in_day 1719020095 [17:12:55]quantity*price = 100064 [17:12:55]sum+1 = 100066 [17:12:55]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 177 21.06.2024 17:13 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112009 肖袩袛: 250383417100555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T171300&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112009&fm=250383417100555&tin=02508201610067®Number=0000000000092771&sum=100000 [17:12:56]StoreToDocumentArchive [17:12:56]shift 390 fd 112009 [17:12:56]save to /storage/0390/doc_00112009 [17:12:56]save last doc name /storage/0390/doc_00112009 to /storage/kkm_last_doc_name [17:12:56]save OK [17:12:56]Clear old archive folders... [17:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:56]tlvbuf is 0036C0C0 [17:12:56]SAM_PROTO_ClearQueue [17:12:56]wFMCommunicate request_size=4 [17:12:56]MH_SAM_APDU [17:12:56]CAPDU: 80 09 00 00 [17:12:56]Write to MH i2c: E2 08 00 81 16 80 09 00 00 00 00 00 00 09 [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:56]Read from MH i2c: E2 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 81 16 00 90 00 0B [17:12:56]RAPDU: 90 00 [17:12:56]wFMCommunicate OK [17:12:56]SAM_PROTO_ClearQueue done [17:12:56]KKMCreateOFDPacket [17:12:56]OFDProtocolAddRootSTLVToBuf [17:12:56]FM_MakeSignedData [17:12:56]FM_MakeSignedData [17:12:56]SAM_PROTO_SignData [17:12:56]wFMCommunicate request_size=4 [17:12:56]MH_SAM_APDU [17:12:56]CAPDU: 80 0D 01 02 [17:12:56]Write to MH i2c: E2 08 00 82 16 80 0D 01 02 00 00 00 00 11 [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:56]Read from MH i2c: E2 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 82 16 00 90 00 0C [17:12:56]RAPDU: 90 00 [17:12:56]wFMCommunicate OK [17:12:56]wFMCommunicate request_size=255 [17:12:56]MH_SAM_APDU [17:12:56]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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 B1 00 00 00 F4 03 04 00 9C B4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B5 01 00 35 04 06 00 E3 [17:12:56]Write to MH i2c: E2 02 01 83 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 B1 00 00 00 F4 03 04 00 9C B4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B5 01 00 35 04 06 00 E3 00 00 9A [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:56]Read from MH i2c: E2 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 83 16 00 90 00 0D [17:12:56]RAPDU: 90 00 [17:12:56]wFMCommunicate OK [17:12:56]wFMCommunicate request_size=10 [17:12:56]MH_SAM_APDU [17:12:56]CAPDU: 80 0D 02 02 05 B8 EE A2 49 0B [17:12:56]Write to MH i2c: E2 0D 00 84 16 80 0D 02 02 05 00 B8 EE A2 49 0B 00 00 BA [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:56]Read from MH i2c: E2 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 03 00 84 16 00 90 00 0E [17:12:57]RAPDU: 90 00 [17:12:57]wFMCommunicate OK [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 0D 03 02 [17:12:57]Write to MH i2c: E2 08 00 85 16 80 0D 03 02 00 00 00 00 16 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 0B 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 0B 00 85 16 00 FC F7 93 85 A0 4D F4 A3 90 00 A6 [17:12:57]RAPDU: FC F7 93 85 A0 4D F4 A3 90 00 [17:12:57]wFMCommunicate OK [17:12:57]SAM_PROTO_SignData done [17:12:57]FM_MakeSignedData done [17:12:57]CreateOFDProtocolMessage [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 11 00 00 [17:12:57]Write to MH i2c: E2 08 00 86 16 80 11 00 00 00 00 00 00 16 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 17 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 17 00 86 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 68 [17:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:12:57]wFMCommunicate OK [17:12:57]CreateOFDProtocolMessage done [17:12:57]OFDSenderStorePacket 112009 [17:12:57]StoreOFDPacket docnum=112009 [17:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AD 56 07 01 AA 34 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 B1 00 00 00 F4 03 04 00 9C B4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B5 01 00 35 04 06 00 E3 B8 EE A2 49 0B FC F7 93 85 A0 4D F4 A3 [17:12:57]CheckFolder [17:12:57]dirname=/storage/ofd_packets [17:12:57]CheckFolder done [17:12:57]ProducePacketName [17:12:57]name=ofd_packets/00112009 [17:12:57]NVStorageSaveData ofd_packets/00112009 [17:12:57]File name is /storage/ofd_packets/00112009 [17:12:57]Write 301 bytes [17:12:57]NVStorageSaveData done [17:12:57]OFDSenderStorePacket done [17:12:57]KKMCreateOFDPacket done [17:12:57]NVStorageSaveData kkm_last_timestamp [17:12:57]File name is /storage/kkm_last_timestamp [17:12:57]Write 4 bytes [17:12:57]NVStorageSaveData done [17:12:57]ExternCall_PrintAddStr [17:12:57]wPrintStart [17:12:57]Write to MH i2c: 01 00 00 87 16 9D [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 07 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 07 00 87 16 00 00 00 00 00 FF 0F B2 [17:12:57]RasterBufferAndPrint [17:12:57]line 小褔械褌 N : (1)320660 [17:12:57]line 袠袧袧: 02508201610067 [17:12:57]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:12:57]line 袩袪袨袛袗袞袗 [17:12:57]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:12:57]line 孝芯胁邪褉: 2710124130 [17:12:57]line 袗懈-92-袣-5 [17:12:57]line 15.070 * 66.40 [17:12:57]line = 1000.65 [17:12:57]line 袧袛小 12% 袧小袩 1% [17:12:57]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:12:57]line 袨袣袪校袚袥袝袧袠袝: -0.65 [17:12:57]line 袠孝袨袚袨: 1000.00 [17:12:57]line 袙薪械褋械薪芯: 1000.00 [17:12:57]line 小袛袗效袗: 0.00 [17:12:57]line 袧小袩 1% : 8.85 [17:12:57]line 袧袛小 12% : 106.26 [17:12:57]line 袧邪谢懈褔薪褘屑懈: 1000.00 [17:12:57]line 袘械蟹薪邪谢.: 0.00 [17:12:57]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:12:57]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:12:57]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:12:57]line 效械泻 177 21.06.2024 17:13 [17:12:57]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:12:57]line 袟袧袦: 0300000198 [17:12:57]line 袪袧袦: 0000000000092771 [17:12:57]line 袙械褉褋懈褟 袣袣袦: 001 [17:12:57]line 肖袦: 0000000000875083 [17:12:57]line 肖袛: 112009 [17:12:57]line 肖袩袛: 250383417100555 [17:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T171300&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112009&fm=250383417100555&tin=02508201610067®Number=0000000000092771&sum=100000 [17:12:57]OFD Sender: Processing packet 112009 [packets to send 38, broken 37] [17:12:57]ProducePacketName [17:12:57]name=ofd_packets/00112009 [17:12:57]OFD Sender: To server: 嚂鰌G, [17:12:57]CommunicateWithHost lk.salyk.kg:30040 [17:12:57]ConnectInit lk.salyk.kg [17:12:57]written 0, free lines is 4095 [17:12:57]Connected sock=10 [17:12:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AD 56 07 01 AA 34 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 B1 00 00 00 F4 03 04 00 9C B4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B5 01 00 35 04 06 00 E3 B8 EE A2 49 0B FC F7 93 85 A0 4D F4 A3 [17:12:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 68 F9 47 00 BC C7 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 30 38 37 35 30 38 33 10 04 04 00 89 B5 01 00 F4 03 04 00 C2 4B 75 66 B6 04 01 00 00 88 8E D1 25 BB 4A 80 EC [17:12:57]CommunicateWithHost err = 0 [17:12:57]CheckOFDResponse [17:12:57]1017 (14) - 77093643461234 [17:12:57]1041 (16) - 0000000000875083 [17:12:57]1040 (4) - 112009 [17:12:57]1012 (4) - 21.06.2024 09:45 [17:12:57]1206 (1) - 0 [17:12:57]OFD Sender: Remove packet 112009 [17:12:57]ProducePacketName [17:12:57]name=ofd_packets/00112009 [17:12:57]NVStorageDeleteData [17:12:57]Write to MH i2c: 01 00 00 B2 16 C8 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 07 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 07 00 B2 16 00 00 00 00 00 EE 0C C9 [17:12:57]RasterBufferAndPrint [17:12:57]line [17:12:57]line [17:12:57]line [17:12:57]line [17:12:57]line [17:12:57]written 0, free lines is 3332 [17:12:57]MH_Cut [17:12:57]Write to MH i2c: D1 01 00 B9 16 01 A1 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: D1 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: D1 01 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: D1 01 00 B9 16 00 A0 [17:12:57]Write to MH i2c: 01 00 00 BA 16 D0 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:58]OFD Sender: No OFD packet to send [17:12:58]*** Cut start [17:12:58]*** Partial cut [17:12:58]*** CUTSNS_PIN = 1 [17:12:58]*** CUTSNS_PIN = 0 [17:12:58]*** Brake cut motor [17:12:59]Read from MH i2c: 01 [17:12:59]MH_I2C_Read... [17:12:59]*** Stop cut motor [17:12:59]*** Cut end [17:12:59]Read from MH i2c: 01 07 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: 01 07 00 BA 16 00 00 00 00 00 FF 0F E5 [17:12:59]process_action close_receipt done [17:12:59]requested_data is exist [17:12:59]produce_requested_data [17:12:59]requested_item fm.sn is exist - process it [17:12:59]wFMCommunicate request_size=4 [17:12:59]MH_SAM_APDU [17:12:59]CAPDU: 80 11 00 00 [17:12:59]Write to MH i2c: E2 08 00 BB 16 80 11 00 00 00 00 00 00 4B [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:59]Read from MH i2c: E2 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 17 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 17 00 BB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9D [17:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:12:59]wFMCommunicate OK [17:12:59]requested_item fd.num is exist - process it [17:12:59]SAM_PROTO_GetFieldsCounters [17:12:59]wFMCommunicate request_size=4 [17:12:59]MH_SAM_APDU [17:12:59]CAPDU: 80 13 00 00 [17:12:59]Write to MH i2c: E2 08 00 BC 16 80 13 00 00 00 00 00 00 4E [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:59]Read from MH i2c: E2 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 62 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 62 00 BC 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 89 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [17:12:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 89 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:59]wFMCommunicate OK [17:12:59]SAM_PROTO_GetFieldsCounters done [17:12:59]requested_item shift.num is exist - process it [17:12:59]requested_item shift.opened is exist - process it [17:12:59]req_shift_opened [17:12:59]FM_GetShiftState [17:12:59]SAM_PROTO_GetShiftState [17:12:59]wFMCommunicate request_size=4 [17:12:59]MH_SAM_APDU [17:12:59]CAPDU: 80 13 01 00 [17:12:59]Write to MH i2c: E2 08 00 BD 16 80 13 01 00 00 00 00 00 50 [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:59]Read from MH i2c: E2 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 0E 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 0E 00 BD 16 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 CD [17:12:59]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:12:59]wFMCommunicate OK [17:12:59]SAM_PROTO_GetShiftState done [17:12:59]FM_GetShiftState done [17:12:59]req_shift_opened done [17:12:59]requested_item shift.open_date is exist - process it [17:12:59]req_shift_open_date [17:12:59]req_shift_open_date done [17:12:59]produce_requested_data done [17:12:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112009,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:12:59]process_action_free close_receipt [17:12:59]json_value_free [17:12:59]json_value_free done [17:12:59]process_json_proto returns [17:12:59]Send response to host [17:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112009,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:12:59]free response buf [17:12:59]execute_script done [17:12:59]execute_script returns [17:12:59]free content buf [17:12:59]Sock 9.Close socket [17:12:59]Sock 9.Thread stoped [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:46]accept exits with 7 [17:15:46]New connection [17:15:46]New thread 3066731876 created [17:15:46]Thread 3066875236 joined [17:15:46]Waiting for new connection... [17:15:46] Sock 7.Parse request [17:15:46]Sock 7.Check first char [17:15:46]Sock 7.First char is OK [17:15:46]request: POST /json_proto HTTP/1.0 [17:15:46]Method: POST [17:15:46]URL: /json_proto [17:15:46]Method is POST - this is cgi request [17:15:46]url: /json_proto [17:15:46]query_string will be loaded in cgi processing [17:15:46]execute_cgi json_proto POST (null) [17:15:46]execute_cgi path=json_proto method=POST [17:15:46]POST find Content-Length [17:15:46]Host: 172.17.59.68:8080 [17:15:46]Content-Length: 682 [17:15:46]Content-Type: application/json [17:15:46] [17:15:46]POST finish read [17:15:46]Found Content-Length = 682 [17:15:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [17:15:46]execute_script... [17:15: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)320661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [17:15:46]POST & json_proto [17:15:46]process_json_proto [17:15:46]json parsed OK: [17:15:46]protocol is kg_v1.0 [17:15:46]action value=close_receipt [17:15:46]process_action close_receipt [17:15:46]cmd_close_receipt [17:15:46]MH_GetDate [17:15:46]Write to MH i2c: F0 00 00 BE 16 C3 [17:15:46]Write i2c OK [17:15:46]MH_I2C_Read... [17:15:46]Read from MH i2c: F0 [17:15:46]MH_I2C_Read... [17:15:46]Read from MH i2c: F0 09 00 [17:15:46]MH_I2C_Read... [17:15:46]Read from MH i2c: F0 09 00 BE 16 00 47 B5 75 66 BC EC 60 65 10 [17:15:46]GetLastDocTimeStamp 1718989980 [17:15:46]current date 1718990151 [17:15:46]FM_GetShiftState [17:15:46]SAM_PROTO_GetShiftState [17:15:46]wFMCommunicate request_size=4 [17:15:46]MH_SAM_APDU [17:15:46]CAPDU: 80 13 01 00 [17:15:46]Write to MH i2c: E2 08 00 BF 16 80 13 01 00 00 00 00 00 52 [17:15:46]Write i2c OK [17:15:46]MH_I2C_Read... [17:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:46]Read from MH i2c: E2 [17:15:46]MH_I2C_Read... [17:15:46]Read from MH i2c: E2 0E 00 [17:15:46]MH_I2C_Read... [17:15:46]Read from MH i2c: E2 0E 00 BF 16 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 CF [17:15:46]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:15:46]wFMCommunicate OK [17:15:46]SAM_PROTO_GetShiftState done [17:15:46]FM_GetShiftState done [17:15:46]opened in 1718933695 [17:15:46]opened+sec_in_day 1719020095 [17:15:46]quantity*price = 100064 [17:15:46]sum+1 = 100066 [17:15:46]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 178 21.06.2024 17:15 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112010 肖袩袛: 208919990189729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T171551&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112010&fm=208919990189729&tin=02508201610067®Number=0000000000092771&sum=100000 [17:15:47]StoreToDocumentArchive [17:15:47]shift 390 fd 112010 [17:15:47]save to /storage/0390/doc_00112010 [17:15:47]save last doc name /storage/0390/doc_00112010 to /storage/kkm_last_doc_name [17:15:47]save OK [17:15:47]Clear old archive folders... [17:15:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:47]tlvbuf is 00352890 [17:15:47]SAM_PROTO_ClearQueue [17:15:47]wFMCommunicate request_size=4 [17:15:47]MH_SAM_APDU [17:15:47]CAPDU: 80 09 00 00 [17:15:47]Write to MH i2c: E2 08 00 CC 16 80 09 00 00 00 00 00 00 54 [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:47]Read from MH i2c: E2 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 03 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 03 00 CC 16 00 90 00 56 [17:15:47]RAPDU: 90 00 [17:15:47]wFMCommunicate OK [17:15:47]SAM_PROTO_ClearQueue done [17:15:47]KKMCreateOFDPacket [17:15:47]OFDProtocolAddRootSTLVToBuf [17:15:47]FM_MakeSignedData [17:15:47]FM_MakeSignedData [17:15:47]SAM_PROTO_SignData [17:15:47]wFMCommunicate request_size=4 [17:15:47]MH_SAM_APDU [17:15:47]CAPDU: 80 0D 01 02 [17:15:47]Write to MH i2c: E2 08 00 CD 16 80 0D 01 02 00 00 00 00 5C [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:47]Read from MH i2c: E2 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 03 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 03 00 CD 16 00 90 00 57 [17:15:47]RAPDU: 90 00 [17:15:47]wFMCommunicate OK [17:15:47]wFMCommunicate request_size=255 [17:15:47]MH_SAM_APDU [17:15: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 B2 00 00 00 F4 03 04 00 47 B5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B5 01 00 35 04 06 00 BE [17:15:47]Write to MH i2c: E2 02 01 CE 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 B2 00 00 00 F4 03 04 00 47 B5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B5 01 00 35 04 06 00 BE 00 00 6E [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:47]Read from MH i2c: E2 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 03 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 03 00 CE 16 00 90 00 58 [17:15:47]RAPDU: 90 00 [17:15:47]wFMCommunicate OK [17:15:47]wFMCommunicate request_size=10 [17:15:47]MH_SAM_APDU [17:15:47]CAPDU: 80 0D 02 02 05 02 F9 CD 3E A1 [17:15:47]Write to MH i2c: E2 0D 00 CF 16 80 0D 02 02 05 00 02 F9 CD 3E A1 00 00 10 [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:47]Read from MH i2c: E2 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 03 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 03 00 CF 16 00 90 00 59 [17:15:47]RAPDU: 90 00 [17:15:47]wFMCommunicate OK [17:15:47]wFMCommunicate request_size=4 [17:15:47]MH_SAM_APDU [17:15:47]CAPDU: 80 0D 03 02 [17:15:47]Write to MH i2c: E2 08 00 D0 16 80 0D 03 02 00 00 00 00 61 [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:47]Read from MH i2c: E2 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 0B 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 0B 00 D0 16 00 A3 F5 3F 00 04 B5 EE 9F 90 00 7F [17:15:47]RAPDU: A3 F5 3F 00 04 B5 EE 9F 90 00 [17:15:47]wFMCommunicate OK [17:15:47]SAM_PROTO_SignData done [17:15:47]FM_MakeSignedData done [17:15:47]CreateOFDProtocolMessage [17:15:47]wFMCommunicate request_size=4 [17:15:47]MH_SAM_APDU [17:15:47]CAPDU: 80 11 00 00 [17:15:47]Write to MH i2c: E2 08 00 D1 16 80 11 00 00 00 00 00 00 61 [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:47]Read from MH i2c: E2 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 17 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: E2 17 00 D1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B3 [17:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:15:47]wFMCommunicate OK [17:15:47]CreateOFDProtocolMessage done [17:15:47]OFDSenderStorePacket 112010 [17:15:47]StoreOFDPacket docnum=112010 [17:15:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 77 F7 07 01 B1 CD 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 B2 00 00 00 F4 03 04 00 47 B5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B5 01 00 35 04 06 00 BE 02 F9 CD 3E A1 A3 F5 3F 00 04 B5 EE 9F [17:15:47]CheckFolder [17:15:47]dirname=/storage/ofd_packets [17:15:47]CheckFolder done [17:15:47]ProducePacketName [17:15:47]name=ofd_packets/00112010 [17:15:47]NVStorageSaveData ofd_packets/00112010 [17:15:47]File name is /storage/ofd_packets/00112010 [17:15:47]Write 301 bytes [17:15:47]NVStorageSaveData done [17:15:47]OFDSenderStorePacket done [17:15:47]KKMCreateOFDPacket done [17:15:47]NVStorageSaveData kkm_last_timestamp [17:15:47]File name is /storage/kkm_last_timestamp [17:15:47]Write 4 bytes [17:15:47]NVStorageSaveData done [17:15:47]ExternCall_PrintAddStr [17:15:47]wPrintStart [17:15:47]Write to MH i2c: 01 00 00 D2 16 E8 [17:15:47]Write i2c OK [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: 01 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: 01 07 00 [17:15:47]MH_I2C_Read... [17:15:47]Read from MH i2c: 01 07 00 D2 16 00 00 00 00 00 FF 0F FD [17:15:47]RasterBufferAndPrint [17:15:47]line 小褔械褌 N : (1)320661 [17:15:47]line 袠袧袧: 02508201610067 [17:15:47]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:15:47]line 袩袪袨袛袗袞袗 [17:15:47]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:15:47]line 孝芯胁邪褉: 2710124130 [17:15:47]line 袗懈-92-袣-5 [17:15:47]line 15.070 * 66.40 [17:15:47]line = 1000.65 [17:15:47]line 袧袛小 12% 袧小袩 1% [17:15:47]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:15:47]line 袨袣袪校袚袥袝袧袠袝: -0.65 [17:15:47]line 袠孝袨袚袨: 1000.00 [17:15:47]line 袙薪械褋械薪芯: 1000.00 [17:15:47]line 小袛袗效袗: 0.00 [17:15:47]line 袧小袩 1% : 8.85 [17:15:47]line 袧袛小 12% : 106.26 [17:15:47]line 袧邪谢懈褔薪褘屑懈: 1000.00 [17:15:47]line 袘械蟹薪邪谢.: 0.00 [17:15:47]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:15:47]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:15:47]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:15:47]line 效械泻 178 21.06.2024 17:15 [17:15:47]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:15:47]line 袟袧袦: 0300000198 [17:15:47]line 袪袧袦: 0000000000092771 [17:15:47]line 袙械褉褋懈褟 袣袣袦: 001 [17:15:47]line 肖袦: 0000000000875083 [17:15:47]line 肖袛: 112010 [17:15:47]line 肖袩袛: 208919990189729 [17:15:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T171551&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112010&fm=208919990189729&tin=02508201610067®Number=0000000000092771&sum=100000 [17:15:48]OFD Sender: Processing packet 112010 [packets to send 38, broken 37] [17:15:48]ProducePacketName [17:15:48]name=ofd_packets/00112010 [17:15:48]OFD Sender: To server: 嚂鰌G, [17:15:48]CommunicateWithHost lk.salyk.kg:30040 [17:15:48]ConnectInit lk.salyk.kg [17:15:48]written 0, free lines is 4095 [17:15:48]Connected sock=10 [17:15:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 77 F7 07 01 B1 CD 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 B2 00 00 00 F4 03 04 00 47 B5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B5 01 00 35 04 06 00 BE 02 F9 CD 3E A1 A3 F5 3F 00 04 B5 EE 9F [17:15:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 49 A3 47 00 77 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 30 38 37 35 30 38 33 10 04 04 00 8A B5 01 00 F4 03 04 00 6D 4C 75 66 B6 04 01 00 00 AB 50 BE 23 90 FC F1 3E [17:15:48]CommunicateWithHost err = 0 [17:15:48]CheckOFDResponse [17:15:48]1017 (14) - 77093643461234 [17:15:48]1041 (16) - 0000000000875083 [17:15:48]1040 (4) - 112010 [17:15:48]1012 (4) - 21.06.2024 09:48 [17:15:48]1206 (1) - 0 [17:15:48]OFD Sender: Remove packet 112010 [17:15:48]ProducePacketName [17:15:48]name=ofd_packets/00112010 [17:15:48]NVStorageDeleteData [17:15:48]Write to MH i2c: 01 00 00 FD 16 13 [17:15:48]Write i2c OK [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: 01 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: 01 07 00 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: 01 07 00 FD 16 00 00 00 00 00 E4 0C 0A [17:15:48]RasterBufferAndPrint [17:15:48]line [17:15:48]line [17:15:48]line [17:15:48]line [17:15:48]line [17:15:48]written 0, free lines is 3306 [17:15:48]MH_Cut [17:15:48]Write to MH i2c: D1 01 00 04 17 01 ED [17:15:48]Write i2c OK [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: D1 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: D1 01 00 [17:15:48]MH_I2C_Read... [17:15:48]Read from MH i2c: D1 01 00 04 17 00 EC [17:15:48]Write to MH i2c: 01 00 00 05 17 1C [17:15:48]Write i2c OK [17:15:48]MH_I2C_Read... [17:15:48]OFD Sender: No OFD packet to send [17:15:49]*** Cut start [17:15:49]*** Partial cut [17:15:49]*** CUTSNS_PIN = 1 [17:15:49]*** CUTSNS_PIN = 0 [17:15:49]*** Brake cut motor [17:15:49]Read from MH i2c: 01 [17:15:49]MH_I2C_Read... [17:15:49]*** Stop cut motor [17:15:49]*** Cut end [17:15:49]Read from MH i2c: 01 07 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: 01 07 00 05 17 00 00 00 00 00 FF 0F 31 [17:15:49]process_action close_receipt done [17:15:49]requested_data is exist [17:15:49]produce_requested_data [17:15:49]requested_item fm.sn is exist - process it [17:15:49]wFMCommunicate request_size=4 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 11 00 00 [17:15:49]Write to MH i2c: E2 08 00 06 17 80 11 00 00 00 00 00 00 97 [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:49]Read from MH i2c: E2 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 17 00 [17:15:49]MH_I2C_Read... [17:15:49]Read from MH i2c: E2 17 00 06 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E9 [17:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:15:49]wFMCommunicate OK [17:15:49]requested_item fd.num is exist - process it [17:15:49]SAM_PROTO_GetFieldsCounters [17:15:49]wFMCommunicate request_size=4 [17:15:49]MH_SAM_APDU [17:15:49]CAPDU: 80 13 00 00 [17:15:49]Write to MH i2c: E2 08 00 07 17 80 13 00 00 00 00 00 00 9A [17:15:49]Write i2c OK [17:15:49]MH_I2C_Read... [17:15:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:50]Read from MH i2c: E2 [17:15:50]MH_I2C_Read... [17:15:50]Read from MH i2c: E2 62 00 [17:15:50]MH_I2C_Read... [17:15:50]Read from MH i2c: E2 62 00 07 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8A B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [17:15:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8A B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:50]wFMCommunicate OK [17:15:50]SAM_PROTO_GetFieldsCounters done [17:15:50]requested_item shift.num is exist - process it [17:15:50]requested_item shift.opened is exist - process it [17:15:50]req_shift_opened [17:15:50]FM_GetShiftState [17:15:50]SAM_PROTO_GetShiftState [17:15:50]wFMCommunicate request_size=4 [17:15:50]MH_SAM_APDU [17:15:50]CAPDU: 80 13 01 00 [17:15:50]Write to MH i2c: E2 08 00 08 17 80 13 01 00 00 00 00 00 9C [17:15:50]Write i2c OK [17:15:50]MH_I2C_Read... [17:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:50]Read from MH i2c: E2 [17:15:50]MH_I2C_Read... [17:15:50]Read from MH i2c: E2 0E 00 [17:15:50]MH_I2C_Read... [17:15:50]Read from MH i2c: E2 0E 00 08 17 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 19 [17:15:50]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:15:50]wFMCommunicate OK [17:15:50]SAM_PROTO_GetShiftState done [17:15:50]FM_GetShiftState done [17:15:50]req_shift_opened done [17:15:50]requested_item shift.open_date is exist - process it [17:15:50]req_shift_open_date [17:15:50]req_shift_open_date done [17:15:50]produce_requested_data done [17:15:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112010,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:15:50]process_action_free close_receipt [17:15:50]json_value_free [17:15:50]json_value_free done [17:15:50]process_json_proto returns [17:15:50]Send response to host [17:15:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112010,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:15:50]free response buf [17:15:50]execute_script done [17:15:50]execute_script returns [17:15:50]free content buf [17:15:50]Sock 7.Close socket [17:15:50]Sock 7.Thread stoped [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17: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:50]accept exits with 9 [17:19:50]New connection [17:19:50]New thread 3066875236 created [17:19:50]Thread 3066731876 joined [17:19:50]Waiting for new connection... [17:19:50] Sock 9.Parse request [17:19:50]Sock 9.Check first char [17:19:50]Sock 9.First char is OK [17:19:50]request: POST /json_proto HTTP/1.0 [17:19:50]Method: POST [17:19:50]URL: /json_proto [17:19:50]Method is POST - this is cgi request [17:19:50]url: /json_proto [17:19:50]query_string will be loaded in cgi processing [17:19:50]execute_cgi json_proto POST (null) [17:19:50]execute_cgi path=json_proto method=POST [17:19:50]POST find Content-Length [17:19:50]Host: 172.17.59.68:8080 [17:19:50]Content-Length: 679 [17:19:50]Content-Type: application/json [17:19:50] [17:19:50]POST finish read [17:19:50]Found Content-Length = 679 [17:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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" ] } } [17:19:50]execute_script... [17:19: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)320662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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" ] } } [17:19:50]POST & json_proto [17:19:50]process_json_proto [17:19:50]json parsed OK: [17:19:50]protocol is kg_v1.0 [17:19:50]action value=close_receipt [17:19:50]process_action close_receipt [17:19:50]cmd_close_receipt [17:19:50]MH_GetDate [17:19:50]Write to MH i2c: F0 00 00 09 17 0F [17:19:50]Write i2c OK [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: F0 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: F0 09 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: F0 09 00 09 17 00 3B B6 75 66 BC EC 60 65 51 [17:19:50]GetLastDocTimeStamp 1718990151 [17:19:50]current date 1718990395 [17:19:50]FM_GetShiftState [17:19:50]SAM_PROTO_GetShiftState [17:19:50]wFMCommunicate request_size=4 [17:19:50]MH_SAM_APDU [17:19:50]CAPDU: 80 13 01 00 [17:19:50]Write to MH i2c: E2 08 00 0A 17 80 13 01 00 00 00 00 00 9E [17:19:50]Write i2c OK [17:19:50]MH_I2C_Read... [17:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:50]Read from MH i2c: E2 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 0E 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 0E 00 0A 17 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1B [17:19:50]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:19:50]wFMCommunicate OK [17:19:50]SAM_PROTO_GetShiftState done [17:19:50]FM_GetShiftState done [17:19:50]opened in 1718933695 [17:19:50]opened+sec_in_day 1719020095 [17:19:50]quantity*price = 100018 [17:19:50]sum+1 = 100020 [17:19:50]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.19 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.21 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 179 21.06.2024 17:19 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112011 肖袩袛: 227982041770595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T171955&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112011&fm=227982041770595&tin=02508201610067®Number=0000000000092771&sum=100000 [17:19:51]StoreToDocumentArchive [17:19:51]shift 390 fd 112011 [17:19:51]save to /storage/0390/doc_00112011 [17:19:51]save last doc name /storage/0390/doc_00112011 to /storage/kkm_last_doc_name [17:19:51]save OK [17:19:51]Clear old archive folders... [17:19:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:19:51]tlvbuf is 0036C120 [17:19:51]SAM_PROTO_ClearQueue [17:19:51]wFMCommunicate request_size=4 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 09 00 00 [17:19:51]Write to MH i2c: E2 08 00 17 17 80 09 00 00 00 00 00 00 A0 [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 17 17 00 90 00 A2 [17:19:51]RAPDU: 90 00 [17:19:51]wFMCommunicate OK [17:19:51]SAM_PROTO_ClearQueue done [17:19:51]KKMCreateOFDPacket [17:19:51]OFDProtocolAddRootSTLVToBuf [17:19:51]FM_MakeSignedData [17:19:51]FM_MakeSignedData [17:19:51]SAM_PROTO_SignData [17:19:51]wFMCommunicate request_size=4 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 0D 01 02 [17:19:51]Write to MH i2c: E2 08 00 18 17 80 0D 01 02 00 00 00 00 A8 [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 18 17 00 90 00 A3 [17:19:51]RAPDU: 90 00 [17:19:51]wFMCommunicate OK [17:19:51]wFMCommunicate request_size=255 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 7D 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 B3 00 00 00 F4 03 04 00 3B B6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B5 01 00 35 04 06 00 CF 59 34 9D [17:19:51]Write to MH i2c: E2 02 01 19 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 7D 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 B3 00 00 00 F4 03 04 00 3B B6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B5 01 00 35 04 06 00 CF 59 34 9D 00 00 4E [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 19 17 00 90 00 A4 [17:19:51]RAPDU: 90 00 [17:19:51]wFMCommunicate OK [17:19:51]wFMCommunicate request_size=7 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 0D 02 02 02 6A 63 [17:19:51]Write to MH i2c: E2 0A 00 1A 17 80 0D 02 02 02 00 6A 63 00 00 7C [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 03 00 1A 17 00 90 00 A5 [17:19:51]RAPDU: 90 00 [17:19:51]wFMCommunicate OK [17:19:51]wFMCommunicate request_size=4 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 0D 03 02 [17:19:51]Write to MH i2c: E2 08 00 1B 17 80 0D 03 02 00 00 00 00 AD [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 0B 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 0B 00 1B 17 00 19 D1 8A 8D 73 7C 19 AE 90 00 65 [17:19:51]RAPDU: 19 D1 8A 8D 73 7C 19 AE 90 00 [17:19:51]wFMCommunicate OK [17:19:51]SAM_PROTO_SignData done [17:19:51]FM_MakeSignedData done [17:19:51]CreateOFDProtocolMessage [17:19:51]wFMCommunicate request_size=4 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 11 00 00 [17:19:51]Write to MH i2c: E2 08 00 1C 17 80 11 00 00 00 00 00 00 AD [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:52]Read from MH i2c: E2 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: E2 17 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: E2 17 00 1C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FF [17:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:19:52]wFMCommunicate OK [17:19:52]CreateOFDProtocolMessage done [17:19:52]OFDSenderStorePacket 112011 [17:19:52]StoreOFDPacket docnum=112011 [17:19:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BF 82 04 01 9E 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 7D 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 B3 00 00 00 F4 03 04 00 3B B6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B5 01 00 35 04 06 00 CF 59 34 9D 6A 63 19 D1 8A 8D 73 7C 19 AE [17:19:52]CheckFolder [17:19:52]dirname=/storage/ofd_packets [17:19:52]CheckFolder done [17:19:52]ProducePacketName [17:19:52]name=ofd_packets/00112011 [17:19:52]NVStorageSaveData ofd_packets/00112011 [17:19:52]File name is /storage/ofd_packets/00112011 [17:19:52]Write 298 bytes [17:19:52]NVStorageSaveData done [17:19:52]OFDSenderStorePacket done [17:19:52]KKMCreateOFDPacket done [17:19:52]NVStorageSaveData kkm_last_timestamp [17:19:52]File name is /storage/kkm_last_timestamp [17:19:52]Write 4 bytes [17:19:52]NVStorageSaveData done [17:19:52]ExternCall_PrintAddStr [17:19:52]wPrintStart [17:19:52]Write to MH i2c: 01 00 00 1D 17 34 [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: 01 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: 01 07 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: 01 07 00 1D 17 00 00 00 00 00 FF 0F 49 [17:19:52]RasterBufferAndPrint [17:19:52]line 小褔械褌 N : (1)320662 [17:19:52]line 袠袧袧: 02508201610067 [17:19:52]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:19:52]line 袩袪袨袛袗袞袗 [17:19:52]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [17:19:52]line 孝芯胁邪褉: 2710194210 [17:19:52]line 袛孝-袣-5 [17:19:52]line 13.720 * 72.90 [17:19:52]line = 1000.19 [17:19:52]line 袧袛小 12% 袧小袩 1% [17:19:52]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:19:52]line 袨袣袪校袚袥袝袧袠袝: -0.19 [17:19:52]line 袠孝袨袚袨: 1000.00 [17:19:52]line 袙薪械褋械薪芯: 1000.00 [17:19:52]line 小袛袗效袗: 0.00 [17:19:52]line 袧小袩 1% : 8.85 [17:19:52]line 袧袛小 12% : 106.21 [17:19:52]line 袧邪谢懈褔薪褘屑懈: 1000.00 [17:19:52]line 袘械蟹薪邪谢.: 0.00 [17:19:52]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:19:52]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:19:52]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:19:52]line 效械泻 179 21.06.2024 17:19 [17:19:52]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:19:52]line 袟袧袦: 0300000198 [17:19:52]line 袪袧袦: 0000000000092771 [17:19:52]line 袙械褉褋懈褟 袣袣袦: 001 [17:19:52]line 肖袦: 0000000000875083 [17:19:52]line 肖袛: 112011 [17:19:52]line 肖袩袛: 227982041770595 [17:19:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T171955&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112011&fm=227982041770595&tin=02508201610067®Number=0000000000092771&sum=100000 [17:19:52]written 0, free lines is 4095 [17:19:52]OFD Sender: Processing packet 112011 [packets to send 38, broken 37] [17:19:52]ProducePacketName [17:19:52]name=ofd_packets/00112011 [17:19:52]OFD Sender: To server: 嚂鰌G, [17:19:52]CommunicateWithHost lk.salyk.kg:30040 [17:19:52]ConnectInit lk.salyk.kg [17:19:52]Connected sock=10 [17:19:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BF 82 04 01 9E 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 7D 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 B3 00 00 00 F4 03 04 00 3B B6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B5 01 00 35 04 06 00 CF 59 34 9D 6A 63 19 D1 8A 8D 73 7C 19 AE [17:19:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 39 C7 47 00 89 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 30 38 37 35 30 38 33 10 04 04 00 8B B5 01 00 F4 03 04 00 60 4D 75 66 B6 04 01 00 00 B8 A7 28 54 7B 80 E5 A2 [17:19:52]CommunicateWithHost err = 0 [17:19:52]CheckOFDResponse [17:19:52]1017 (14) - 77093643461234 [17:19:52]1041 (16) - 0000000000875083 [17:19:52]1040 (4) - 112011 [17:19:52]1012 (4) - 21.06.2024 09:52 [17:19:52]1206 (1) - 0 [17:19:52]OFD Sender: Remove packet 112011 [17:19:52]ProducePacketName [17:19:52]name=ofd_packets/00112011 [17:19:52]NVStorageDeleteData [17:19:52]Write to MH i2c: 01 00 00 48 17 5F [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: 01 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: 01 07 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: 01 07 00 48 17 00 00 00 00 00 D8 0C 4A [17:19:52]RasterBufferAndPrint [17:19:52]line [17:19:52]line [17:19:52]line [17:19:52]line [17:19:52]line [17:19:52]written 0, free lines is 3295 [17:19:52]MH_Cut [17:19:52]Write to MH i2c: D1 01 00 4F 17 01 38 [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: D1 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: D1 01 00 [17:19:52]MH_I2C_Read... [17:19:52]Read from MH i2c: D1 01 00 4F 17 00 37 [17:19:52]Write to MH i2c: 01 00 00 50 17 67 [17:19:52]Write i2c OK [17:19:52]MH_I2C_Read... [17:19:52]OFD Sender: No OFD packet to send [17:19:53]*** Cut start [17:19:53]*** Partial cut [17:19:53]*** CUTSNS_PIN = 1 [17:19:53]*** CUTSNS_PIN = 0 [17:19:53]*** Brake cut motor [17:19:53]Read from MH i2c: 01 [17:19:53]MH_I2C_Read... [17:19:53]*** Stop cut motor [17:19:53]*** Cut end [17:19:53]Read from MH i2c: 01 07 00 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 FF 0F 7C [17:19:53]process_action close_receipt done [17:19:53]requested_data is exist [17:19:53]produce_requested_data [17:19:53]requested_item fm.sn is exist - process it [17:19:53]wFMCommunicate request_size=4 [17:19:53]MH_SAM_APDU [17:19:53]CAPDU: 80 11 00 00 [17:19:53]Write to MH i2c: E2 08 00 51 17 80 11 00 00 00 00 00 00 E2 [17:19:53]Write i2c OK [17:19:53]MH_I2C_Read... [17:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:53]Read from MH i2c: E2 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 17 00 [17:19:53]MH_I2C_Read... [17:19:53]Read from MH i2c: E2 17 00 51 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 34 [17:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:19:53]wFMCommunicate OK [17:19:53]requested_item fd.num is exist - process it [17:19:53]SAM_PROTO_GetFieldsCounters [17:19:53]wFMCommunicate request_size=4 [17:19:53]MH_SAM_APDU [17:19:53]CAPDU: 80 13 00 00 [17:19:53]Write to MH i2c: E2 08 00 52 17 80 13 00 00 00 00 00 00 E5 [17:19:53]Write i2c OK [17:19:53]MH_I2C_Read... [17:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 62 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 62 00 52 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8B B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [17:19:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8B B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:54]wFMCommunicate OK [17:19:54]SAM_PROTO_GetFieldsCounters done [17:19:54]requested_item shift.num is exist - process it [17:19:54]requested_item shift.opened is exist - process it [17:19:54]req_shift_opened [17:19:54]FM_GetShiftState [17:19:54]SAM_PROTO_GetShiftState [17:19:54]wFMCommunicate request_size=4 [17:19:54]MH_SAM_APDU [17:19:54]CAPDU: 80 13 01 00 [17:19:54]Write to MH i2c: E2 08 00 53 17 80 13 01 00 00 00 00 00 E7 [17:19:54]Write i2c OK [17:19:54]MH_I2C_Read... [17:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:54]Read from MH i2c: E2 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 0E 00 [17:19:54]MH_I2C_Read... [17:19:54]Read from MH i2c: E2 0E 00 53 17 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 64 [17:19:54]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:19:54]wFMCommunicate OK [17:19:54]SAM_PROTO_GetShiftState done [17:19:54]FM_GetShiftState done [17:19:54]req_shift_opened done [17:19:54]requested_item shift.open_date is exist - process it [17:19:54]req_shift_open_date [17:19:54]req_shift_open_date done [17:19:54]produce_requested_data done [17:19:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112011,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:19:54]process_action_free close_receipt [17:19:54]json_value_free [17:19:54]json_value_free done [17:19:54]process_json_proto returns [17:19:54]Send response to host [17:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112011,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:19:54]free response buf [17:19:54]execute_script done [17:19:54]execute_script returns [17:19:54]free content buf [17:19:54]Sock 9.Close socket [17:19:54]Sock 9.Thread stoped [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]accept exits with 7 [17:24:48]New connection [17:24:48]New thread 3066731876 created [17:24:48]Thread 3066875236 joined [17:24:48]Waiting for new connection... [17:24:48] Sock 7.Parse request [17:24:48]Sock 7.Check first char [17:24:48]Sock 7.First char is OK [17:24:48]request: POST /json_proto HTTP/1.0 [17:24:48]Method: POST [17:24:48]URL: /json_proto [17:24:48]Method is POST - this is cgi request [17:24:48]url: /json_proto [17:24:48]query_string will be loaded in cgi processing [17:24:48]execute_cgi json_proto POST (null) [17:24:48]execute_cgi path=json_proto method=POST [17:24:48]POST find Content-Length [17:24:48]Host: 172.17.59.68:8080 [17:24:48]Content-Length: 677 [17:24:48]Content-Type: application/json [17:24:48] [17:24:48]POST finish read [17:24:48]Found Content-Length = 677 [17:24:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.320, "sum" : 220.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:48]execute_script... [17:24: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)320663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.320, "sum" : 220.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:48]POST & json_proto [17:24:48]process_json_proto [17:24:48]json parsed OK: [17:24:48]protocol is kg_v1.0 [17:24:48]action value=close_receipt [17:24:48]process_action close_receipt [17:24:48]cmd_close_receipt [17:24:48]MH_GetDate [17:24:48]Write to MH i2c: F0 00 00 54 17 5A [17:24:48]Write i2c OK [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: F0 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: F0 09 00 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: F0 09 00 54 17 00 65 B7 75 66 BC EC 60 65 C7 [17:24:48]GetLastDocTimeStamp 1718990395 [17:24:48]current date 1718990693 [17:24:48]FM_GetShiftState [17:24:48]SAM_PROTO_GetShiftState [17:24:48]wFMCommunicate request_size=4 [17:24:48]MH_SAM_APDU [17:24:48]CAPDU: 80 13 01 00 [17:24:48]Write to MH i2c: E2 08 00 55 17 80 13 01 00 00 00 00 00 E9 [17:24:48]Write i2c OK [17:24:48]MH_I2C_Read... [17:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:48]Read from MH i2c: E2 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 0E 00 [17:24:48]MH_I2C_Read... [17:24:48]Read from MH i2c: E2 0E 00 55 17 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 66 [17:24:48]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:24:48]wFMCommunicate OK [17:24:48]SAM_PROTO_GetShiftState done [17:24:48]FM_GetShiftState done [17:24:48]opened in 1718933695 [17:24:48]opened+sec_in_day 1719020095 [17:24:48]quantity*price = 22044 [17:24:48]sum+1 = 22046 [17:24:48]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.45 袠孝袨袚袨: 220.00 袙薪械褋械薪芯: 220.00 小袛袗效袗: 0.00 袧小袩 1% : 1.95 袧袛小 12% : 23.41 袧邪谢懈褔薪褘屑懈: 220.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 180 21.06.2024 17:24 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112012 肖袩袛: 208923061564807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T172453&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112012&fm=208923061564807&tin=02508201610067®Number=0000000000092771&sum=22000 [17:24:49]StoreToDocumentArchive [17:24:49]shift 390 fd 112012 [17:24:49]save to /storage/0390/doc_00112012 [17:24:49]save last doc name /storage/0390/doc_00112012 to /storage/kkm_last_doc_name [17:24:49]save OK [17:24:49]Clear old archive folders... [17:24:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:49]tlvbuf is 00340390 [17:24:49]SAM_PROTO_ClearQueue [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 09 00 00 [17:24:49]Write to MH i2c: E2 08 00 62 17 80 09 00 00 00 00 00 00 EB [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 62 17 00 90 00 ED [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]SAM_PROTO_ClearQueue done [17:24:49]KKMCreateOFDPacket [17:24:49]OFDProtocolAddRootSTLVToBuf [17:24:49]FM_MakeSignedData [17:24:49]FM_MakeSignedData [17:24:49]SAM_PROTO_SignData [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 01 02 [17:24:49]Write to MH i2c: E2 08 00 63 17 80 0D 01 02 00 00 00 00 F3 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 63 17 00 90 00 EE [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]wFMCommunicate request_size=255 [17:24:49]MH_SAM_APDU [17:24:49]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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 B4 00 00 00 F4 03 04 00 65 B7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B5 01 00 35 04 06 00 BE [17:24:49]Write to MH i2c: E2 02 01 64 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 B4 00 00 00 F4 03 04 00 65 B7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B5 01 00 35 04 06 00 BE 00 00 2A [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 64 17 00 90 00 EF [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]wFMCommunicate request_size=10 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 02 02 05 03 B0 DE B5 87 [17:24:49]Write to MH i2c: E2 0D 00 65 17 80 0D 02 02 05 00 03 B0 DE B5 87 00 00 CD [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 03 00 65 17 00 90 00 F0 [17:24:49]RAPDU: 90 00 [17:24:49]wFMCommunicate OK [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 0D 03 02 [17:24:49]Write to MH i2c: E2 08 00 66 17 80 0D 03 02 00 00 00 00 F8 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 0B 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 0B 00 66 17 00 41 E1 B7 70 6D 3D C3 96 90 00 45 [17:24:49]RAPDU: 41 E1 B7 70 6D 3D C3 96 90 00 [17:24:49]wFMCommunicate OK [17:24:49]SAM_PROTO_SignData done [17:24:49]FM_MakeSignedData done [17:24:49]CreateOFDProtocolMessage [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 11 00 00 [17:24:49]Write to MH i2c: E2 08 00 67 17 80 11 00 00 00 00 00 00 F8 [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 17 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 17 00 67 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4A [17:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:24:49]wFMCommunicate OK [17:24:49]CreateOFDProtocolMessage done [17:24:49]OFDSenderStorePacket 112012 [17:24:49]StoreOFDPacket docnum=112012 [17:24:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A3 68 07 01 AD 7D 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 B4 00 00 00 F4 03 04 00 65 B7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B5 01 00 35 04 06 00 BE 03 B0 DE B5 87 41 E1 B7 70 6D 3D C3 96 [17:24:49]CheckFolder [17:24:49]dirname=/storage/ofd_packets [17:24:49]CheckFolder done [17:24:49]ProducePacketName [17:24:49]name=ofd_packets/00112012 [17:24:49]NVStorageSaveData ofd_packets/00112012 [17:24:49]File name is /storage/ofd_packets/00112012 [17:24:49]Write 301 bytes [17:24:49]NVStorageSaveData done [17:24:49]OFDSenderStorePacket done [17:24:49]KKMCreateOFDPacket done [17:24:49]NVStorageSaveData kkm_last_timestamp [17:24:49]File name is /storage/kkm_last_timestamp [17:24:49]Write 4 bytes [17:24:49]NVStorageSaveData done [17:24:49]ExternCall_PrintAddStr [17:24:49]wPrintStart [17:24:49]Write to MH i2c: 01 00 00 68 17 7F [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: 01 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: 01 07 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: 01 07 00 68 17 00 00 00 00 00 FF 0F 94 [17:24:49]RasterBufferAndPrint [17:24:49]line 小褔械褌 N : (1)320663 [17:24:49]line 袠袧袧: 02508201610067 [17:24:49]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:24:49]line 袩袪袨袛袗袞袗 [17:24:49]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:24:49]line 孝芯胁邪褉: 2710124130 [17:24:49]line 袗懈-92-袣-5 [17:24:49]line 3.320 * 66.40 [17:24:49]line = 220.45 [17:24:49]line 袧袛小 12% 袧小袩 1% [17:24:49]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:24:49]line 袨袣袪校袚袥袝袧袠袝: -0.45 [17:24:49]line 袠孝袨袚袨: 220.00 [17:24:49]line 袙薪械褋械薪芯: 220.00 [17:24:49]line 小袛袗效袗: 0.00 [17:24:49]line 袧小袩 1% : 1.95 [17:24:49]line 袧袛小 12% : 23.41 [17:24:49]line 袧邪谢懈褔薪褘屑懈: 220.00 [17:24:49]line 袘械蟹薪邪谢.: 0.00 [17:24:49]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:24:49]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:24:49]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:24:49]line 效械泻 180 21.06.2024 17:24 [17:24:49]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:24:49]line 袟袧袦: 0300000198 [17:24:49]line 袪袧袦: 0000000000092771 [17:24:49]line 袙械褉褋懈褟 袣袣袦: 001 [17:24:49]line 肖袦: 0000000000875083 [17:24:49]line 肖袛: 112012 [17:24:49]line 肖袩袛: 208923061564807 [17:24:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T172453&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112012&fm=208923061564807&tin=02508201610067®Number=0000000000092771&sum=22000 [17:24:50]OFD Sender: Processing packet 112012 [packets to send 38, broken 37] [17:24:50]ProducePacketName [17:24:50]name=ofd_packets/00112012 [17:24:50]OFD Sender: To server: 嚂鰌G, [17:24:50]CommunicateWithHost lk.salyk.kg:30040 [17:24:50]ConnectInit lk.salyk.kg [17:24:50]written 0, free lines is 4095 [17:24:50]Connected sock=9 [17:24:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A3 68 07 01 AD 7D 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 B4 00 00 00 F4 03 04 00 65 B7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B5 01 00 35 04 06 00 BE 03 B0 DE B5 87 41 E1 B7 70 6D 3D C3 96 [17:24:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1E 9B 47 00 E2 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 30 38 37 35 30 38 33 10 04 04 00 8C B5 01 00 F4 03 04 00 8B 4E 75 66 B6 04 01 00 00 D8 F9 3F 2D E7 CA 24 43 [17:24:50]CommunicateWithHost err = 0 [17:24:50]CheckOFDResponse [17:24:50]1017 (14) - 77093643461234 [17:24:50]1041 (16) - 0000000000875083 [17:24:50]1040 (4) - 112012 [17:24:50]1012 (4) - 21.06.2024 09:57 [17:24:50]1206 (1) - 0 [17:24:50]OFD Sender: Remove packet 112012 [17:24:50]ProducePacketName [17:24:50]name=ofd_packets/00112012 [17:24:50]NVStorageDeleteData [17:24:50]Write to MH i2c: 01 00 00 93 17 AA [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 07 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 07 00 93 17 00 00 00 00 00 D9 0C 96 [17:24:50]RasterBufferAndPrint [17:24:50]line [17:24:50]line [17:24:50]line [17:24:50]line [17:24:50]line [17:24:50]written 0, free lines is 3296 [17:24:50]MH_Cut [17:24:50]Write to MH i2c: D1 01 00 9A 17 01 83 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: D1 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: D1 01 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: D1 01 00 9A 17 00 82 [17:24:50]Write to MH i2c: 01 00 00 9B 17 B2 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]OFD Sender: No OFD packet to send [17:24:51]*** Cut start [17:24:51]*** Partial cut [17:24:51]*** CUTSNS_PIN = 1 [17:24:51]*** CUTSNS_PIN = 0 [17:24:51]*** Brake cut motor [17:24:51]Read from MH i2c: 01 [17:24:51]MH_I2C_Read... [17:24:51]*** Stop cut motor [17:24:51]*** Cut end [17:24:51]Read from MH i2c: 01 07 00 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: 01 07 00 9B 17 00 00 00 00 00 FF 0F C7 [17:24:51]process_action close_receipt done [17:24:51]requested_data is exist [17:24:51]produce_requested_data [17:24:51]requested_item fm.sn is exist - process it [17:24:51]wFMCommunicate request_size=4 [17:24:51]MH_SAM_APDU [17:24:51]CAPDU: 80 11 00 00 [17:24:51]Write to MH i2c: E2 08 00 9C 17 80 11 00 00 00 00 00 00 2D [17:24:51]Write i2c OK [17:24:51]MH_I2C_Read... [17:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:51]Read from MH i2c: E2 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: E2 17 00 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: E2 17 00 9C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7F [17:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:24:51]wFMCommunicate OK [17:24:51]requested_item fd.num is exist - process it [17:24:51]SAM_PROTO_GetFieldsCounters [17:24:51]wFMCommunicate request_size=4 [17:24:51]MH_SAM_APDU [17:24:51]CAPDU: 80 13 00 00 [17:24:51]Write to MH i2c: E2 08 00 9D 17 80 13 00 00 00 00 00 00 30 [17:24:51]Write i2c OK [17:24:51]MH_I2C_Read... [17:24:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:52]Read from MH i2c: E2 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 62 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 62 00 9D 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8C B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [17:24:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8C B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:52]wFMCommunicate OK [17:24:52]SAM_PROTO_GetFieldsCounters done [17:24:52]requested_item shift.num is exist - process it [17:24:52]requested_item shift.opened is exist - process it [17:24:52]req_shift_opened [17:24:52]FM_GetShiftState [17:24:52]SAM_PROTO_GetShiftState [17:24:52]wFMCommunicate request_size=4 [17:24:52]MH_SAM_APDU [17:24:52]CAPDU: 80 13 01 00 [17:24:52]Write to MH i2c: E2 08 00 9E 17 80 13 01 00 00 00 00 00 32 [17:24:52]Write i2c OK [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 [17:24:52]MH_I2C_Read... [17:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:52]Read from MH i2c: E2 0E 00 [17:24:52]MH_I2C_Read... [17:24:52]Read from MH i2c: E2 0E 00 9E 17 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 AF [17:24:52]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:24:52]wFMCommunicate OK [17:24:52]SAM_PROTO_GetShiftState done [17:24:52]FM_GetShiftState done [17:24:52]req_shift_opened done [17:24:52]requested_item shift.open_date is exist - process it [17:24:52]req_shift_open_date [17:24:52]req_shift_open_date done [17:24:52]produce_requested_data done [17:24:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112012,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:24:52]process_action_free close_receipt [17:24:52]json_value_free [17:24:52]json_value_free done [17:24:52]process_json_proto returns [17:24:52]Send response to host [17:24:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112012,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:24:52]free response buf [17:24:52]execute_script done [17:24:52]execute_script returns [17:24:52]free content buf [17:24:52]Sock 7.Close socket [17:24:52]Sock 7.Thread stoped [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:43]accept exits with 10 [17:26:43]New connection [17:26:43]New thread 3066875236 created [17:26:43]Thread 3066731876 joined [17:26:43]Waiting for new connection... [17:26:43] Sock 10.Parse request [17:26:43]Sock 10.Check first char [17:26:43]Sock 10.First char is OK [17:26:43]request: POST /json_proto HTTP/1.0 [17:26:43]Method: POST [17:26:43]URL: /json_proto [17:26:43]Method is POST - this is cgi request [17:26:43]url: /json_proto [17:26:43]query_string will be loaded in cgi processing [17:26:43]execute_cgi json_proto POST (null) [17:26:43]execute_cgi path=json_proto method=POST [17:26:43]POST find Content-Length [17:26:43]Host: 172.17.59.68:8080 [17:26:43]Content-Length: 677 [17:26:43]Content-Type: application/json [17:26:43] [17:26:43]POST finish read [17:26:43]Found Content-Length = 677 [17:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:43]execute_script... [17:26: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)320664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:43]POST & json_proto [17:26:43]process_json_proto [17:26:43]json parsed OK: [17:26:43]protocol is kg_v1.0 [17:26:43]action value=close_receipt [17:26:43]process_action close_receipt [17:26:43]cmd_close_receipt [17:26:43]MH_GetDate [17:26:43]Write to MH i2c: F0 00 00 9F 17 A5 [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: F0 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: F0 09 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: F0 09 00 9F 17 00 D9 B7 75 66 BC EC 60 65 86 [17:26:43]GetLastDocTimeStamp 1718990693 [17:26:43]current date 1718990809 [17:26:43]FM_GetShiftState [17:26:43]SAM_PROTO_GetShiftState [17:26:43]wFMCommunicate request_size=4 [17:26:43]MH_SAM_APDU [17:26:43]CAPDU: 80 13 01 00 [17:26:43]Write to MH i2c: E2 08 00 A0 17 80 13 01 00 00 00 00 00 34 [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 0E 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 0E 00 A0 17 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B1 [17:26:43]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:26:43]wFMCommunicate OK [17:26:43]SAM_PROTO_GetShiftState done [17:26:43]FM_GetShiftState done [17:26:43]opened in 1718933695 [17:26:43]opened+sec_in_day 1719020095 [17:26:43]quantity*price = 50065 [17:26:43]sum+1 = 50067 [17:26:43]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 181 21.06.2024 17:26 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112013 肖袩袛: 152882129549265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T172649&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112013&fm=152882129549265&tin=02508201610067®Number=0000000000092771&sum=50000 [17:26:45]StoreToDocumentArchive [17:26:45]shift 390 fd 112013 [17:26:45]save to /storage/0390/doc_00112013 [17:26:45]save last doc name /storage/0390/doc_00112013 to /storage/kkm_last_doc_name [17:26:45]save OK [17:26:45]Clear old archive folders... [17:26:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:45]tlvbuf is 00465A00 [17:26:45]SAM_PROTO_ClearQueue [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 09 00 00 [17:26:45]Write to MH i2c: E2 08 00 AD 17 80 09 00 00 00 00 00 00 36 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 AD 17 00 90 00 38 [17:26:45]RAPDU: 90 00 [17:26:45]wFMCommunicate OK [17:26:45]SAM_PROTO_ClearQueue done [17:26:45]KKMCreateOFDPacket [17:26:45]OFDProtocolAddRootSTLVToBuf [17:26:45]FM_MakeSignedData [17:26:45]FM_MakeSignedData [17:26:45]SAM_PROTO_SignData [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 0D 01 02 [17:26:45]Write to MH i2c: E2 08 00 AE 17 80 0D 01 02 00 00 00 00 3E [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 AE 17 00 90 00 39 [17:26:45]RAPDU: 90 00 [17:26:45]wFMCommunicate OK [17:26:45]wFMCommunicate request_size=255 [17:26:45]MH_SAM_APDU [17:26: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 B5 00 00 00 F4 03 04 00 D9 B7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B5 01 00 35 04 06 00 8B [17:26:45]Write to MH i2c: E2 02 01 AF 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 B5 00 00 00 F4 03 04 00 D9 B7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B5 01 00 35 04 06 00 8B 00 00 67 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 AF 17 00 90 00 3A [17:26:45]RAPDU: 90 00 [17:26:45]wFMCommunicate OK [17:26:45]wFMCommunicate request_size=10 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 0D 02 02 05 0B A5 06 37 D1 [17:26:45]Write to MH i2c: E2 0D 00 B0 17 80 0D 02 02 05 00 0B A5 06 37 D1 00 00 09 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 B0 17 00 90 00 3B [17:26:45]RAPDU: 90 00 [17:26:45]wFMCommunicate OK [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 0D 03 02 [17:26:45]Write to MH i2c: E2 08 00 B1 17 80 0D 03 02 00 00 00 00 43 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 0B 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 0B 00 B1 17 00 88 14 71 70 7A 99 DF 70 90 00 23 [17:26:45]RAPDU: 88 14 71 70 7A 99 DF 70 90 00 [17:26:45]wFMCommunicate OK [17:26:45]SAM_PROTO_SignData done [17:26:45]FM_MakeSignedData done [17:26:45]CreateOFDProtocolMessage [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 11 00 00 [17:26:45]Write to MH i2c: E2 08 00 B2 17 80 11 00 00 00 00 00 00 43 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 17 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 17 00 B2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 95 [17:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:26:45]wFMCommunicate OK [17:26:45]CreateOFDProtocolMessage done [17:26:45]OFDSenderStorePacket 112013 [17:26:45]StoreOFDPacket docnum=112013 [17:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC FB 07 01 BE F7 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 B5 00 00 00 F4 03 04 00 D9 B7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B5 01 00 35 04 06 00 8B 0B A5 06 37 D1 88 14 71 70 7A 99 DF 70 [17:26:45]CheckFolder [17:26:45]dirname=/storage/ofd_packets [17:26:45]CheckFolder done [17:26:45]ProducePacketName [17:26:45]name=ofd_packets/00112013 [17:26:45]NVStorageSaveData ofd_packets/00112013 [17:26:45]File name is /storage/ofd_packets/00112013 [17:26:45]Write 301 bytes [17:26:45]NVStorageSaveData done [17:26:45]OFDSenderStorePacket done [17:26:45]KKMCreateOFDPacket done [17:26:45]NVStorageSaveData kkm_last_timestamp [17:26:45]File name is /storage/kkm_last_timestamp [17:26:45]Write 4 bytes [17:26:45]NVStorageSaveData done [17:26:45]ExternCall_PrintAddStr [17:26:45]wPrintStart [17:26:45]Write to MH i2c: 01 00 00 B3 17 CA [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: 01 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: 01 07 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: 01 07 00 B3 17 00 00 00 00 00 FF 0F DF [17:26:45]RasterBufferAndPrint [17:26:45]line 小褔械褌 N : (1)320664 [17:26:45]line 袠袧袧: 02508201610067 [17:26:45]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:26:45]line 袩袪袨袛袗袞袗 [17:26:45]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:26:45]line 孝芯胁邪褉: 2710124130 [17:26:45]line 袗懈-92-袣-5 [17:26:45]line 7.540 * 66.40 [17:26:45]line = 500.66 [17:26:45]line 袧袛小 12% 袧小袩 1% [17:26:45]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:26:45]line 袨袣袪校袚袥袝袧袠袝: -0.66 [17:26:45]line 袠孝袨袚袨: 500.00 [17:26:45]line 袙薪械褋械薪芯: 500.00 [17:26:45]line 小袛袗效袗: 0.00 [17:26:45]line 袧小袩 1% : 4.43 [17:26:45]line 袧袛小 12% : 53.17 [17:26:45]line 袧邪谢懈褔薪褘屑懈: 500.00 [17:26:45]line 袘械蟹薪邪谢.: 0.00 [17:26:45]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:26:45]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:26:45]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:26:45]line 效械泻 181 21.06.2024 17:26 [17:26:45]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:26:45]line 袟袧袦: 0300000198 [17:26:45]line 袪袧袦: 0000000000092771 [17:26:45]line 袙械褉褋懈褟 袣袣袦: 001 [17:26:45]line 肖袦: 0000000000875083 [17:26:45]line 肖袛: 112013 [17:26:45]line 肖袩袛: 152882129549265 [17:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T172649&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112013&fm=152882129549265&tin=02508201610067®Number=0000000000092771&sum=50000 [17:26:45]OFD Sender: Processing packet 112013 [packets to send 38, broken 37] [17:26:45]ProducePacketName [17:26:45]name=ofd_packets/00112013 [17:26:45]OFD Sender: To server: 嚂鰌G, [17:26:45]CommunicateWithHost lk.salyk.kg:30040 [17:26:46]ConnectInit lk.salyk.kg [17:26:46]written 0, free lines is 4095 [17:26:46]Connected sock=7 [17:26:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC FB 07 01 BE F7 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 B5 00 00 00 F4 03 04 00 D9 B7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B5 01 00 35 04 06 00 8B 0B A5 06 37 D1 88 14 71 70 7A 99 DF 70 [17:26:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A6 F1 47 00 C5 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 30 38 37 35 30 38 33 10 04 04 00 8D B5 01 00 F4 03 04 00 FE 4E 75 66 B6 04 01 00 00 0D 07 1F D5 47 54 FB F9 [17:26:46]CommunicateWithHost err = 0 [17:26:46]CheckOFDResponse [17:26:46]1017 (14) - 77093643461234 [17:26:46]1041 (16) - 0000000000875083 [17:26:46]1040 (4) - 112013 [17:26:46]1012 (4) - 21.06.2024 09:59 [17:26:46]1206 (1) - 0 [17:26:46]OFD Sender: Remove packet 112013 [17:26:46]ProducePacketName [17:26:46]name=ofd_packets/00112013 [17:26:46]NVStorageDeleteData [17:26:46]Write to MH i2c: 01 00 00 DE 17 F5 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 07 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 07 00 DE 17 00 00 00 00 00 D4 0C DC [17:26:46]RasterBufferAndPrint [17:26:46]line [17:26:46]line [17:26:46]line [17:26:46]line [17:26:46]line [17:26:46]written 0, free lines is 3292 [17:26:46]MH_Cut [17:26:46]Write to MH i2c: D1 01 00 E5 17 01 CE [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: D1 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: D1 01 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: D1 01 00 E5 17 00 CD [17:26:46]Write to MH i2c: 01 00 00 E6 17 FD [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]OFD Sender: No OFD packet to send [17:26:47]*** Cut start [17:26:47]*** Partial cut [17:26:47]*** CUTSNS_PIN = 1 [17:26:47]*** CUTSNS_PIN = 0 [17:26:47]*** Brake cut motor [17:26:47]Read from MH i2c: 01 [17:26:47]MH_I2C_Read... [17:26:47]*** Stop cut motor [17:26:47]*** Cut end [17:26:47]Read from MH i2c: 01 07 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 07 00 E6 17 00 00 00 00 00 FF 0F 12 [17:26:47]process_action close_receipt done [17:26:47]requested_data is exist [17:26:47]produce_requested_data [17:26:47]requested_item fm.sn is exist - process it [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 11 00 00 [17:26:47]Write to MH i2c: E2 08 00 E7 17 80 11 00 00 00 00 00 00 78 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 17 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 17 00 E7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CA [17:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:26:47]wFMCommunicate OK [17:26:47]requested_item fd.num is exist - process it [17:26:47]SAM_PROTO_GetFieldsCounters [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 13 00 00 [17:26:47]Write to MH i2c: E2 08 00 E8 17 80 13 00 00 00 00 00 00 7B [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 62 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 62 00 E8 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8D B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [17:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8D B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:47]wFMCommunicate OK [17:26:47]SAM_PROTO_GetFieldsCounters done [17:26:47]requested_item shift.num is exist - process it [17:26:47]requested_item shift.opened is exist - process it [17:26:47]req_shift_opened [17:26:47]FM_GetShiftState [17:26:47]SAM_PROTO_GetShiftState [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 13 01 00 [17:26:47]Write to MH i2c: E2 08 00 E9 17 80 13 01 00 00 00 00 00 7D [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 [17:26:48]MH_I2C_Read... [17:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:48]Read from MH i2c: E2 0E 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 0E 00 E9 17 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 FA [17:26:48]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:26:48]wFMCommunicate OK [17:26:48]SAM_PROTO_GetShiftState done [17:26:48]FM_GetShiftState done [17:26:48]req_shift_opened done [17:26:48]requested_item shift.open_date is exist - process it [17:26:48]req_shift_open_date [17:26:48]req_shift_open_date done [17:26:48]produce_requested_data done [17:26:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112013,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:26:48]process_action_free close_receipt [17:26:48]json_value_free [17:26:48]json_value_free done [17:26:48]process_json_proto returns [17:26:48]Send response to host [17:26:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112013,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:26:48]free response buf [17:26:48]execute_script done [17:26:48]execute_script returns [17:26:48]free content buf [17:26:48]Sock 10.Close socket [17:26:48]Sock 10.Thread stoped [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:45]accept exits with 9 [17:28:45]New connection [17:28:45]New thread 3066731876 created [17:28:45]Thread 3066875236 joined [17:28:45]Waiting for new connection... [17:28:45] Sock 9.Parse request [17:28:45]Sock 9.Check first char [17:28:45]Sock 9.First char is OK [17:28:45]request: POST /json_proto HTTP/1.0 [17:28:45]Method: POST [17:28:45]URL: /json_proto [17:28:45]Method is POST - this is cgi request [17:28:45]url: /json_proto [17:28:45]query_string will be loaded in cgi processing [17:28:45]execute_cgi json_proto POST (null) [17:28:45]execute_cgi path=json_proto method=POST [17:28:45]POST find Content-Length [17:28:45]Host: 172.17.59.68:8080 [17:28:45]Content-Length: 677 [17:28:45]Content-Type: application/json [17:28:45] [17:28:45]POST finish read [17:28:45]Found Content-Length = 677 [17:28:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:45]execute_script... [17:28: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)320665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:45]POST & json_proto [17:28:45]process_json_proto [17:28:45]json parsed OK: [17:28:45]protocol is kg_v1.0 [17:28:45]action value=close_receipt [17:28:45]process_action close_receipt [17:28:45]cmd_close_receipt [17:28:45]MH_GetDate [17:28:45]Write to MH i2c: F0 00 00 EA 17 F0 [17:28:45]Write i2c OK [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: F0 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: F0 09 00 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: F0 09 00 EA 17 00 53 B8 75 66 BC EC 60 65 4C [17:28:45]GetLastDocTimeStamp 1718990809 [17:28:45]current date 1718990931 [17:28:45]FM_GetShiftState [17:28:45]SAM_PROTO_GetShiftState [17:28:45]wFMCommunicate request_size=4 [17:28:45]MH_SAM_APDU [17:28:45]CAPDU: 80 13 01 00 [17:28:45]Write to MH i2c: E2 08 00 EB 17 80 13 01 00 00 00 00 00 7F [17:28:45]Write i2c OK [17:28:45]MH_I2C_Read... [17:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:45]Read from MH i2c: E2 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 0E 00 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 0E 00 EB 17 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 FC [17:28:45]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:28:45]wFMCommunicate OK [17:28:45]SAM_PROTO_GetShiftState done [17:28:45]FM_GetShiftState done [17:28:45]opened in 1718933695 [17:28:45]opened+sec_in_day 1719020095 [17:28:45]quantity*price = 50065 [17:28:45]sum+1 = 50067 [17:28:45]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 182 21.06.2024 17:28 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112014 肖袩袛: 206335185682281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T172851&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112014&fm=206335185682281&tin=02508201610067®Number=0000000000092771&sum=50000 [17:28:47]StoreToDocumentArchive [17:28:47]shift 390 fd 112014 [17:28:47]save to /storage/0390/doc_00112014 [17:28:47]save last doc name /storage/0390/doc_00112014 to /storage/kkm_last_doc_name [17:28:47]save OK [17:28:47]Clear old archive folders... [17:28:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:47]tlvbuf is 003411C0 [17:28:47]SAM_PROTO_ClearQueue [17:28:47]wFMCommunicate request_size=4 [17:28:47]MH_SAM_APDU [17:28:47]CAPDU: 80 09 00 00 [17:28:47]Write to MH i2c: E2 08 00 F8 17 80 09 00 00 00 00 00 00 81 [17:28:47]Write i2c OK [17:28:47]MH_I2C_Read... [17:28:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:47]Read from MH i2c: E2 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 03 00 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 03 00 F8 17 00 90 00 83 [17:28:47]RAPDU: 90 00 [17:28:47]wFMCommunicate OK [17:28:47]SAM_PROTO_ClearQueue done [17:28:47]KKMCreateOFDPacket [17:28:47]OFDProtocolAddRootSTLVToBuf [17:28:47]FM_MakeSignedData [17:28:47]FM_MakeSignedData [17:28:47]SAM_PROTO_SignData [17:28:47]wFMCommunicate request_size=4 [17:28:47]MH_SAM_APDU [17:28:47]CAPDU: 80 0D 01 02 [17:28:47]Write to MH i2c: E2 08 00 F9 17 80 0D 01 02 00 00 00 00 89 [17:28:47]Write i2c OK [17:28:47]MH_I2C_Read... [17:28:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:47]Read from MH i2c: E2 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 03 00 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 03 00 F9 17 00 90 00 84 [17:28:47]RAPDU: 90 00 [17:28:47]wFMCommunicate OK [17:28:47]wFMCommunicate request_size=255 [17:28:47]MH_SAM_APDU [17:28: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 B6 00 00 00 F4 03 04 00 53 B8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B5 01 00 35 04 06 00 BB [17:28:47]Write to MH i2c: E2 02 01 FA 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 B6 00 00 00 F4 03 04 00 53 B8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B5 01 00 35 04 06 00 BB 00 00 5F [17:28:47]Write i2c OK [17:28:47]MH_I2C_Read... [17:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:47]Read from MH i2c: E2 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 03 00 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 03 00 FA 17 00 90 00 85 [17:28:47]RAPDU: 90 00 [17:28:47]wFMCommunicate OK [17:28:47]wFMCommunicate request_size=10 [17:28:47]MH_SAM_APDU [17:28:47]CAPDU: 80 0D 02 02 05 A9 27 72 7F 69 [17:28:47]Write to MH i2c: E2 0D 00 FB 17 80 0D 02 02 05 00 A9 27 72 7F 69 00 00 C0 [17:28:47]Write i2c OK [17:28:47]MH_I2C_Read... [17:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:47]Read from MH i2c: E2 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 03 00 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 03 00 FB 17 00 90 00 86 [17:28:47]RAPDU: 90 00 [17:28:47]wFMCommunicate OK [17:28:47]wFMCommunicate request_size=4 [17:28:47]MH_SAM_APDU [17:28:47]CAPDU: 80 0D 03 02 [17:28:47]Write to MH i2c: E2 08 00 FC 17 80 0D 03 02 00 00 00 00 8E [17:28:47]Write i2c OK [17:28:47]MH_I2C_Read... [17:28:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:47]Read from MH i2c: E2 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 0B 00 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 0B 00 FC 17 00 FE 96 6B B3 9B 25 41 A8 90 00 EA [17:28:47]RAPDU: FE 96 6B B3 9B 25 41 A8 90 00 [17:28:47]wFMCommunicate OK [17:28:47]SAM_PROTO_SignData done [17:28:47]FM_MakeSignedData done [17:28:47]CreateOFDProtocolMessage [17:28:47]wFMCommunicate request_size=4 [17:28:47]MH_SAM_APDU [17:28:47]CAPDU: 80 11 00 00 [17:28:47]Write to MH i2c: E2 08 00 FD 17 80 11 00 00 00 00 00 00 8E [17:28:47]Write i2c OK [17:28:47]MH_I2C_Read... [17:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:47]Read from MH i2c: E2 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 17 00 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: E2 17 00 FD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E0 [17:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:28:47]wFMCommunicate OK [17:28:47]CreateOFDProtocolMessage done [17:28:47]OFDSenderStorePacket 112014 [17:28:47]StoreOFDPacket docnum=112014 [17:28:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E9 17 07 01 AA 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 B6 00 00 00 F4 03 04 00 53 B8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B5 01 00 35 04 06 00 BB A9 27 72 7F 69 FE 96 6B B3 9B 25 41 A8 [17:28:47]CheckFolder [17:28:47]dirname=/storage/ofd_packets [17:28:47]CheckFolder done [17:28:47]ProducePacketName [17:28:47]name=ofd_packets/00112014 [17:28:47]NVStorageSaveData ofd_packets/00112014 [17:28:47]File name is /storage/ofd_packets/00112014 [17:28:47]Write 301 bytes [17:28:47]NVStorageSaveData done [17:28:47]OFDSenderStorePacket done [17:28:47]KKMCreateOFDPacket done [17:28:47]NVStorageSaveData kkm_last_timestamp [17:28:47]File name is /storage/kkm_last_timestamp [17:28:47]Write 4 bytes [17:28:47]NVStorageSaveData done [17:28:47]ExternCall_PrintAddStr [17:28:47]wPrintStart [17:28:47]Write to MH i2c: 01 00 00 FE 17 15 [17:28:47]OFD Sender: Processing packet 112014 [packets to send 38, broken 37] [17:28:47]ProducePacketName [17:28:47]name=ofd_packets/00112014 [17:28:47]OFD Sender: To server: 嚂鰌G, [17:28:47]CommunicateWithHost lk.salyk.kg:30040 [17:28:47]ConnectInit lk.salyk.kg [17:28:47]Write i2c OK [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: 01 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: 01 07 00 [17:28:47]MH_I2C_Read... [17:28:47]Read from MH i2c: 01 07 00 FE 17 00 00 00 00 00 FF 0F 2A [17:28:47]RasterBufferAndPrint [17:28:47]line 小褔械褌 N : (1)320665 [17:28:47]line 袠袧袧: 02508201610067 [17:28:47]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:28:47]line 袩袪袨袛袗袞袗 [17:28:47]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:28:47]line 孝芯胁邪褉: 2710124130 [17:28:47]line 袗懈-92-袣-5 [17:28:47]line 7.540 * 66.40 [17:28:47]line = 500.66 [17:28:47]line 袧袛小 12% 袧小袩 1% [17:28:47]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:28:47]line 袨袣袪校袚袥袝袧袠袝: -0.66 [17:28:47]line 袠孝袨袚袨: 500.00 [17:28:47]line 袙薪械褋械薪芯: 500.00 [17:28:47]line 小袛袗效袗: 0.00 [17:28:47]line 袧小袩 1% : 4.43 [17:28:47]line 袧袛小 12% : 53.17 [17:28:47]line 袧邪谢懈褔薪褘屑懈: 500.00 [17:28:47]line 袘械蟹薪邪谢.: 0.00 [17:28:47]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:28:47]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:28:47]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:28:47]line 效械泻 182 21.06.2024 17:28 [17:28:47]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:28:47]line 袟袧袦: 0300000198 [17:28:47]line 袪袧袦: 0000000000092771 [17:28:47]line 袙械褉褋懈褟 袣袣袦: 001 [17:28:47]line 肖袦: 0000000000875083 [17:28:47]line 肖袛: 112014 [17:28:47]line 肖袩袛: 206335185682281 [17:28:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T172851&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112014&fm=206335185682281&tin=02508201610067®Number=0000000000092771&sum=50000 [17:28:47]Connected sock=10 [17:28:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E9 17 07 01 AA 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 B6 00 00 00 F4 03 04 00 53 B8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B5 01 00 35 04 06 00 BB A9 27 72 7F 69 FE 96 6B B3 9B 25 41 A8 [17:28:48]written 0, free lines is 4095 [17:28:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 34 D4 47 00 CE 75 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 30 38 37 35 30 38 33 10 04 04 00 8E B5 01 00 F4 03 04 00 78 4F 75 66 B6 04 01 00 00 FE 24 6D 16 71 A6 ED A6 [17:28:48]CommunicateWithHost err = 0 [17:28:48]CheckOFDResponse [17:28:48]1017 (14) - 77093643461234 [17:28:48]1041 (16) - 0000000000875083 [17:28:48]1040 (4) - 112014 [17:28:48]1012 (4) - 21.06.2024 10:01 [17:28:48]1206 (1) - 0 [17:28:48]OFD Sender: Remove packet 112014 [17:28:48]ProducePacketName [17:28:48]name=ofd_packets/00112014 [17:28:48]NVStorageDeleteData [17:28:48]Write to MH i2c: 01 00 00 29 18 41 [17:28:48]Write i2c OK [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: 01 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: 01 07 00 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: 01 07 00 29 18 00 00 00 00 00 DE 0C 32 [17:28:48]RasterBufferAndPrint [17:28:48]line [17:28:48]line [17:28:48]line [17:28:48]line [17:28:48]line [17:28:48]written 0, free lines is 3300 [17:28:48]MH_Cut [17:28:48]Write to MH i2c: D1 01 00 30 18 01 1A [17:28:48]Write i2c OK [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: D1 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: D1 01 00 [17:28:48]MH_I2C_Read... [17:28:48]Read from MH i2c: D1 01 00 30 18 00 19 [17:28:48]Write to MH i2c: 01 00 00 31 18 49 [17:28:48]Write i2c OK [17:28:48]MH_I2C_Read... [17:28:48]OFD Sender: No OFD packet to send [17:28:49]*** Cut start [17:28:49]*** Partial cut [17:28:49]*** CUTSNS_PIN = 1 [17:28:49]*** CUTSNS_PIN = 0 [17:28:49]*** Brake cut motor [17:28:49]Read from MH i2c: 01 [17:28:49]MH_I2C_Read... [17:28:49]*** Stop cut motor [17:28:49]*** Cut end [17:28:49]Read from MH i2c: 01 07 00 [17:28:49]MH_I2C_Read... [17:28:49]Read from MH i2c: 01 07 00 31 18 00 00 00 00 00 FF 0F 5E [17:28:49]process_action close_receipt done [17:28:49]requested_data is exist [17:28:49]produce_requested_data [17:28:49]requested_item fm.sn is exist - process it [17:28:49]wFMCommunicate request_size=4 [17:28:49]MH_SAM_APDU [17:28:49]CAPDU: 80 11 00 00 [17:28:49]Write to MH i2c: E2 08 00 32 18 80 11 00 00 00 00 00 00 C4 [17:28:49]Write i2c OK [17:28:49]MH_I2C_Read... [17:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:49]Read from MH i2c: E2 [17:28:49]MH_I2C_Read... [17:28:49]Read from MH i2c: E2 17 00 [17:28:49]MH_I2C_Read... [17:28:49]Read from MH i2c: E2 17 00 32 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 16 [17:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:28:49]wFMCommunicate OK [17:28:49]requested_item fd.num is exist - process it [17:28:49]SAM_PROTO_GetFieldsCounters [17:28:49]wFMCommunicate request_size=4 [17:28:49]MH_SAM_APDU [17:28:49]CAPDU: 80 13 00 00 [17:28:49]Write to MH i2c: E2 08 00 33 18 80 13 00 00 00 00 00 00 C7 [17:28:49]Write i2c OK [17:28:49]MH_I2C_Read... [17:28:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:49]Read from MH i2c: E2 [17:28:49]MH_I2C_Read... [17:28:49]Read from MH i2c: E2 62 00 [17:28:49]MH_I2C_Read... [17:28:49]Read from MH i2c: E2 62 00 33 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8E B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [17:28:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8E B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:49]wFMCommunicate OK [17:28:49]SAM_PROTO_GetFieldsCounters done [17:28:49]requested_item shift.num is exist - process it [17:28:49]requested_item shift.opened is exist - process it [17:28:49]req_shift_opened [17:28:49]FM_GetShiftState [17:28:49]SAM_PROTO_GetShiftState [17:28:49]wFMCommunicate request_size=4 [17:28:49]MH_SAM_APDU [17:28:49]CAPDU: 80 13 01 00 [17:28:49]Write to MH i2c: E2 08 00 34 18 80 13 01 00 00 00 00 00 C9 [17:28:50]Write i2c OK [17:28:50]MH_I2C_Read... [17:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:50]Read from MH i2c: E2 [17:28:50]MH_I2C_Read... [17:28:50]Read from MH i2c: E2 0E 00 [17:28:50]MH_I2C_Read... [17:28:50]Read from MH i2c: E2 0E 00 34 18 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 46 [17:28:50]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:28:50]wFMCommunicate OK [17:28:50]SAM_PROTO_GetShiftState done [17:28:50]FM_GetShiftState done [17:28:50]req_shift_opened done [17:28:50]requested_item shift.open_date is exist - process it [17:28:50]req_shift_open_date [17:28:50]req_shift_open_date done [17:28:50]produce_requested_data done [17:28:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112014,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:28:50]process_action_free close_receipt [17:28:50]json_value_free [17:28:50]json_value_free done [17:28:50]process_json_proto returns [17:28:50]Send response to host [17:28:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112014,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:28:50]free response buf [17:28:50]execute_script done [17:28:50]execute_script returns [17:28:50]free content buf [17:28:50]Sock 9.Close socket [17:28:50]Sock 9.Thread stoped [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:06]accept exits with 7 [17:34:06]New connection [17:34:06]New thread 3066875236 created [17:34:06]Thread 3066731876 joined [17:34:06]Waiting for new connection... [17:34:06] Sock 7.Parse request [17:34:06]Sock 7.Check first char [17:34:06]Sock 7.First char is OK [17:34:06]request: POST /json_proto HTTP/1.0 [17:34:06]Method: POST [17:34:06]URL: /json_proto [17:34:06]Method is POST - this is cgi request [17:34:06]url: /json_proto [17:34:06]query_string will be loaded in cgi processing [17:34:06]execute_cgi json_proto POST (null) [17:34:06]execute_cgi path=json_proto method=POST [17:34:06]POST find Content-Length [17:34:06]Host: 172.17.59.68:8080 [17:34:06]Content-Length: 677 [17:34:06]Content-Type: application/json [17:34:06] [17:34:06]POST finish read [17:34:06]Found Content-Length = 677 [17:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:06]execute_script... [17:34: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)320666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:06]POST & json_proto [17:34:06]process_json_proto [17:34:06]json parsed OK: [17:34:06]protocol is kg_v1.0 [17:34:06]action value=close_receipt [17:34:06]process_action close_receipt [17:34:06]cmd_close_receipt [17:34:06]MH_GetDate [17:34:06]Write to MH i2c: F0 00 00 35 18 3C [17:34:06]Write i2c OK [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: F0 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: F0 09 00 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: F0 09 00 35 18 00 94 B9 75 66 BC EC 60 65 DA [17:34:06]GetLastDocTimeStamp 1718990931 [17:34:06]current date 1718991252 [17:34:06]FM_GetShiftState [17:34:06]SAM_PROTO_GetShiftState [17:34:06]wFMCommunicate request_size=4 [17:34:06]MH_SAM_APDU [17:34:06]CAPDU: 80 13 01 00 [17:34:06]Write to MH i2c: E2 08 00 36 18 80 13 01 00 00 00 00 00 CB [17:34:06]Write i2c OK [17:34:06]MH_I2C_Read... [17:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:06]Read from MH i2c: E2 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 0E 00 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 0E 00 36 18 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 48 [17:34:06]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:34:06]wFMCommunicate OK [17:34:06]SAM_PROTO_GetShiftState done [17:34:06]FM_GetShiftState done [17:34:06]opened in 1718933695 [17:34:06]opened+sec_in_day 1719020095 [17:34:06]quantity*price = 25032 [17:34:06]sum+1 = 25034 [17:34:06]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.33 袠孝袨袚袨: 250.00 袙薪械褋械薪芯: 250.00 小袛袗效袗: 0.00 袧小袩 1% : 2.21 袧袛小 12% : 26.58 袧邪谢懈褔薪褘屑懈: 250.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 183 21.06.2024 17:34 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112015 肖袩袛: 183631655394770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173412&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112015&fm=183631655394770&tin=02508201610067®Number=0000000000092771&sum=25000 [17:34:07]StoreToDocumentArchive [17:34:07]shift 390 fd 112015 [17:34:07]save to /storage/0390/doc_00112015 [17:34:07]save last doc name /storage/0390/doc_00112015 to /storage/kkm_last_doc_name [17:34:07]save OK [17:34:07]Clear old archive folders... [17:34:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:07]tlvbuf is 003716A0 [17:34:07]SAM_PROTO_ClearQueue [17:34:07]wFMCommunicate request_size=4 [17:34:07]MH_SAM_APDU [17:34:07]CAPDU: 80 09 00 00 [17:34:07]Write to MH i2c: E2 08 00 43 18 80 09 00 00 00 00 00 00 CD [17:34:07]Write i2c OK [17:34:07]MH_I2C_Read... [17:34:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:07]Read from MH i2c: E2 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 03 00 [17:34:07]MH_I2C_Read... [17:34:07]Read from MH i2c: E2 03 00 43 18 00 90 00 CF [17:34:07]RAPDU: 90 00 [17:34:07]wFMCommunicate OK [17:34:07]SAM_PROTO_ClearQueue done [17:34:07]KKMCreateOFDPacket [17:34:07]OFDProtocolAddRootSTLVToBuf [17:34:07]FM_MakeSignedData [17:34:07]FM_MakeSignedData [17:34:07]SAM_PROTO_SignData [17:34:07]wFMCommunicate request_size=4 [17:34:07]MH_SAM_APDU [17:34:07]CAPDU: 80 0D 01 02 [17:34:07]Write to MH i2c: E2 08 00 44 18 80 0D 01 02 00 00 00 00 D5 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 44 18 00 90 00 D0 [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]wFMCommunicate request_size=255 [17:34:08]MH_SAM_APDU [17:34: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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 94 B9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B5 01 00 35 04 06 00 A7 [17:34:08]Write to MH i2c: E2 02 01 45 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 94 B9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B5 01 00 35 04 06 00 A7 00 00 87 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 45 18 00 90 00 D1 [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]wFMCommunicate request_size=10 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 0D 02 02 05 03 13 96 DD D2 [17:34:08]Write to MH i2c: E2 0D 00 46 18 80 0D 02 02 05 00 03 13 96 DD D2 00 00 3D [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 03 00 46 18 00 90 00 D2 [17:34:08]RAPDU: 90 00 [17:34:08]wFMCommunicate OK [17:34:08]wFMCommunicate request_size=4 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 0D 03 02 [17:34:08]Write to MH i2c: E2 08 00 47 18 80 0D 03 02 00 00 00 00 DA [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 0B 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 0B 00 47 18 00 F9 F0 8D 25 A8 18 C4 E8 90 00 E2 [17:34:08]RAPDU: F9 F0 8D 25 A8 18 C4 E8 90 00 [17:34:08]wFMCommunicate OK [17:34:08]SAM_PROTO_SignData done [17:34:08]FM_MakeSignedData done [17:34:08]CreateOFDProtocolMessage [17:34:08]wFMCommunicate request_size=4 [17:34:08]MH_SAM_APDU [17:34:08]CAPDU: 80 11 00 00 [17:34:08]Write to MH i2c: E2 08 00 48 18 80 11 00 00 00 00 00 00 DA [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:08]Read from MH i2c: E2 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 17 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: E2 17 00 48 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2C [17:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:34:08]wFMCommunicate OK [17:34:08]CreateOFDProtocolMessage done [17:34:08]OFDSenderStorePacket 112015 [17:34:08]StoreOFDPacket docnum=112015 [17:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 E0 07 01 D0 D7 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 94 B9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B5 01 00 35 04 06 00 A7 03 13 96 DD D2 F9 F0 8D 25 A8 18 C4 E8 [17:34:08]CheckFolder [17:34:08]dirname=/storage/ofd_packets [17:34:08]CheckFolder done [17:34:08]ProducePacketName [17:34:08]name=ofd_packets/00112015 [17:34:08]NVStorageSaveData ofd_packets/00112015 [17:34:08]File name is /storage/ofd_packets/00112015 [17:34:08]Write 301 bytes [17:34:08]NVStorageSaveData done [17:34:08]OFDSenderStorePacket done [17:34:08]KKMCreateOFDPacket done [17:34:08]NVStorageSaveData kkm_last_timestamp [17:34:08]File name is /storage/kkm_last_timestamp [17:34:08]Write 4 bytes [17:34:08]NVStorageSaveData done [17:34:08]ExternCall_PrintAddStr [17:34:08]wPrintStart [17:34:08]Write to MH i2c: 01 00 00 49 18 61 [17:34:08]Write i2c OK [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 07 00 [17:34:08]MH_I2C_Read... [17:34:08]Read from MH i2c: 01 07 00 49 18 00 00 00 00 00 FF 0F 76 [17:34:08]RasterBufferAndPrint [17:34:08]line 小褔械褌 N : (1)320666 [17:34:08]line 袠袧袧: 02508201610067 [17:34:08]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:34:08]line 袩袪袨袛袗袞袗 [17:34:08]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:34:08]line 孝芯胁邪褉: 2710124130 [17:34:08]line 袗懈-92-袣-5 [17:34:08]line 3.770 * 66.40 [17:34:08]line = 250.33 [17:34:08]line 袧袛小 12% 袧小袩 1% [17:34:08]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:34:08]line 袨袣袪校袚袥袝袧袠袝: -0.33 [17:34:08]line 袠孝袨袚袨: 250.00 [17:34:08]line 袙薪械褋械薪芯: 250.00 [17:34:08]line 小袛袗效袗: 0.00 [17:34:08]line 袧小袩 1% : 2.21 [17:34:08]line 袧袛小 12% : 26.58 [17:34:08]line 袧邪谢懈褔薪褘屑懈: 250.00 [17:34:08]line 袘械蟹薪邪谢.: 0.00 [17:34:08]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:34:08]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:34:08]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:34:08]line 效械泻 183 21.06.2024 17:34 [17:34:08]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:34:08]line 袟袧袦: 0300000198 [17:34:08]line 袪袧袦: 0000000000092771 [17:34:08]line 袙械褉褋懈褟 袣袣袦: 001 [17:34:08]line 肖袦: 0000000000875083 [17:34:08]line 肖袛: 112015 [17:34:08]line 肖袩袛: 183631655394770 [17:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173412&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112015&fm=183631655394770&tin=02508201610067®Number=0000000000092771&sum=25000 [17:34:08]OFD Sender: Processing packet 112015 [packets to send 38, broken 37] [17:34:08]ProducePacketName [17:34:08]name=ofd_packets/00112015 [17:34:08]OFD Sender: To server: 嚂鰌G, [17:34:08]CommunicateWithHost lk.salyk.kg:30040 [17:34:08]ConnectInit lk.salyk.kg [17:34:08]written 0, free lines is 4095 [17:34:08]Connected sock=10 [17:34:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 E0 07 01 D0 D7 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 94 B9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B5 01 00 35 04 06 00 A7 03 13 96 DD D2 F9 F0 8D 25 A8 18 C4 E8 [17:34:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 24 A2 47 00 6B A7 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 30 38 37 35 30 38 33 10 04 04 00 8F B5 01 00 F4 03 04 00 B9 50 75 66 B6 04 01 00 00 C5 41 F6 DB 68 90 4E 10 [17:34:09]CommunicateWithHost err = 0 [17:34:09]CheckOFDResponse [17:34:09]1017 (14) - 77093643461234 [17:34:09]1041 (16) - 0000000000875083 [17:34:09]1040 (4) - 112015 [17:34:09]1012 (4) - 21.06.2024 10:06 [17:34:09]1206 (1) - 0 [17:34:09]OFD Sender: Remove packet 112015 [17:34:09]ProducePacketName [17:34:09]name=ofd_packets/00112015 [17:34:09]NVStorageDeleteData [17:34:09]Write to MH i2c: 01 00 00 74 18 8C [17:34:09]Write i2c OK [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: 01 [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: 01 07 00 [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: 01 07 00 74 18 00 00 00 00 00 CE 0C 6D [17:34:09]RasterBufferAndPrint [17:34:09]line [17:34:09]line [17:34:09]line [17:34:09]line [17:34:09]line [17:34:09]written 0, free lines is 3284 [17:34:09]MH_Cut [17:34:09]Write to MH i2c: D1 01 00 7B 18 01 65 [17:34:09]Write i2c OK [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: D1 [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: D1 01 00 [17:34:09]MH_I2C_Read... [17:34:09]Read from MH i2c: D1 01 00 7B 18 00 64 [17:34:09]Write to MH i2c: 01 00 00 7C 18 94 [17:34:09]Write i2c OK [17:34:09]MH_I2C_Read... [17:34:09]OFD Sender: No OFD packet to send [17:34:10]*** Cut start [17:34:10]*** Partial cut [17:34:10]*** CUTSNS_PIN = 1 [17:34:10]*** CUTSNS_PIN = 0 [17:34:10]*** Brake cut motor [17:34:10]Read from MH i2c: 01 [17:34:10]MH_I2C_Read... [17:34:10]*** Stop cut motor [17:34:10]*** Cut end [17:34:10]Read from MH i2c: 01 07 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: 01 07 00 7C 18 00 00 00 00 00 FF 0F A9 [17:34:10]process_action close_receipt done [17:34:10]requested_data is exist [17:34:10]produce_requested_data [17:34:10]requested_item fm.sn is exist - process it [17:34:10]wFMCommunicate request_size=4 [17:34:10]MH_SAM_APDU [17:34:10]CAPDU: 80 11 00 00 [17:34:10]Write to MH i2c: E2 08 00 7D 18 80 11 00 00 00 00 00 00 0F [17:34:10]Write i2c OK [17:34:10]MH_I2C_Read... [17:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:10]Read from MH i2c: E2 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 17 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 17 00 7D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [17:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:34:10]wFMCommunicate OK [17:34:10]requested_item fd.num is exist - process it [17:34:10]SAM_PROTO_GetFieldsCounters [17:34:10]wFMCommunicate request_size=4 [17:34:10]MH_SAM_APDU [17:34:10]CAPDU: 80 13 00 00 [17:34:10]Write to MH i2c: E2 08 00 7E 18 80 13 00 00 00 00 00 00 12 [17:34:10]Write i2c OK [17:34:10]MH_I2C_Read... [17:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:10]Read from MH i2c: E2 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 62 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 62 00 7E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8F B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [17:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8F B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:10]wFMCommunicate OK [17:34:10]SAM_PROTO_GetFieldsCounters done [17:34:10]requested_item shift.num is exist - process it [17:34:10]requested_item shift.opened is exist - process it [17:34:10]req_shift_opened [17:34:10]FM_GetShiftState [17:34:10]SAM_PROTO_GetShiftState [17:34:10]wFMCommunicate request_size=4 [17:34:10]MH_SAM_APDU [17:34:10]CAPDU: 80 13 01 00 [17:34:10]Write to MH i2c: E2 08 00 7F 18 80 13 01 00 00 00 00 00 14 [17:34:10]Write i2c OK [17:34:10]MH_I2C_Read... [17:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:10]Read from MH i2c: E2 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 0E 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 0E 00 7F 18 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 91 [17:34:10]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:34:10]wFMCommunicate OK [17:34:10]SAM_PROTO_GetShiftState done [17:34:10]FM_GetShiftState done [17:34:10]req_shift_opened done [17:34:10]requested_item shift.open_date is exist - process it [17:34:10]req_shift_open_date [17:34:10]req_shift_open_date done [17:34:10]produce_requested_data done [17:34:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112015,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:34:10]process_action_free close_receipt [17:34:10]json_value_free [17:34:10]json_value_free done [17:34:10]process_json_proto returns [17:34:10]Send response to host [17:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112015,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:34:10]free response buf [17:34:10]execute_script done [17:34:10]execute_script returns [17:34:10]free content buf [17:34:10]Sock 7.Close socket [17:34:10]Sock 7.Thread stoped [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:42]accept exits with 9 [17:34:42]New connection [17:34:42]New thread 3066731876 created [17:34:42]Thread 3066875236 joined [17:34:42]Waiting for new connection... [17:34:42] Sock 9.Parse request [17:34:42]Sock 9.Check first char [17:34:42]Sock 9.First char is OK [17:34:42]request: POST /json_proto HTTP/1.0 [17:34:42]Method: POST [17:34:42]URL: /json_proto [17:34:42]Method is POST - this is cgi request [17:34:42]url: /json_proto [17:34:42]query_string will be loaded in cgi processing [17:34:42]execute_cgi json_proto POST (null) [17:34:42]execute_cgi path=json_proto method=POST [17:34:42]POST find Content-Length [17:34:42]Host: 172.17.59.68:8080 [17:34:42]Content-Length: 674 [17:34:42]Content-Type: application/json [17:34:42] [17:34:42]POST finish read [17:34:42]Found Content-Length = 674 [17:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.000, "sum" : 364.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 364.00, "total" : 364.00, "payments": [ { "type": 0, "sum" : 364.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:42]execute_script... [17:34: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 : (1)320667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.000, "sum" : 364.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 364.00, "total" : 364.00, "payments": [ { "type": 0, "sum" : 364.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:42]POST & json_proto [17:34:42]process_json_proto [17:34:42]json parsed OK: [17:34:42]protocol is kg_v1.0 [17:34:42]action value=close_receipt [17:34:42]process_action close_receipt [17:34:42]cmd_close_receipt [17:34:42]MH_GetDate [17:34:42]Write to MH i2c: F0 00 00 80 18 87 [17:34:42]Write i2c OK [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: F0 [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: F0 09 00 [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: F0 09 00 80 18 00 B8 B9 75 66 BC EC 60 65 49 [17:34:42]GetLastDocTimeStamp 1718991252 [17:34:42]current date 1718991288 [17:34:42]FM_GetShiftState [17:34:42]SAM_PROTO_GetShiftState [17:34:42]wFMCommunicate request_size=4 [17:34:42]MH_SAM_APDU [17:34:42]CAPDU: 80 13 01 00 [17:34:42]Write to MH i2c: E2 08 00 81 18 80 13 01 00 00 00 00 00 16 [17:34:42]Write i2c OK [17:34:42]MH_I2C_Read... [17:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:42]Read from MH i2c: E2 [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: E2 0E 00 [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: E2 0E 00 81 18 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 93 [17:34:42]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:34:42]wFMCommunicate OK [17:34:42]SAM_PROTO_GetShiftState done [17:34:42]FM_GetShiftState done [17:34:42]opened in 1718933695 [17:34:42]opened+sec_in_day 1719020095 [17:34:42]quantity*price = 36450 [17:34:42]sum+1 = 36451 [17:34:42]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.50 袠孝袨袚袨: 364.00 袙薪械褋械薪芯: 364.00 小袛袗效袗: 0.00 袧小袩 1% : 3.23 袧袛小 12% : 38.71 袧邪谢懈褔薪褘屑懈: 364.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 184 21.06.2024 17:34 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112016 肖袩袛: 180172501674061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173448&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112016&fm=180172501674061&tin=02508201610067®Number=0000000000092771&sum=36400 [17:34:44]StoreToDocumentArchive [17:34:44]shift 390 fd 112016 [17:34:44]save to /storage/0390/doc_00112016 [17:34:44]save last doc name /storage/0390/doc_00112016 to /storage/kkm_last_doc_name [17:34:44]save OK [17:34:44]Clear old archive folders... [17:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:34:44]tlvbuf is 003725B0 [17:34:44]SAM_PROTO_ClearQueue [17:34:44]wFMCommunicate request_size=4 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 09 00 00 [17:34:44]Write to MH i2c: E2 08 00 8E 18 80 09 00 00 00 00 00 00 18 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 8E 18 00 90 00 1A [17:34:44]RAPDU: 90 00 [17:34:44]wFMCommunicate OK [17:34:44]SAM_PROTO_ClearQueue done [17:34:44]KKMCreateOFDPacket [17:34:44]OFDProtocolAddRootSTLVToBuf [17:34:44]FM_MakeSignedData [17:34:44]FM_MakeSignedData [17:34:44]SAM_PROTO_SignData [17:34:44]wFMCommunicate request_size=4 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 0D 01 02 [17:34:44]Write to MH i2c: E2 08 00 8F 18 80 0D 01 02 00 00 00 00 20 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 8F 18 00 90 00 1B [17:34:44]RAPDU: 90 00 [17:34:44]wFMCommunicate OK [17:34:44]wFMCommunicate request_size=255 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B8 B9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B5 01 00 35 04 06 00 A3 DD AD F5 [17:34:44]Write to MH i2c: E2 02 01 90 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B8 B9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B5 01 00 35 04 06 00 A3 DD AD F5 00 00 7F [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 90 18 00 90 00 1C [17:34:44]RAPDU: 90 00 [17:34:44]wFMCommunicate OK [17:34:44]wFMCommunicate request_size=7 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 0D 02 02 02 E8 4D [17:34:44]Write to MH i2c: E2 0A 00 91 18 80 0D 02 02 02 00 E8 4D 00 00 5C [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 03 00 91 18 00 90 00 1D [17:34:44]RAPDU: 90 00 [17:34:44]wFMCommunicate OK [17:34:44]wFMCommunicate request_size=4 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 0D 03 02 [17:34:44]Write to MH i2c: E2 08 00 92 18 80 0D 03 02 00 00 00 00 25 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 0B 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 0B 00 92 18 00 22 AD 3F 7B 62 29 E1 05 90 00 20 [17:34:44]RAPDU: 22 AD 3F 7B 62 29 E1 05 90 00 [17:34:44]wFMCommunicate OK [17:34:44]SAM_PROTO_SignData done [17:34:44]FM_MakeSignedData done [17:34:44]CreateOFDProtocolMessage [17:34:44]wFMCommunicate request_size=4 [17:34:44]MH_SAM_APDU [17:34:44]CAPDU: 80 11 00 00 [17:34:44]Write to MH i2c: E2 08 00 93 18 80 11 00 00 00 00 00 00 25 [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:44]Read from MH i2c: E2 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 17 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: E2 17 00 93 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [17:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:34:44]wFMCommunicate OK [17:34:44]CreateOFDProtocolMessage done [17:34:44]OFDSenderStorePacket 112016 [17:34:44]StoreOFDPacket docnum=112016 [17:34:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 A5 BC 04 01 A8 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B8 B9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B5 01 00 35 04 06 00 A3 DD AD F5 E8 4D 22 AD 3F 7B 62 29 E1 05 [17:34:44]CheckFolder [17:34:44]dirname=/storage/ofd_packets [17:34:44]CheckFolder done [17:34:44]ProducePacketName [17:34:44]name=ofd_packets/00112016 [17:34:44]NVStorageSaveData ofd_packets/00112016 [17:34:44]File name is /storage/ofd_packets/00112016 [17:34:44]Write 298 bytes [17:34:44]NVStorageSaveData done [17:34:44]OFDSenderStorePacket done [17:34:44]KKMCreateOFDPacket done [17:34:44]NVStorageSaveData kkm_last_timestamp [17:34:44]File name is /storage/kkm_last_timestamp [17:34:44]Write 4 bytes [17:34:44]NVStorageSaveData done [17:34:44]ExternCall_PrintAddStr [17:34:44]wPrintStart [17:34:44]Write to MH i2c: 01 00 00 94 18 AC [17:34:44]Write i2c OK [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: 01 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: 01 07 00 [17:34:44]MH_I2C_Read... [17:34:44]Read from MH i2c: 01 07 00 94 18 00 00 00 00 00 FF 0F C1 [17:34:44]RasterBufferAndPrint [17:34:44]line 小褔械褌 N : (1)320667 [17:34:44]line 袠袧袧: 02508201610067 [17:34:44]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:34:44]line 袩袪袨袛袗袞袗 [17:34:44]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [17:34:44]line 孝芯胁邪褉: 2710194210 [17:34:44]line 袛孝-袣-5 [17:34:44]line 5.000 * 72.90 [17:34:44]line = 364.50 [17:34:44]line 袧袛小 12% 袧小袩 1% [17:34:44]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:34:44]line 袨袣袪校袚袥袝袧袠袝: -0.50 [17:34:44]line 袠孝袨袚袨: 364.00 [17:34:44]line 袙薪械褋械薪芯: 364.00 [17:34:44]line 小袛袗效袗: 0.00 [17:34:44]line 袧小袩 1% : 3.23 [17:34:44]line 袧袛小 12% : 38.71 [17:34:44]line 袧邪谢懈褔薪褘屑懈: 364.00 [17:34:44]line 袘械蟹薪邪谢.: 0.00 [17:34:44]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:34:44]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:34:44]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:34:44]line 效械泻 184 21.06.2024 17:34 [17:34:44]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:34:44]line 袟袧袦: 0300000198 [17:34:44]line 袪袧袦: 0000000000092771 [17:34:44]line 袙械褉褋懈褟 袣袣袦: 001 [17:34:44]line 肖袦: 0000000000875083 [17:34:44]line 肖袛: 112016 [17:34:44]line 肖袩袛: 180172501674061 [17:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173448&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112016&fm=180172501674061&tin=02508201610067®Number=0000000000092771&sum=36400 [17:34:44]OFD Sender: Processing packet 112016 [packets to send 38, broken 37] [17:34:44]ProducePacketName [17:34:44]name=ofd_packets/00112016 [17:34:44]OFD Sender: To server: 嚂鰌G, [17:34:44]CommunicateWithHost lk.salyk.kg:30040 [17:34:44]ConnectInit lk.salyk.kg [17:34:44]written 0, free lines is 4095 [17:34:45]Connected sock=7 [17:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 A5 BC 04 01 A8 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B8 B9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B5 01 00 35 04 06 00 A3 DD AD F5 E8 4D 22 AD 3F 7B 62 29 E1 05 [17:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 71 51 47 00 4C 30 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 30 38 37 35 30 38 33 10 04 04 00 90 B5 01 00 F4 03 04 00 DD 50 75 66 B6 04 01 00 00 FE 63 AD C1 74 F7 6A 1A [17:34:45]CommunicateWithHost err = 0 [17:34:45]CheckOFDResponse [17:34:45]1017 (14) - 77093643461234 [17:34:45]1041 (16) - 0000000000875083 [17:34:45]1040 (4) - 112016 [17:34:45]1012 (4) - 21.06.2024 10:07 [17:34:45]1206 (1) - 0 [17:34:45]OFD Sender: Remove packet 112016 [17:34:45]ProducePacketName [17:34:45]name=ofd_packets/00112016 [17:34:45]NVStorageDeleteData [17:34:45]Write to MH i2c: 01 00 00 BF 18 D7 [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 07 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 07 00 BF 18 00 00 00 00 00 DD 0C C7 [17:34:45]RasterBufferAndPrint [17:34:45]line [17:34:45]line [17:34:45]line [17:34:45]line [17:34:45]line [17:34:45]written 0, free lines is 3299 [17:34:45]MH_Cut [17:34:45]Write to MH i2c: D1 01 00 C6 18 01 B0 [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: D1 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: D1 01 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: D1 01 00 C6 18 00 AF [17:34:45]Write to MH i2c: 01 00 00 C7 18 DF [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]OFD Sender: No OFD packet to send [17:34:46]*** Cut start [17:34:46]*** Partial cut [17:34:46]*** CUTSNS_PIN = 1 [17:34:46]*** CUTSNS_PIN = 0 [17:34:46]*** Brake cut motor [17:34:46]Read from MH i2c: 01 [17:34:46]MH_I2C_Read... [17:34:46]*** Stop cut motor [17:34:46]*** Cut end [17:34:46]Read from MH i2c: 01 07 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: 01 07 00 C7 18 00 00 00 00 00 FF 0F F4 [17:34:46]process_action close_receipt done [17:34:46]requested_data is exist [17:34:46]produce_requested_data [17:34:46]requested_item fm.sn is exist - process it [17:34:46]wFMCommunicate request_size=4 [17:34:46]MH_SAM_APDU [17:34:46]CAPDU: 80 11 00 00 [17:34:46]Write to MH i2c: E2 08 00 C8 18 80 11 00 00 00 00 00 00 5A [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:46]Read from MH i2c: E2 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 17 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 17 00 C8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AC [17:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:34:46]wFMCommunicate OK [17:34:46]requested_item fd.num is exist - process it [17:34:46]SAM_PROTO_GetFieldsCounters [17:34:46]wFMCommunicate request_size=4 [17:34:46]MH_SAM_APDU [17:34:46]CAPDU: 80 13 00 00 [17:34:46]Write to MH i2c: E2 08 00 C9 18 80 13 00 00 00 00 00 00 5D [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:46]Read from MH i2c: E2 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 62 00 [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 62 00 C9 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 90 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [17:34:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 90 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:46]wFMCommunicate OK [17:34:46]SAM_PROTO_GetFieldsCounters done [17:34:46]requested_item shift.num is exist - process it [17:34:46]requested_item shift.opened is exist - process it [17:34:46]req_shift_opened [17:34:46]FM_GetShiftState [17:34:46]SAM_PROTO_GetShiftState [17:34:46]wFMCommunicate request_size=4 [17:34:46]MH_SAM_APDU [17:34:46]CAPDU: 80 13 01 00 [17:34:46]Write to MH i2c: E2 08 00 CA 18 80 13 01 00 00 00 00 00 5F [17:34:46]Write i2c OK [17:34:46]MH_I2C_Read... [17:34:46]Read from MH i2c: E2 [17:34:46]MH_I2C_Read... [17:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:46]Read from MH i2c: E2 0E 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 0E 00 CA 18 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 DC [17:34:47]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:34:47]wFMCommunicate OK [17:34:47]SAM_PROTO_GetShiftState done [17:34:47]FM_GetShiftState done [17:34:47]req_shift_opened done [17:34:47]requested_item shift.open_date is exist - process it [17:34:47]req_shift_open_date [17:34:47]req_shift_open_date done [17:34:47]produce_requested_data done [17:34:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112016,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:34:47]process_action_free close_receipt [17:34:47]json_value_free [17:34:47]json_value_free done [17:34:47]process_json_proto returns [17:34:47]Send response to host [17:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112016,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:34:47]free response buf [17:34:47]execute_script done [17:34:47]execute_script returns [17:34:47]free content buf [17:34:47]Sock 9.Close socket [17:34:47]Sock 9.Thread stoped [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:29]accept exits with 10 [17:36:29]New connection [17:36:29]New thread 3066875236 created [17:36:29]Thread 3066731876 joined [17:36:29]Waiting for new connection... [17:36:29] Sock 10.Parse request [17:36:29]Sock 10.Check first char [17:36:29]Sock 10.First char is OK [17:36:29]request: POST /json_proto HTTP/1.0 [17:36:29]Method: POST [17:36:29]URL: /json_proto [17:36:29]Method is POST - this is cgi request [17:36:29]url: /json_proto [17:36:29]query_string will be loaded in cgi processing [17:36:29]execute_cgi json_proto POST (null) [17:36:29]execute_cgi path=json_proto method=POST [17:36:29]POST find Content-Length [17:36:29]Host: 172.17.59.68:8080 [17:36:29]Content-Length: 674 [17:36:29]Content-Type: application/json [17:36:29] [17:36:29]POST finish read [17:36:29]Found Content-Length = 674 [17:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 7.550, "sum" : 550.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:29]execute_script... [17:36:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 7.550, "sum" : 550.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:29]POST & json_proto [17:36:29]process_json_proto [17:36:29]json parsed OK: [17:36:29]protocol is kg_v1.0 [17:36:29]action value=close_receipt [17:36:29]process_action close_receipt [17:36:29]cmd_close_receipt [17:36:29]MH_GetDate [17:36:29]Write to MH i2c: F0 00 00 CB 18 D2 [17:36:29]Write i2c OK [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: F0 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: F0 09 00 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: F0 09 00 CB 18 00 23 BA 75 66 BC EC 60 65 00 [17:36:29]GetLastDocTimeStamp 1718991288 [17:36:29]current date 1718991395 [17:36:29]FM_GetShiftState [17:36:29]SAM_PROTO_GetShiftState [17:36:29]wFMCommunicate request_size=4 [17:36:29]MH_SAM_APDU [17:36:29]CAPDU: 80 13 01 00 [17:36:29]Write to MH i2c: E2 08 00 CC 18 80 13 01 00 00 00 00 00 61 [17:36:29]Write i2c OK [17:36:29]MH_I2C_Read... [17:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:29]Read from MH i2c: E2 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 0E 00 [17:36:29]MH_I2C_Read... [17:36:29]Read from MH i2c: E2 0E 00 CC 18 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 DE [17:36:29]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:36:29]wFMCommunicate OK [17:36:29]SAM_PROTO_GetShiftState done [17:36:29]FM_GetShiftState done [17:36:29]opened in 1718933695 [17:36:29]opened+sec_in_day 1719020095 [17:36:29]quantity*price = 55039 [17:36:29]sum+1 = 55041 [17:36:29]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.40 袠孝袨袚袨: 550.00 袙薪械褋械薪芯: 550.00 小袛袗效袗: 0.00 袧小袩 1% : 4.87 袧袛小 12% : 58.45 袧邪谢懈褔薪褘屑懈: 550.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 185 21.06.2024 17:36 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112017 肖袩袛: 103717726746212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173635&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112017&fm=103717726746212&tin=02508201610067®Number=0000000000092771&sum=55000 [17:36:30]StoreToDocumentArchive [17:36:30]shift 390 fd 112017 [17:36:30]save to /storage/0390/doc_00112017 [17:36:30]save last doc name /storage/0390/doc_00112017 to /storage/kkm_last_doc_name [17:36:30]save OK [17:36:30]Clear old archive folders... [17:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:36:30]tlvbuf is 004659F0 [17:36:30]SAM_PROTO_ClearQueue [17:36:30]wFMCommunicate request_size=4 [17:36:30]MH_SAM_APDU [17:36:30]CAPDU: 80 09 00 00 [17:36:30]Write to MH i2c: E2 08 00 D9 18 80 09 00 00 00 00 00 00 63 [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:30]Read from MH i2c: E2 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 03 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 03 00 D9 18 00 90 00 65 [17:36:30]RAPDU: 90 00 [17:36:30]wFMCommunicate OK [17:36:30]SAM_PROTO_ClearQueue done [17:36:30]KKMCreateOFDPacket [17:36:30]OFDProtocolAddRootSTLVToBuf [17:36:30]FM_MakeSignedData [17:36:30]FM_MakeSignedData [17:36:30]SAM_PROTO_SignData [17:36:30]wFMCommunicate request_size=4 [17:36:30]MH_SAM_APDU [17:36:30]CAPDU: 80 0D 01 02 [17:36:30]Write to MH i2c: E2 08 00 DA 18 80 0D 01 02 00 00 00 00 6B [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:30]OFD Sender: No OFD packet to send [17:36:30]Read from MH i2c: E2 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 03 00 [17:36:30]MH_I2C_Read... [17:36:30]Read from MH i2c: E2 03 00 DA 18 00 90 00 66 [17:36:30]RAPDU: 90 00 [17:36:30]wFMCommunicate OK [17:36:30]wFMCommunicate request_size=255 [17:36:30]MH_SAM_APDU [17:36:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 D7 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 D5 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 B9 00 00 00 F4 03 04 00 23 BA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B5 01 00 35 04 06 00 5E 54 AA 42 [17:36:30]Write to MH i2c: E2 02 01 DB 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 D7 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 D5 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 B9 00 00 00 F4 03 04 00 23 BA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B5 01 00 35 04 06 00 5E 54 AA 42 00 00 DC [17:36:30]Write i2c OK [17:36:30]MH_I2C_Read... [17:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:31]Read from MH i2c: E2 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 03 00 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 03 00 DB 18 00 90 00 67 [17:36:31]RAPDU: 90 00 [17:36:31]wFMCommunicate OK [17:36:31]wFMCommunicate request_size=7 [17:36:31]MH_SAM_APDU [17:36:31]CAPDU: 80 0D 02 02 02 76 64 [17:36:31]Write to MH i2c: E2 0A 00 DC 18 80 0D 02 02 02 00 76 64 00 00 4C [17:36:31]Write i2c OK [17:36:31]MH_I2C_Read... [17:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:31]Read from MH i2c: E2 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 03 00 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 03 00 DC 18 00 90 00 68 [17:36:31]RAPDU: 90 00 [17:36:31]wFMCommunicate OK [17:36:31]wFMCommunicate request_size=4 [17:36:31]MH_SAM_APDU [17:36:31]CAPDU: 80 0D 03 02 [17:36:31]Write to MH i2c: E2 08 00 DD 18 80 0D 03 02 00 00 00 00 70 [17:36:31]Write i2c OK [17:36:31]MH_I2C_Read... [17:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:31]Read from MH i2c: E2 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 0B 00 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 0B 00 DD 18 00 C2 57 A0 79 6C 4F 26 1A 90 00 9E [17:36:31]RAPDU: C2 57 A0 79 6C 4F 26 1A 90 00 [17:36:31]wFMCommunicate OK [17:36:31]SAM_PROTO_SignData done [17:36:31]FM_MakeSignedData done [17:36:31]CreateOFDProtocolMessage [17:36:31]wFMCommunicate request_size=4 [17:36:31]MH_SAM_APDU [17:36:31]CAPDU: 80 11 00 00 [17:36:31]Write to MH i2c: E2 08 00 DE 18 80 11 00 00 00 00 00 00 70 [17:36:31]Write i2c OK [17:36:31]MH_I2C_Read... [17:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:31]Read from MH i2c: E2 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 17 00 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: E2 17 00 DE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C2 [17:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:36:31]wFMCommunicate OK [17:36:31]CreateOFDProtocolMessage done [17:36:31]OFDSenderStorePacket 112017 [17:36:31]StoreOFDPacket docnum=112017 [17:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 9B 47 04 01 9B 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 D7 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 D5 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 B9 00 00 00 F4 03 04 00 23 BA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B5 01 00 35 04 06 00 5E 54 AA 42 76 64 C2 57 A0 79 6C 4F 26 1A [17:36:31]CheckFolder [17:36:31]dirname=/storage/ofd_packets [17:36:31]CheckFolder done [17:36:31]ProducePacketName [17:36:31]name=ofd_packets/00112017 [17:36:31]NVStorageSaveData ofd_packets/00112017 [17:36:31]File name is /storage/ofd_packets/00112017 [17:36:31]Write 298 bytes [17:36:31]NVStorageSaveData done [17:36:31]OFDSenderStorePacket done [17:36:31]KKMCreateOFDPacket done [17:36:31]NVStorageSaveData kkm_last_timestamp [17:36:31]File name is /storage/kkm_last_timestamp [17:36:31]Write 4 bytes [17:36:31]NVStorageSaveData done [17:36:31]ExternCall_PrintAddStr [17:36:31]wPrintStart [17:36:31]Write to MH i2c: 01 00 00 DF 18 F7 [17:36:31]Write i2c OK [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: 01 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: 01 07 00 [17:36:31]MH_I2C_Read... [17:36:31]Read from MH i2c: 01 07 00 DF 18 00 00 00 00 00 FF 0F 0C [17:36:31]RasterBufferAndPrint [17:36:31]line 小褔械褌 N : (1)320668 [17:36:31]line 袠袧袧: 02508201610067 [17:36:31]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:36:31]line 袩袪袨袛袗袞袗 [17:36:31]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [17:36:31]line 孝芯胁邪褉: 2710194210 [17:36:31]line 袛孝-袣-5 [17:36:31]line 7.550 * 72.90 [17:36:31]line = 550.40 [17:36:31]line 袧袛小 12% 袧小袩 1% [17:36:31]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:36:31]line 袨袣袪校袚袥袝袧袠袝: -0.40 [17:36:31]line 袠孝袨袚袨: 550.00 [17:36:31]line 袙薪械褋械薪芯: 550.00 [17:36:31]line 小袛袗效袗: 0.00 [17:36:31]line 袧小袩 1% : 4.87 [17:36:31]line 袧袛小 12% : 58.45 [17:36:31]line 袧邪谢懈褔薪褘屑懈: 550.00 [17:36:31]line 袘械蟹薪邪谢.: 0.00 [17:36:31]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:36:31]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:36:31]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:36:31]line 效械泻 185 21.06.2024 17:36 [17:36:31]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:36:31]line 袟袧袦: 0300000198 [17:36:31]line 袪袧袦: 0000000000092771 [17:36:31]line 袙械褉褋懈褟 袣袣袦: 001 [17:36:31]line 肖袦: 0000000000875083 [17:36:31]line 肖袛: 112017 [17:36:31]line 肖袩袛: 103717726746212 [17:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T173635&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112017&fm=103717726746212&tin=02508201610067®Number=0000000000092771&sum=55000 [17:36:31]OFD Sender: Processing packet 112017 [packets to send 38, broken 37] [17:36:31]ProducePacketName [17:36:31]name=ofd_packets/00112017 [17:36:31]OFD Sender: To server: 嚂鰌G, [17:36:31]CommunicateWithHost lk.salyk.kg:30040 [17:36:31]ConnectInit lk.salyk.kg [17:36:31]written 0, free lines is 4095 [17:36:31]Connected sock=9 [17:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 9B 47 04 01 9B 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 D7 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 D5 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 B9 00 00 00 F4 03 04 00 23 BA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B5 01 00 35 04 06 00 5E 54 AA 42 76 64 C2 57 A0 79 6C 4F 26 1A [17:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C6 C7 47 00 FC 83 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 30 38 37 35 30 38 33 10 04 04 00 91 B5 01 00 F4 03 04 00 48 51 75 66 B6 04 01 00 00 AE 79 60 18 85 4F 1B 29 [17:36:31]CommunicateWithHost err = 0 [17:36:31]CheckOFDResponse [17:36:31]1017 (14) - 77093643461234 [17:36:31]1041 (16) - 0000000000875083 [17:36:31]1040 (4) - 112017 [17:36:31]1012 (4) - 21.06.2024 10:09 [17:36:31]1206 (1) - 0 [17:36:31]OFD Sender: Remove packet 112017 [17:36:31]ProducePacketName [17:36:31]name=ofd_packets/00112017 [17:36:31]NVStorageDeleteData [17:36:32]Write to MH i2c: 01 00 00 0A 19 23 [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: 01 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: 01 07 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: 01 07 00 0A 19 00 00 00 00 00 E3 0C 19 [17:36:32]RasterBufferAndPrint [17:36:32]line [17:36:32]line [17:36:32]line [17:36:32]line [17:36:32]line [17:36:32]written 0, free lines is 3305 [17:36:32]MH_Cut [17:36:32]Write to MH i2c: D1 01 00 11 19 01 FC [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: D1 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: D1 01 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: D1 01 00 11 19 00 FB [17:36:32]Write to MH i2c: 01 00 00 12 19 2B [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]OFD Sender: No OFD packet to send [17:36:32]*** Cut start [17:36:32]*** Partial cut [17:36:32]*** CUTSNS_PIN = 1 [17:36:32]*** CUTSNS_PIN = 0 [17:36:33]*** Brake cut motor [17:36:33]Read from MH i2c: 01 [17:36:33]MH_I2C_Read... [17:36:33]*** Stop cut motor [17:36:33]*** Cut end [17:36:33]Read from MH i2c: 01 07 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: 01 07 00 12 19 00 00 00 00 00 FF 0F 40 [17:36:33]process_action close_receipt done [17:36:33]requested_data is exist [17:36:33]produce_requested_data [17:36:33]requested_item fm.sn is exist - process it [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 11 00 00 [17:36:33]Write to MH i2c: E2 08 00 13 19 80 11 00 00 00 00 00 00 A6 [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 17 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 17 00 13 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F8 [17:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:36:33]wFMCommunicate OK [17:36:33]requested_item fd.num is exist - process it [17:36:33]SAM_PROTO_GetFieldsCounters [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 13 00 00 [17:36:33]Write to MH i2c: E2 08 00 14 19 80 13 00 00 00 00 00 00 A9 [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 62 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 62 00 14 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 91 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [17:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 91 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:33]wFMCommunicate OK [17:36:33]SAM_PROTO_GetFieldsCounters done [17:36:33]requested_item shift.num is exist - process it [17:36:33]requested_item shift.opened is exist - process it [17:36:33]req_shift_opened [17:36:33]FM_GetShiftState [17:36:33]SAM_PROTO_GetShiftState [17:36:33]wFMCommunicate request_size=4 [17:36:33]MH_SAM_APDU [17:36:33]CAPDU: 80 13 01 00 [17:36:33]Write to MH i2c: E2 08 00 15 19 80 13 01 00 00 00 00 00 AB [17:36:33]Write i2c OK [17:36:33]MH_I2C_Read... [17:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:33]Read from MH i2c: E2 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 0E 00 [17:36:33]MH_I2C_Read... [17:36:33]Read from MH i2c: E2 0E 00 15 19 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 28 [17:36:33]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:36:33]wFMCommunicate OK [17:36:33]SAM_PROTO_GetShiftState done [17:36:33]FM_GetShiftState done [17:36:33]req_shift_opened done [17:36:33]requested_item shift.open_date is exist - process it [17:36:33]req_shift_open_date [17:36:33]req_shift_open_date done [17:36:33]produce_requested_data done [17:36:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112017,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:36:33]process_action_free close_receipt [17:36:33]json_value_free [17:36:33]json_value_free done [17:36:33]process_json_proto returns [17:36:33]Send response to host [17:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112017,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:36:33]free response buf [17:36:33]execute_script done [17:36:33]execute_script returns [17:36:33]free content buf [17:36:33]Sock 10.Close socket [17:36:33]Sock 10.Thread stoped [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]accept exits with 7 [17:47:22]New connection [17:47:22]New thread 3066731876 created [17:47:22]Thread 3066875236 joined [17:47:22]Waiting for new connection... [17:47:22] Sock 7.Parse request [17:47:22]Sock 7.Check first char [17:47:22]Sock 7.First char is OK [17:47:22]request: POST /json_proto HTTP/1.0 [17:47:22]Method: POST [17:47:22]URL: /json_proto [17:47:22]Method is POST - this is cgi request [17:47:22]url: /json_proto [17:47:22]query_string will be loaded in cgi processing [17:47:22]execute_cgi json_proto POST (null) [17:47:22]execute_cgi path=json_proto method=POST [17:47:22]POST find Content-Length [17:47:22]Host: 172.17.59.68:8080 [17:47:22]Content-Length: 682 [17:47:22]Content-Type: application/json [17:47:22] [17:47:22]POST finish read [17:47:22]Found Content-Length = 682 [17:47:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "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" ] } } [17:47:22]execute_script... [17:47:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "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" ] } } [17:47:22]POST & json_proto [17:47:22]process_json_proto [17:47:22]json parsed OK: [17:47:22]protocol is kg_v1.0 [17:47:22]action value=close_receipt [17:47:22]process_action close_receipt [17:47:22]cmd_close_receipt [17:47:22]MH_GetDate [17:47:22]Write to MH i2c: F0 00 00 16 19 1E [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: F0 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: F0 09 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: F0 09 00 16 19 00 B0 BC 75 66 BC EC 60 65 DB [17:47:22]GetLastDocTimeStamp 1718991395 [17:47:22]current date 1718992048 [17:47:22]FM_GetShiftState [17:47:22]SAM_PROTO_GetShiftState [17:47:22]wFMCommunicate request_size=4 [17:47:22]MH_SAM_APDU [17:47:22]CAPDU: 80 13 01 00 [17:47:22]Write to MH i2c: E2 08 00 17 19 80 13 01 00 00 00 00 00 AD [17:47:22]Write i2c OK [17:47:22]MH_I2C_Read... [17:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:22]Read from MH i2c: E2 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 0E 00 [17:47:22]MH_I2C_Read... [17:47:22]Read from MH i2c: E2 0E 00 17 19 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 2A [17:47:22]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:47:22]wFMCommunicate OK [17:47:22]SAM_PROTO_GetShiftState done [17:47:22]FM_GetShiftState done [17:47:22]opened in 1718933695 [17:47:22]opened+sec_in_day 1719020095 [17:47:22]quantity*price = 150064 [17:47:22]sum+1 = 150065 [17:47:22]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.64 袠孝袨袚袨: 1500.00 袙薪械褋械薪芯: 1500.00 小袛袗效袗: 0.00 袧小袩 1% : 13.28 袧袛小 12% : 159.36 袧邪谢懈褔薪褘屑懈: 1500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 186 21.06.2024 17:47 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112018 肖袩袛: 113138561695644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T174728&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112018&fm=113138561695644&tin=02508201610067®Number=0000000000092771&sum=150000 [17:47:23]StoreToDocumentArchive [17:47:23]shift 390 fd 112018 [17:47:23]save to /storage/0390/doc_00112018 [17:47:23]save last doc name /storage/0390/doc_00112018 to /storage/kkm_last_doc_name [17:47:23]save OK [17:47:23]Clear old archive folders... [17:47:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:23]tlvbuf is 003411B0 [17:47:23]SAM_PROTO_ClearQueue [17:47:23]wFMCommunicate request_size=4 [17:47:23]MH_SAM_APDU [17:47:23]CAPDU: 80 09 00 00 [17:47:23]Write to MH i2c: E2 08 00 24 19 80 09 00 00 00 00 00 00 AF [17:47:23]Write i2c OK [17:47:23]MH_I2C_Read... [17:47:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:23]Read from MH i2c: E2 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: E2 03 00 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: E2 03 00 24 19 00 90 00 B1 [17:47:23]RAPDU: 90 00 [17:47:23]wFMCommunicate OK [17:47:23]SAM_PROTO_ClearQueue done [17:47:23]KKMCreateOFDPacket [17:47:23]OFDProtocolAddRootSTLVToBuf [17:47:23]FM_MakeSignedData [17:47:23]FM_MakeSignedData [17:47:23]SAM_PROTO_SignData [17:47:23]wFMCommunicate request_size=4 [17:47:23]MH_SAM_APDU [17:47:23]CAPDU: 80 0D 01 02 [17:47:23]Write to MH i2c: E2 08 00 25 19 80 0D 01 02 00 00 00 00 B7 [17:47:23]Write i2c OK [17:47:23]MH_I2C_Read... [17:47:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:23]Read from MH i2c: E2 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: E2 03 00 [17:47:23]MH_I2C_Read... [17:47:23]Read from MH i2c: E2 03 00 25 19 00 90 00 B2 [17:47:23]RAPDU: 90 00 [17:47:23]wFMCommunicate OK [17:47:23]wFMCommunicate request_size=255 [17:47:23]MH_SAM_APDU [17:47:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 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 BA 00 00 00 F4 03 04 00 B0 BC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B5 01 00 35 04 06 00 66 [17:47:23]Write to MH i2c: E2 02 01 26 19 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 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 BA 00 00 00 F4 03 04 00 B0 BC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B5 01 00 35 04 06 00 66 00 00 45 [17:47:23]Write i2c OK [17:47:23]MH_I2C_Read... [17:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:24]Read from MH i2c: E2 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 03 00 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 03 00 26 19 00 90 00 B3 [17:47:24]RAPDU: 90 00 [17:47:24]wFMCommunicate OK [17:47:24]wFMCommunicate request_size=10 [17:47:24]MH_SAM_APDU [17:47:24]CAPDU: 80 0D 02 02 05 E6 1F C7 BF 9C [17:47:24]Write to MH i2c: E2 0D 00 27 19 80 0D 02 02 05 00 E6 1F C7 BF 9C 00 00 EB [17:47:24]Write i2c OK [17:47:24]MH_I2C_Read... [17:47:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:24]Read from MH i2c: E2 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 03 00 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 03 00 27 19 00 90 00 B4 [17:47:24]RAPDU: 90 00 [17:47:24]wFMCommunicate OK [17:47:24]wFMCommunicate request_size=4 [17:47:24]MH_SAM_APDU [17:47:24]CAPDU: 80 0D 03 02 [17:47:24]Write to MH i2c: E2 08 00 28 19 80 0D 03 02 00 00 00 00 BC [17:47:24]Write i2c OK [17:47:24]MH_I2C_Read... [17:47:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:24]Read from MH i2c: E2 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 0B 00 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 0B 00 28 19 00 BE 05 9D DB 4D BE 74 80 90 00 F7 [17:47:24]RAPDU: BE 05 9D DB 4D BE 74 80 90 00 [17:47:24]wFMCommunicate OK [17:47:24]SAM_PROTO_SignData done [17:47:24]FM_MakeSignedData done [17:47:24]CreateOFDProtocolMessage [17:47:24]wFMCommunicate request_size=4 [17:47:24]MH_SAM_APDU [17:47:24]CAPDU: 80 11 00 00 [17:47:24]Write to MH i2c: E2 08 00 29 19 80 11 00 00 00 00 00 00 BC [17:47:24]Write i2c OK [17:47:24]MH_I2C_Read... [17:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:24]Read from MH i2c: E2 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 17 00 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: E2 17 00 29 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0E [17:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:47:24]wFMCommunicate OK [17:47:24]CreateOFDProtocolMessage done [17:47:24]OFDSenderStorePacket 112018 [17:47:24]StoreOFDPacket docnum=112018 [17:47:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 1F 07 01 CE D9 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 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 BA 00 00 00 F4 03 04 00 B0 BC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B5 01 00 35 04 06 00 66 E6 1F C7 BF 9C BE 05 9D DB 4D BE 74 80 [17:47:24]CheckFolder [17:47:24]dirname=/storage/ofd_packets [17:47:24]CheckFolder done [17:47:24]ProducePacketName [17:47:24]name=ofd_packets/00112018 [17:47:24]NVStorageSaveData ofd_packets/00112018 [17:47:24]File name is /storage/ofd_packets/00112018 [17:47:24]Write 301 bytes [17:47:24]NVStorageSaveData done [17:47:24]OFDSenderStorePacket done [17:47:24]KKMCreateOFDPacket done [17:47:24]NVStorageSaveData kkm_last_timestamp [17:47:24]File name is /storage/kkm_last_timestamp [17:47:24]Write 4 bytes [17:47:24]NVStorageSaveData done [17:47:24]ExternCall_PrintAddStr [17:47:24]wPrintStart [17:47:24]Write to MH i2c: 01 00 00 2A 19 43 [17:47:24]Write i2c OK [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: 01 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: 01 07 00 [17:47:24]MH_I2C_Read... [17:47:24]Read from MH i2c: 01 07 00 2A 19 00 00 00 00 00 FF 0F 58 [17:47:24]RasterBufferAndPrint [17:47:24]line 小褔械褌 N : (1)320669 [17:47:24]line 袠袧袧: 02508201610067 [17:47:24]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:47:24]line 袩袪袨袛袗袞袗 [17:47:24]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:47:24]line 孝芯胁邪褉: 2710124130 [17:47:24]line 袗懈-92-袣-5 [17:47:24]line 22.600 * 66.40 [17:47:24]line = 1500.64 [17:47:24]line 袧袛小 12% 袧小袩 1% [17:47:24]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:47:24]line 袨袣袪校袚袥袝袧袠袝: -0.64 [17:47:24]line 袠孝袨袚袨: 1500.00 [17:47:24]line 袙薪械褋械薪芯: 1500.00 [17:47:24]line 小袛袗效袗: 0.00 [17:47:24]line 袧小袩 1% : 13.28 [17:47:24]line 袧袛小 12% : 159.36 [17:47:24]line 袧邪谢懈褔薪褘屑懈: 1500.00 [17:47:24]line 袘械蟹薪邪谢.: 0.00 [17:47:24]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:47:24]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:47:24]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:47:24]line 效械泻 186 21.06.2024 17:47 [17:47:24]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:47:24]line 袟袧袦: 0300000198 [17:47:24]line 袪袧袦: 0000000000092771 [17:47:24]line 袙械褉褋懈褟 袣袣袦: 001 [17:47:24]line 肖袦: 0000000000875083 [17:47:24]line 肖袛: 112018 [17:47:24]line 肖袩袛: 113138561695644 [17:47:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T174728&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112018&fm=113138561695644&tin=02508201610067®Number=0000000000092771&sum=150000 [17:47:24]OFD Sender: Processing packet 112018 [packets to send 38, broken 37] [17:47:24]ProducePacketName [17:47:24]name=ofd_packets/00112018 [17:47:24]OFD Sender: To server: 嚂鰌G, [17:47:24]CommunicateWithHost lk.salyk.kg:30040 [17:47:24]ConnectInit lk.salyk.kg [17:47:24]written 0, free lines is 4095 [17:47:24]Connected sock=10 [17:47:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 1F 07 01 CE D9 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 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 BA 00 00 00 F4 03 04 00 B0 BC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B5 01 00 35 04 06 00 66 E6 1F C7 BF 9C BE 05 9D DB 4D BE 74 80 [17:47:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 83 D4 47 00 D4 BC 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 30 38 37 35 30 38 33 10 04 04 00 92 B5 01 00 F4 03 04 00 D5 53 75 66 B6 04 01 00 00 D1 99 A1 B7 F2 2F AD B6 [17:47:24]CommunicateWithHost err = 0 [17:47:24]CheckOFDResponse [17:47:24]1017 (14) - 77093643461234 [17:47:24]1041 (16) - 0000000000875083 [17:47:24]1040 (4) - 112018 [17:47:24]1012 (4) - 21.06.2024 10:20 [17:47:24]1206 (1) - 0 [17:47:24]OFD Sender: Remove packet 112018 [17:47:24]ProducePacketName [17:47:24]name=ofd_packets/00112018 [17:47:24]NVStorageDeleteData [17:47:25]Write to MH i2c: 01 00 00 55 19 6E [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: 01 07 00 55 19 00 00 00 00 00 EF 0C 70 [17:47:25]RasterBufferAndPrint [17:47:25]line [17:47:25]line [17:47:25]line [17:47:25]line [17:47:25]line [17:47:25]written 0, free lines is 3317 [17:47:25]MH_Cut [17:47:25]Write to MH i2c: D1 01 00 5C 19 01 47 [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: D1 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: D1 01 00 [17:47:25]MH_I2C_Read... [17:47:25]Read from MH i2c: D1 01 00 5C 19 00 46 [17:47:25]Write to MH i2c: 01 00 00 5D 19 76 [17:47:25]Write i2c OK [17:47:25]MH_I2C_Read... [17:47:25]OFD Sender: No OFD packet to send [17:47:25]*** Cut start [17:47:25]*** Partial cut [17:47:25]*** CUTSNS_PIN = 1 [17:47:25]*** CUTSNS_PIN = 0 [17:47:26]*** Brake cut motor [17:47:26]Read from MH i2c: 01 [17:47:26]MH_I2C_Read... [17:47:26]*** Stop cut motor [17:47:26]*** Cut end [17:47:26]Read from MH i2c: 01 07 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: 01 07 00 5D 19 00 00 00 00 00 FF 0F 8B [17:47:26]process_action close_receipt done [17:47:26]requested_data is exist [17:47:26]produce_requested_data [17:47:26]requested_item fm.sn is exist - process it [17:47:26]wFMCommunicate request_size=4 [17:47:26]MH_SAM_APDU [17:47:26]CAPDU: 80 11 00 00 [17:47:26]Write to MH i2c: E2 08 00 5E 19 80 11 00 00 00 00 00 00 F1 [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:26]Read from MH i2c: E2 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 17 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 17 00 5E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 43 [17:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:47:26]wFMCommunicate OK [17:47:26]requested_item fd.num is exist - process it [17:47:26]SAM_PROTO_GetFieldsCounters [17:47:26]wFMCommunicate request_size=4 [17:47:26]MH_SAM_APDU [17:47:26]CAPDU: 80 13 00 00 [17:47:26]Write to MH i2c: E2 08 00 5F 19 80 13 00 00 00 00 00 00 F4 [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:26]Read from MH i2c: E2 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 62 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 62 00 5F 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 92 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [17:47:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 92 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:26]wFMCommunicate OK [17:47:26]SAM_PROTO_GetFieldsCounters done [17:47:26]requested_item shift.num is exist - process it [17:47:26]requested_item shift.opened is exist - process it [17:47:26]req_shift_opened [17:47:26]FM_GetShiftState [17:47:26]SAM_PROTO_GetShiftState [17:47:26]wFMCommunicate request_size=4 [17:47:26]MH_SAM_APDU [17:47:26]CAPDU: 80 13 01 00 [17:47:26]Write to MH i2c: E2 08 00 60 19 80 13 01 00 00 00 00 00 F6 [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:26]Read from MH i2c: E2 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 0E 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 0E 00 60 19 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 73 [17:47:26]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:47:26]wFMCommunicate OK [17:47:26]SAM_PROTO_GetShiftState done [17:47:26]FM_GetShiftState done [17:47:26]req_shift_opened done [17:47:26]requested_item shift.open_date is exist - process it [17:47:26]req_shift_open_date [17:47:26]req_shift_open_date done [17:47:26]produce_requested_data done [17:47:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112018,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:47:26]process_action_free close_receipt [17:47:26]json_value_free [17:47:26]json_value_free done [17:47:26]process_json_proto returns [17:47:26]Send response to host [17:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112018,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:47:26]free response buf [17:47:26]execute_script done [17:47:26]execute_script returns [17:47:26]free content buf [17:47:26]Sock 7.Close socket [17:47:26]Sock 7.Thread stoped [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]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:34]accept exits with 9 [17:50:34]New connection [17:50:34]New thread 3066875236 created [17:50:34]Thread 3066731876 joined [17:50:34]Waiting for new connection... [17:50:34] Sock 9.Parse request [17:50:34]Sock 9.Check first char [17:50:34]Sock 9.First char is OK [17:50:34]request: POST /json_proto HTTP/1.0 [17:50:34]Method: POST [17:50:34]URL: /json_proto [17:50:34]Method is POST - this is cgi request [17:50:34]url: /json_proto [17:50:34]query_string will be loaded in cgi processing [17:50:34]execute_cgi json_proto POST (null) [17:50:34]execute_cgi path=json_proto method=POST [17:50:34]POST find Content-Length [17:50:34]Host: 172.17.59.68:8080 [17:50:34]Content-Length: 677 [17:50:34]Content-Type: application/json [17:50:34] [17:50:34]POST finish read [17:50:34]Found Content-Length = 677 [17:50:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:34]execute_script... [17:50: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 : (1)320670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:34]POST & json_proto [17:50:34]process_json_proto [17:50:34]json parsed OK: [17:50:34]protocol is kg_v1.0 [17:50:34]action value=close_receipt [17:50:34]process_action close_receipt [17:50:34]cmd_close_receipt [17:50:34]MH_GetDate [17:50:34]Write to MH i2c: F0 00 00 61 19 69 [17:50:34]Write i2c OK [17:50:34]MH_I2C_Read... [17:50:34]Read from MH i2c: F0 [17:50:34]MH_I2C_Read... [17:50:34]Read from MH i2c: F0 09 00 [17:50:34]MH_I2C_Read... [17:50:34]Read from MH i2c: F0 09 00 61 19 00 71 BD 75 66 BC EC 60 65 E8 [17:50:34]GetLastDocTimeStamp 1718992048 [17:50:34]current date 1718992241 [17:50:34]FM_GetShiftState [17:50:34]SAM_PROTO_GetShiftState [17:50:34]wFMCommunicate request_size=4 [17:50:34]MH_SAM_APDU [17:50:34]CAPDU: 80 13 01 00 [17:50:34]Write to MH i2c: E2 08 00 62 19 80 13 01 00 00 00 00 00 F8 [17:50:34]Write i2c OK [17:50:34]MH_I2C_Read... [17:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:34]Read from MH i2c: E2 [17:50:34]MH_I2C_Read... [17:50:34]Read from MH i2c: E2 0E 00 [17:50:34]MH_I2C_Read... [17:50:34]Read from MH i2c: E2 0E 00 62 19 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 75 [17:50:34]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:50:34]wFMCommunicate OK [17:50:34]SAM_PROTO_GetShiftState done [17:50:34]FM_GetShiftState done [17:50:34]opened in 1718933695 [17:50:34]opened+sec_in_day 1719020095 [17:50:34]quantity*price = 25032 [17:50:34]sum+1 = 25034 [17:50:34]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.33 袠孝袨袚袨: 250.00 袙薪械褋械薪芯: 250.00 小袛袗效袗: 0.00 袧小袩 1% : 2.21 袧袛小 12% : 26.58 袧邪谢懈褔薪褘屑懈: 250.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 187 21.06.2024 17:50 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112019 肖袩袛: 69104906617245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T175041&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112019&fm=69104906617245&tin=02508201610067®Number=0000000000092771&sum=25000 [17:50:36]StoreToDocumentArchive [17:50:36]shift 390 fd 112019 [17:50:36]save to /storage/0390/doc_00112019 [17:50:36]save last doc name /storage/0390/doc_00112019 to /storage/kkm_last_doc_name [17:50:36]save OK [17:50:36]Clear old archive folders... [17:50:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:36]tlvbuf is 00465450 [17:50:36]SAM_PROTO_ClearQueue [17:50:36]wFMCommunicate request_size=4 [17:50:36]MH_SAM_APDU [17:50:36]CAPDU: 80 09 00 00 [17:50:36]Write to MH i2c: E2 08 00 6F 19 80 09 00 00 00 00 00 00 FA [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:36]Read from MH i2c: E2 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 6F 19 00 90 00 FC [17:50:36]RAPDU: 90 00 [17:50:36]wFMCommunicate OK [17:50:36]SAM_PROTO_ClearQueue done [17:50:36]KKMCreateOFDPacket [17:50:36]OFDProtocolAddRootSTLVToBuf [17:50:36]FM_MakeSignedData [17:50:36]FM_MakeSignedData [17:50:36]SAM_PROTO_SignData [17:50:36]wFMCommunicate request_size=4 [17:50:36]MH_SAM_APDU [17:50:36]CAPDU: 80 0D 01 02 [17:50:36]Write to MH i2c: E2 08 00 70 19 80 0D 01 02 00 00 00 00 02 [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:36]Read from MH i2c: E2 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 70 19 00 90 00 FD [17:50:36]RAPDU: 90 00 [17:50:36]wFMCommunicate OK [17:50:36]wFMCommunicate request_size=255 [17:50:36]MH_SAM_APDU [17:50:36]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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 71 BD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B5 01 00 35 04 06 00 3E [17:50:36]Write to MH i2c: E2 02 01 71 19 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 71 BD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B5 01 00 35 04 06 00 3E 00 00 34 [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:36]Read from MH i2c: E2 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 71 19 00 90 00 FE [17:50:36]RAPDU: 90 00 [17:50:36]wFMCommunicate OK [17:50:36]wFMCommunicate request_size=10 [17:50:36]MH_SAM_APDU [17:50:36]CAPDU: 80 0D 02 02 05 D9 BD 69 41 9D [17:50:36]Write to MH i2c: E2 0D 00 72 19 80 0D 02 02 05 00 D9 BD 69 41 9D 00 00 EC [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:36]Read from MH i2c: E2 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 03 00 72 19 00 90 00 FF [17:50:36]RAPDU: 90 00 [17:50:36]wFMCommunicate OK [17:50:36]wFMCommunicate request_size=4 [17:50:36]MH_SAM_APDU [17:50:36]CAPDU: 80 0D 03 02 [17:50:36]Write to MH i2c: E2 08 00 73 19 80 0D 03 02 00 00 00 00 07 [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:36]Read from MH i2c: E2 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 0B 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 0B 00 73 19 00 A8 EB 7C 08 A3 E1 74 A6 90 00 BD [17:50:36]RAPDU: A8 EB 7C 08 A3 E1 74 A6 90 00 [17:50:36]wFMCommunicate OK [17:50:36]SAM_PROTO_SignData done [17:50:36]FM_MakeSignedData done [17:50:36]CreateOFDProtocolMessage [17:50:36]wFMCommunicate request_size=4 [17:50:36]MH_SAM_APDU [17:50:36]CAPDU: 80 11 00 00 [17:50:36]Write to MH i2c: E2 08 00 74 19 80 11 00 00 00 00 00 00 07 [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:36]Read from MH i2c: E2 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 17 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: E2 17 00 74 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 59 [17:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:50:36]wFMCommunicate OK [17:50:36]CreateOFDProtocolMessage done [17:50:36]OFDSenderStorePacket 112019 [17:50:36]StoreOFDPacket docnum=112019 [17:50:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C0 15 07 01 BA AC 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 71 BD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B5 01 00 35 04 06 00 3E D9 BD 69 41 9D A8 EB 7C 08 A3 E1 74 A6 [17:50:36]CheckFolder [17:50:36]dirname=/storage/ofd_packets [17:50:36]CheckFolder done [17:50:36]ProducePacketName [17:50:36]name=ofd_packets/00112019 [17:50:36]NVStorageSaveData ofd_packets/00112019 [17:50:36]File name is /storage/ofd_packets/00112019 [17:50:36]Write 301 bytes [17:50:36]NVStorageSaveData done [17:50:36]OFDSenderStorePacket done [17:50:36]KKMCreateOFDPacket done [17:50:36]NVStorageSaveData kkm_last_timestamp [17:50:36]File name is /storage/kkm_last_timestamp [17:50:36]Write 4 bytes [17:50:36]NVStorageSaveData done [17:50:36]ExternCall_PrintAddStr [17:50:36]wPrintStart [17:50:36]Write to MH i2c: 01 00 00 75 19 8E [17:50:36]Write i2c OK [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: 01 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: 01 07 00 [17:50:36]MH_I2C_Read... [17:50:36]Read from MH i2c: 01 07 00 75 19 00 00 00 00 00 FF 0F A3 [17:50:36]RasterBufferAndPrint [17:50:36]line 小褔械褌 N : (1)320670 [17:50:36]line 袠袧袧: 02508201610067 [17:50:36]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:50:36]line 袩袪袨袛袗袞袗 [17:50:36]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:50:36]line 孝芯胁邪褉: 2710124130 [17:50:36]line 袗懈-92-袣-5 [17:50:36]line 3.770 * 66.40 [17:50:36]line = 250.33 [17:50:36]line 袧袛小 12% 袧小袩 1% [17:50:36]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:50:36]line 袨袣袪校袚袥袝袧袠袝: -0.33 [17:50:36]line 袠孝袨袚袨: 250.00 [17:50:36]line 袙薪械褋械薪芯: 250.00 [17:50:36]line 小袛袗效袗: 0.00 [17:50:36]line 袧小袩 1% : 2.21 [17:50:36]line 袧袛小 12% : 26.58 [17:50:36]line 袧邪谢懈褔薪褘屑懈: 250.00 [17:50:36]line 袘械蟹薪邪谢.: 0.00 [17:50:36]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:50:36]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:50:36]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:50:36]line 效械泻 187 21.06.2024 17:50 [17:50:36]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:50:36]line 袟袧袦: 0300000198 [17:50:36]line 袪袧袦: 0000000000092771 [17:50:36]line 袙械褉褋懈褟 袣袣袦: 001 [17:50:36]line 肖袦: 0000000000875083 [17:50:36]line 肖袛: 112019 [17:50:36]line 肖袩袛: 69104906617245 [17:50:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T175041&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112019&fm=69104906617245&tin=02508201610067®Number=0000000000092771&sum=25000 [17:50:36]OFD Sender: Processing packet 112019 [packets to send 38, broken 37] [17:50:36]ProducePacketName [17:50:36]name=ofd_packets/00112019 [17:50:36]OFD Sender: To server: 嚂鰌G, [17:50:36]CommunicateWithHost lk.salyk.kg:30040 [17:50:36]ConnectInit lk.salyk.kg [17:50:36]written 0, free lines is 4095 [17:50:37]Connected sock=7 [17:50:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C0 15 07 01 BA AC 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 71 BD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B5 01 00 35 04 06 00 3E D9 BD 69 41 9D A8 EB 7C 08 A3 E1 74 A6 [17:50:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D2 10 47 00 CE 68 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 30 38 37 35 30 38 33 10 04 04 00 93 B5 01 00 F4 03 04 00 95 54 75 66 B6 04 01 00 00 26 C4 24 36 C2 F4 7B 2F [17:50:37]CommunicateWithHost err = 0 [17:50:37]CheckOFDResponse [17:50:37]1017 (14) - 77093643461234 [17:50:37]1041 (16) - 0000000000875083 [17:50:37]1040 (4) - 112019 [17:50:37]1012 (4) - 21.06.2024 10:23 [17:50:37]1206 (1) - 0 [17:50:37]OFD Sender: Remove packet 112019 [17:50:37]ProducePacketName [17:50:37]name=ofd_packets/00112019 [17:50:37]NVStorageDeleteData [17:50:37]Write to MH i2c: 01 00 00 A0 19 B9 [17:50:37]Write i2c OK [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 07 00 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: 01 07 00 A0 19 00 00 00 00 00 EB 0C B7 [17:50:37]RasterBufferAndPrint [17:50:37]line [17:50:37]line [17:50:37]line [17:50:37]line [17:50:37]line [17:50:37]written 0, free lines is 3313 [17:50:37]MH_Cut [17:50:37]Write to MH i2c: D1 01 00 A7 19 01 92 [17:50:37]Write i2c OK [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: D1 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: D1 01 00 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: D1 01 00 A7 19 00 91 [17:50:37]Write to MH i2c: 01 00 00 A8 19 C1 [17:50:37]Write i2c OK [17:50:37]MH_I2C_Read... [17:50:37]OFD Sender: No OFD packet to send [17:50:38]*** Cut start [17:50:38]*** Partial cut [17:50:38]*** CUTSNS_PIN = 1 [17:50:38]*** CUTSNS_PIN = 0 [17:50:38]*** Brake cut motor [17:50:38]Read from MH i2c: 01 [17:50:38]MH_I2C_Read... [17:50:38]*** Stop cut motor [17:50:38]*** Cut end [17:50:38]Read from MH i2c: 01 07 00 [17:50:38]MH_I2C_Read... [17:50:38]Read from MH i2c: 01 07 00 A8 19 00 00 00 00 00 FF 0F D6 [17:50:38]process_action close_receipt done [17:50:38]requested_data is exist [17:50:38]produce_requested_data [17:50:38]requested_item fm.sn is exist - process it [17:50:38]wFMCommunicate request_size=4 [17:50:38]MH_SAM_APDU [17:50:38]CAPDU: 80 11 00 00 [17:50:38]Write to MH i2c: E2 08 00 A9 19 80 11 00 00 00 00 00 00 3C [17:50:38]Write i2c OK [17:50:38]MH_I2C_Read... [17:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:38]Read from MH i2c: E2 [17:50:38]MH_I2C_Read... [17:50:38]Read from MH i2c: E2 17 00 [17:50:38]MH_I2C_Read... [17:50:38]Read from MH i2c: E2 17 00 A9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8E [17:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:50:38]wFMCommunicate OK [17:50:38]requested_item fd.num is exist - process it [17:50:38]SAM_PROTO_GetFieldsCounters [17:50:38]wFMCommunicate request_size=4 [17:50:38]MH_SAM_APDU [17:50:38]CAPDU: 80 13 00 00 [17:50:38]Write to MH i2c: E2 08 00 AA 19 80 13 00 00 00 00 00 00 3F [17:50:38]Write i2c OK [17:50:38]MH_I2C_Read... [17:50:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:38]Read from MH i2c: E2 [17:50:38]MH_I2C_Read... [17:50:38]Read from MH i2c: E2 62 00 [17:50:38]MH_I2C_Read... [17:50:38]Read from MH i2c: E2 62 00 AA 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 93 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [17:50:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 93 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:38]wFMCommunicate OK [17:50:38]SAM_PROTO_GetFieldsCounters done [17:50:38]requested_item shift.num is exist - process it [17:50:38]requested_item shift.opened is exist - process it [17:50:38]req_shift_opened [17:50:38]FM_GetShiftState [17:50:38]SAM_PROTO_GetShiftState [17:50:38]wFMCommunicate request_size=4 [17:50:38]MH_SAM_APDU [17:50:38]CAPDU: 80 13 01 00 [17:50:38]Write to MH i2c: E2 08 00 AB 19 80 13 01 00 00 00 00 00 41 [17:50:38]Write i2c OK [17:50:38]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:39]Read from MH i2c: E2 0E 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 0E 00 AB 19 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 BE [17:50:39]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:50:39]wFMCommunicate OK [17:50:39]SAM_PROTO_GetShiftState done [17:50:39]FM_GetShiftState done [17:50:39]req_shift_opened done [17:50:39]requested_item shift.open_date is exist - process it [17:50:39]req_shift_open_date [17:50:39]req_shift_open_date done [17:50:39]produce_requested_data done [17:50:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112019,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:50:39]process_action_free close_receipt [17:50:39]json_value_free [17:50:39]json_value_free done [17:50:39]process_json_proto returns [17:50:39]Send response to host [17:50:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112019,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:50:39]free response buf [17:50:39]execute_script done [17:50:39]execute_script returns [17:50:39]free content buf [17:50:39]Sock 9.Close socket [17:50:39]Sock 9.Thread stoped [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:41]accept exits with 10 [17:55:41]New connection [17:55:41]New thread 3066731876 created [17:55:41]Thread 3066875236 joined [17:55:41]Waiting for new connection... [17:55:41] Sock 10.Parse request [17:55:41]Sock 10.Check first char [17:55:41]Sock 10.First char is OK [17:55:41]request: POST /json_proto HTTP/1.0 [17:55:41]Method: POST [17:55:41]URL: /json_proto [17:55:41]Method is POST - this is cgi request [17:55:41]url: /json_proto [17:55:41]query_string will be loaded in cgi processing [17:55:41]execute_cgi json_proto POST (null) [17:55:41]execute_cgi path=json_proto method=POST [17:55:41]POST find Content-Length [17:55:41]Host: 172.17.59.68:8080 [17:55:41]Content-Length: 677 [17:55:41]Content-Type: application/json [17:55:41] [17:55:41]POST finish read [17:55:41]Found Content-Length = 677 [17:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:41]execute_script... [17:55: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)320671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:41]POST & json_proto [17:55:41]process_json_proto [17:55:41]json parsed OK: [17:55:41]protocol is kg_v1.0 [17:55:41]action value=close_receipt [17:55:41]process_action close_receipt [17:55:41]cmd_close_receipt [17:55:41]MH_GetDate [17:55:41]Write to MH i2c: F0 00 00 AC 19 B4 [17:55:41]Write i2c OK [17:55:41]MH_I2C_Read... [17:55:41]Read from MH i2c: F0 [17:55:41]MH_I2C_Read... [17:55:41]Read from MH i2c: F0 09 00 [17:55:41]MH_I2C_Read... [17:55:41]Read from MH i2c: F0 09 00 AC 19 00 A4 BE 75 66 BC EC 60 65 67 [17:55:41]GetLastDocTimeStamp 1718992241 [17:55:41]current date 1718992548 [17:55:41]FM_GetShiftState [17:55:41]SAM_PROTO_GetShiftState [17:55:41]wFMCommunicate request_size=4 [17:55:41]MH_SAM_APDU [17:55:41]CAPDU: 80 13 01 00 [17:55:41]Write to MH i2c: E2 08 00 AD 19 80 13 01 00 00 00 00 00 43 [17:55:41]Write i2c OK [17:55:41]MH_I2C_Read... [17:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:41]Read from MH i2c: E2 [17:55:41]MH_I2C_Read... [17:55:41]Read from MH i2c: E2 0E 00 [17:55:41]MH_I2C_Read... [17:55:41]Read from MH i2c: E2 0E 00 AD 19 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C0 [17:55:41]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:55:41]wFMCommunicate OK [17:55:41]SAM_PROTO_GetShiftState done [17:55:41]FM_GetShiftState done [17:55:41]opened in 1718933695 [17:55:41]opened+sec_in_day 1719020095 [17:55:41]quantity*price = 50065 [17:55:41]sum+1 = 50067 [17:55:41]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 188 21.06.2024 17:55 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112020 肖袩袛: 214072996915356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T175548&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112020&fm=214072996915356&tin=02508201610067®Number=0000000000092771&sum=50000 [17:55:42]StoreToDocumentArchive [17:55:42]shift 390 fd 112020 [17:55:42]save to /storage/0390/doc_00112020 [17:55:42]save last doc name /storage/0390/doc_00112020 to /storage/kkm_last_doc_name [17:55:42]save OK [17:55:42]Clear old archive folders... [17:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:42]tlvbuf is 00359DB0 [17:55:42]SAM_PROTO_ClearQueue [17:55:42]wFMCommunicate request_size=4 [17:55:42]MH_SAM_APDU [17:55:42]CAPDU: 80 09 00 00 [17:55:42]Write to MH i2c: E2 08 00 BA 19 80 09 00 00 00 00 00 00 45 [17:55:42]Write i2c OK [17:55:42]MH_I2C_Read... [17:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:42]Read from MH i2c: E2 [17:55:42]MH_I2C_Read... [17:55:42]Read from MH i2c: E2 03 00 [17:55:42]MH_I2C_Read... [17:55:42]Read from MH i2c: E2 03 00 BA 19 00 90 00 47 [17:55:42]RAPDU: 90 00 [17:55:42]wFMCommunicate OK [17:55:42]SAM_PROTO_ClearQueue done [17:55:42]KKMCreateOFDPacket [17:55:42]OFDProtocolAddRootSTLVToBuf [17:55:42]FM_MakeSignedData [17:55:42]FM_MakeSignedData [17:55:42]SAM_PROTO_SignData [17:55:42]wFMCommunicate request_size=4 [17:55:42]MH_SAM_APDU [17:55:42]CAPDU: 80 0D 01 02 [17:55:42]Write to MH i2c: E2 08 00 BB 19 80 0D 01 02 00 00 00 00 4D [17:55:42]Write i2c OK [17:55:42]MH_I2C_Read... [17:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:42]Read from MH i2c: E2 [17:55:42]MH_I2C_Read... [17:55:42]Read from MH i2c: E2 03 00 [17:55:42]MH_I2C_Read... [17:55:42]Read from MH i2c: E2 03 00 BB 19 00 90 00 48 [17:55:42]RAPDU: 90 00 [17:55:42]wFMCommunicate OK [17:55:42]wFMCommunicate request_size=255 [17:55:42]MH_SAM_APDU [17:55: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 BC 00 00 00 F4 03 04 00 A4 BE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B5 01 00 35 04 06 00 C2 [17:55:42]Write to MH i2c: E2 02 01 BC 19 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 BC 00 00 00 F4 03 04 00 A4 BE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B5 01 00 35 04 06 00 C2 00 00 8D [17:55:42]Write i2c OK [17:55:42]MH_I2C_Read... [17:55:43]OFD Sender: No OFD packet to send [17:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 BC 19 00 90 00 49 [17:55:43]RAPDU: 90 00 [17:55:43]wFMCommunicate OK [17:55:43]wFMCommunicate request_size=10 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 0D 02 02 05 B2 C0 EF E8 9C [17:55:43]Write to MH i2c: E2 0D 00 BD 19 80 0D 02 02 05 00 B2 C0 EF E8 9C 00 00 3F [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 BD 19 00 90 00 4A [17:55:43]RAPDU: 90 00 [17:55:43]wFMCommunicate OK [17:55:43]wFMCommunicate request_size=4 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 0D 03 02 [17:55:43]Write to MH i2c: E2 08 00 BE 19 80 0D 03 02 00 00 00 00 52 [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 0B 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 0B 00 BE 19 00 4D F7 5B 71 07 A8 3F 68 90 00 B9 [17:55:43]RAPDU: 4D F7 5B 71 07 A8 3F 68 90 00 [17:55:43]wFMCommunicate OK [17:55:43]SAM_PROTO_SignData done [17:55:43]FM_MakeSignedData done [17:55:43]CreateOFDProtocolMessage [17:55:43]wFMCommunicate request_size=4 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 11 00 00 [17:55:43]Write to MH i2c: E2 08 00 BF 19 80 11 00 00 00 00 00 00 52 [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 17 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 17 00 BF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A4 [17:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:55:43]wFMCommunicate OK [17:55:43]CreateOFDProtocolMessage done [17:55:43]OFDSenderStorePacket 112020 [17:55:43]StoreOFDPacket docnum=112020 [17:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 27 07 01 80 F0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 BC 00 00 00 F4 03 04 00 A4 BE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B5 01 00 35 04 06 00 C2 B2 C0 EF E8 9C 4D F7 5B 71 07 A8 3F 68 [17:55:43]CheckFolder [17:55:43]dirname=/storage/ofd_packets [17:55:43]CheckFolder done [17:55:43]ProducePacketName [17:55:43]name=ofd_packets/00112020 [17:55:43]NVStorageSaveData ofd_packets/00112020 [17:55:43]File name is /storage/ofd_packets/00112020 [17:55:43]Write 301 bytes [17:55:43]NVStorageSaveData done [17:55:43]OFDSenderStorePacket done [17:55:43]KKMCreateOFDPacket done [17:55:43]NVStorageSaveData kkm_last_timestamp [17:55:43]File name is /storage/kkm_last_timestamp [17:55:43]Write 4 bytes [17:55:43]NVStorageSaveData done [17:55:43]OFD Sender: Processing packet 112020 [packets to send 38, broken 37] [17:55:43]ProducePacketName [17:55:43]name=ofd_packets/00112020 [17:55:43]OFD Sender: To server: 嚂鰌G, [17:55:43]CommunicateWithHost lk.salyk.kg:30040 [17:55:43]ConnectInit lk.salyk.kg [17:55:43]ExternCall_PrintAddStr [17:55:43]wPrintStart [17:55:43]Write to MH i2c: 01 00 00 C0 19 D9 [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: 01 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: 01 07 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: 01 07 00 C0 19 00 00 00 00 00 FF 0F EE [17:55:43]RasterBufferAndPrint [17:55:43]line 小褔械褌 N : (1)320671 [17:55:43]line 袠袧袧: 02508201610067 [17:55:43]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [17:55:43]line 袩袪袨袛袗袞袗 [17:55:43]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [17:55:43]line 孝芯胁邪褉: 2710124130 [17:55:43]line 袗懈-92-袣-5 [17:55:43]line 7.540 * 66.40 [17:55:43]line = 500.66 [17:55:43]line 袧袛小 12% 袧小袩 1% [17:55:43]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [17:55:43]line 袨袣袪校袚袥袝袧袠袝: -0.66 [17:55:43]line 袠孝袨袚袨: 500.00 [17:55:43]line 袙薪械褋械薪芯: 500.00 [17:55:43]line 小袛袗效袗: 0.00 [17:55:43]line 袧小袩 1% : 4.43 [17:55:43]line 袧袛小 12% : 53.17 [17:55:43]line 袧邪谢懈褔薪褘屑懈: 500.00 [17:55:43]line 袘械蟹薪邪谢.: 0.00 [17:55:43]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [17:55:43]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [17:55:43]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [17:55:43]line 效械泻 188 21.06.2024 17:55 [17:55:43]line 小屑械薪邪: 390 肖肖袛: 1.0 [17:55:43]line 袟袧袦: 0300000198 [17:55:43]line 袪袧袦: 0000000000092771 [17:55:43]line 袙械褉褋懈褟 袣袣袦: 001 [17:55:43]line 肖袦: 0000000000875083 [17:55:43]line 肖袛: 112020 [17:55:43]line 肖袩袛: 214072996915356 [17:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T175548&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112020&fm=214072996915356&tin=02508201610067®Number=0000000000092771&sum=50000 [17:55:43]Connected sock=11 [17:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 27 07 01 80 F0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 BC 00 00 00 F4 03 04 00 A4 BE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B5 01 00 35 04 06 00 C2 B2 C0 EF E8 9C 4D F7 5B 71 07 A8 3F 68 [17:55:43]written 0, free lines is 4095 [17:55:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D1 E9 47 00 92 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 30 38 37 35 30 38 33 10 04 04 00 94 B5 01 00 F4 03 04 00 C8 55 75 66 B6 04 01 00 00 5D A3 07 4E A9 12 3F E3 [17:55:43]CommunicateWithHost err = 0 [17:55:43]CheckOFDResponse [17:55:43]1017 (14) - 77093643461234 [17:55:43]1041 (16) - 0000000000875083 [17:55:43]1040 (4) - 112020 [17:55:43]1012 (4) - 21.06.2024 10:28 [17:55:43]1206 (1) - 0 [17:55:43]OFD Sender: Remove packet 112020 [17:55:43]ProducePacketName [17:55:43]name=ofd_packets/00112020 [17:55:43]NVStorageDeleteData [17:55:44]Write to MH i2c: 01 00 00 EB 19 04 [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: 01 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: 01 07 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: 01 07 00 EB 19 00 00 00 00 00 E1 0C F8 [17:55:44]RasterBufferAndPrint [17:55:44]line [17:55:44]line [17:55:44]line [17:55:44]line [17:55:44]line [17:55:44]written 0, free lines is 3303 [17:55:44]MH_Cut [17:55:44]Write to MH i2c: D1 01 00 F2 19 01 DD [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: D1 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: D1 01 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: D1 01 00 F2 19 00 DC [17:55:44]Write to MH i2c: 01 00 00 F3 19 0C [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]OFD Sender: No OFD packet to send [17:55:44]*** Cut start [17:55:44]*** Partial cut [17:55:44]*** CUTSNS_PIN = 1 [17:55:44]*** CUTSNS_PIN = 0 [17:55:45]*** Brake cut motor [17:55:45]Read from MH i2c: 01 [17:55:45]MH_I2C_Read... [17:55:45]*** Stop cut motor [17:55:45]*** Cut end [17:55:45]Read from MH i2c: 01 07 00 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 FF 0F 21 [17:55:45]process_action close_receipt done [17:55:45]requested_data is exist [17:55:45]produce_requested_data [17:55:45]requested_item fm.sn is exist - process it [17:55:45]wFMCommunicate request_size=4 [17:55:45]MH_SAM_APDU [17:55:45]CAPDU: 80 11 00 00 [17:55:45]Write to MH i2c: E2 08 00 F4 19 80 11 00 00 00 00 00 00 87 [17:55:45]Write i2c OK [17:55:45]MH_I2C_Read... [17:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:45]Read from MH i2c: E2 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: E2 17 00 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: E2 17 00 F4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D9 [17:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:55:45]wFMCommunicate OK [17:55:45]requested_item fd.num is exist - process it [17:55:45]SAM_PROTO_GetFieldsCounters [17:55:45]wFMCommunicate request_size=4 [17:55:45]MH_SAM_APDU [17:55:45]CAPDU: 80 13 00 00 [17:55:45]Write to MH i2c: E2 08 00 F5 19 80 13 00 00 00 00 00 00 8A [17:55:45]Write i2c OK [17:55:45]MH_I2C_Read... [17:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:45]Read from MH i2c: E2 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: E2 62 00 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: E2 62 00 F5 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 94 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [17:55:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 94 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:45]wFMCommunicate OK [17:55:45]SAM_PROTO_GetFieldsCounters done [17:55:45]requested_item shift.num is exist - process it [17:55:45]requested_item shift.opened is exist - process it [17:55:45]req_shift_opened [17:55:45]FM_GetShiftState [17:55:45]SAM_PROTO_GetShiftState [17:55:45]wFMCommunicate request_size=4 [17:55:45]MH_SAM_APDU [17:55:45]CAPDU: 80 13 01 00 [17:55:45]Write to MH i2c: E2 08 00 F6 19 80 13 01 00 00 00 00 00 8C [17:55:45]Write i2c OK [17:55:45]MH_I2C_Read... [17:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:45]Read from MH i2c: E2 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: E2 0E 00 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: E2 0E 00 F6 19 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 09 [17:55:45]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [17:55:45]wFMCommunicate OK [17:55:45]SAM_PROTO_GetShiftState done [17:55:45]FM_GetShiftState done [17:55:45]req_shift_opened done [17:55:45]requested_item shift.open_date is exist - process it [17:55:45]req_shift_open_date [17:55:45]req_shift_open_date done [17:55:45]produce_requested_data done [17:55:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112020,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [17:55:45]process_action_free close_receipt [17:55:45]json_value_free [17:55:45]json_value_free done [17:55:45]process_json_proto returns [17:55:45]Send response to host [17:55:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112020,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [17:55:45]free response buf [17:55:45]execute_script done [17:55:45]execute_script returns [17:55:45]free content buf [17:55:45]Sock 10.Close socket [17:55:45]Sock 10.Thread stoped [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:06]accept exits with 7 [18:03:06]New connection [18:03:06]New thread 3066875236 created [18:03:06]Thread 3066731876 joined [18:03:06]Waiting for new connection... [18:03:06] Sock 7.Parse request [18:03:06]Sock 7.Check first char [18:03:06]Sock 7.First char is OK [18:03:06]request: POST /json_proto HTTP/1.0 [18:03:06]Method: POST [18:03:06]URL: /json_proto [18:03:06]Method is POST - this is cgi request [18:03:06]url: /json_proto [18:03:06]query_string will be loaded in cgi processing [18:03:06]execute_cgi json_proto POST (null) [18:03:06]execute_cgi path=json_proto method=POST [18:03:06]POST find Content-Length [18:03:06]Host: 172.17.59.68:8080 [18:03:06]Content-Length: 677 [18:03:06]Content-Type: application/json [18:03:06] [18:03:06]POST finish read [18:03:06]Found Content-Length = 677 [18:03:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "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" ] } } [18:03:06]execute_script... [18:03: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)320672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "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" ] } } [18:03:06]POST & json_proto [18:03:06]process_json_proto [18:03:06]json parsed OK: [18:03:06]protocol is kg_v1.0 [18:03:06]action value=close_receipt [18:03:06]process_action close_receipt [18:03:06]cmd_close_receipt [18:03:06]MH_GetDate [18:03:06]Write to MH i2c: F0 00 00 F7 19 FF [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: F0 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: F0 09 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: F0 09 00 F7 19 00 60 C0 75 66 BC EC 60 65 70 [18:03:06]GetLastDocTimeStamp 1718992548 [18:03:06]current date 1718992992 [18:03:06]FM_GetShiftState [18:03:06]SAM_PROTO_GetShiftState [18:03:06]wFMCommunicate request_size=4 [18:03:06]MH_SAM_APDU [18:03:06]CAPDU: 80 13 01 00 [18:03:06]Write to MH i2c: E2 08 00 F8 19 80 13 01 00 00 00 00 00 8E [18:03:06]Write i2c OK [18:03:06]MH_I2C_Read... [18:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:06]Read from MH i2c: E2 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 0E 00 [18:03:06]MH_I2C_Read... [18:03:06]Read from MH i2c: E2 0E 00 F8 19 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0B [18:03:06]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:03:06]wFMCommunicate OK [18:03:06]SAM_PROTO_GetShiftState done [18:03:06]FM_GetShiftState done [18:03:06]opened in 1718933695 [18:03:06]opened+sec_in_day 1719020095 [18:03:06]quantity*price = 50030 [18:03:06]sum+1 = 50031 [18:03:06]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.30 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.13 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 189 21.06.2024 18:03 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112021 肖袩袛: 94597338774027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T180313&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112021&fm=94597338774027&tin=02508201610067®Number=0000000000092771&sum=50000 [18:03:07]StoreToDocumentArchive [18:03:07]shift 390 fd 112021 [18:03:07]save to /storage/0390/doc_00112021 [18:03:07]save last doc name /storage/0390/doc_00112021 to /storage/kkm_last_doc_name [18:03:07]save OK [18:03:07]Clear old archive folders... [18:03:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:07]tlvbuf is 00369220 [18:03:07]SAM_PROTO_ClearQueue [18:03:07]wFMCommunicate request_size=4 [18:03:07]MH_SAM_APDU [18:03:07]CAPDU: 80 09 00 00 [18:03:07]Write to MH i2c: E2 08 00 05 1A 80 09 00 00 00 00 00 00 91 [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 05 1A 00 90 00 93 [18:03:07]RAPDU: 90 00 [18:03:07]wFMCommunicate OK [18:03:07]SAM_PROTO_ClearQueue done [18:03:07]KKMCreateOFDPacket [18:03:07]OFDProtocolAddRootSTLVToBuf [18:03:07]FM_MakeSignedData [18:03:07]FM_MakeSignedData [18:03:07]SAM_PROTO_SignData [18:03:07]wFMCommunicate request_size=4 [18:03:07]MH_SAM_APDU [18:03:07]CAPDU: 80 0D 01 02 [18:03:07]Write to MH i2c: E2 08 00 06 1A 80 0D 01 02 00 00 00 00 99 [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 06 1A 00 90 00 94 [18:03:07]RAPDU: 90 00 [18:03:07]wFMCommunicate OK [18:03:07]wFMCommunicate request_size=255 [18:03:07]MH_SAM_APDU [18:03: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E 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 C1 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 BD 00 00 00 F4 03 04 00 61 C0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B5 01 00 35 04 06 00 56 [18:03:07]Write to MH i2c: E2 02 01 07 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E 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 C1 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 BD 00 00 00 F4 03 04 00 61 C0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B5 01 00 35 04 06 00 56 00 00 F6 [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 07 1A 00 90 00 95 [18:03:07]RAPDU: 90 00 [18:03:07]wFMCommunicate OK [18:03:07]wFMCommunicate request_size=10 [18:03:07]MH_SAM_APDU [18:03:07]CAPDU: 80 0D 02 02 05 09 28 C6 3A 0B [18:03:07]Write to MH i2c: E2 0D 00 08 1A 80 0D 02 02 05 00 09 28 C6 3A 0B 00 00 E2 [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 03 00 08 1A 00 90 00 96 [18:03:07]RAPDU: 90 00 [18:03:07]wFMCommunicate OK [18:03:07]wFMCommunicate request_size=4 [18:03:07]MH_SAM_APDU [18:03:07]CAPDU: 80 0D 03 02 [18:03:07]Write to MH i2c: E2 08 00 09 1A 80 0D 03 02 00 00 00 00 9E [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:08]Read from MH i2c: E2 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: E2 0B 00 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: E2 0B 00 09 1A 00 56 D0 06 20 8B C0 11 3D 90 00 84 [18:03:08]RAPDU: 56 D0 06 20 8B C0 11 3D 90 00 [18:03:08]wFMCommunicate OK [18:03:08]SAM_PROTO_SignData done [18:03:08]FM_MakeSignedData done [18:03:08]CreateOFDProtocolMessage [18:03:08]wFMCommunicate request_size=4 [18:03:08]MH_SAM_APDU [18:03:08]CAPDU: 80 11 00 00 [18:03:08]Write to MH i2c: E2 08 00 0A 1A 80 11 00 00 00 00 00 00 9E [18:03:08]Write i2c OK [18:03:08]MH_I2C_Read... [18:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:08]Read from MH i2c: E2 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: E2 17 00 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: E2 17 00 0A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F0 [18:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:03:08]wFMCommunicate OK [18:03:08]CreateOFDProtocolMessage done [18:03:08]OFDSenderStorePacket 112021 [18:03:08]StoreOFDPacket docnum=112021 [18:03:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 BD 07 01 D2 DB 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 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E 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 C1 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 BD 00 00 00 F4 03 04 00 61 C0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B5 01 00 35 04 06 00 56 09 28 C6 3A 0B 56 D0 06 20 8B C0 11 3D [18:03:08]CheckFolder [18:03:08]dirname=/storage/ofd_packets [18:03:08]CheckFolder done [18:03:08]ProducePacketName [18:03:08]name=ofd_packets/00112021 [18:03:08]NVStorageSaveData ofd_packets/00112021 [18:03:08]File name is /storage/ofd_packets/00112021 [18:03:08]Write 301 bytes [18:03:08]NVStorageSaveData done [18:03:08]OFDSenderStorePacket done [18:03:08]KKMCreateOFDPacket done [18:03:08]NVStorageSaveData kkm_last_timestamp [18:03:08]File name is /storage/kkm_last_timestamp [18:03:08]Write 4 bytes [18:03:08]NVStorageSaveData done [18:03:08]ExternCall_PrintAddStr [18:03:08]wPrintStart [18:03:08]Write to MH i2c: 01 00 00 0B 1A 25 [18:03:08]Write i2c OK [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: 01 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: 01 07 00 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: 01 07 00 0B 1A 00 00 00 00 00 FF 0F 3A [18:03:08]RasterBufferAndPrint [18:03:08]line 小褔械褌 N : (1)320672 [18:03:08]line 袠袧袧: 02508201610067 [18:03:08]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:03:08]line 袩袪袨袛袗袞袗 [18:03:08]line 孝袪袣 (袦袪袣, 袚袧袣) : 12 [18:03:08]line 孝芯胁邪褉: 2710124500 [18:03:08]line 袗懈-95-袣-5 [18:03:08]line 6.770 * 73.90 [18:03:08]line = 500.30 [18:03:08]line 袧袛小 12% 袧小袩 1% [18:03:08]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:03:08]line 袨袣袪校袚袥袝袧袠袝: -0.30 [18:03:08]line 袠孝袨袚袨: 500.00 [18:03:08]line 袙薪械褋械薪芯: 500.00 [18:03:08]line 小袛袗效袗: 0.00 [18:03:08]line 袧小袩 1% : 4.43 [18:03:08]line 袧袛小 12% : 53.13 [18:03:08]line 袧邪谢懈褔薪褘屑懈: 500.00 [18:03:08]line 袘械蟹薪邪谢.: 0.00 [18:03:08]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:03:08]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:03:08]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:03:08]line 效械泻 189 21.06.2024 18:03 [18:03:08]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:03:08]line 袟袧袦: 0300000198 [18:03:08]line 袪袧袦: 0000000000092771 [18:03:08]line 袙械褉褋懈褟 袣袣袦: 001 [18:03:08]line 肖袦: 0000000000875083 [18:03:08]line 肖袛: 112021 [18:03:08]line 肖袩袛: 94597338774027 [18:03:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T180313&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112021&fm=94597338774027&tin=02508201610067®Number=0000000000092771&sum=50000 [18:03:08]OFD Sender: Processing packet 112021 [packets to send 38, broken 37] [18:03:08]ProducePacketName [18:03:08]name=ofd_packets/00112021 [18:03:08]OFD Sender: To server: 嚂鰌G, [18:03:08]CommunicateWithHost lk.salyk.kg:30040 [18:03:08]ConnectInit lk.salyk.kg [18:03:08]written 0, free lines is 4095 [18:03:08]Connected sock=10 [18:03:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 BD 07 01 D2 DB 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 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E 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 C1 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 BD 00 00 00 F4 03 04 00 61 C0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B5 01 00 35 04 06 00 56 09 28 C6 3A 0B 56 D0 06 20 8B C0 11 3D [18:03:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7F 7E 47 00 FB 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 30 38 37 35 30 38 33 10 04 04 00 95 B5 01 00 F4 03 04 00 85 57 75 66 B6 04 01 00 00 A3 34 18 7E BD 62 C3 8E [18:03:08]CommunicateWithHost err = 0 [18:03:08]CheckOFDResponse [18:03:08]1017 (14) - 77093643461234 [18:03:08]1041 (16) - 0000000000875083 [18:03:08]1040 (4) - 112021 [18:03:08]1012 (4) - 21.06.2024 10:35 [18:03:08]1206 (1) - 0 [18:03:08]OFD Sender: Remove packet 112021 [18:03:08]ProducePacketName [18:03:08]name=ofd_packets/00112021 [18:03:08]NVStorageDeleteData [18:03:08]Write to MH i2c: 01 00 00 36 1A 50 [18:03:08]Write i2c OK [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: 01 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: 01 07 00 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: 01 07 00 36 1A 00 00 00 00 00 E0 0C 43 [18:03:08]RasterBufferAndPrint [18:03:08]line [18:03:08]line [18:03:08]line [18:03:08]line [18:03:08]line [18:03:08]written 0, free lines is 3301 [18:03:08]MH_Cut [18:03:08]Write to MH i2c: D1 01 00 3D 1A 01 29 [18:03:08]Write i2c OK [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: D1 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: D1 01 00 [18:03:08]MH_I2C_Read... [18:03:08]Read from MH i2c: D1 01 00 3D 1A 00 28 [18:03:08]Write to MH i2c: 01 00 00 3E 1A 58 [18:03:08]Write i2c OK [18:03:08]MH_I2C_Read... [18:03:09]OFD Sender: No OFD packet to send [18:03:09]*** Cut start [18:03:09]*** Partial cut [18:03:09]*** CUTSNS_PIN = 1 [18:03:09]*** CUTSNS_PIN = 0 [18:03:09]*** Brake cut motor [18:03:10]Read from MH i2c: 01 [18:03:10]MH_I2C_Read... [18:03:10]*** Stop cut motor [18:03:10]*** Cut end [18:03:10]Read from MH i2c: 01 07 00 [18:03:10]MH_I2C_Read... [18:03:10]Read from MH i2c: 01 07 00 3E 1A 00 00 00 00 00 FF 0F 6D [18:03:10]process_action close_receipt done [18:03:10]requested_data is exist [18:03:10]produce_requested_data [18:03:10]requested_item fm.sn is exist - process it [18:03:10]wFMCommunicate request_size=4 [18:03:10]MH_SAM_APDU [18:03:10]CAPDU: 80 11 00 00 [18:03:10]Write to MH i2c: E2 08 00 3F 1A 80 11 00 00 00 00 00 00 D3 [18:03:10]Write i2c OK [18:03:10]MH_I2C_Read... [18:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:10]Read from MH i2c: E2 [18:03:10]MH_I2C_Read... [18:03:10]Read from MH i2c: E2 17 00 [18:03:10]MH_I2C_Read... [18:03:10]Read from MH i2c: E2 17 00 3F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 25 [18:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:03:10]wFMCommunicate OK [18:03:10]requested_item fd.num is exist - process it [18:03:10]SAM_PROTO_GetFieldsCounters [18:03:10]wFMCommunicate request_size=4 [18:03:10]MH_SAM_APDU [18:03:10]CAPDU: 80 13 00 00 [18:03:10]Write to MH i2c: E2 08 00 40 1A 80 13 00 00 00 00 00 00 D6 [18:03:10]Write i2c OK [18:03:10]MH_I2C_Read... [18:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:10]Read from MH i2c: E2 [18:03:10]MH_I2C_Read... [18:03:10]Read from MH i2c: E2 62 00 [18:03:10]MH_I2C_Read... [18:03:10]Read from MH i2c: E2 62 00 40 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 95 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [18:03:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 95 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:10]wFMCommunicate OK [18:03:10]SAM_PROTO_GetFieldsCounters done [18:03:10]requested_item shift.num is exist - process it [18:03:10]requested_item shift.opened is exist - process it [18:03:10]req_shift_opened [18:03:10]FM_GetShiftState [18:03:10]SAM_PROTO_GetShiftState [18:03:10]wFMCommunicate request_size=4 [18:03:10]MH_SAM_APDU [18:03:10]CAPDU: 80 13 01 00 [18:03:10]Write to MH i2c: E2 08 00 41 1A 80 13 01 00 00 00 00 00 D8 [18:03:10]Write i2c OK [18:03:10]MH_I2C_Read... [18:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:10]Read from MH i2c: E2 [18:03:10]MH_I2C_Read... [18:03:10]Read from MH i2c: E2 0E 00 [18:03:10]MH_I2C_Read... [18:03:10]Read from MH i2c: E2 0E 00 41 1A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 55 [18:03:10]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:03:10]wFMCommunicate OK [18:03:10]SAM_PROTO_GetShiftState done [18:03:10]FM_GetShiftState done [18:03:10]req_shift_opened done [18:03:10]requested_item shift.open_date is exist - process it [18:03:10]req_shift_open_date [18:03:10]req_shift_open_date done [18:03:10]produce_requested_data done [18:03:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112021,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:03:10]process_action_free close_receipt [18:03:10]json_value_free [18:03:10]json_value_free done [18:03:10]process_json_proto returns [18:03:10]Send response to host [18:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112021,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:03:10]free response buf [18:03:10]execute_script done [18:03:10]execute_script returns [18:03:10]free content buf [18:03:10]Sock 7.Close socket [18:03:10]Sock 7.Thread stoped [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:02]accept exits with 9 [18:05:02]New connection [18:05:02]New thread 3066731876 created [18:05:02]Thread 3066875236 joined [18:05:02]Waiting for new connection... [18:05:02] Sock 9.Parse request [18:05:02]Sock 9.Check first char [18:05:02]Sock 9.First char is OK [18:05:02]request: POST /json_proto HTTP/1.0 [18:05:02]Method: POST [18:05:02]URL: /json_proto [18:05:02]Method is POST - this is cgi request [18:05:02]url: /json_proto [18:05:02]query_string will be loaded in cgi processing [18:05:02]execute_cgi json_proto POST (null) [18:05:02]execute_cgi path=json_proto method=POST [18:05:02]POST find Content-Length [18:05:02]Host: 172.17.59.68:8080 [18:05:02]Content-Length: 677 [18:05:02]Content-Type: application/json [18:05:02] [18:05:02]POST finish read [18:05:02]Found Content-Length = 677 [18:05:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [18:05:02]execute_script... [18:05: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)320673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [18:05:02]POST & json_proto [18:05:02]process_json_proto [18:05:02]json parsed OK: [18:05:02]protocol is kg_v1.0 [18:05:02]action value=close_receipt [18:05:02]process_action close_receipt [18:05:02]cmd_close_receipt [18:05:02]MH_GetDate [18:05:02]Write to MH i2c: F0 00 00 42 1A 4B [18:05:02]Write i2c OK [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: F0 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: F0 09 00 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: F0 09 00 42 1A 00 D5 C0 75 66 BC EC 60 65 31 [18:05:02]GetLastDocTimeStamp 1718992993 [18:05:02]current date 1718993109 [18:05:02]FM_GetShiftState [18:05:02]SAM_PROTO_GetShiftState [18:05:02]wFMCommunicate request_size=4 [18:05:02]MH_SAM_APDU [18:05:02]CAPDU: 80 13 01 00 [18:05:02]Write to MH i2c: E2 08 00 43 1A 80 13 01 00 00 00 00 00 DA [18:05:02]Write i2c OK [18:05:02]MH_I2C_Read... [18:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:02]Read from MH i2c: E2 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: E2 0E 00 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: E2 0E 00 43 1A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 57 [18:05:02]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:05:02]wFMCommunicate OK [18:05:02]SAM_PROTO_GetShiftState done [18:05:02]FM_GetShiftState done [18:05:02]opened in 1718933695 [18:05:02]opened+sec_in_day 1719020095 [18:05:02]quantity*price = 50065 [18:05:02]sum+1 = 50067 [18:05:02]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 190 21.06.2024 18:05 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112022 肖袩袛: 246783952262983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T180509&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112022&fm=246783952262983&tin=02508201610067®Number=0000000000092771&sum=50000 [18:05:04]StoreToDocumentArchive [18:05:04]shift 390 fd 112022 [18:05:04]save to /storage/0390/doc_00112022 [18:05:04]save last doc name /storage/0390/doc_00112022 to /storage/kkm_last_doc_name [18:05:04]save OK [18:05:04]Clear old archive folders... [18:05:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:04]tlvbuf is 00465990 [18:05:04]SAM_PROTO_ClearQueue [18:05:04]wFMCommunicate request_size=4 [18:05:04]MH_SAM_APDU [18:05:04]CAPDU: 80 09 00 00 [18:05:04]Write to MH i2c: E2 08 00 50 1A 80 09 00 00 00 00 00 00 DC [18:05:04]Write i2c OK [18:05:04]MH_I2C_Read... [18:05:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:04]Read from MH i2c: E2 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 03 00 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 03 00 50 1A 00 90 00 DE [18:05:04]RAPDU: 90 00 [18:05:04]wFMCommunicate OK [18:05:04]SAM_PROTO_ClearQueue done [18:05:04]KKMCreateOFDPacket [18:05:04]OFDProtocolAddRootSTLVToBuf [18:05:04]FM_MakeSignedData [18:05:04]FM_MakeSignedData [18:05:04]SAM_PROTO_SignData [18:05:04]wFMCommunicate request_size=4 [18:05:04]MH_SAM_APDU [18:05:04]CAPDU: 80 0D 01 02 [18:05:04]Write to MH i2c: E2 08 00 51 1A 80 0D 01 02 00 00 00 00 E4 [18:05:04]Write i2c OK [18:05:04]MH_I2C_Read... [18:05:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:04]Read from MH i2c: E2 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 03 00 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 03 00 51 1A 00 90 00 DF [18:05:04]RAPDU: 90 00 [18:05:04]wFMCommunicate OK [18:05:04]wFMCommunicate request_size=255 [18:05:04]MH_SAM_APDU [18:05: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 BE 00 00 00 F4 03 04 00 D5 C0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B5 01 00 35 04 06 00 E0 [18:05:04]Write to MH i2c: E2 02 01 52 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 BE 00 00 00 F4 03 04 00 D5 C0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B5 01 00 35 04 06 00 E0 00 00 79 [18:05:04]Write i2c OK [18:05:04]MH_I2C_Read... [18:05:04]OFD Sender: No OFD packet to send [18:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:04]Read from MH i2c: E2 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 03 00 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 03 00 52 1A 00 90 00 E0 [18:05:04]RAPDU: 90 00 [18:05:04]wFMCommunicate OK [18:05:04]wFMCommunicate request_size=10 [18:05:04]MH_SAM_APDU [18:05:04]CAPDU: 80 0D 02 02 05 72 DD CF 97 47 [18:05:04]Write to MH i2c: E2 0D 00 53 1A 80 0D 02 02 05 00 72 DD CF 97 47 00 00 ED [18:05:04]Write i2c OK [18:05:04]MH_I2C_Read... [18:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:04]Read from MH i2c: E2 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 03 00 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 03 00 53 1A 00 90 00 E1 [18:05:04]RAPDU: 90 00 [18:05:04]wFMCommunicate OK [18:05:04]wFMCommunicate request_size=4 [18:05:04]MH_SAM_APDU [18:05:04]CAPDU: 80 0D 03 02 [18:05:04]Write to MH i2c: E2 08 00 54 1A 80 0D 03 02 00 00 00 00 E9 [18:05:04]Write i2c OK [18:05:04]MH_I2C_Read... [18:05:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:04]Read from MH i2c: E2 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 0B 00 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 0B 00 54 1A 00 72 73 70 D4 76 25 66 49 90 00 5D [18:05:04]RAPDU: 72 73 70 D4 76 25 66 49 90 00 [18:05:04]wFMCommunicate OK [18:05:04]SAM_PROTO_SignData done [18:05:04]FM_MakeSignedData done [18:05:04]CreateOFDProtocolMessage [18:05:04]wFMCommunicate request_size=4 [18:05:04]MH_SAM_APDU [18:05:04]CAPDU: 80 11 00 00 [18:05:04]Write to MH i2c: E2 08 00 55 1A 80 11 00 00 00 00 00 00 E9 [18:05:04]Write i2c OK [18:05:04]MH_I2C_Read... [18:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:04]Read from MH i2c: E2 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 17 00 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: E2 17 00 55 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3B [18:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:05:04]wFMCommunicate OK [18:05:04]CreateOFDProtocolMessage done [18:05:04]OFDSenderStorePacket 112022 [18:05:04]StoreOFDPacket docnum=112022 [18:05:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 7A 07 01 49 77 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 BE 00 00 00 F4 03 04 00 D5 C0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B5 01 00 35 04 06 00 E0 72 DD CF 97 47 72 73 70 D4 76 25 66 49 [18:05:04]CheckFolder [18:05:04]dirname=/storage/ofd_packets [18:05:04]CheckFolder done [18:05:04]ProducePacketName [18:05:04]name=ofd_packets/00112022 [18:05:04]NVStorageSaveData ofd_packets/00112022 [18:05:04]File name is /storage/ofd_packets/00112022 [18:05:04]Write 301 bytes [18:05:04]NVStorageSaveData done [18:05:04]OFDSenderStorePacket done [18:05:04]KKMCreateOFDPacket done [18:05:04]NVStorageSaveData kkm_last_timestamp [18:05:04]File name is /storage/kkm_last_timestamp [18:05:04]Write 4 bytes [18:05:04]NVStorageSaveData done [18:05:04]ExternCall_PrintAddStr [18:05:04]wPrintStart [18:05:04]Write to MH i2c: 01 00 00 56 1A 70 [18:05:04]Write i2c OK [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: 01 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: 01 07 00 [18:05:04]MH_I2C_Read... [18:05:04]Read from MH i2c: 01 07 00 56 1A 00 00 00 00 00 FF 0F 85 [18:05:04]RasterBufferAndPrint [18:05:04]line 小褔械褌 N : (1)320673 [18:05:04]line 袠袧袧: 02508201610067 [18:05:04]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:05:04]line 袩袪袨袛袗袞袗 [18:05:04]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:05:04]line 孝芯胁邪褉: 2710124130 [18:05:04]line 袗懈-92-袣-5 [18:05:04]line 7.540 * 66.40 [18:05:04]line = 500.66 [18:05:04]line 袧袛小 12% 袧小袩 1% [18:05:04]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:05:04]line 袨袣袪校袚袥袝袧袠袝: -0.66 [18:05:04]line 袠孝袨袚袨: 500.00 [18:05:04]line 袙薪械褋械薪芯: 500.00 [18:05:04]line 小袛袗效袗: 0.00 [18:05:04]line 袧小袩 1% : 4.43 [18:05:04]line 袧袛小 12% : 53.17 [18:05:04]line 袧邪谢懈褔薪褘屑懈: 500.00 [18:05:04]line 袘械蟹薪邪谢.: 0.00 [18:05:04]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:05:04]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:05:04]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:05:04]line 效械泻 190 21.06.2024 18:05 [18:05:04]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:05:04]line 袟袧袦: 0300000198 [18:05:04]line 袪袧袦: 0000000000092771 [18:05:04]line 袙械褉褋懈褟 袣袣袦: 001 [18:05:04]line 肖袦: 0000000000875083 [18:05:04]line 肖袛: 112022 [18:05:04]line 肖袩袛: 246783952262983 [18:05:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T180509&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112022&fm=246783952262983&tin=02508201610067®Number=0000000000092771&sum=50000 [18:05:04]OFD Sender: Processing packet 112022 [packets to send 38, broken 37] [18:05:04]ProducePacketName [18:05:04]name=ofd_packets/00112022 [18:05:04]OFD Sender: To server: 嚂鰌G, [18:05:04]CommunicateWithHost lk.salyk.kg:30040 [18:05:04]ConnectInit lk.salyk.kg [18:05:04]written 0, free lines is 4095 [18:05:05]Connected sock=10 [18:05:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 7A 07 01 49 77 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 BE 00 00 00 F4 03 04 00 D5 C0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B5 01 00 35 04 06 00 E0 72 DD CF 97 47 72 73 70 D4 76 25 66 49 [18:05:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 79 14 47 00 FD F1 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 30 38 37 35 30 38 33 10 04 04 00 96 B5 01 00 F4 03 04 00 F9 57 75 66 B6 04 01 00 00 A9 B8 76 70 AF 85 70 0E [18:05:05]CommunicateWithHost err = 0 [18:05:05]CheckOFDResponse [18:05:05]1017 (14) - 77093643461234 [18:05:05]1041 (16) - 0000000000875083 [18:05:05]1040 (4) - 112022 [18:05:05]1012 (4) - 21.06.2024 10:37 [18:05:05]1206 (1) - 0 [18:05:05]OFD Sender: Remove packet 112022 [18:05:05]ProducePacketName [18:05:05]name=ofd_packets/00112022 [18:05:05]NVStorageDeleteData [18:05:05]Write to MH i2c: 01 00 00 81 1A 9B [18:05:05]Write i2c OK [18:05:05]MH_I2C_Read... [18:05:05]Read from MH i2c: 01 [18:05:05]MH_I2C_Read... [18:05:05]Read from MH i2c: 01 07 00 [18:05:05]MH_I2C_Read... [18:05:05]Read from MH i2c: 01 07 00 81 1A 00 00 00 00 00 EE 0C 9C [18:05:05]RasterBufferAndPrint [18:05:05]line [18:05:05]line [18:05:05]line [18:05:05]line [18:05:05]line [18:05:05]written 0, free lines is 3316 [18:05:05]MH_Cut [18:05:05]Write to MH i2c: D1 01 00 88 1A 01 74 [18:05:05]Write i2c OK [18:05:05]MH_I2C_Read... [18:05:05]Read from MH i2c: D1 [18:05:05]MH_I2C_Read... [18:05:05]Read from MH i2c: D1 01 00 [18:05:05]MH_I2C_Read... [18:05:05]Read from MH i2c: D1 01 00 88 1A 00 73 [18:05:05]Write to MH i2c: 01 00 00 89 1A A3 [18:05:05]Write i2c OK [18:05:05]MH_I2C_Read... [18:05:05]OFD Sender: No OFD packet to send [18:05:06]*** Cut start [18:05:06]*** Partial cut [18:05:06]*** CUTSNS_PIN = 1 [18:05:06]*** CUTSNS_PIN = 0 [18:05:06]*** Brake cut motor [18:05:06]Read from MH i2c: 01 [18:05:06]MH_I2C_Read... [18:05:06]*** Stop cut motor [18:05:06]*** Cut end [18:05:06]Read from MH i2c: 01 07 00 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: 01 07 00 89 1A 00 00 00 00 00 FF 0F B8 [18:05:06]process_action close_receipt done [18:05:06]requested_data is exist [18:05:06]produce_requested_data [18:05:06]requested_item fm.sn is exist - process it [18:05:06]wFMCommunicate request_size=4 [18:05:06]MH_SAM_APDU [18:05:06]CAPDU: 80 11 00 00 [18:05:06]Write to MH i2c: E2 08 00 8A 1A 80 11 00 00 00 00 00 00 1E [18:05:06]Write i2c OK [18:05:06]MH_I2C_Read... [18:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:06]Read from MH i2c: E2 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 17 00 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 17 00 8A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 70 [18:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:05:06]wFMCommunicate OK [18:05:06]requested_item fd.num is exist - process it [18:05:06]SAM_PROTO_GetFieldsCounters [18:05:06]wFMCommunicate request_size=4 [18:05:06]MH_SAM_APDU [18:05:06]CAPDU: 80 13 00 00 [18:05:06]Write to MH i2c: E2 08 00 8B 1A 80 13 00 00 00 00 00 00 21 [18:05:06]Write i2c OK [18:05:06]MH_I2C_Read... [18:05:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:06]Read from MH i2c: E2 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 62 00 [18:05:06]MH_I2C_Read... [18:05:06]Read from MH i2c: E2 62 00 8B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 96 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [18:05:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 96 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:06]wFMCommunicate OK [18:05:06]SAM_PROTO_GetFieldsCounters done [18:05:06]requested_item shift.num is exist - process it [18:05:06]requested_item shift.opened is exist - process it [18:05:06]req_shift_opened [18:05:06]FM_GetShiftState [18:05:06]SAM_PROTO_GetShiftState [18:05:06]wFMCommunicate request_size=4 [18:05:06]MH_SAM_APDU [18:05:06]CAPDU: 80 13 01 00 [18:05:06]Write to MH i2c: E2 08 00 8C 1A 80 13 01 00 00 00 00 00 23 [18:05:06]Write i2c OK [18:05:06]MH_I2C_Read... [18:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:07]Read from MH i2c: E2 [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: E2 0E 00 [18:05:07]MH_I2C_Read... [18:05:07]Read from MH i2c: E2 0E 00 8C 1A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A0 [18:05:07]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:05:07]wFMCommunicate OK [18:05:07]SAM_PROTO_GetShiftState done [18:05:07]FM_GetShiftState done [18:05:07]req_shift_opened done [18:05:07]requested_item shift.open_date is exist - process it [18:05:07]req_shift_open_date [18:05:07]req_shift_open_date done [18:05:07]produce_requested_data done [18:05:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112022,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:05:07]process_action_free close_receipt [18:05:07]json_value_free [18:05:07]json_value_free done [18:05:07]process_json_proto returns [18:05:07]Send response to host [18:05:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112022,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:05:07]free response buf [18:05:07]execute_script done [18:05:07]execute_script returns [18:05:07]free content buf [18:05:07]Sock 9.Close socket [18:05:07]Sock 9.Thread stoped [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:01]accept exits with 7 [18:07:01]New connection [18:07:01]New thread 3066875236 created [18:07:01]Thread 3066731876 joined [18:07:01]Waiting for new connection... [18:07:01] Sock 7.Parse request [18:07:01]Sock 7.Check first char [18:07:01]Sock 7.First char is OK [18:07:01]request: POST /json_proto HTTP/1.0 [18:07:01]Method: POST [18:07:01]URL: /json_proto [18:07:01]Method is POST - this is cgi request [18:07:01]url: /json_proto [18:07:01]query_string will be loaded in cgi processing [18:07:01]execute_cgi json_proto POST (null) [18:07:01]execute_cgi path=json_proto method=POST [18:07:01]POST find Content-Length [18:07:01]Host: 172.17.59.68:8080 [18:07:01]Content-Length: 674 [18:07:01]Content-Type: application/json [18:07:01] [18:07:01]POST finish read [18:07:01]Found Content-Length = 674 [18:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.000, "sum" : 364.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 364.00, "total" : 364.00, "payments": [ { "type": 0, "sum" : 364.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:01]execute_script... [18:07:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.000, "sum" : 364.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 364.00, "total" : 364.00, "payments": [ { "type": 0, "sum" : 364.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:01]POST & json_proto [18:07:01]process_json_proto [18:07:01]json parsed OK: [18:07:01]protocol is kg_v1.0 [18:07:01]action value=close_receipt [18:07:01]process_action close_receipt [18:07:01]cmd_close_receipt [18:07:01]MH_GetDate [18:07:01]Write to MH i2c: F0 00 00 8D 1A 96 [18:07:01]Write i2c OK [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: F0 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: F0 09 00 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: F0 09 00 8D 1A 00 4C C1 75 66 BC EC 60 65 F4 [18:07:01]GetLastDocTimeStamp 1718993109 [18:07:01]current date 1718993228 [18:07:01]FM_GetShiftState [18:07:01]SAM_PROTO_GetShiftState [18:07:01]wFMCommunicate request_size=4 [18:07:01]MH_SAM_APDU [18:07:01]CAPDU: 80 13 01 00 [18:07:01]Write to MH i2c: E2 08 00 8E 1A 80 13 01 00 00 00 00 00 25 [18:07:01]Write i2c OK [18:07:01]MH_I2C_Read... [18:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:01]Read from MH i2c: E2 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: E2 0E 00 [18:07:01]MH_I2C_Read... [18:07:01]Read from MH i2c: E2 0E 00 8E 1A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A2 [18:07:01]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:07:01]wFMCommunicate OK [18:07:01]SAM_PROTO_GetShiftState done [18:07:01]FM_GetShiftState done [18:07:01]opened in 1718933695 [18:07:01]opened+sec_in_day 1719020095 [18:07:01]quantity*price = 36450 [18:07:01]sum+1 = 36451 [18:07:01]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.50 袠孝袨袚袨: 364.00 袙薪械褋械薪芯: 364.00 小袛袗效袗: 0.00 袧小袩 1% : 3.23 袧袛小 12% : 38.71 袧邪谢懈褔薪褘屑懈: 364.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 191 21.06.2024 18:07 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112023 肖袩袛: 236417322637795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T180708&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112023&fm=236417322637795&tin=02508201610067®Number=0000000000092771&sum=36400 [18:07:02]StoreToDocumentArchive [18:07:02]shift 390 fd 112023 [18:07:02]save to /storage/0390/doc_00112023 [18:07:02]save last doc name /storage/0390/doc_00112023 to /storage/kkm_last_doc_name [18:07:02]save OK [18:07:02]Clear old archive folders... [18:07:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:07:02]tlvbuf is 003410B0 [18:07:02]SAM_PROTO_ClearQueue [18:07:02]wFMCommunicate request_size=4 [18:07:02]MH_SAM_APDU [18:07:02]CAPDU: 80 09 00 00 [18:07:02]Write to MH i2c: E2 08 00 9B 1A 80 09 00 00 00 00 00 00 27 [18:07:02]Write i2c OK [18:07:02]MH_I2C_Read... [18:07:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:02]Read from MH i2c: E2 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 03 00 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 03 00 9B 1A 00 90 00 29 [18:07:02]RAPDU: 90 00 [18:07:02]wFMCommunicate OK [18:07:02]SAM_PROTO_ClearQueue done [18:07:02]KKMCreateOFDPacket [18:07:02]OFDProtocolAddRootSTLVToBuf [18:07:02]FM_MakeSignedData [18:07:02]FM_MakeSignedData [18:07:02]SAM_PROTO_SignData [18:07:02]wFMCommunicate request_size=4 [18:07:02]MH_SAM_APDU [18:07:02]CAPDU: 80 0D 01 02 [18:07:02]Write to MH i2c: E2 08 00 9C 1A 80 0D 01 02 00 00 00 00 2F [18:07:02]Write i2c OK [18:07:02]MH_I2C_Read... [18:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:02]Read from MH i2c: E2 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 03 00 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 03 00 9C 1A 00 90 00 2A [18:07:02]RAPDU: 90 00 [18:07:02]wFMCommunicate OK [18:07:02]wFMCommunicate request_size=255 [18:07:02]MH_SAM_APDU [18:07:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 4C C1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B5 01 00 35 04 06 00 D7 05 32 88 [18:07:02]Write to MH i2c: E2 02 01 9D 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 4C C1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B5 01 00 35 04 06 00 D7 05 32 88 00 00 AC [18:07:02]Write i2c OK [18:07:02]MH_I2C_Read... [18:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:02]Read from MH i2c: E2 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 03 00 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 03 00 9D 1A 00 90 00 2B [18:07:02]RAPDU: 90 00 [18:07:02]wFMCommunicate OK [18:07:02]wFMCommunicate request_size=7 [18:07:02]MH_SAM_APDU [18:07:02]CAPDU: 80 0D 02 02 02 D9 E3 [18:07:02]Write to MH i2c: E2 0A 00 9E 1A 80 0D 02 02 02 00 D9 E3 00 00 F2 [18:07:02]Write i2c OK [18:07:02]MH_I2C_Read... [18:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:02]Read from MH i2c: E2 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 03 00 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 03 00 9E 1A 00 90 00 2C [18:07:02]RAPDU: 90 00 [18:07:02]wFMCommunicate OK [18:07:02]wFMCommunicate request_size=4 [18:07:02]MH_SAM_APDU [18:07:02]CAPDU: 80 0D 03 02 [18:07:02]Write to MH i2c: E2 08 00 9F 1A 80 0D 03 02 00 00 00 00 34 [18:07:02]Write i2c OK [18:07:02]MH_I2C_Read... [18:07:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:02]Read from MH i2c: E2 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 0B 00 [18:07:02]MH_I2C_Read... [18:07:02]Read from MH i2c: E2 0B 00 9F 1A 00 CA 7E F0 7D 54 5E 98 AF 90 00 E3 [18:07:02]RAPDU: CA 7E F0 7D 54 5E 98 AF 90 00 [18:07:02]wFMCommunicate OK [18:07:02]SAM_PROTO_SignData done [18:07:02]FM_MakeSignedData done [18:07:02]CreateOFDProtocolMessage [18:07:02]wFMCommunicate request_size=4 [18:07:02]MH_SAM_APDU [18:07:02]CAPDU: 80 11 00 00 [18:07:02]Write to MH i2c: E2 08 00 A0 1A 80 11 00 00 00 00 00 00 34 [18:07:02]Write i2c OK [18:07:02]MH_I2C_Read... [18:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:03]Read from MH i2c: E2 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: E2 17 00 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: E2 17 00 A0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 86 [18:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:07:03]wFMCommunicate OK [18:07:03]CreateOFDProtocolMessage done [18:07:03]OFDSenderStorePacket 112023 [18:07:03]StoreOFDPacket docnum=112023 [18:07:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 A8 C6 04 01 92 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 4C C1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B5 01 00 35 04 06 00 D7 05 32 88 D9 E3 CA 7E F0 7D 54 5E 98 AF [18:07:03]CheckFolder [18:07:03]dirname=/storage/ofd_packets [18:07:03]CheckFolder done [18:07:03]ProducePacketName [18:07:03]name=ofd_packets/00112023 [18:07:03]NVStorageSaveData ofd_packets/00112023 [18:07:03]File name is /storage/ofd_packets/00112023 [18:07:03]Write 298 bytes [18:07:03]NVStorageSaveData done [18:07:03]OFDSenderStorePacket done [18:07:03]KKMCreateOFDPacket done [18:07:03]NVStorageSaveData kkm_last_timestamp [18:07:03]File name is /storage/kkm_last_timestamp [18:07:03]Write 4 bytes [18:07:03]NVStorageSaveData done [18:07:03]ExternCall_PrintAddStr [18:07:03]wPrintStart [18:07:03]Write to MH i2c: 01 00 00 A1 1A BB [18:07:03]Write i2c OK [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: 01 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: 01 07 00 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: 01 07 00 A1 1A 00 00 00 00 00 FF 0F D0 [18:07:03]RasterBufferAndPrint [18:07:03]line 小褔械褌 N : (1)320674 [18:07:03]line 袠袧袧: 02508201610067 [18:07:03]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:07:03]line 袩袪袨袛袗袞袗 [18:07:03]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [18:07:03]line 孝芯胁邪褉: 2710194210 [18:07:03]line 袛孝-袣-5 [18:07:03]line 5.000 * 72.90 [18:07:03]line = 364.50 [18:07:03]line 袧袛小 12% 袧小袩 1% [18:07:03]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:07:03]line 袨袣袪校袚袥袝袧袠袝: -0.50 [18:07:03]line 袠孝袨袚袨: 364.00 [18:07:03]line 袙薪械褋械薪芯: 364.00 [18:07:03]line 小袛袗效袗: 0.00 [18:07:03]line 袧小袩 1% : 3.23 [18:07:03]line 袧袛小 12% : 38.71 [18:07:03]line 袧邪谢懈褔薪褘屑懈: 364.00 [18:07:03]line 袘械蟹薪邪谢.: 0.00 [18:07:03]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:07:03]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:07:03]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:07:03]line 效械泻 191 21.06.2024 18:07 [18:07:03]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:07:03]line 袟袧袦: 0300000198 [18:07:03]line 袪袧袦: 0000000000092771 [18:07:03]line 袙械褉褋懈褟 袣袣袦: 001 [18:07:03]line 肖袦: 0000000000875083 [18:07:03]line 肖袛: 112023 [18:07:03]line 肖袩袛: 236417322637795 [18:07:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T180708&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112023&fm=236417322637795&tin=02508201610067®Number=0000000000092771&sum=36400 [18:07:03]written 0, free lines is 4095 [18:07:03]OFD Sender: Processing packet 112023 [packets to send 38, broken 37] [18:07:03]ProducePacketName [18:07:03]name=ofd_packets/00112023 [18:07:03]OFD Sender: To server: 嚂鰌G, [18:07:03]CommunicateWithHost lk.salyk.kg:30040 [18:07:03]ConnectInit lk.salyk.kg [18:07:03]Connected sock=11 [18:07:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 A8 C6 04 01 92 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 62 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0F 00 00 00 00 07 04 06 00 30 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 4C C1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B5 01 00 35 04 06 00 D7 05 32 88 D9 E3 CA 7E F0 7D 54 5E 98 AF [18:07:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 95 6E 47 00 D4 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 30 38 37 35 30 38 33 10 04 04 00 97 B5 01 00 F4 03 04 00 70 58 75 66 B6 04 01 00 00 2C 8F 28 1E 53 F0 5F 7E [18:07:03]CommunicateWithHost err = 0 [18:07:03]CheckOFDResponse [18:07:03]1017 (14) - 77093643461234 [18:07:03]1041 (16) - 0000000000875083 [18:07:03]1040 (4) - 112023 [18:07:03]1012 (4) - 21.06.2024 10:39 [18:07:03]1206 (1) - 0 [18:07:03]OFD Sender: Remove packet 112023 [18:07:03]ProducePacketName [18:07:03]name=ofd_packets/00112023 [18:07:03]NVStorageDeleteData [18:07:03]Write to MH i2c: 01 00 00 CC 1A E6 [18:07:03]Write i2c OK [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: 01 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: 01 07 00 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: 01 07 00 CC 1A 00 00 00 00 00 E3 0C DC [18:07:03]RasterBufferAndPrint [18:07:03]line [18:07:03]line [18:07:03]line [18:07:03]line [18:07:03]line [18:07:03]written 0, free lines is 3305 [18:07:03]MH_Cut [18:07:03]Write to MH i2c: D1 01 00 D3 1A 01 BF [18:07:03]Write i2c OK [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: D1 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: D1 01 00 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: D1 01 00 D3 1A 00 BE [18:07:03]Write to MH i2c: 01 00 00 D4 1A EE [18:07:03]Write i2c OK [18:07:03]MH_I2C_Read... [18:07:04]OFD Sender: No OFD packet to send [18:07:04]*** Cut start [18:07:04]*** Partial cut [18:07:04]*** CUTSNS_PIN = 1 [18:07:04]*** CUTSNS_PIN = 0 [18:07:04]*** Brake cut motor [18:07:05]Read from MH i2c: 01 [18:07:05]MH_I2C_Read... [18:07:05]*** Stop cut motor [18:07:05]*** Cut end [18:07:05]Read from MH i2c: 01 07 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 D4 1A 00 00 00 00 00 FF 0F 03 [18:07:05]process_action close_receipt done [18:07:05]requested_data is exist [18:07:05]produce_requested_data [18:07:05]requested_item fm.sn is exist - process it [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 11 00 00 [18:07:05]Write to MH i2c: E2 08 00 D5 1A 80 11 00 00 00 00 00 00 69 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 17 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 17 00 D5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BB [18:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:07:05]wFMCommunicate OK [18:07:05]requested_item fd.num is exist - process it [18:07:05]SAM_PROTO_GetFieldsCounters [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 13 00 00 [18:07:05]Write to MH i2c: E2 08 00 D6 1A 80 13 00 00 00 00 00 00 6C [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 62 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 62 00 D6 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 97 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [18:07:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 97 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:05]wFMCommunicate OK [18:07:05]SAM_PROTO_GetFieldsCounters done [18:07:05]requested_item shift.num is exist - process it [18:07:05]requested_item shift.opened is exist - process it [18:07:05]req_shift_opened [18:07:05]FM_GetShiftState [18:07:05]SAM_PROTO_GetShiftState [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 13 01 00 [18:07:05]Write to MH i2c: E2 08 00 D7 1A 80 13 01 00 00 00 00 00 6E [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 0E 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 0E 00 D7 1A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 EB [18:07:05]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:07:05]wFMCommunicate OK [18:07:05]SAM_PROTO_GetShiftState done [18:07:05]FM_GetShiftState done [18:07:05]req_shift_opened done [18:07:05]requested_item shift.open_date is exist - process it [18:07:05]req_shift_open_date [18:07:05]req_shift_open_date done [18:07:05]produce_requested_data done [18:07:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112023,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:07:05]process_action_free close_receipt [18:07:05]json_value_free [18:07:05]json_value_free done [18:07:05]process_json_proto returns [18:07:05]Send response to host [18:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112023,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:07:05]free response buf [18:07:05]execute_script done [18:07:05]execute_script returns [18:07:05]free content buf [18:07:05]Sock 7.Close socket [18:07:05]Sock 7.Thread stoped [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:51]accept exits with 9 [18:21:51]New connection [18:21:51]New thread 3066731876 created [18:21:51]Thread 3066875236 joined [18:21:51]Waiting for new connection... [18:21:51] Sock 9.Parse request [18:21:51]Sock 9.Check first char [18:21:51]Sock 9.First char is OK [18:21:51]request: POST /json_proto HTTP/1.0 [18:21:51]Method: POST [18:21:51]URL: /json_proto [18:21:51]Method is POST - this is cgi request [18:21:51]url: /json_proto [18:21:51]query_string will be loaded in cgi processing [18:21:51]execute_cgi json_proto POST (null) [18:21:51]execute_cgi path=json_proto method=POST [18:21:51]POST find Content-Length [18:21:51]Host: 172.17.59.68:8080 [18:21:51]Content-Length: 637 [18:21:51]Content-Type: application/json [18:21:51] [18:21:51]POST finish read [18:21:51]Found Content-Length = 637 [18:21:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 12.620, "sum" : 920.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:51]execute_script... [18:21: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)320675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 12.620, "sum" : 920.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:51]POST & json_proto [18:21:51]process_json_proto [18:21:51]json parsed OK: [18:21:51]protocol is kg_v1.0 [18:21:51]action value=close_receipt [18:21:51]process_action close_receipt [18:21:51]cmd_close_receipt [18:21:51]MH_GetDate [18:21:51]Write to MH i2c: F0 00 00 D8 1A E1 [18:21:51]Write i2c OK [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: F0 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: F0 09 00 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: F0 09 00 D8 1A 00 C6 C4 75 66 BC EC 60 65 BC [18:21:51]GetLastDocTimeStamp 1718993228 [18:21:51]current date 1718994118 [18:21:51]FM_GetShiftState [18:21:51]SAM_PROTO_GetShiftState [18:21:51]wFMCommunicate request_size=4 [18:21:51]MH_SAM_APDU [18:21:51]CAPDU: 80 13 01 00 [18:21:51]Write to MH i2c: E2 08 00 D9 1A 80 13 01 00 00 00 00 00 70 [18:21:51]Write i2c OK [18:21:51]MH_I2C_Read... [18:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:51]Read from MH i2c: E2 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: E2 0E 00 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: E2 0E 00 D9 1A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 ED [18:21:51]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:21:51]wFMCommunicate OK [18:21:51]SAM_PROTO_GetShiftState done [18:21:51]FM_GetShiftState done [18:21:51]opened in 1718933695 [18:21:51]opened+sec_in_day 1719020095 [18:21:51]quantity*price = 91999 [18:21:51]sum+1 = 92001 [18:21:51]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 920.00 袧小袩 1% : 8.14 袧袛小 12% : 97.70 袧邪谢懈褔薪褘屑懈: 920.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 192 21.06.2024 18:21 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112024 肖袩袛: 240044569231471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T182158&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112024&fm=240044569231471&tin=02508201610067®Number=0000000000092771&sum=92000 [18:21:52]StoreToDocumentArchive [18:21:52]shift 390 fd 112024 [18:21:52]save to /storage/0390/doc_00112024 [18:21:52]save last doc name /storage/0390/doc_00112024 to /storage/kkm_last_doc_name [18:21:52]save OK [18:21:52]Clear old archive folders... [18:21:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:21:52]tlvbuf is 00369560 [18:21:52]SAM_PROTO_ClearQueue [18:21:52]wFMCommunicate request_size=4 [18:21:52]MH_SAM_APDU [18:21:52]CAPDU: 80 09 00 00 [18:21:53]Write to MH i2c: E2 08 00 E6 1A 80 09 00 00 00 00 00 00 72 [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:53]Read from MH i2c: E2 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 03 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 03 00 E6 1A 00 90 00 74 [18:21:53]RAPDU: 90 00 [18:21:53]wFMCommunicate OK [18:21:53]SAM_PROTO_ClearQueue done [18:21:53]KKMCreateOFDPacket [18:21:53]OFDProtocolAddRootSTLVToBuf [18:21:53]FM_MakeSignedData [18:21:53]FM_MakeSignedData [18:21:53]SAM_PROTO_SignData [18:21:53]wFMCommunicate request_size=4 [18:21:53]MH_SAM_APDU [18:21:53]CAPDU: 80 0D 01 02 [18:21:53]Write to MH i2c: E2 08 00 E7 1A 80 0D 01 02 00 00 00 00 7A [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:53]Read from MH i2c: E2 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 03 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 03 00 E7 1A 00 90 00 75 [18:21:53]RAPDU: 90 00 [18:21:53]wFMCommunicate OK [18:21:53]wFMCommunicate request_size=255 [18:21:53]MH_SAM_APDU [18:21:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 31 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 60 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 C6 C4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B5 01 00 35 04 06 00 DA 51 BB 47 [18:21:53]Write to MH i2c: E2 02 01 E8 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 31 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 60 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 C6 C4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B5 01 00 35 04 06 00 DA 51 BB 47 00 00 EA [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:53]Read from MH i2c: E2 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 03 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 03 00 E8 1A 00 90 00 76 [18:21:53]RAPDU: 90 00 [18:21:53]wFMCommunicate OK [18:21:53]wFMCommunicate request_size=7 [18:21:53]MH_SAM_APDU [18:21:53]CAPDU: 80 0D 02 02 02 80 6F [18:21:53]Write to MH i2c: E2 0A 00 E9 1A 80 0D 02 02 02 00 80 6F 00 00 70 [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:53]Read from MH i2c: E2 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 03 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 03 00 E9 1A 00 90 00 77 [18:21:53]RAPDU: 90 00 [18:21:53]wFMCommunicate OK [18:21:53]wFMCommunicate request_size=4 [18:21:53]MH_SAM_APDU [18:21:53]CAPDU: 80 0D 03 02 [18:21:53]Write to MH i2c: E2 08 00 EA 1A 80 0D 03 02 00 00 00 00 7F [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:53]Read from MH i2c: E2 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 0B 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 0B 00 EA 1A 00 7A 29 26 F1 E4 7E DA 02 90 00 78 [18:21:53]RAPDU: 7A 29 26 F1 E4 7E DA 02 90 00 [18:21:53]wFMCommunicate OK [18:21:53]SAM_PROTO_SignData done [18:21:53]FM_MakeSignedData done [18:21:53]CreateOFDProtocolMessage [18:21:53]wFMCommunicate request_size=4 [18:21:53]MH_SAM_APDU [18:21:53]CAPDU: 80 11 00 00 [18:21:53]Write to MH i2c: E2 08 00 EB 1A 80 11 00 00 00 00 00 00 7F [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:53]Read from MH i2c: E2 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 17 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 17 00 EB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D1 [18:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:21:53]wFMCommunicate OK [18:21:53]CreateOFDProtocolMessage done [18:21:53]OFDSenderStorePacket 112024 [18:21:53]StoreOFDPacket docnum=112024 [18:21:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E7 26 04 01 B2 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 31 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 60 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 C6 C4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B5 01 00 35 04 06 00 DA 51 BB 47 80 6F 7A 29 26 F1 E4 7E DA 02 [18:21:53]CheckFolder [18:21:53]dirname=/storage/ofd_packets [18:21:53]CheckFolder done [18:21:53]ProducePacketName [18:21:53]name=ofd_packets/00112024 [18:21:53]NVStorageSaveData ofd_packets/00112024 [18:21:53]File name is /storage/ofd_packets/00112024 [18:21:53]Write 298 bytes [18:21:53]NVStorageSaveData done [18:21:53]OFDSenderStorePacket done [18:21:53]KKMCreateOFDPacket done [18:21:53]NVStorageSaveData kkm_last_timestamp [18:21:53]File name is /storage/kkm_last_timestamp [18:21:53]Write 4 bytes [18:21:53]NVStorageSaveData done [18:21:53]ExternCall_PrintAddStr [18:21:53]wPrintStart [18:21:53]Write to MH i2c: 01 00 00 EC 1A 06 [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: 01 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: 01 07 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: 01 07 00 EC 1A 00 00 00 00 00 FF 0F 1B [18:21:53]RasterBufferAndPrint [18:21:53]line 小褔械褌 N : (1)320675 [18:21:53]line 袠袧袧: 02508201610067 [18:21:53]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:21:53]line 袩袪袨袛袗袞袗 [18:21:53]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [18:21:53]line 孝芯胁邪褉: 2710194210 [18:21:53]line 袛孝-袣-5 [18:21:53]line 12.620 * 72.90 [18:21:53]line = 920.00 [18:21:53]line 袧袛小 12% 袧小袩 1% [18:21:53]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:21:53]line 袠孝袨袚袨: 920.00 [18:21:53]line 袧小袩 1% : 8.14 [18:21:53]line 袧袛小 12% : 97.70 [18:21:53]line 袧邪谢懈褔薪褘屑懈: 920.00 [18:21:53]line 袘械蟹薪邪谢.: 0.00 [18:21:53]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:21:53]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:21:53]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:21:53]line 效械泻 192 21.06.2024 18:21 [18:21:53]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:21:53]line 袟袧袦: 0300000198 [18:21:53]line 袪袧袦: 0000000000092771 [18:21:53]line 袙械褉褋懈褟 袣袣袦: 001 [18:21:53]line 肖袦: 0000000000875083 [18:21:53]line 肖袛: 112024 [18:21:53]line 肖袩袛: 240044569231471 [18:21:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T182158&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112024&fm=240044569231471&tin=02508201610067®Number=0000000000092771&sum=92000 [18:21:53]OFD Sender: Processing packet 112024 [packets to send 38, broken 37] [18:21:53]ProducePacketName [18:21:53]name=ofd_packets/00112024 [18:21:53]OFD Sender: To server: 嚂鰌G, [18:21:53]CommunicateWithHost lk.salyk.kg:30040 [18:21:53]ConnectInit lk.salyk.kg [18:21:53]written 0, free lines is 4095 [18:21:53]Connected sock=10 [18:21:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E7 26 04 01 B2 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 31 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 60 67 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 67 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 26 00 00 00 00 07 04 06 00 60 67 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 C6 C4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B5 01 00 35 04 06 00 DA 51 BB 47 80 6F 7A 29 26 F1 E4 7E DA 02 [18:21:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C8 21 47 00 99 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 30 38 37 35 30 38 33 10 04 04 00 98 B5 01 00 F4 03 04 00 EA 5B 75 66 B6 04 01 00 00 7B AB FA C1 04 CF BB 95 [18:21:54]CommunicateWithHost err = 0 [18:21:54]CheckOFDResponse [18:21:54]1017 (14) - 77093643461234 [18:21:54]1041 (16) - 0000000000875083 [18:21:54]1040 (4) - 112024 [18:21:54]1012 (4) - 21.06.2024 10:54 [18:21:54]1206 (1) - 0 [18:21:54]OFD Sender: Remove packet 112024 [18:21:54]ProducePacketName [18:21:54]name=ofd_packets/00112024 [18:21:54]NVStorageDeleteData [18:21:54]Write to MH i2c: 01 00 00 14 1B 2F [18:21:54]Write i2c OK [18:21:54]MH_I2C_Read... [18:21:54]Read from MH i2c: 01 [18:21:54]MH_I2C_Read... [18:21:54]Read from MH i2c: 01 07 00 [18:21:54]MH_I2C_Read... [18:21:54]Read from MH i2c: 01 07 00 14 1B 00 00 00 00 00 0A 0D 4D [18:21:54]RasterBufferAndPrint [18:21:54]line [18:21:54]line [18:21:54]line [18:21:54]line [18:21:54]line [18:21:54]written 0, free lines is 3344 [18:21:54]MH_Cut [18:21:54]Write to MH i2c: D1 01 00 1B 1B 01 08 [18:21:54]Write i2c OK [18:21:54]MH_I2C_Read... [18:21:54]Read from MH i2c: D1 [18:21:54]MH_I2C_Read... [18:21:54]Read from MH i2c: D1 01 00 [18:21:54]MH_I2C_Read... [18:21:54]Read from MH i2c: D1 01 00 1B 1B 00 07 [18:21:54]Write to MH i2c: 01 00 00 1C 1B 37 [18:21:54]Write i2c OK [18:21:54]MH_I2C_Read... [18:21:54]OFD Sender: No OFD packet to send [18:21:54]*** Cut start [18:21:54]*** Partial cut [18:21:54]*** CUTSNS_PIN = 1 [18:21:55]*** CUTSNS_PIN = 0 [18:21:55]*** Brake cut motor [18:21:55]Read from MH i2c: 01 [18:21:55]MH_I2C_Read... [18:21:55]*** Stop cut motor [18:21:55]*** Cut end [18:21:55]Read from MH i2c: 01 07 00 [18:21:55]MH_I2C_Read... [18:21:55]Read from MH i2c: 01 07 00 1C 1B 00 00 00 00 00 FF 0F 4C [18:21:55]process_action close_receipt done [18:21:55]requested_data is exist [18:21:55]produce_requested_data [18:21:55]requested_item fm.sn is exist - process it [18:21:55]wFMCommunicate request_size=4 [18:21:55]MH_SAM_APDU [18:21:55]CAPDU: 80 11 00 00 [18:21:55]Write to MH i2c: E2 08 00 1D 1B 80 11 00 00 00 00 00 00 B2 [18:21:55]Write i2c OK [18:21:55]MH_I2C_Read... [18:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:55]Read from MH i2c: E2 [18:21:55]MH_I2C_Read... [18:21:55]Read from MH i2c: E2 17 00 [18:21:55]MH_I2C_Read... [18:21:55]Read from MH i2c: E2 17 00 1D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [18:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:21:55]wFMCommunicate OK [18:21:55]requested_item fd.num is exist - process it [18:21:55]SAM_PROTO_GetFieldsCounters [18:21:55]wFMCommunicate request_size=4 [18:21:55]MH_SAM_APDU [18:21:55]CAPDU: 80 13 00 00 [18:21:55]Write to MH i2c: E2 08 00 1E 1B 80 13 00 00 00 00 00 00 B5 [18:21:55]Write i2c OK [18:21:55]MH_I2C_Read... [18:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:55]Read from MH i2c: E2 [18:21:55]MH_I2C_Read... [18:21:55]Read from MH i2c: E2 62 00 [18:21:55]MH_I2C_Read... [18:21:55]Read from MH i2c: E2 62 00 1E 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 98 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [18:21:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 98 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:55]wFMCommunicate OK [18:21:55]SAM_PROTO_GetFieldsCounters done [18:21:55]requested_item shift.num is exist - process it [18:21:55]requested_item shift.opened is exist - process it [18:21:55]req_shift_opened [18:21:55]FM_GetShiftState [18:21:55]SAM_PROTO_GetShiftState [18:21:55]wFMCommunicate request_size=4 [18:21:55]MH_SAM_APDU [18:21:55]CAPDU: 80 13 01 00 [18:21:55]Write to MH i2c: E2 08 00 1F 1B 80 13 01 00 00 00 00 00 B7 [18:21:55]Write i2c OK [18:21:55]MH_I2C_Read... [18:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:55]Read from MH i2c: E2 [18:21:55]MH_I2C_Read... [18:21:55]Read from MH i2c: E2 0E 00 [18:21:55]MH_I2C_Read... [18:21:55]Read from MH i2c: E2 0E 00 1F 1B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 34 [18:21:55]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:21:55]wFMCommunicate OK [18:21:55]SAM_PROTO_GetShiftState done [18:21:55]FM_GetShiftState done [18:21:55]req_shift_opened done [18:21:55]requested_item shift.open_date is exist - process it [18:21:55]req_shift_open_date [18:21:55]req_shift_open_date done [18:21:55]produce_requested_data done [18:21:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112024,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:21:55]process_action_free close_receipt [18:21:55]json_value_free [18:21:55]json_value_free done [18:21:55]process_json_proto returns [18:21:55]Send response to host [18:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112024,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:21:55]free response buf [18:21:55]execute_script done [18:21:55]execute_script returns [18:21:55]free content buf [18:21:55]Sock 9.Close socket [18:21:55]Sock 9.Thread stoped [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:42]accept exits with 7 [18:26:42]New connection [18:26:42]New thread 3066875236 created [18:26:42]Thread 3066731876 joined [18:26:42]Waiting for new connection... [18:26:42] Sock 7.Parse request [18:26:42]Sock 7.Check first char [18:26:42]Sock 7.First char is OK [18:26:42]request: POST /json_proto HTTP/1.0 [18:26:42]Method: POST [18:26:42]URL: /json_proto [18:26:42]Method is POST - this is cgi request [18:26:42]url: /json_proto [18:26:42]query_string will be loaded in cgi processing [18:26:42]execute_cgi json_proto POST (null) [18:26:42]execute_cgi path=json_proto method=POST [18:26:42]POST find Content-Length [18:26:42]Host: 172.17.59.68:8080 [18:26:42]Content-Length: 678 [18:26:42]Content-Type: application/json [18:26:42] [18:26:42]POST finish read [18:26:42]Found Content-Length = 678 [18:26:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:42]execute_script... [18:26: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 : (1)320676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:42]POST & json_proto [18:26:42]process_json_proto [18:26:42]json parsed OK: [18:26:42]protocol is kg_v1.0 [18:26:42]action value=close_receipt [18:26:42]process_action close_receipt [18:26:42]cmd_close_receipt [18:26:42]MH_GetDate [18:26:42]Write to MH i2c: F0 00 00 20 1B 2A [18:26:42]Write i2c OK [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: F0 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: F0 09 00 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: F0 09 00 20 1B 00 E9 C5 75 66 BC EC 60 65 29 [18:26:42]GetLastDocTimeStamp 1718994118 [18:26:42]current date 1718994409 [18:26:42]FM_GetShiftState [18:26:42]SAM_PROTO_GetShiftState [18:26:42]wFMCommunicate request_size=4 [18:26:42]MH_SAM_APDU [18:26:42]CAPDU: 80 13 01 00 [18:26:42]Write to MH i2c: E2 08 00 21 1B 80 13 01 00 00 00 00 00 B9 [18:26:42]Write i2c OK [18:26:42]MH_I2C_Read... [18:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:42]Read from MH i2c: E2 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: E2 0E 00 [18:26:42]MH_I2C_Read... [18:26:42]Read from MH i2c: E2 0E 00 21 1B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 36 [18:26:42]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:26:42]wFMCommunicate OK [18:26:42]SAM_PROTO_GetShiftState done [18:26:42]FM_GetShiftState done [18:26:42]opened in 1718933695 [18:26:42]opened+sec_in_day 1719020095 [18:26:42]quantity*price = 90038 [18:26:42]sum+1 = 90039 [18:26:42]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.38 袠孝袨袚袨: 900.00 袙薪械褋械薪芯: 900.00 小袛袗效袗: 0.00 袧小袩 1% : 7.97 袧袛小 12% : 95.62 袧邪谢懈褔薪褘屑懈: 900.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 193 21.06.2024 18:26 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112025 肖袩袛: 279958679949190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T182649&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112025&fm=279958679949190&tin=02508201610067®Number=0000000000092771&sum=90000 [18:26:43]StoreToDocumentArchive [18:26:43]shift 390 fd 112025 [18:26:43]save to /storage/0390/doc_00112025 [18:26:43]save last doc name /storage/0390/doc_00112025 to /storage/kkm_last_doc_name [18:26:43]save OK [18:26:43]Clear old archive folders... [18:26:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:43]tlvbuf is 00340DB0 [18:26:43]SAM_PROTO_ClearQueue [18:26:43]wFMCommunicate request_size=4 [18:26:43]MH_SAM_APDU [18:26:43]CAPDU: 80 09 00 00 [18:26:43]Write to MH i2c: E2 08 00 2E 1B 80 09 00 00 00 00 00 00 BB [18:26:43]Write i2c OK [18:26:43]MH_I2C_Read... [18:26:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:43]Read from MH i2c: E2 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 03 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 03 00 2E 1B 00 90 00 BD [18:26:43]RAPDU: 90 00 [18:26:43]wFMCommunicate OK [18:26:43]SAM_PROTO_ClearQueue done [18:26:43]KKMCreateOFDPacket [18:26:43]OFDProtocolAddRootSTLVToBuf [18:26:43]FM_MakeSignedData [18:26:43]FM_MakeSignedData [18:26:43]SAM_PROTO_SignData [18:26:43]wFMCommunicate request_size=4 [18:26:43]MH_SAM_APDU [18:26:43]CAPDU: 80 0D 01 02 [18:26:43]Write to MH i2c: E2 08 00 2F 1B 80 0D 01 02 00 00 00 00 C3 [18:26:43]Write i2c OK [18:26:43]MH_I2C_Read... [18:26:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:43]Read from MH i2c: E2 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 03 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [18:26:43]RAPDU: 90 00 [18:26:43]wFMCommunicate OK [18:26:43]wFMCommunicate request_size=255 [18:26:43]MH_SAM_APDU [18:26:43]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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 E9 C5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B5 01 00 35 04 06 00 FE [18:26:43]Write to MH i2c: E2 02 01 30 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 E9 C5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B5 01 00 35 04 06 00 FE 00 00 B5 [18:26:43]Write i2c OK [18:26:43]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 03 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [18:26:44]RAPDU: 90 00 [18:26:44]wFMCommunicate OK [18:26:44]wFMCommunicate request_size=10 [18:26:44]MH_SAM_APDU [18:26:44]CAPDU: 80 0D 02 02 05 9E F5 AB 8F 86 [18:26:44]Write to MH i2c: E2 0D 00 31 1B 80 0D 02 02 05 00 9E F5 AB 8F 86 00 00 23 [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 03 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [18:26:44]RAPDU: 90 00 [18:26:44]wFMCommunicate OK [18:26:44]wFMCommunicate request_size=4 [18:26:44]MH_SAM_APDU [18:26:44]CAPDU: 80 0D 03 02 [18:26:44]Write to MH i2c: E2 08 00 32 1B 80 0D 03 02 00 00 00 00 C8 [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 0B 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 0B 00 32 1B 00 CF 5B 74 38 7B BA 0E 30 90 00 12 [18:26:44]RAPDU: CF 5B 74 38 7B BA 0E 30 90 00 [18:26:44]wFMCommunicate OK [18:26:44]SAM_PROTO_SignData done [18:26:44]FM_MakeSignedData done [18:26:44]CreateOFDProtocolMessage [18:26:44]wFMCommunicate request_size=4 [18:26:44]MH_SAM_APDU [18:26:44]CAPDU: 80 11 00 00 [18:26:44]Write to MH i2c: E2 08 00 33 1B 80 11 00 00 00 00 00 00 C8 [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 17 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 17 00 33 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1A [18:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:26:44]wFMCommunicate OK [18:26:44]CreateOFDProtocolMessage done [18:26:44]OFDSenderStorePacket 112025 [18:26:44]StoreOFDPacket docnum=112025 [18:26:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 52 CF 07 01 45 74 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 E9 C5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B5 01 00 35 04 06 00 FE 9E F5 AB 8F 86 CF 5B 74 38 7B BA 0E 30 [18:26:44]CheckFolder [18:26:44]dirname=/storage/ofd_packets [18:26:44]CheckFolder done [18:26:44]ProducePacketName [18:26:44]name=ofd_packets/00112025 [18:26:44]NVStorageSaveData ofd_packets/00112025 [18:26:44]File name is /storage/ofd_packets/00112025 [18:26:44]Write 301 bytes [18:26:44]NVStorageSaveData done [18:26:44]OFDSenderStorePacket done [18:26:44]KKMCreateOFDPacket done [18:26:44]NVStorageSaveData kkm_last_timestamp [18:26:44]File name is /storage/kkm_last_timestamp [18:26:44]Write 4 bytes [18:26:44]NVStorageSaveData done [18:26:44]ExternCall_PrintAddStr [18:26:44]wPrintStart [18:26:44]Write to MH i2c: 01 00 00 34 1B 4F [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: 01 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: 01 07 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: 01 07 00 34 1B 00 00 00 00 00 FF 0F 64 [18:26:44]RasterBufferAndPrint [18:26:44]line 小褔械褌 N : (1)320676 [18:26:44]line 袠袧袧: 02508201610067 [18:26:44]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:26:44]line 袩袪袨袛袗袞袗 [18:26:44]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:26:44]line 孝芯胁邪褉: 2710124130 [18:26:44]line 袗懈-92-袣-5 [18:26:44]line 13.560 * 66.40 [18:26:44]line = 900.38 [18:26:44]line 袧袛小 12% 袧小袩 1% [18:26:44]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:26:44]line 袨袣袪校袚袥袝袧袠袝: -0.38 [18:26:44]line 袠孝袨袚袨: 900.00 [18:26:44]line 袙薪械褋械薪芯: 900.00 [18:26:44]line 小袛袗效袗: 0.00 [18:26:44]line 袧小袩 1% : 7.97 [18:26:44]line 袧袛小 12% : 95.62 [18:26:44]line 袧邪谢懈褔薪褘屑懈: 900.00 [18:26:44]line 袘械蟹薪邪谢.: 0.00 [18:26:44]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:26:44]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:26:44]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:26:44]line 效械泻 193 21.06.2024 18:26 [18:26:44]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:26:44]line 袟袧袦: 0300000198 [18:26:44]line 袪袧袦: 0000000000092771 [18:26:44]line 袙械褉褋懈褟 袣袣袦: 001 [18:26:44]line 肖袦: 0000000000875083 [18:26:44]line 肖袛: 112025 [18:26:44]line 肖袩袛: 279958679949190 [18:26:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T182649&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112025&fm=279958679949190&tin=02508201610067®Number=0000000000092771&sum=90000 [18:26:44]OFD Sender: Processing packet 112025 [packets to send 38, broken 37] [18:26:44]ProducePacketName [18:26:44]name=ofd_packets/00112025 [18:26:44]OFD Sender: To server: 嚂鰌G, [18:26:44]CommunicateWithHost lk.salyk.kg:30040 [18:26:44]ConnectInit lk.salyk.kg [18:26:44]written 0, free lines is 4095 [18:26:44]Connected sock=10 [18:26:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 52 CF 07 01 45 74 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 E9 C5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B5 01 00 35 04 06 00 FE 9E F5 AB 8F 86 CF 5B 74 38 7B BA 0E 30 [18:26:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0C 97 47 00 C9 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B5 01 00 F4 03 04 00 0D 5D 75 66 B6 04 01 00 00 19 7E B2 A7 53 AE 92 84 [18:26:44]CommunicateWithHost err = 0 [18:26:44]CheckOFDResponse [18:26:44]1017 (14) - 77093643461234 [18:26:44]1041 (16) - 0000000000875083 [18:26:44]1040 (4) - 112025 [18:26:44]1012 (4) - 21.06.2024 10:59 [18:26:44]1206 (1) - 0 [18:26:44]OFD Sender: Remove packet 112025 [18:26:44]ProducePacketName [18:26:44]name=ofd_packets/00112025 [18:26:44]NVStorageDeleteData [18:26:45]Write to MH i2c: 01 00 00 5F 1B 7A [18:26:45]Write i2c OK [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: 01 [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: 01 07 00 [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: 01 07 00 5F 1B 00 00 00 00 00 DF 0C 6C [18:26:45]RasterBufferAndPrint [18:26:45]line [18:26:45]line [18:26:45]line [18:26:45]line [18:26:45]line [18:26:45]written 0, free lines is 3301 [18:26:45]MH_Cut [18:26:45]Write to MH i2c: D1 01 00 66 1B 01 53 [18:26:45]Write i2c OK [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: D1 [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: D1 01 00 [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: D1 01 00 66 1B 00 52 [18:26:45]Write to MH i2c: 01 00 00 67 1B 82 [18:26:45]Write i2c OK [18:26:45]MH_I2C_Read... [18:26:45]OFD Sender: No OFD packet to send [18:26:45]*** Cut start [18:26:45]*** Partial cut [18:26:45]*** CUTSNS_PIN = 1 [18:26:45]*** CUTSNS_PIN = 0 [18:26:46]*** Brake cut motor [18:26:46]Read from MH i2c: 01 [18:26:46]MH_I2C_Read... [18:26:46]*** Stop cut motor [18:26:46]*** Cut end [18:26:46]Read from MH i2c: 01 07 00 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: 01 07 00 67 1B 00 00 00 00 00 FF 0F 97 [18:26:46]process_action close_receipt done [18:26:46]requested_data is exist [18:26:46]produce_requested_data [18:26:46]requested_item fm.sn is exist - process it [18:26:46]wFMCommunicate request_size=4 [18:26:46]MH_SAM_APDU [18:26:46]CAPDU: 80 11 00 00 [18:26:46]Write to MH i2c: E2 08 00 68 1B 80 11 00 00 00 00 00 00 FD [18:26:46]Write i2c OK [18:26:46]MH_I2C_Read... [18:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:46]Read from MH i2c: E2 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 17 00 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 17 00 68 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [18:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:26:46]wFMCommunicate OK [18:26:46]requested_item fd.num is exist - process it [18:26:46]SAM_PROTO_GetFieldsCounters [18:26:46]wFMCommunicate request_size=4 [18:26:46]MH_SAM_APDU [18:26:46]CAPDU: 80 13 00 00 [18:26:46]Write to MH i2c: E2 08 00 69 1B 80 13 00 00 00 00 00 00 00 [18:26:46]Write i2c OK [18:26:46]MH_I2C_Read... [18:26:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:46]Read from MH i2c: E2 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 62 00 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 62 00 69 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 99 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [18:26:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 99 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:46]wFMCommunicate OK [18:26:46]SAM_PROTO_GetFieldsCounters done [18:26:46]requested_item shift.num is exist - process it [18:26:46]requested_item shift.opened is exist - process it [18:26:46]req_shift_opened [18:26:46]FM_GetShiftState [18:26:46]SAM_PROTO_GetShiftState [18:26:46]wFMCommunicate request_size=4 [18:26:46]MH_SAM_APDU [18:26:46]CAPDU: 80 13 01 00 [18:26:46]Write to MH i2c: E2 08 00 6A 1B 80 13 01 00 00 00 00 00 02 [18:26:46]Write i2c OK [18:26:46]MH_I2C_Read... [18:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:46]Read from MH i2c: E2 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 0E 00 [18:26:46]MH_I2C_Read... [18:26:46]Read from MH i2c: E2 0E 00 6A 1B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 7F [18:26:46]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:26:46]wFMCommunicate OK [18:26:46]SAM_PROTO_GetShiftState done [18:26:46]FM_GetShiftState done [18:26:46]req_shift_opened done [18:26:46]requested_item shift.open_date is exist - process it [18:26:46]req_shift_open_date [18:26:46]req_shift_open_date done [18:26:46]produce_requested_data done [18:26:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112025,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:26:46]process_action_free close_receipt [18:26:46]json_value_free [18:26:46]json_value_free done [18:26:46]process_json_proto returns [18:26:46]Send response to host [18:26:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112025,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:26:46]free response buf [18:26:46]execute_script done [18:26:46]execute_script returns [18:26:46]free content buf [18:26:46]Sock 7.Close socket [18:26:46]Sock 7.Thread stoped [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:41]accept exits with 9 [18:28:41]New connection [18:28:41]New thread 3066731876 created [18:28:41]Thread 3066875236 joined [18:28:41]Waiting for new connection... [18:28:41] Sock 9.Parse request [18:28:41]Sock 9.Check first char [18:28:41]Sock 9.First char is OK [18:28:41]request: POST /json_proto HTTP/1.0 [18:28:41]Method: POST [18:28:41]URL: /json_proto [18:28:41]Method is POST - this is cgi request [18:28:41]url: /json_proto [18:28:41]query_string will be loaded in cgi processing [18:28:41]execute_cgi json_proto POST (null) [18:28:41]execute_cgi path=json_proto method=POST [18:28:41]POST find Content-Length [18:28:41]Host: 172.17.59.68:8080 [18:28:41]Content-Length: 682 [18:28:41]Content-Type: application/json [18:28:41] [18:28:41]POST finish read [18:28:41]Found Content-Length = 682 [18:28:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 37.660, "sum" : 2500.62, "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" ] } } [18:28:41]execute_script... [18:28: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)320677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 37.660, "sum" : 2500.62, "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" ] } } [18:28:41]POST & json_proto [18:28:41]process_json_proto [18:28:41]json parsed OK: [18:28:41]protocol is kg_v1.0 [18:28:41]action value=close_receipt [18:28:41]process_action close_receipt [18:28:41]cmd_close_receipt [18:28:41]MH_GetDate [18:28:41]Write to MH i2c: F0 00 00 6B 1B 75 [18:28:41]Write i2c OK [18:28:41]MH_I2C_Read... [18:28:41]Read from MH i2c: F0 [18:28:41]MH_I2C_Read... [18:28:41]Read from MH i2c: F0 09 00 [18:28:41]MH_I2C_Read... [18:28:41]Read from MH i2c: F0 09 00 6B 1B 00 60 C6 75 66 BC EC 60 65 EC [18:28:41]GetLastDocTimeStamp 1718994409 [18:28:41]current date 1718994528 [18:28:41]FM_GetShiftState [18:28:41]SAM_PROTO_GetShiftState [18:28:41]wFMCommunicate request_size=4 [18:28:41]MH_SAM_APDU [18:28:41]CAPDU: 80 13 01 00 [18:28:41]Write to MH i2c: E2 08 00 6C 1B 80 13 01 00 00 00 00 00 04 [18:28:41]Write i2c OK [18:28:41]MH_I2C_Read... [18:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:41]Read from MH i2c: E2 [18:28:41]MH_I2C_Read... [18:28:41]Read from MH i2c: E2 0E 00 [18:28:41]MH_I2C_Read... [18:28:41]Read from MH i2c: E2 0E 00 6C 1B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 81 [18:28:41]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:28:41]wFMCommunicate OK [18:28:41]SAM_PROTO_GetShiftState done [18:28:41]FM_GetShiftState done [18:28:41]opened in 1718933695 [18:28:41]opened+sec_in_day 1719020095 [18:28:41]quantity*price = 250062 [18:28:41]sum+1 = 250063 [18:28:41]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.62 袠孝袨袚袨: 2500.00 袙薪械褋械薪芯: 2500.00 小袛袗效袗: 0.00 袧小袩 1% : 22.13 袧袛小 12% : 265.55 袧邪谢懈褔薪褘屑懈: 2500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 194 21.06.2024 18:28 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112026 肖袩袛: 81586298117321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T182848&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112026&fm=81586298117321&tin=02508201610067®Number=0000000000092771&sum=250000 [18:28:42]StoreToDocumentArchive [18:28:42]shift 390 fd 112026 [18:28:42]save to /storage/0390/doc_00112026 [18:28:42]save last doc name /storage/0390/doc_00112026 to /storage/kkm_last_doc_name [18:28:42]save OK [18:28:42]Clear old archive folders... [18:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:42]tlvbuf is B6EAE7A0 [18:28:42]SAM_PROTO_ClearQueue [18:28:42]wFMCommunicate request_size=4 [18:28:42]MH_SAM_APDU [18:28:42]CAPDU: 80 09 00 00 [18:28:42]Write to MH i2c: E2 08 00 79 1B 80 09 00 00 00 00 00 00 06 [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:42]Read from MH i2c: E2 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 03 00 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 03 00 79 1B 00 90 00 08 [18:28:42]RAPDU: 90 00 [18:28:42]wFMCommunicate OK [18:28:42]SAM_PROTO_ClearQueue done [18:28:42]KKMCreateOFDPacket [18:28:42]OFDProtocolAddRootSTLVToBuf [18:28:42]FM_MakeSignedData [18:28:42]FM_MakeSignedData [18:28:42]SAM_PROTO_SignData [18:28:42]wFMCommunicate request_size=4 [18:28:42]MH_SAM_APDU [18:28:42]CAPDU: 80 0D 01 02 [18:28:42]Write to MH i2c: E2 08 00 7A 1B 80 0D 01 02 00 00 00 00 0E [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:42]Read from MH i2c: E2 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 03 00 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 03 00 7A 1B 00 90 00 09 [18:28:42]RAPDU: 90 00 [18:28:42]wFMCommunicate OK [18:28:42]wFMCommunicate request_size=255 [18:28:42]MH_SAM_APDU [18:28: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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE 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 BB 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 C2 00 00 00 F4 03 04 00 60 C6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B5 01 00 35 04 06 00 4A [18:28:42]Write to MH i2c: E2 02 01 7B 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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE 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 BB 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 C2 00 00 00 F4 03 04 00 60 C6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B5 01 00 35 04 06 00 4A 00 00 EA [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:42]Read from MH i2c: E2 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 03 00 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [18:28:42]RAPDU: 90 00 [18:28:42]wFMCommunicate OK [18:28:42]wFMCommunicate request_size=10 [18:28:42]MH_SAM_APDU [18:28:42]CAPDU: 80 0D 02 02 05 33 CA 51 5C C9 [18:28:42]Write to MH i2c: E2 0D 00 7C 1B 80 0D 02 02 05 00 33 CA 51 5C C9 00 00 8E [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:42]Read from MH i2c: E2 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 03 00 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 03 00 7C 1B 00 90 00 0B [18:28:42]RAPDU: 90 00 [18:28:42]wFMCommunicate OK [18:28:42]wFMCommunicate request_size=4 [18:28:42]MH_SAM_APDU [18:28:42]CAPDU: 80 0D 03 02 [18:28:42]Write to MH i2c: E2 08 00 7D 1B 80 0D 03 02 00 00 00 00 13 [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:42]Read from MH i2c: E2 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 0B 00 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 0B 00 7D 1B 00 89 DD 3D 1C 93 58 95 73 90 00 C6 [18:28:42]RAPDU: 89 DD 3D 1C 93 58 95 73 90 00 [18:28:42]wFMCommunicate OK [18:28:42]SAM_PROTO_SignData done [18:28:42]FM_MakeSignedData done [18:28:42]CreateOFDProtocolMessage [18:28:42]wFMCommunicate request_size=4 [18:28:42]MH_SAM_APDU [18:28:42]CAPDU: 80 11 00 00 [18:28:42]Write to MH i2c: E2 08 00 7E 1B 80 11 00 00 00 00 00 00 13 [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:42]Read from MH i2c: E2 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 17 00 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 17 00 7E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [18:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:28:42]wFMCommunicate OK [18:28:42]CreateOFDProtocolMessage done [18:28:42]OFDSenderStorePacket 112026 [18:28:42]StoreOFDPacket docnum=112026 [18:28:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 8A 07 01 63 9A 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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE 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 BB 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 C2 00 00 00 F4 03 04 00 60 C6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B5 01 00 35 04 06 00 4A 33 CA 51 5C C9 89 DD 3D 1C 93 58 95 73 [18:28:42]CheckFolder [18:28:42]dirname=/storage/ofd_packets [18:28:42]CheckFolder done [18:28:42]ProducePacketName [18:28:42]name=ofd_packets/00112026 [18:28:42]NVStorageSaveData ofd_packets/00112026 [18:28:42]File name is /storage/ofd_packets/00112026 [18:28:42]Write 301 bytes [18:28:42]NVStorageSaveData done [18:28:42]OFDSenderStorePacket done [18:28:42]KKMCreateOFDPacket done [18:28:42]NVStorageSaveData kkm_last_timestamp [18:28:42]File name is /storage/kkm_last_timestamp [18:28:42]Write 4 bytes [18:28:42]NVStorageSaveData done [18:28:42]ExternCall_PrintAddStr [18:28:42]wPrintStart [18:28:42]Write to MH i2c: 01 00 00 7F 1B 9A [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: 01 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: 01 07 00 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: 01 07 00 7F 1B 00 00 00 00 00 FF 0F AF [18:28:42]RasterBufferAndPrint [18:28:42]line 小褔械褌 N : (1)320677 [18:28:42]line 袠袧袧: 02508201610067 [18:28:42]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:28:42]line 袩袪袨袛袗袞袗 [18:28:42]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:28:42]line 孝芯胁邪褉: 2710124130 [18:28:42]line 袗懈-92-袣-5 [18:28:42]line 37.660 * 66.40 [18:28:42]line = 2500.62 [18:28:42]line 袧袛小 12% 袧小袩 1% [18:28:42]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:28:42]line 袨袣袪校袚袥袝袧袠袝: -0.62 [18:28:42]line 袠孝袨袚袨: 2500.00 [18:28:42]line 袙薪械褋械薪芯: 2500.00 [18:28:42]line 小袛袗效袗: 0.00 [18:28:42]line 袧小袩 1% : 22.13 [18:28:42]line 袧袛小 12% : 265.55 [18:28:42]line 袧邪谢懈褔薪褘屑懈: 2500.00 [18:28:42]line 袘械蟹薪邪谢.: 0.00 [18:28:42]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:28:42]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:28:42]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:28:42]line 效械泻 194 21.06.2024 18:28 [18:28:42]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:28:42]line 袟袧袦: 0300000198 [18:28:42]line 袪袧袦: 0000000000092771 [18:28:42]line 袙械褉褋懈褟 袣袣袦: 001 [18:28:42]line 肖袦: 0000000000875083 [18:28:42]line 肖袛: 112026 [18:28:42]line 肖袩袛: 81586298117321 [18:28:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T182848&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112026&fm=81586298117321&tin=02508201610067®Number=0000000000092771&sum=250000 [18:28:43]OFD Sender: Processing packet 112026 [packets to send 38, broken 37] [18:28:43]ProducePacketName [18:28:43]name=ofd_packets/00112026 [18:28:43]OFD Sender: To server: 嚂鰌G, [18:28:43]CommunicateWithHost lk.salyk.kg:30040 [18:28:43]ConnectInit lk.salyk.kg [18:28:43]written 0, free lines is 4095 [18:28:43]Connected sock=10 [18:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 8A 07 01 63 9A 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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE 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 BB 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 C2 00 00 00 F4 03 04 00 60 C6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B5 01 00 35 04 06 00 4A 33 CA 51 5C C9 89 DD 3D 1C 93 58 95 73 [18:28:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 51 EB 47 00 79 69 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 30 38 37 35 30 38 33 10 04 04 00 9A B5 01 00 F4 03 04 00 84 5D 75 66 B6 04 01 00 00 E8 54 A0 F4 49 6A 8E D0 [18:28:43]CommunicateWithHost err = 0 [18:28:43]CheckOFDResponse [18:28:43]1017 (14) - 77093643461234 [18:28:43]1041 (16) - 0000000000875083 [18:28:43]1040 (4) - 112026 [18:28:43]1012 (4) - 21.06.2024 11:01 [18:28:43]1206 (1) - 0 [18:28:43]OFD Sender: Remove packet 112026 [18:28:43]ProducePacketName [18:28:43]name=ofd_packets/00112026 [18:28:43]NVStorageDeleteData [18:28:43]Write to MH i2c: 01 00 00 AA 1B C5 [18:28:43]Write i2c OK [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: 01 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: 01 07 00 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: 01 07 00 AA 1B 00 00 00 00 00 E4 0C BC [18:28:43]RasterBufferAndPrint [18:28:43]line [18:28:43]line [18:28:43]line [18:28:43]line [18:28:43]line [18:28:43]written 0, free lines is 3306 [18:28:43]MH_Cut [18:28:43]Write to MH i2c: D1 01 00 B1 1B 01 9E [18:28:43]Write i2c OK [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: D1 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: D1 01 00 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: D1 01 00 B1 1B 00 9D [18:28:43]Write to MH i2c: 01 00 00 B2 1B CD [18:28:43]Write i2c OK [18:28:43]MH_I2C_Read... [18:28:44]OFD Sender: No OFD packet to send [18:28:44]*** Cut start [18:28:44]*** Partial cut [18:28:44]*** CUTSNS_PIN = 1 [18:28:44]*** CUTSNS_PIN = 0 [18:28:44]*** Brake cut motor [18:28:45]Read from MH i2c: 01 [18:28:45]MH_I2C_Read... [18:28:45]*** Stop cut motor [18:28:45]*** Cut end [18:28:45]Read from MH i2c: 01 07 00 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: 01 07 00 B2 1B 00 00 00 00 00 FF 0F E2 [18:28:45]process_action close_receipt done [18:28:45]requested_data is exist [18:28:45]produce_requested_data [18:28:45]requested_item fm.sn is exist - process it [18:28:45]wFMCommunicate request_size=4 [18:28:45]MH_SAM_APDU [18:28:45]CAPDU: 80 11 00 00 [18:28:45]Write to MH i2c: E2 08 00 B3 1B 80 11 00 00 00 00 00 00 48 [18:28:45]Write i2c OK [18:28:45]MH_I2C_Read... [18:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:45]Read from MH i2c: E2 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: E2 17 00 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: E2 17 00 B3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9A [18:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:28:45]wFMCommunicate OK [18:28:45]requested_item fd.num is exist - process it [18:28:45]SAM_PROTO_GetFieldsCounters [18:28:45]wFMCommunicate request_size=4 [18:28:45]MH_SAM_APDU [18:28:45]CAPDU: 80 13 00 00 [18:28:45]Write to MH i2c: E2 08 00 B4 1B 80 13 00 00 00 00 00 00 4B [18:28:45]Write i2c OK [18:28:45]MH_I2C_Read... [18:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:45]Read from MH i2c: E2 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: E2 62 00 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: E2 62 00 B4 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9A B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [18:28:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9A B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:45]wFMCommunicate OK [18:28:45]SAM_PROTO_GetFieldsCounters done [18:28:45]requested_item shift.num is exist - process it [18:28:45]requested_item shift.opened is exist - process it [18:28:45]req_shift_opened [18:28:45]FM_GetShiftState [18:28:45]SAM_PROTO_GetShiftState [18:28:45]wFMCommunicate request_size=4 [18:28:45]MH_SAM_APDU [18:28:45]CAPDU: 80 13 01 00 [18:28:45]Write to MH i2c: E2 08 00 B5 1B 80 13 01 00 00 00 00 00 4D [18:28:45]Write i2c OK [18:28:45]MH_I2C_Read... [18:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:45]Read from MH i2c: E2 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: E2 0E 00 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: E2 0E 00 B5 1B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 CA [18:28:45]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:28:45]wFMCommunicate OK [18:28:45]SAM_PROTO_GetShiftState done [18:28:45]FM_GetShiftState done [18:28:45]req_shift_opened done [18:28:45]requested_item shift.open_date is exist - process it [18:28:45]req_shift_open_date [18:28:45]req_shift_open_date done [18:28:45]produce_requested_data done [18:28:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112026,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:28:45]process_action_free close_receipt [18:28:45]json_value_free [18:28:45]json_value_free done [18:28:45]process_json_proto returns [18:28:45]Send response to host [18:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112026,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:28:45]free response buf [18:28:45]execute_script done [18:28:45]execute_script returns [18:28:45]free content buf [18:28:45]Sock 9.Close socket [18:28:45]Sock 9.Thread stoped [18:28:49]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:54]accept exits with 7 [18:29:54]New connection [18:29:54]New thread 3066875236 created [18:29:54]Thread 3066731876 joined [18:29:54]Waiting for new connection... [18:29:54] Sock 7.Parse request [18:29:54]Sock 7.Check first char [18:29:54]Sock 7.First char is OK [18:29:54]request: POST /json_proto HTTP/1.0 [18:29:54]Method: POST [18:29:54]URL: /json_proto [18:29:54]Method is POST - this is cgi request [18:29:54]url: /json_proto [18:29:54]query_string will be loaded in cgi processing [18:29:54]execute_cgi json_proto POST (null) [18:29:54]execute_cgi path=json_proto method=POST [18:29:54]POST find Content-Length [18:29:54]Host: 172.17.59.68:8080 [18:29:54]Content-Length: 677 [18:29:54]Content-Type: application/json [18:29:54] [18:29:54]POST finish read [18:29:54]Found Content-Length = 677 [18:29:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:54]execute_script... [18:29: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 : (1)320678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:54]POST & json_proto [18:29:54]process_json_proto [18:29:54]json parsed OK: [18:29:54]protocol is kg_v1.0 [18:29:54]action value=close_receipt [18:29:54]process_action close_receipt [18:29:54]cmd_close_receipt [18:29:54]MH_GetDate [18:29:54]Write to MH i2c: F0 00 00 B6 1B C0 [18:29:54]Write i2c OK [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: F0 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: F0 09 00 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: F0 09 00 B6 1B 00 A9 C6 75 66 BC EC 60 65 80 [18:29:54]GetLastDocTimeStamp 1718994528 [18:29:54]current date 1718994601 [18:29:54]FM_GetShiftState [18:29:54]SAM_PROTO_GetShiftState [18:29:54]wFMCommunicate request_size=4 [18:29:54]MH_SAM_APDU [18:29:54]CAPDU: 80 13 01 00 [18:29:54]Write to MH i2c: E2 08 00 B7 1B 80 13 01 00 00 00 00 00 4F [18:29:54]Write i2c OK [18:29:54]MH_I2C_Read... [18:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:54]Read from MH i2c: E2 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: E2 0E 00 [18:29:54]MH_I2C_Read... [18:29:54]Read from MH i2c: E2 0E 00 B7 1B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 CC [18:29:54]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:29:54]wFMCommunicate OK [18:29:54]SAM_PROTO_GetShiftState done [18:29:54]FM_GetShiftState done [18:29:54]opened in 1718933695 [18:29:54]opened+sec_in_day 1719020095 [18:29:54]quantity*price = 30012 [18:29:54]sum+1 = 30014 [18:29:54]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 195 21.06.2024 18:30 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112027 肖袩袛: 203004091419290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183001&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112027&fm=203004091419290&tin=02508201610067®Number=0000000000092771&sum=30000 [18:29:55]StoreToDocumentArchive [18:29:55]shift 390 fd 112027 [18:29:55]save to /storage/0390/doc_00112027 [18:29:55]save last doc name /storage/0390/doc_00112027 to /storage/kkm_last_doc_name [18:29:55]save OK [18:29:55]Clear old archive folders... [18:29:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:55]tlvbuf is 00341220 [18:29:55]SAM_PROTO_ClearQueue [18:29:55]wFMCommunicate request_size=4 [18:29:55]MH_SAM_APDU [18:29:55]CAPDU: 80 09 00 00 [18:29:55]Write to MH i2c: E2 08 00 C4 1B 80 09 00 00 00 00 00 00 51 [18:29:55]Write i2c OK [18:29:55]MH_I2C_Read... [18:29:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:55]Read from MH i2c: E2 [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: E2 03 00 [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: E2 03 00 C4 1B 00 90 00 53 [18:29:55]RAPDU: 90 00 [18:29:55]wFMCommunicate OK [18:29:55]SAM_PROTO_ClearQueue done [18:29:55]KKMCreateOFDPacket [18:29:55]OFDProtocolAddRootSTLVToBuf [18:29:55]FM_MakeSignedData [18:29:55]FM_MakeSignedData [18:29:55]SAM_PROTO_SignData [18:29:55]wFMCommunicate request_size=4 [18:29:55]MH_SAM_APDU [18:29:55]CAPDU: 80 0D 01 02 [18:29:55]Write to MH i2c: E2 08 00 C5 1B 80 0D 01 02 00 00 00 00 59 [18:29:55]Write i2c OK [18:29:55]MH_I2C_Read... [18:29:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:55]Read from MH i2c: E2 [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: E2 03 00 [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: E2 03 00 C5 1B 00 90 00 54 [18:29:55]RAPDU: 90 00 [18:29:55]wFMCommunicate OK [18:29:55]wFMCommunicate request_size=255 [18:29:55]MH_SAM_APDU [18:29:55]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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 C3 00 00 00 F4 03 04 00 A9 C6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B5 01 00 35 04 06 00 B8 [18:29:55]Write to MH i2c: E2 02 01 C6 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 C3 00 00 00 F4 03 04 00 A9 C6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B5 01 00 35 04 06 00 B8 00 00 48 [18:29:55]Write i2c OK [18:29:55]MH_I2C_Read... [18:29:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:55]Read from MH i2c: E2 [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: E2 03 00 [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: E2 03 00 C6 1B 00 90 00 55 [18:29:55]RAPDU: 90 00 [18:29:55]wFMCommunicate OK [18:29:55]wFMCommunicate request_size=10 [18:29:55]MH_SAM_APDU [18:29:55]CAPDU: 80 0D 02 02 05 A1 92 C1 CA 9A [18:29:55]Write to MH i2c: E2 0D 00 C7 1B 80 0D 02 02 05 00 A1 92 C1 CA 9A 00 00 BE [18:29:55]Write i2c OK [18:29:55]MH_I2C_Read... [18:29:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:55]Read from MH i2c: E2 [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: E2 03 00 [18:29:55]MH_I2C_Read... [18:29:55]Read from MH i2c: E2 03 00 C7 1B 00 90 00 56 [18:29:55]RAPDU: 90 00 [18:29:55]wFMCommunicate OK [18:29:55]wFMCommunicate request_size=4 [18:29:55]MH_SAM_APDU [18:29:55]CAPDU: 80 0D 03 02 [18:29:55]Write to MH i2c: E2 08 00 C8 1B 80 0D 03 02 00 00 00 00 5E [18:29:55]Write i2c OK [18:29:55]MH_I2C_Read... [18:29:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:56]Read from MH i2c: E2 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: E2 0B 00 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: E2 0B 00 C8 1B 00 13 7D 87 A9 D4 6D FB 4D 90 00 A8 [18:29:56]RAPDU: 13 7D 87 A9 D4 6D FB 4D 90 00 [18:29:56]wFMCommunicate OK [18:29:56]SAM_PROTO_SignData done [18:29:56]FM_MakeSignedData done [18:29:56]CreateOFDProtocolMessage [18:29:56]wFMCommunicate request_size=4 [18:29:56]MH_SAM_APDU [18:29:56]CAPDU: 80 11 00 00 [18:29:56]Write to MH i2c: E2 08 00 C9 1B 80 11 00 00 00 00 00 00 5E [18:29:56]Write i2c OK [18:29:56]MH_I2C_Read... [18:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:56]Read from MH i2c: E2 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: E2 17 00 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: E2 17 00 C9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [18:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:29:56]wFMCommunicate OK [18:29:56]CreateOFDProtocolMessage done [18:29:56]OFDSenderStorePacket 112027 [18:29:56]StoreOFDPacket docnum=112027 [18:29:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 B0 07 01 D3 36 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 C3 00 00 00 F4 03 04 00 A9 C6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B5 01 00 35 04 06 00 B8 A1 92 C1 CA 9A 13 7D 87 A9 D4 6D FB 4D [18:29:56]CheckFolder [18:29:56]dirname=/storage/ofd_packets [18:29:56]CheckFolder done [18:29:56]ProducePacketName [18:29:56]name=ofd_packets/00112027 [18:29:56]NVStorageSaveData ofd_packets/00112027 [18:29:56]File name is /storage/ofd_packets/00112027 [18:29:56]Write 301 bytes [18:29:56]NVStorageSaveData done [18:29:56]OFDSenderStorePacket done [18:29:56]KKMCreateOFDPacket done [18:29:56]NVStorageSaveData kkm_last_timestamp [18:29:56]File name is /storage/kkm_last_timestamp [18:29:56]Write 4 bytes [18:29:56]NVStorageSaveData done [18:29:56]ExternCall_PrintAddStr [18:29:56]wPrintStart [18:29:56]Write to MH i2c: 01 00 00 CA 1B E5 [18:29:56]Write i2c OK [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: 01 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: 01 07 00 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: 01 07 00 CA 1B 00 00 00 00 00 FF 0F FA [18:29:56]RasterBufferAndPrint [18:29:56]line 小褔械褌 N : (1)320678 [18:29:56]line 袠袧袧: 02508201610067 [18:29:56]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:29:56]line 袩袪袨袛袗袞袗 [18:29:56]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:29:56]line 孝芯胁邪褉: 2710124130 [18:29:56]line 袗懈-92-袣-5 [18:29:56]line 4.520 * 66.40 [18:29:56]line = 300.13 [18:29:56]line 袧袛小 12% 袧小袩 1% [18:29:56]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:29:56]line 袨袣袪校袚袥袝袧袠袝: -0.13 [18:29:56]line 袠孝袨袚袨: 300.00 [18:29:56]line 袙薪械褋械薪芯: 300.00 [18:29:56]line 小袛袗效袗: 0.00 [18:29:56]line 袧小袩 1% : 2.66 [18:29:56]line 袧袛小 12% : 31.87 [18:29:56]line 袧邪谢懈褔薪褘屑懈: 300.00 [18:29:56]line 袘械蟹薪邪谢.: 0.00 [18:29:56]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:29:56]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:29:56]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:29:56]line 效械泻 195 21.06.2024 18:30 [18:29:56]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:29:56]line 袟袧袦: 0300000198 [18:29:56]line 袪袧袦: 0000000000092771 [18:29:56]line 袙械褉褋懈褟 袣袣袦: 001 [18:29:56]line 肖袦: 0000000000875083 [18:29:56]line 肖袛: 112027 [18:29:56]line 肖袩袛: 203004091419290 [18:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183001&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112027&fm=203004091419290&tin=02508201610067®Number=0000000000092771&sum=30000 [18:29:56]OFD Sender: Processing packet 112027 [packets to send 38, broken 37] [18:29:56]ProducePacketName [18:29:56]name=ofd_packets/00112027 [18:29:56]OFD Sender: To server: 嚂鰌G, [18:29:56]CommunicateWithHost lk.salyk.kg:30040 [18:29:56]ConnectInit lk.salyk.kg [18:29:56]written 0, free lines is 4095 [18:29:56]Connected sock=11 [18:29:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 B0 07 01 D3 36 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 C3 00 00 00 F4 03 04 00 A9 C6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B5 01 00 35 04 06 00 B8 A1 92 C1 CA 9A 13 7D 87 A9 D4 6D FB 4D [18:29:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A6 54 47 00 F7 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B5 01 00 F4 03 04 00 CD 5D 75 66 B6 04 01 00 00 BA 16 93 56 76 EA D4 1F [18:29:56]CommunicateWithHost err = 0 [18:29:56]CheckOFDResponse [18:29:56]1017 (14) - 77093643461234 [18:29:56]1041 (16) - 0000000000875083 [18:29:56]1040 (4) - 112027 [18:29:56]1012 (4) - 21.06.2024 11:02 [18:29:56]1206 (1) - 0 [18:29:56]OFD Sender: Remove packet 112027 [18:29:56]ProducePacketName [18:29:56]name=ofd_packets/00112027 [18:29:56]NVStorageDeleteData [18:29:56]Write to MH i2c: 01 00 00 F5 1B 10 [18:29:56]Write i2c OK [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: 01 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: 01 07 00 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: 01 07 00 F5 1B 00 00 00 00 00 DF 0C 02 [18:29:56]RasterBufferAndPrint [18:29:56]line [18:29:56]line [18:29:56]line [18:29:56]line [18:29:56]line [18:29:56]written 0, free lines is 3301 [18:29:56]MH_Cut [18:29:56]Write to MH i2c: D1 01 00 FC 1B 01 E9 [18:29:56]Write i2c OK [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: D1 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: D1 01 00 [18:29:56]MH_I2C_Read... [18:29:56]Read from MH i2c: D1 01 00 FC 1B 00 E8 [18:29:56]Write to MH i2c: 01 00 00 FD 1B 18 [18:29:56]Write i2c OK [18:29:56]MH_I2C_Read... [18:29:57]OFD Sender: No OFD packet to send [18:29:57]*** Cut start [18:29:57]*** Partial cut [18:29:57]*** CUTSNS_PIN = 1 [18:29:57]*** CUTSNS_PIN = 0 [18:29:57]*** Brake cut motor [18:29:58]Read from MH i2c: 01 [18:29:58]MH_I2C_Read... [18:29:58]*** Stop cut motor [18:29:58]*** Cut end [18:29:58]Read from MH i2c: 01 07 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: 01 07 00 FD 1B 00 00 00 00 00 FF 0F 2D [18:29:58]process_action close_receipt done [18:29:58]requested_data is exist [18:29:58]produce_requested_data [18:29:58]requested_item fm.sn is exist - process it [18:29:58]wFMCommunicate request_size=4 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 11 00 00 [18:29:58]Write to MH i2c: E2 08 00 FE 1B 80 11 00 00 00 00 00 00 93 [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 17 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 17 00 FE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E5 [18:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:29:58]wFMCommunicate OK [18:29:58]requested_item fd.num is exist - process it [18:29:58]SAM_PROTO_GetFieldsCounters [18:29:58]wFMCommunicate request_size=4 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 13 00 00 [18:29:58]Write to MH i2c: E2 08 00 FF 1B 80 13 00 00 00 00 00 00 96 [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 62 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 62 00 FF 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9B B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [18:29:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9B B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:58]wFMCommunicate OK [18:29:58]SAM_PROTO_GetFieldsCounters done [18:29:58]requested_item shift.num is exist - process it [18:29:58]requested_item shift.opened is exist - process it [18:29:58]req_shift_opened [18:29:58]FM_GetShiftState [18:29:58]SAM_PROTO_GetShiftState [18:29:58]wFMCommunicate request_size=4 [18:29:58]MH_SAM_APDU [18:29:58]CAPDU: 80 13 01 00 [18:29:58]Write to MH i2c: E2 08 00 00 1C 80 13 01 00 00 00 00 00 99 [18:29:58]Write i2c OK [18:29:58]MH_I2C_Read... [18:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:58]Read from MH i2c: E2 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 0E 00 [18:29:58]MH_I2C_Read... [18:29:58]Read from MH i2c: E2 0E 00 00 1C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 16 [18:29:58]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:29:58]wFMCommunicate OK [18:29:58]SAM_PROTO_GetShiftState done [18:29:58]FM_GetShiftState done [18:29:58]req_shift_opened done [18:29:58]requested_item shift.open_date is exist - process it [18:29:58]req_shift_open_date [18:29:58]req_shift_open_date done [18:29:58]produce_requested_data done [18:29:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112027,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:29:58]process_action_free close_receipt [18:29:58]json_value_free [18:29:58]json_value_free done [18:29:58]process_json_proto returns [18:29:58]Send response to host [18:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112027,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:29:58]free response buf [18:29:58]execute_script done [18:29:58]execute_script returns [18:29:58]free content buf [18:29:58]Sock 7.Close socket [18:29:58]Sock 7.Thread stoped [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:52]accept exits with 9 [18:30:52]New connection [18:30:52]New thread 3066731876 created [18:30:52]Thread 3066875236 joined [18:30:52]Waiting for new connection... [18:30:52] Sock 9.Parse request [18:30:52]Sock 9.Check first char [18:30:52]Sock 9.First char is OK [18:30:52]request: POST /json_proto HTTP/1.0 [18:30:52]Method: POST [18:30:52]URL: /json_proto [18:30:52]Method is POST - this is cgi request [18:30:52]url: /json_proto [18:30:52]query_string will be loaded in cgi processing [18:30:52]execute_cgi json_proto POST (null) [18:30:52]execute_cgi path=json_proto method=POST [18:30:52]POST find Content-Length [18:30:52]Host: 172.17.59.68:8080 [18:30:52]Content-Length: 682 [18:30:52]Content-Type: application/json [18:30:52] [18:30:52]POST finish read [18:30:52]Found Content-Length = 682 [18:30:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [18:30:52]execute_script... [18:30: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)320679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [18:30:52]POST & json_proto [18:30:52]process_json_proto [18:30:52]json parsed OK: [18:30:52]protocol is kg_v1.0 [18:30:52]action value=close_receipt [18:30:52]process_action close_receipt [18:30:52]cmd_close_receipt [18:30:52]MH_GetDate [18:30:52]Write to MH i2c: F0 00 00 01 1C 0C [18:30:52]Write i2c OK [18:30:52]MH_I2C_Read... [18:30:52]Read from MH i2c: F0 [18:30:52]MH_I2C_Read... [18:30:52]Read from MH i2c: F0 09 00 [18:30:52]MH_I2C_Read... [18:30:52]Read from MH i2c: F0 09 00 01 1C 00 E3 C6 75 66 BC EC 60 65 06 [18:30:52]GetLastDocTimeStamp 1718994601 [18:30:52]current date 1718994659 [18:30:52]FM_GetShiftState [18:30:52]SAM_PROTO_GetShiftState [18:30:52]wFMCommunicate request_size=4 [18:30:52]MH_SAM_APDU [18:30:52]CAPDU: 80 13 01 00 [18:30:52]Write to MH i2c: E2 08 00 02 1C 80 13 01 00 00 00 00 00 9B [18:30:52]Write i2c OK [18:30:52]MH_I2C_Read... [18:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:52]Read from MH i2c: E2 [18:30:52]MH_I2C_Read... [18:30:52]Read from MH i2c: E2 0E 00 [18:30:52]MH_I2C_Read... [18:30:52]Read from MH i2c: E2 0E 00 02 1C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 18 [18:30:52]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:30:52]wFMCommunicate OK [18:30:52]SAM_PROTO_GetShiftState done [18:30:52]FM_GetShiftState done [18:30:52]opened in 1718933695 [18:30:52]opened+sec_in_day 1719020095 [18:30:52]quantity*price = 100064 [18:30:52]sum+1 = 100066 [18:30:52]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 196 21.06.2024 18:30 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112028 肖袩袛: 176534470440575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183059&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112028&fm=176534470440575&tin=02508201610067®Number=0000000000092771&sum=100000 [18:30:53]StoreToDocumentArchive [18:30:53]shift 390 fd 112028 [18:30:53]save to /storage/0390/doc_00112028 [18:30:53]save last doc name /storage/0390/doc_00112028 to /storage/kkm_last_doc_name [18:30:53]save OK [18:30:53]Clear old archive folders... [18:30:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:53]tlvbuf is 00465380 [18:30:53]SAM_PROTO_ClearQueue [18:30:53]wFMCommunicate request_size=4 [18:30:53]MH_SAM_APDU [18:30:53]CAPDU: 80 09 00 00 [18:30:53]Write to MH i2c: E2 08 00 0F 1C 80 09 00 00 00 00 00 00 9D [18:30:53]Write i2c OK [18:30:53]MH_I2C_Read... [18:30:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:53]Read from MH i2c: E2 [18:30:53]MH_I2C_Read... [18:30:53]Read from MH i2c: E2 03 00 [18:30:53]MH_I2C_Read... [18:30:53]Read from MH i2c: E2 03 00 0F 1C 00 90 00 9F [18:30:53]RAPDU: 90 00 [18:30:53]wFMCommunicate OK [18:30:53]SAM_PROTO_ClearQueue done [18:30:53]KKMCreateOFDPacket [18:30:53]OFDProtocolAddRootSTLVToBuf [18:30:53]FM_MakeSignedData [18:30:53]FM_MakeSignedData [18:30:53]SAM_PROTO_SignData [18:30:53]wFMCommunicate request_size=4 [18:30:53]MH_SAM_APDU [18:30:53]CAPDU: 80 0D 01 02 [18:30:53]Write to MH i2c: E2 08 00 10 1C 80 0D 01 02 00 00 00 00 A5 [18:30:53]Write i2c OK [18:30:53]MH_I2C_Read... [18:30:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:53]Read from MH i2c: E2 [18:30:53]MH_I2C_Read... [18:30:53]Read from MH i2c: E2 03 00 [18:30:53]MH_I2C_Read... [18:30:53]Read from MH i2c: E2 03 00 10 1C 00 90 00 A0 [18:30:53]RAPDU: 90 00 [18:30:53]wFMCommunicate OK [18:30:53]wFMCommunicate request_size=255 [18:30:53]MH_SAM_APDU [18:30: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 C4 00 00 00 F4 03 04 00 E3 C6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B5 01 00 35 04 06 00 A0 [18:30:53]Write to MH i2c: E2 02 01 11 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 C4 00 00 00 F4 03 04 00 E3 C6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B5 01 00 35 04 06 00 A0 00 00 6A [18:30:53]Write i2c OK [18:30:53]MH_I2C_Read... [18:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:54]Read from MH i2c: E2 [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: E2 03 00 [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: E2 03 00 11 1C 00 90 00 A1 [18:30:54]RAPDU: 90 00 [18:30:54]wFMCommunicate OK [18:30:54]wFMCommunicate request_size=10 [18:30:54]MH_SAM_APDU [18:30:54]CAPDU: 80 0D 02 02 05 8E A2 66 B6 7F [18:30:54]Write to MH i2c: E2 0D 00 12 1C 80 0D 02 02 05 00 8E A2 66 B6 7F 00 00 7D [18:30:54]Write i2c OK [18:30:54]MH_I2C_Read... [18:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:54]Read from MH i2c: E2 [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: E2 03 00 [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: E2 03 00 12 1C 00 90 00 A2 [18:30:54]RAPDU: 90 00 [18:30:54]wFMCommunicate OK [18:30:54]wFMCommunicate request_size=4 [18:30:54]MH_SAM_APDU [18:30:54]CAPDU: 80 0D 03 02 [18:30:54]Write to MH i2c: E2 08 00 13 1C 80 0D 03 02 00 00 00 00 AA [18:30:54]Write i2c OK [18:30:54]MH_I2C_Read... [18:30:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:54]Read from MH i2c: E2 [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: E2 0B 00 [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: E2 0B 00 13 1C 00 80 62 DF AC 9C B2 86 20 90 00 0C [18:30:54]RAPDU: 80 62 DF AC 9C B2 86 20 90 00 [18:30:54]wFMCommunicate OK [18:30:54]SAM_PROTO_SignData done [18:30:54]FM_MakeSignedData done [18:30:54]CreateOFDProtocolMessage [18:30:54]wFMCommunicate request_size=4 [18:30:54]MH_SAM_APDU [18:30:54]CAPDU: 80 11 00 00 [18:30:54]Write to MH i2c: E2 08 00 14 1C 80 11 00 00 00 00 00 00 AA [18:30:54]Write i2c OK [18:30:54]MH_I2C_Read... [18:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:54]Read from MH i2c: E2 [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: E2 17 00 [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: E2 17 00 14 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FC [18:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:30:54]wFMCommunicate OK [18:30:54]CreateOFDProtocolMessage done [18:30:54]OFDSenderStorePacket 112028 [18:30:54]StoreOFDPacket docnum=112028 [18:30:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 51 7B 07 01 BF E2 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 C4 00 00 00 F4 03 04 00 E3 C6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B5 01 00 35 04 06 00 A0 8E A2 66 B6 7F 80 62 DF AC 9C B2 86 20 [18:30:54]CheckFolder [18:30:54]dirname=/storage/ofd_packets [18:30:54]CheckFolder done [18:30:54]ProducePacketName [18:30:54]name=ofd_packets/00112028 [18:30:54]NVStorageSaveData ofd_packets/00112028 [18:30:54]File name is /storage/ofd_packets/00112028 [18:30:54]Write 301 bytes [18:30:54]NVStorageSaveData done [18:30:54]OFDSenderStorePacket done [18:30:54]KKMCreateOFDPacket done [18:30:54]NVStorageSaveData kkm_last_timestamp [18:30:54]File name is /storage/kkm_last_timestamp [18:30:54]Write 4 bytes [18:30:54]NVStorageSaveData done [18:30:54]ExternCall_PrintAddStr [18:30:54]wPrintStart [18:30:54]Write to MH i2c: 01 00 00 15 1C 31 [18:30:54]Write i2c OK [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: 01 [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: 01 07 00 [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: 01 07 00 15 1C 00 00 00 00 00 FF 0F 46 [18:30:54]RasterBufferAndPrint [18:30:54]line 小褔械褌 N : (1)320679 [18:30:54]line 袠袧袧: 02508201610067 [18:30:54]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:30:54]line 袩袪袨袛袗袞袗 [18:30:54]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:30:54]line 孝芯胁邪褉: 2710124130 [18:30:54]line 袗懈-92-袣-5 [18:30:54]line 15.070 * 66.40 [18:30:54]line = 1000.65 [18:30:54]line 袧袛小 12% 袧小袩 1% [18:30:54]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:30:54]line 袨袣袪校袚袥袝袧袠袝: -0.65 [18:30:54]line 袠孝袨袚袨: 1000.00 [18:30:54]line 袙薪械褋械薪芯: 1000.00 [18:30:54]line 小袛袗效袗: 0.00 [18:30:54]line 袧小袩 1% : 8.85 [18:30:54]line 袧袛小 12% : 106.26 [18:30:54]line 袧邪谢懈褔薪褘屑懈: 1000.00 [18:30:54]line 袘械蟹薪邪谢.: 0.00 [18:30:54]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:30:54]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:30:54]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:30:54]line 效械泻 196 21.06.2024 18:30 [18:30:54]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:30:54]line 袟袧袦: 0300000198 [18:30:54]line 袪袧袦: 0000000000092771 [18:30:54]line 袙械褉褋懈褟 袣袣袦: 001 [18:30:54]line 肖袦: 0000000000875083 [18:30:54]line 肖袛: 112028 [18:30:54]line 肖袩袛: 176534470440575 [18:30:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183059&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112028&fm=176534470440575&tin=02508201610067®Number=0000000000092771&sum=100000 [18:30:54]OFD Sender: Processing packet 112028 [packets to send 38, broken 37] [18:30:54]ProducePacketName [18:30:54]name=ofd_packets/00112028 [18:30:54]OFD Sender: To server: 嚂鰌G, [18:30:54]CommunicateWithHost lk.salyk.kg:30040 [18:30:54]ConnectInit lk.salyk.kg [18:30:54]written 0, free lines is 4095 [18:30:54]Connected sock=10 [18:30:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 51 7B 07 01 BF E2 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 C4 00 00 00 F4 03 04 00 E3 C6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B5 01 00 35 04 06 00 A0 8E A2 66 B6 7F 80 62 DF AC 9C B2 86 20 [18:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FE CF 47 00 8D 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B5 01 00 F4 03 04 00 07 5E 75 66 B6 04 01 00 00 59 5F 04 B4 01 C7 29 4C [18:30:54]CommunicateWithHost err = 0 [18:30:54]CheckOFDResponse [18:30:54]1017 (14) - 77093643461234 [18:30:54]1041 (16) - 0000000000875083 [18:30:54]1040 (4) - 112028 [18:30:54]1012 (4) - 21.06.2024 11:03 [18:30:54]1206 (1) - 0 [18:30:54]OFD Sender: Remove packet 112028 [18:30:54]ProducePacketName [18:30:54]name=ofd_packets/00112028 [18:30:54]NVStorageDeleteData [18:30:54]Write to MH i2c: 01 00 00 40 1C 5C [18:30:54]Write i2c OK [18:30:54]MH_I2C_Read... [18:30:55]Read from MH i2c: 01 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: 01 07 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: 01 07 00 40 1C 00 00 00 00 00 D4 0C 43 [18:30:55]RasterBufferAndPrint [18:30:55]line [18:30:55]line [18:30:55]line [18:30:55]line [18:30:55]line [18:30:55]written 0, free lines is 3288 [18:30:55]MH_Cut [18:30:55]Write to MH i2c: D1 01 00 47 1C 01 35 [18:30:55]Write i2c OK [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: D1 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: D1 01 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: D1 01 00 47 1C 00 34 [18:30:55]Write to MH i2c: 01 00 00 48 1C 64 [18:30:55]Write i2c OK [18:30:55]MH_I2C_Read... [18:30:55]OFD Sender: No OFD packet to send [18:30:55]*** Cut start [18:30:55]*** Partial cut [18:30:55]*** CUTSNS_PIN = 1 [18:30:55]*** CUTSNS_PIN = 0 [18:30:55]*** Brake cut motor [18:30:56]Read from MH i2c: 01 [18:30:56]MH_I2C_Read... [18:30:56]*** Stop cut motor [18:30:56]*** Cut end [18:30:56]Read from MH i2c: 01 07 00 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: 01 07 00 48 1C 00 00 00 00 00 FF 0F 79 [18:30:56]process_action close_receipt done [18:30:56]requested_data is exist [18:30:56]produce_requested_data [18:30:56]requested_item fm.sn is exist - process it [18:30:56]wFMCommunicate request_size=4 [18:30:56]MH_SAM_APDU [18:30:56]CAPDU: 80 11 00 00 [18:30:56]Write to MH i2c: E2 08 00 49 1C 80 11 00 00 00 00 00 00 DF [18:30:56]Write i2c OK [18:30:56]MH_I2C_Read... [18:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:56]Read from MH i2c: E2 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: E2 17 00 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: E2 17 00 49 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [18:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:30:56]wFMCommunicate OK [18:30:56]requested_item fd.num is exist - process it [18:30:56]SAM_PROTO_GetFieldsCounters [18:30:56]wFMCommunicate request_size=4 [18:30:56]MH_SAM_APDU [18:30:56]CAPDU: 80 13 00 00 [18:30:56]Write to MH i2c: E2 08 00 4A 1C 80 13 00 00 00 00 00 00 E2 [18:30:56]Write i2c OK [18:30:56]MH_I2C_Read... [18:30:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:56]Read from MH i2c: E2 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: E2 62 00 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: E2 62 00 4A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9C B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [18:30:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9C B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:56]wFMCommunicate OK [18:30:56]SAM_PROTO_GetFieldsCounters done [18:30:56]requested_item shift.num is exist - process it [18:30:56]requested_item shift.opened is exist - process it [18:30:56]req_shift_opened [18:30:56]FM_GetShiftState [18:30:56]SAM_PROTO_GetShiftState [18:30:56]wFMCommunicate request_size=4 [18:30:56]MH_SAM_APDU [18:30:56]CAPDU: 80 13 01 00 [18:30:56]Write to MH i2c: E2 08 00 4B 1C 80 13 01 00 00 00 00 00 E4 [18:30:56]Write i2c OK [18:30:56]MH_I2C_Read... [18:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:56]Read from MH i2c: E2 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: E2 0E 00 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: E2 0E 00 4B 1C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 61 [18:30:56]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:30:56]wFMCommunicate OK [18:30:56]SAM_PROTO_GetShiftState done [18:30:56]FM_GetShiftState done [18:30:56]req_shift_opened done [18:30:56]requested_item shift.open_date is exist - process it [18:30:56]req_shift_open_date [18:30:56]req_shift_open_date done [18:30:56]produce_requested_data done [18:30:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112028,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:30:56]process_action_free close_receipt [18:30:56]json_value_free [18:30:56]json_value_free done [18:30:56]process_json_proto returns [18:30:56]Send response to host [18:30:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112028,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:30:56]free response buf [18:30:56]execute_script done [18:30:56]execute_script returns [18:30:56]free content buf [18:30:56]Sock 9.Close socket [18:30:56]Sock 9.Thread stoped [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:21]accept exits with 7 [18:32:21]New connection [18:32:21]New thread 3066875236 created [18:32:21]Thread 3066731876 joined [18:32:21]Waiting for new connection... [18:32:21] Sock 7.Parse request [18:32:21]Sock 7.Check first char [18:32:21]Sock 7.First char is OK [18:32:21]request: POST /json_proto HTTP/1.0 [18:32:21]Method: POST [18:32:21]URL: /json_proto [18:32:21]Method is POST - this is cgi request [18:32:21]url: /json_proto [18:32:21]query_string will be loaded in cgi processing [18:32:21]execute_cgi json_proto POST (null) [18:32:21]execute_cgi path=json_proto method=POST [18:32:21]POST find Content-Length [18:32:21]Host: 172.17.59.68:8080 [18:32:21]Content-Length: 677 [18:32:21]Content-Type: application/json [18:32:21] [18:32:21]POST finish read [18:32:21]Found Content-Length = 677 [18:32:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [18:32:21]execute_script... [18:32: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)320680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [18:32:21]POST & json_proto [18:32:21]process_json_proto [18:32:21]json parsed OK: [18:32:21]protocol is kg_v1.0 [18:32:21]action value=close_receipt [18:32:21]process_action close_receipt [18:32:21]cmd_close_receipt [18:32:21]MH_GetDate [18:32:21]Write to MH i2c: F0 00 00 4C 1C 57 [18:32:21]Write i2c OK [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: F0 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: F0 09 00 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: F0 09 00 4C 1C 00 3D C7 75 66 BC EC 60 65 AC [18:32:21]GetLastDocTimeStamp 1718994659 [18:32:21]current date 1718994749 [18:32:21]FM_GetShiftState [18:32:21]SAM_PROTO_GetShiftState [18:32:21]wFMCommunicate request_size=4 [18:32:21]MH_SAM_APDU [18:32:21]CAPDU: 80 13 01 00 [18:32:21]Write to MH i2c: E2 08 00 4D 1C 80 13 01 00 00 00 00 00 E6 [18:32:21]Write i2c OK [18:32:21]MH_I2C_Read... [18:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:21]Read from MH i2c: E2 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 0E 00 [18:32:21]MH_I2C_Read... [18:32:21]Read from MH i2c: E2 0E 00 4D 1C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 63 [18:32:21]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:32:21]wFMCommunicate OK [18:32:21]SAM_PROTO_GetShiftState done [18:32:21]FM_GetShiftState done [18:32:21]opened in 1718933695 [18:32:21]opened+sec_in_day 1719020095 [18:32:21]quantity*price = 60025 [18:32:21]sum+1 = 60027 [18:32:21]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.26 袠孝袨袚袨: 600.00 袙薪械褋械薪芯: 600.00 小袛袗效袗: 0.00 袧小袩 1% : 5.31 袧袛小 12% : 63.74 袧邪谢懈褔薪褘屑懈: 600.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 197 21.06.2024 18:32 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112029 肖袩袛: 130252654275550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183229&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112029&fm=130252654275550&tin=02508201610067®Number=0000000000092771&sum=60000 [18:32:22]StoreToDocumentArchive [18:32:22]shift 390 fd 112029 [18:32:22]save to /storage/0390/doc_00112029 [18:32:22]save last doc name /storage/0390/doc_00112029 to /storage/kkm_last_doc_name [18:32:22]save OK [18:32:22]Clear old archive folders... [18:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:22]tlvbuf is B6EAE2A0 [18:32:22]SAM_PROTO_ClearQueue [18:32:22]wFMCommunicate request_size=4 [18:32:22]MH_SAM_APDU [18:32:22]CAPDU: 80 09 00 00 [18:32:22]Write to MH i2c: E2 08 00 5A 1C 80 09 00 00 00 00 00 00 E8 [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:22]Read from MH i2c: E2 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 03 00 [18:32:22]MH_I2C_Read... [18:32:22]Read from MH i2c: E2 03 00 5A 1C 00 90 00 EA [18:32:22]RAPDU: 90 00 [18:32:22]wFMCommunicate OK [18:32:22]SAM_PROTO_ClearQueue done [18:32:22]KKMCreateOFDPacket [18:32:22]OFDProtocolAddRootSTLVToBuf [18:32:22]FM_MakeSignedData [18:32:22]FM_MakeSignedData [18:32:22]SAM_PROTO_SignData [18:32:22]wFMCommunicate request_size=4 [18:32:22]MH_SAM_APDU [18:32:22]CAPDU: 80 0D 01 02 [18:32:22]Write to MH i2c: E2 08 00 5B 1C 80 0D 01 02 00 00 00 00 F0 [18:32:22]Write i2c OK [18:32:22]MH_I2C_Read... [18:32:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:23]Read from MH i2c: E2 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: E2 03 00 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: E2 03 00 5B 1C 00 90 00 EB [18:32:23]RAPDU: 90 00 [18:32:23]wFMCommunicate OK [18:32:23]wFMCommunicate request_size=255 [18:32:23]MH_SAM_APDU [18:32:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 C5 00 00 00 F4 03 04 00 3D C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B5 01 00 35 04 06 00 76 [18:32:23]Write to MH i2c: E2 02 01 5C 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 C5 00 00 00 F4 03 04 00 3D C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B5 01 00 35 04 06 00 76 00 00 75 [18:32:23]Write i2c OK [18:32:23]MH_I2C_Read... [18:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:23]Read from MH i2c: E2 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: E2 03 00 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: E2 03 00 5C 1C 00 90 00 EC [18:32:23]RAPDU: 90 00 [18:32:23]wFMCommunicate OK [18:32:23]wFMCommunicate request_size=10 [18:32:23]MH_SAM_APDU [18:32:23]CAPDU: 80 0D 02 02 05 76 CF 30 6B DE [18:32:23]Write to MH i2c: E2 0D 00 5D 1C 80 0D 02 02 05 00 76 CF 30 6B DE 00 00 BB [18:32:23]Write i2c OK [18:32:23]MH_I2C_Read... [18:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:23]Read from MH i2c: E2 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: E2 03 00 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: E2 03 00 5D 1C 00 90 00 ED [18:32:23]RAPDU: 90 00 [18:32:23]wFMCommunicate OK [18:32:23]wFMCommunicate request_size=4 [18:32:23]MH_SAM_APDU [18:32:23]CAPDU: 80 0D 03 02 [18:32:23]Write to MH i2c: E2 08 00 5E 1C 80 0D 03 02 00 00 00 00 F5 [18:32:23]Write i2c OK [18:32:23]MH_I2C_Read... [18:32:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:23]Read from MH i2c: E2 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: E2 0B 00 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: E2 0B 00 5E 1C 00 65 9F 9E 63 FC 3F DD B2 90 00 C5 [18:32:23]RAPDU: 65 9F 9E 63 FC 3F DD B2 90 00 [18:32:23]wFMCommunicate OK [18:32:23]SAM_PROTO_SignData done [18:32:23]FM_MakeSignedData done [18:32:23]CreateOFDProtocolMessage [18:32:23]wFMCommunicate request_size=4 [18:32:23]MH_SAM_APDU [18:32:23]CAPDU: 80 11 00 00 [18:32:23]Write to MH i2c: E2 08 00 5F 1C 80 11 00 00 00 00 00 00 F5 [18:32:23]Write i2c OK [18:32:23]MH_I2C_Read... [18:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:23]Read from MH i2c: E2 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: E2 17 00 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: E2 17 00 5F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [18:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:32:23]wFMCommunicate OK [18:32:23]CreateOFDProtocolMessage done [18:32:23]OFDSenderStorePacket 112029 [18:32:23]StoreOFDPacket docnum=112029 [18:32:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 2F 07 01 43 86 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 C5 00 00 00 F4 03 04 00 3D C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B5 01 00 35 04 06 00 76 76 CF 30 6B DE 65 9F 9E 63 FC 3F DD B2 [18:32:23]CheckFolder [18:32:23]dirname=/storage/ofd_packets [18:32:23]CheckFolder done [18:32:23]ProducePacketName [18:32:23]name=ofd_packets/00112029 [18:32:23]NVStorageSaveData ofd_packets/00112029 [18:32:23]File name is /storage/ofd_packets/00112029 [18:32:23]Write 301 bytes [18:32:23]NVStorageSaveData done [18:32:23]OFDSenderStorePacket done [18:32:23]KKMCreateOFDPacket done [18:32:23]NVStorageSaveData kkm_last_timestamp [18:32:23]File name is /storage/kkm_last_timestamp [18:32:23]Write 4 bytes [18:32:23]NVStorageSaveData done [18:32:23]ExternCall_PrintAddStr [18:32:23]wPrintStart [18:32:23]Write to MH i2c: 01 00 00 60 1C 7C [18:32:23]Write i2c OK [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: 01 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: 01 07 00 [18:32:23]MH_I2C_Read... [18:32:23]Read from MH i2c: 01 07 00 60 1C 00 00 00 00 00 FF 0F 91 [18:32:23]RasterBufferAndPrint [18:32:23]line 小褔械褌 N : (1)320680 [18:32:23]line 袠袧袧: 02508201610067 [18:32:23]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:32:23]line 袩袪袨袛袗袞袗 [18:32:23]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:32:23]line 孝芯胁邪褉: 2710124130 [18:32:23]line 袗懈-92-袣-5 [18:32:23]line 9.040 * 66.40 [18:32:23]line = 600.26 [18:32:23]line 袧袛小 12% 袧小袩 1% [18:32:23]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:32:23]line 袨袣袪校袚袥袝袧袠袝: -0.26 [18:32:23]line 袠孝袨袚袨: 600.00 [18:32:23]line 袙薪械褋械薪芯: 600.00 [18:32:23]line 小袛袗效袗: 0.00 [18:32:23]line 袧小袩 1% : 5.31 [18:32:23]line 袧袛小 12% : 63.74 [18:32:23]line 袧邪谢懈褔薪褘屑懈: 600.00 [18:32:23]line 袘械蟹薪邪谢.: 0.00 [18:32:23]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:32:23]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:32:23]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:32:23]line 效械泻 197 21.06.2024 18:32 [18:32:23]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:32:23]line 袟袧袦: 0300000198 [18:32:23]line 袪袧袦: 0000000000092771 [18:32:23]line 袙械褉褋懈褟 袣袣袦: 001 [18:32:23]line 肖袦: 0000000000875083 [18:32:23]line 肖袛: 112029 [18:32:23]line 肖袩袛: 130252654275550 [18:32:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183229&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112029&fm=130252654275550&tin=02508201610067®Number=0000000000092771&sum=60000 [18:32:23]OFD Sender: Processing packet 112029 [packets to send 38, broken 37] [18:32:23]ProducePacketName [18:32:23]name=ofd_packets/00112029 [18:32:23]OFD Sender: To server: 嚂鰌G, [18:32:23]CommunicateWithHost lk.salyk.kg:30040 [18:32:23]ConnectInit lk.salyk.kg [18:32:23]written 0, free lines is 4095 [18:32:23]Connected sock=11 [18:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 2F 07 01 43 86 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 C5 00 00 00 F4 03 04 00 3D C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B5 01 00 35 04 06 00 76 76 CF 30 6B DE 65 9F 9E 63 FC 3F DD B2 [18:32:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E7 43 47 00 3C D9 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 30 38 37 35 30 38 33 10 04 04 00 9D B5 01 00 F4 03 04 00 60 5E 75 66 B6 04 01 00 00 1F 67 E6 27 6B 86 B9 DC [18:32:24]CommunicateWithHost err = 0 [18:32:24]CheckOFDResponse [18:32:24]1017 (14) - 77093643461234 [18:32:24]1041 (16) - 0000000000875083 [18:32:24]1040 (4) - 112029 [18:32:24]1012 (4) - 21.06.2024 11:05 [18:32:24]1206 (1) - 0 [18:32:24]OFD Sender: Remove packet 112029 [18:32:24]ProducePacketName [18:32:24]name=ofd_packets/00112029 [18:32:24]NVStorageDeleteData [18:32:24]Write to MH i2c: 01 00 00 8B 1C A7 [18:32:24]Write i2c OK [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: 01 [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: 01 07 00 [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: 01 07 00 8B 1C 00 00 00 00 00 D6 0C 90 [18:32:24]RasterBufferAndPrint [18:32:24]line [18:32:24]line [18:32:24]line [18:32:24]line [18:32:24]line [18:32:24]written 0, free lines is 3289 [18:32:24]MH_Cut [18:32:24]Write to MH i2c: D1 01 00 92 1C 01 80 [18:32:24]Write i2c OK [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: D1 [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: D1 01 00 [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: D1 01 00 92 1C 00 7F [18:32:24]Write to MH i2c: 01 00 00 93 1C AF [18:32:24]Write i2c OK [18:32:24]MH_I2C_Read... [18:32:24]OFD Sender: No OFD packet to send [18:32:24]*** Cut start [18:32:24]*** Partial cut [18:32:24]*** CUTSNS_PIN = 1 [18:32:25]*** CUTSNS_PIN = 0 [18:32:25]*** Brake cut motor [18:32:25]Read from MH i2c: 01 [18:32:25]MH_I2C_Read... [18:32:25]*** Stop cut motor [18:32:25]*** Cut end [18:32:25]Read from MH i2c: 01 07 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: 01 07 00 93 1C 00 00 00 00 00 FF 0F C4 [18:32:25]process_action close_receipt done [18:32:25]requested_data is exist [18:32:25]produce_requested_data [18:32:25]requested_item fm.sn is exist - process it [18:32:25]wFMCommunicate request_size=4 [18:32:25]MH_SAM_APDU [18:32:25]CAPDU: 80 11 00 00 [18:32:25]Write to MH i2c: E2 08 00 94 1C 80 11 00 00 00 00 00 00 2A [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 17 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 17 00 94 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [18:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:32:25]wFMCommunicate OK [18:32:25]requested_item fd.num is exist - process it [18:32:25]SAM_PROTO_GetFieldsCounters [18:32:25]wFMCommunicate request_size=4 [18:32:25]MH_SAM_APDU [18:32:25]CAPDU: 80 13 00 00 [18:32:25]Write to MH i2c: E2 08 00 95 1C 80 13 00 00 00 00 00 00 2D [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 62 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 62 00 95 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9D B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [18:32:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9D B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:25]wFMCommunicate OK [18:32:25]SAM_PROTO_GetFieldsCounters done [18:32:25]requested_item shift.num is exist - process it [18:32:25]requested_item shift.opened is exist - process it [18:32:25]req_shift_opened [18:32:25]FM_GetShiftState [18:32:25]SAM_PROTO_GetShiftState [18:32:25]wFMCommunicate request_size=4 [18:32:25]MH_SAM_APDU [18:32:25]CAPDU: 80 13 01 00 [18:32:25]Write to MH i2c: E2 08 00 96 1C 80 13 01 00 00 00 00 00 2F [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 0E 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 0E 00 96 1C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 AC [18:32:25]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:32:25]wFMCommunicate OK [18:32:25]SAM_PROTO_GetShiftState done [18:32:25]FM_GetShiftState done [18:32:25]req_shift_opened done [18:32:25]requested_item shift.open_date is exist - process it [18:32:25]req_shift_open_date [18:32:25]req_shift_open_date done [18:32:25]produce_requested_data done [18:32:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112029,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:32:25]process_action_free close_receipt [18:32:25]json_value_free [18:32:25]json_value_free done [18:32:25]process_json_proto returns [18:32:25]Send response to host [18:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112029,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:32:25]free response buf [18:32:25]execute_script done [18:32:25]execute_script returns [18:32:25]free content buf [18:32:25]Sock 7.Close socket [18:32:25]Sock 7.Thread stoped [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:49]accept exits with 9 [18:33:49]New connection [18:33:49]New thread 3066731876 created [18:33:49]Thread 3066875236 joined [18:33:49]Waiting for new connection... [18:33:49] Sock 9.Parse request [18:33:49]Sock 9.Check first char [18:33:49]Sock 9.First char is OK [18:33:49]request: POST /json_proto HTTP/1.0 [18:33:49]Method: POST [18:33:49]URL: /json_proto [18:33:49]Method is POST - this is cgi request [18:33:49]url: /json_proto [18:33:49]query_string will be loaded in cgi processing [18:33:49]execute_cgi json_proto POST (null) [18:33:49]execute_cgi path=json_proto method=POST [18:33:49]POST find Content-Length [18:33:49]Host: 172.17.59.68:8080 [18:33:49]Content-Length: 677 [18:33:49]Content-Type: application/json [18:33:49] [18:33:49]POST finish read [18:33:49]Found Content-Length = 677 [18:33:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [18:33:49]execute_script... [18:33: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)320681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [18:33:49]POST & json_proto [18:33:49]process_json_proto [18:33:49]json parsed OK: [18:33:49]protocol is kg_v1.0 [18:33:49]action value=close_receipt [18:33:49]process_action close_receipt [18:33:49]cmd_close_receipt [18:33:49]MH_GetDate [18:33:49]Write to MH i2c: F0 00 00 97 1C A2 [18:33:49]Write i2c OK [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: F0 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: F0 09 00 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: F0 09 00 97 1C 00 95 C7 75 66 BC EC 60 65 4F [18:33:49]GetLastDocTimeStamp 1718994749 [18:33:49]current date 1718994837 [18:33:49]FM_GetShiftState [18:33:49]SAM_PROTO_GetShiftState [18:33:49]wFMCommunicate request_size=4 [18:33:49]MH_SAM_APDU [18:33:49]CAPDU: 80 13 01 00 [18:33:49]Write to MH i2c: E2 08 00 98 1C 80 13 01 00 00 00 00 00 31 [18:33:49]Write i2c OK [18:33:49]MH_I2C_Read... [18:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:49]Read from MH i2c: E2 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: E2 0E 00 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: E2 0E 00 98 1C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 AE [18:33:49]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:33:49]wFMCommunicate OK [18:33:49]SAM_PROTO_GetShiftState done [18:33:49]FM_GetShiftState done [18:33:49]opened in 1718933695 [18:33:49]opened+sec_in_day 1719020095 [18:33:49]quantity*price = 40039 [18:33:49]sum+1 = 40040 [18:33:49]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.39 袠孝袨袚袨: 400.00 袙薪械褋械薪芯: 400.00 小袛袗效袗: 0.00 袧小袩 1% : 3.54 袧袛小 12% : 42.52 袧邪谢懈褔薪褘屑懈: 400.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 198 21.06.2024 18:33 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112030 肖袩袛: 39372933518273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183357&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112030&fm=39372933518273&tin=02508201610067®Number=0000000000092771&sum=40000 [18:33:51]StoreToDocumentArchive [18:33:51]shift 390 fd 112030 [18:33:51]save to /storage/0390/doc_00112030 [18:33:51]save last doc name /storage/0390/doc_00112030 to /storage/kkm_last_doc_name [18:33:51]save OK [18:33:51]Clear old archive folders... [18:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:51]tlvbuf is B6E956A0 [18:33:51]SAM_PROTO_ClearQueue [18:33:51]wFMCommunicate request_size=4 [18:33:51]MH_SAM_APDU [18:33:51]CAPDU: 80 09 00 00 [18:33:51]Write to MH i2c: E2 08 00 A5 1C 80 09 00 00 00 00 00 00 33 [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 [18:33:51]MH_I2C_Read... [18:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:51]Read from MH i2c: E2 03 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 03 00 A5 1C 00 90 00 35 [18:33:51]RAPDU: 90 00 [18:33:51]wFMCommunicate OK [18:33:51]SAM_PROTO_ClearQueue done [18:33:51]KKMCreateOFDPacket [18:33:51]OFDProtocolAddRootSTLVToBuf [18:33:51]FM_MakeSignedData [18:33:51]FM_MakeSignedData [18:33:51]SAM_PROTO_SignData [18:33:51]wFMCommunicate request_size=4 [18:33:51]MH_SAM_APDU [18:33:51]CAPDU: 80 0D 01 02 [18:33:51]Write to MH i2c: E2 08 00 A6 1C 80 0D 01 02 00 00 00 00 3B [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:51]Read from MH i2c: E2 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 03 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 03 00 A6 1C 00 90 00 36 [18:33:51]RAPDU: 90 00 [18:33:51]wFMCommunicate OK [18:33:51]wFMCommunicate request_size=255 [18:33:51]MH_SAM_APDU [18:33: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 C6 00 00 00 F4 03 04 00 95 C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B5 01 00 35 04 06 00 23 [18:33:51]Write to MH i2c: E2 02 01 A7 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 C6 00 00 00 F4 03 04 00 95 C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B5 01 00 35 04 06 00 23 00 00 B8 [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:51]Read from MH i2c: E2 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 03 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 03 00 A7 1C 00 90 00 37 [18:33:51]RAPDU: 90 00 [18:33:51]wFMCommunicate OK [18:33:51]wFMCommunicate request_size=10 [18:33:51]MH_SAM_APDU [18:33:51]CAPDU: 80 0D 02 02 05 CF 39 B7 53 C1 [18:33:51]Write to MH i2c: E2 0D 00 A8 1C 80 0D 02 02 05 00 CF 39 B7 53 C1 00 00 1B [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:51]Read from MH i2c: E2 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 03 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 03 00 A8 1C 00 90 00 38 [18:33:51]RAPDU: 90 00 [18:33:51]wFMCommunicate OK [18:33:51]wFMCommunicate request_size=4 [18:33:51]MH_SAM_APDU [18:33:51]CAPDU: 80 0D 03 02 [18:33:51]Write to MH i2c: E2 08 00 A9 1C 80 0D 03 02 00 00 00 00 40 [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:51]Read from MH i2c: E2 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 0B 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 0B 00 A9 1C 00 A2 9E 6C B6 A0 5B 55 05 90 00 F8 [18:33:51]RAPDU: A2 9E 6C B6 A0 5B 55 05 90 00 [18:33:51]wFMCommunicate OK [18:33:51]SAM_PROTO_SignData done [18:33:51]FM_MakeSignedData done [18:33:51]CreateOFDProtocolMessage [18:33:51]wFMCommunicate request_size=4 [18:33:51]MH_SAM_APDU [18:33:51]CAPDU: 80 11 00 00 [18:33:51]Write to MH i2c: E2 08 00 AA 1C 80 11 00 00 00 00 00 00 40 [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:51]Read from MH i2c: E2 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 17 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 17 00 AA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [18:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:33:51]wFMCommunicate OK [18:33:51]CreateOFDProtocolMessage done [18:33:51]OFDSenderStorePacket 112030 [18:33:51]StoreOFDPacket docnum=112030 [18:33:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 4E 07 01 8B 8F 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 C6 00 00 00 F4 03 04 00 95 C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B5 01 00 35 04 06 00 23 CF 39 B7 53 C1 A2 9E 6C B6 A0 5B 55 05 [18:33:51]CheckFolder [18:33:51]dirname=/storage/ofd_packets [18:33:51]CheckFolder done [18:33:51]ProducePacketName [18:33:51]name=ofd_packets/00112030 [18:33:51]NVStorageSaveData ofd_packets/00112030 [18:33:51]File name is /storage/ofd_packets/00112030 [18:33:51]Write 301 bytes [18:33:51]NVStorageSaveData done [18:33:51]OFDSenderStorePacket done [18:33:51]KKMCreateOFDPacket done [18:33:51]NVStorageSaveData kkm_last_timestamp [18:33:51]File name is /storage/kkm_last_timestamp [18:33:51]Write 4 bytes [18:33:51]NVStorageSaveData done [18:33:51]ExternCall_PrintAddStr [18:33:51]wPrintStart [18:33:51]Write to MH i2c: 01 00 00 AB 1C C7 [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: 01 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: 01 07 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: 01 07 00 AB 1C 00 00 00 00 00 FF 0F DC [18:33:51]RasterBufferAndPrint [18:33:51]line 小褔械褌 N : (1)320681 [18:33:51]line 袠袧袧: 02508201610067 [18:33:51]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:33:51]line 袩袪袨袛袗袞袗 [18:33:51]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:33:51]line 孝芯胁邪褉: 2710124130 [18:33:51]line 袗懈-92-袣-5 [18:33:51]line 6.030 * 66.40 [18:33:51]line = 400.39 [18:33:51]line 袧袛小 12% 袧小袩 1% [18:33:51]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:33:51]line 袨袣袪校袚袥袝袧袠袝: -0.39 [18:33:51]line 袠孝袨袚袨: 400.00 [18:33:51]line 袙薪械褋械薪芯: 400.00 [18:33:51]line 小袛袗效袗: 0.00 [18:33:51]line 袧小袩 1% : 3.54 [18:33:51]line 袧袛小 12% : 42.52 [18:33:51]line 袧邪谢懈褔薪褘屑懈: 400.00 [18:33:51]line 袘械蟹薪邪谢.: 0.00 [18:33:51]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:33:51]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:33:51]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:33:51]line 效械泻 198 21.06.2024 18:33 [18:33:51]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:33:51]line 袟袧袦: 0300000198 [18:33:51]line 袪袧袦: 0000000000092771 [18:33:51]line 袙械褉褋懈褟 袣袣袦: 001 [18:33:51]line 肖袦: 0000000000875083 [18:33:51]line 肖袛: 112030 [18:33:51]line 肖袩袛: 39372933518273 [18:33:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183357&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112030&fm=39372933518273&tin=02508201610067®Number=0000000000092771&sum=40000 [18:33:51]OFD Sender: Processing packet 112030 [packets to send 38, broken 37] [18:33:51]ProducePacketName [18:33:51]name=ofd_packets/00112030 [18:33:51]OFD Sender: To server: 嚂鰌G, [18:33:51]CommunicateWithHost lk.salyk.kg:30040 [18:33:51]ConnectInit lk.salyk.kg [18:33:51]written 0, free lines is 4095 [18:33:52]Connected sock=10 [18:33:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 4E 07 01 8B 8F 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 C6 00 00 00 F4 03 04 00 95 C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B5 01 00 35 04 06 00 23 CF 39 B7 53 C1 A2 9E 6C B6 A0 5B 55 05 [18:33:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F 13 47 00 39 C2 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 30 38 37 35 30 38 33 10 04 04 00 9E B5 01 00 F4 03 04 00 B8 5E 75 66 B6 04 01 00 00 C7 3E 09 31 56 9B B0 77 [18:33:52]CommunicateWithHost err = 0 [18:33:52]CheckOFDResponse [18:33:52]1017 (14) - 77093643461234 [18:33:52]1041 (16) - 0000000000875083 [18:33:52]1040 (4) - 112030 [18:33:52]1012 (4) - 21.06.2024 11:06 [18:33:52]1206 (1) - 0 [18:33:52]OFD Sender: Remove packet 112030 [18:33:52]ProducePacketName [18:33:52]name=ofd_packets/00112030 [18:33:52]NVStorageDeleteData [18:33:52]Write to MH i2c: 01 00 00 D6 1C F2 [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: 01 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: 01 07 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: 01 07 00 D6 1C 00 00 00 00 00 D4 0C D9 [18:33:52]RasterBufferAndPrint [18:33:52]line [18:33:52]line [18:33:52]line [18:33:52]line [18:33:52]line [18:33:52]written 0, free lines is 3292 [18:33:52]MH_Cut [18:33:52]Write to MH i2c: D1 01 00 DD 1C 01 CB [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: D1 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: D1 01 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: D1 01 00 DD 1C 00 CA [18:33:52]Write to MH i2c: 01 00 00 DE 1C FA [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]OFD Sender: No OFD packet to send [18:33:53]*** Cut start [18:33:53]*** Partial cut [18:33:53]*** CUTSNS_PIN = 1 [18:33:53]*** CUTSNS_PIN = 0 [18:33:53]*** Brake cut motor [18:33:53]Read from MH i2c: 01 [18:33:53]MH_I2C_Read... [18:33:53]*** Stop cut motor [18:33:53]*** Cut end [18:33:53]Read from MH i2c: 01 07 00 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: 01 07 00 DE 1C 00 00 00 00 00 FF 0F 0F [18:33:53]process_action close_receipt done [18:33:53]requested_data is exist [18:33:53]produce_requested_data [18:33:53]requested_item fm.sn is exist - process it [18:33:53]wFMCommunicate request_size=4 [18:33:53]MH_SAM_APDU [18:33:53]CAPDU: 80 11 00 00 [18:33:53]Write to MH i2c: E2 08 00 DF 1C 80 11 00 00 00 00 00 00 75 [18:33:53]Write i2c OK [18:33:53]MH_I2C_Read... [18:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:53]Read from MH i2c: E2 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: E2 17 00 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: E2 17 00 DF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C7 [18:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:33:53]wFMCommunicate OK [18:33:53]requested_item fd.num is exist - process it [18:33:53]SAM_PROTO_GetFieldsCounters [18:33:53]wFMCommunicate request_size=4 [18:33:53]MH_SAM_APDU [18:33:53]CAPDU: 80 13 00 00 [18:33:53]Write to MH i2c: E2 08 00 E0 1C 80 13 00 00 00 00 00 00 78 [18:33:53]Write i2c OK [18:33:53]MH_I2C_Read... [18:33:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:53]Read from MH i2c: E2 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: E2 62 00 [18:33:53]MH_I2C_Read... [18:33:53]Read from MH i2c: E2 62 00 E0 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9E B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [18:33:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9E B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:53]wFMCommunicate OK [18:33:53]SAM_PROTO_GetFieldsCounters done [18:33:53]requested_item shift.num is exist - process it [18:33:53]requested_item shift.opened is exist - process it [18:33:53]req_shift_opened [18:33:53]FM_GetShiftState [18:33:53]SAM_PROTO_GetShiftState [18:33:53]wFMCommunicate request_size=4 [18:33:53]MH_SAM_APDU [18:33:53]CAPDU: 80 13 01 00 [18:33:53]Write to MH i2c: E2 08 00 E1 1C 80 13 01 00 00 00 00 00 7A [18:33:53]Write i2c OK [18:33:53]MH_I2C_Read... [18:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:54]Read from MH i2c: E2 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 0E 00 [18:33:54]MH_I2C_Read... [18:33:54]Read from MH i2c: E2 0E 00 E1 1C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F7 [18:33:54]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:33:54]wFMCommunicate OK [18:33:54]SAM_PROTO_GetShiftState done [18:33:54]FM_GetShiftState done [18:33:54]req_shift_opened done [18:33:54]requested_item shift.open_date is exist - process it [18:33:54]req_shift_open_date [18:33:54]req_shift_open_date done [18:33:54]produce_requested_data done [18:33:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112030,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:33:54]process_action_free close_receipt [18:33:54]json_value_free [18:33:54]json_value_free done [18:33:54]process_json_proto returns [18:33:54]Send response to host [18:33:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112030,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:33:54]free response buf [18:33:54]execute_script done [18:33:54]execute_script returns [18:33:54]free content buf [18:33:54]Sock 9.Close socket [18:33:54]Sock 9.Thread stoped [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:21]accept exits with 7 [18:34:21]New connection [18:34:21]New thread 3066875236 created [18:34:21]Thread 3066731876 joined [18:34:21]Waiting for new connection... [18:34:21] Sock 7.Parse request [18:34:21]Sock 7.Check first char [18:34:21]Sock 7.First char is OK [18:34:21]request: POST /json_proto HTTP/1.0 [18:34:21]Method: POST [18:34:21]URL: /json_proto [18:34:21]Method is POST - this is cgi request [18:34:21]url: /json_proto [18:34:21]query_string will be loaded in cgi processing [18:34:21]execute_cgi json_proto POST (null) [18:34:21]execute_cgi path=json_proto method=POST [18:34:21]POST find Content-Length [18:34:21]Host: 172.17.59.68:8080 [18:34:21]Content-Length: 677 [18:34:21]Content-Type: application/json [18:34:21] [18:34:21]POST finish read [18:34:21]Found Content-Length = 677 [18:34:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.320, "sum" : 220.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:21]execute_script... [18:34: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)320682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.320, "sum" : 220.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:21]POST & json_proto [18:34:21]process_json_proto [18:34:21]json parsed OK: [18:34:21]protocol is kg_v1.0 [18:34:21]action value=close_receipt [18:34:21]process_action close_receipt [18:34:21]cmd_close_receipt [18:34:21]MH_GetDate [18:34:21]Write to MH i2c: F0 00 00 E2 1C ED [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: F0 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: F0 09 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: F0 09 00 E2 1C 00 B4 C7 75 66 BC EC 60 65 B9 [18:34:21]GetLastDocTimeStamp 1718994837 [18:34:21]current date 1718994868 [18:34:21]FM_GetShiftState [18:34:21]SAM_PROTO_GetShiftState [18:34:21]wFMCommunicate request_size=4 [18:34:21]MH_SAM_APDU [18:34:21]CAPDU: 80 13 01 00 [18:34:21]Write to MH i2c: E2 08 00 E3 1C 80 13 01 00 00 00 00 00 7C [18:34:21]Write i2c OK [18:34:21]MH_I2C_Read... [18:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:21]Read from MH i2c: E2 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 0E 00 [18:34:21]MH_I2C_Read... [18:34:21]Read from MH i2c: E2 0E 00 E3 1C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F9 [18:34:21]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:34:21]wFMCommunicate OK [18:34:21]SAM_PROTO_GetShiftState done [18:34:21]FM_GetShiftState done [18:34:21]opened in 1718933695 [18:34:21]opened+sec_in_day 1719020095 [18:34:21]quantity*price = 22044 [18:34:21]sum+1 = 22046 [18:34:21]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.45 袠孝袨袚袨: 220.00 袙薪械褋械薪芯: 220.00 小袛袗效袗: 0.00 袧小袩 1% : 1.95 袧袛小 12% : 23.41 袧邪谢懈褔薪褘屑懈: 220.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 199 21.06.2024 18:34 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112031 肖袩袛: 46797602510227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183428&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112031&fm=46797602510227&tin=02508201610067®Number=0000000000092771&sum=22000 [18:34:22]StoreToDocumentArchive [18:34:22]shift 390 fd 112031 [18:34:22]save to /storage/0390/doc_00112031 [18:34:22]save last doc name /storage/0390/doc_00112031 to /storage/kkm_last_doc_name [18:34:22]save OK [18:34:22]Clear old archive folders... [18:34:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:22]tlvbuf is 003403A0 [18:34:22]SAM_PROTO_ClearQueue [18:34:22]wFMCommunicate request_size=4 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 09 00 00 [18:34:22]Write to MH i2c: E2 08 00 F0 1C 80 09 00 00 00 00 00 00 7E [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 F0 1C 00 90 00 80 [18:34:22]RAPDU: 90 00 [18:34:22]wFMCommunicate OK [18:34:22]SAM_PROTO_ClearQueue done [18:34:22]KKMCreateOFDPacket [18:34:22]OFDProtocolAddRootSTLVToBuf [18:34:22]FM_MakeSignedData [18:34:22]FM_MakeSignedData [18:34:22]SAM_PROTO_SignData [18:34:22]wFMCommunicate request_size=4 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 0D 01 02 [18:34:22]Write to MH i2c: E2 08 00 F1 1C 80 0D 01 02 00 00 00 00 86 [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 F1 1C 00 90 00 81 [18:34:22]RAPDU: 90 00 [18:34:22]wFMCommunicate OK [18:34:22]wFMCommunicate request_size=255 [18:34:22]MH_SAM_APDU [18:34: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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 C7 00 00 00 F4 03 04 00 B4 C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B5 01 00 35 04 06 00 2A [18:34:22]Write to MH i2c: E2 02 01 F2 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 C7 00 00 00 F4 03 04 00 B4 C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B5 01 00 35 04 06 00 2A 00 00 AE [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 F2 1C 00 90 00 82 [18:34:22]RAPDU: 90 00 [18:34:22]wFMCommunicate OK [18:34:22]wFMCommunicate request_size=10 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 0D 02 02 05 8F EA 79 55 93 [18:34:22]Write to MH i2c: E2 0D 00 F3 1C 80 0D 02 02 05 00 8F EA 79 55 93 00 00 6D [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 03 00 F3 1C 00 90 00 83 [18:34:22]RAPDU: 90 00 [18:34:22]wFMCommunicate OK [18:34:22]wFMCommunicate request_size=4 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 0D 03 02 [18:34:22]Write to MH i2c: E2 08 00 F4 1C 80 0D 03 02 00 00 00 00 8B [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 0B 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 0B 00 F4 1C 00 67 55 CD F8 52 2A 7A 87 90 00 8A [18:34:22]RAPDU: 67 55 CD F8 52 2A 7A 87 90 00 [18:34:22]wFMCommunicate OK [18:34:22]SAM_PROTO_SignData done [18:34:22]FM_MakeSignedData done [18:34:22]CreateOFDProtocolMessage [18:34:22]wFMCommunicate request_size=4 [18:34:22]MH_SAM_APDU [18:34:22]CAPDU: 80 11 00 00 [18:34:22]Write to MH i2c: E2 08 00 F5 1C 80 11 00 00 00 00 00 00 8B [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:22]Read from MH i2c: E2 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 17 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: E2 17 00 F5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [18:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:34:22]wFMCommunicate OK [18:34:22]CreateOFDProtocolMessage done [18:34:22]OFDSenderStorePacket 112031 [18:34:22]StoreOFDPacket docnum=112031 [18:34:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 99 2A 07 01 17 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 C7 00 00 00 F4 03 04 00 B4 C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B5 01 00 35 04 06 00 2A 8F EA 79 55 93 67 55 CD F8 52 2A 7A 87 [18:34:22]CheckFolder [18:34:22]dirname=/storage/ofd_packets [18:34:22]CheckFolder done [18:34:22]ProducePacketName [18:34:22]name=ofd_packets/00112031 [18:34:22]NVStorageSaveData ofd_packets/00112031 [18:34:22]File name is /storage/ofd_packets/00112031 [18:34:22]Write 301 bytes [18:34:22]NVStorageSaveData done [18:34:22]OFDSenderStorePacket done [18:34:22]KKMCreateOFDPacket done [18:34:22]NVStorageSaveData kkm_last_timestamp [18:34:22]File name is /storage/kkm_last_timestamp [18:34:22]Write 4 bytes [18:34:22]NVStorageSaveData done [18:34:22]ExternCall_PrintAddStr [18:34:22]wPrintStart [18:34:22]Write to MH i2c: 01 00 00 F6 1C 12 [18:34:22]Write i2c OK [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: 01 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: 01 07 00 [18:34:22]MH_I2C_Read... [18:34:22]Read from MH i2c: 01 07 00 F6 1C 00 00 00 00 00 FF 0F 27 [18:34:22]RasterBufferAndPrint [18:34:22]line 小褔械褌 N : (1)320682 [18:34:22]line 袠袧袧: 02508201610067 [18:34:22]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:34:22]line 袩袪袨袛袗袞袗 [18:34:22]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:34:22]line 孝芯胁邪褉: 2710124130 [18:34:22]line 袗懈-92-袣-5 [18:34:22]line 3.320 * 66.40 [18:34:22]line = 220.45 [18:34:22]line 袧袛小 12% 袧小袩 1% [18:34:22]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:34:22]line 袨袣袪校袚袥袝袧袠袝: -0.45 [18:34:22]line 袠孝袨袚袨: 220.00 [18:34:22]line 袙薪械褋械薪芯: 220.00 [18:34:22]line 小袛袗效袗: 0.00 [18:34:22]line 袧小袩 1% : 1.95 [18:34:22]line 袧袛小 12% : 23.41 [18:34:22]line 袧邪谢懈褔薪褘屑懈: 220.00 [18:34:22]line 袘械蟹薪邪谢.: 0.00 [18:34:22]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:34:22]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:34:22]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:34:22]line 效械泻 199 21.06.2024 18:34 [18:34:22]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:34:22]line 袟袧袦: 0300000198 [18:34:22]line 袪袧袦: 0000000000092771 [18:34:22]line 袙械褉褋懈褟 袣袣袦: 001 [18:34:22]line 肖袦: 0000000000875083 [18:34:22]line 肖袛: 112031 [18:34:22]line 肖袩袛: 46797602510227 [18:34:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183428&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112031&fm=46797602510227&tin=02508201610067®Number=0000000000092771&sum=22000 [18:34:23]OFD Sender: Processing packet 112031 [packets to send 38, broken 37] [18:34:23]ProducePacketName [18:34:23]name=ofd_packets/00112031 [18:34:23]OFD Sender: To server: 嚂鰌G, [18:34:23]CommunicateWithHost lk.salyk.kg:30040 [18:34:23]ConnectInit lk.salyk.kg [18:34:23]written 0, free lines is 4095 [18:34:23]Connected sock=10 [18:34:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 99 2A 07 01 17 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 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 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 25 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 C7 00 00 00 F4 03 04 00 B4 C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B5 01 00 35 04 06 00 2A 8F EA 79 55 93 67 55 CD F8 52 2A 7A 87 [18:34:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5C 83 47 00 62 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B5 01 00 F4 03 04 00 D8 5E 75 66 B6 04 01 00 00 F5 4E 18 C9 1F 8A D0 A5 [18:34:23]CommunicateWithHost err = 0 [18:34:23]CheckOFDResponse [18:34:23]1017 (14) - 77093643461234 [18:34:23]1041 (16) - 0000000000875083 [18:34:23]1040 (4) - 112031 [18:34:23]1012 (4) - 21.06.2024 11:07 [18:34:23]1206 (1) - 0 [18:34:23]OFD Sender: Remove packet 112031 [18:34:23]ProducePacketName [18:34:23]name=ofd_packets/00112031 [18:34:23]NVStorageDeleteData [18:34:23]Write to MH i2c: 01 00 00 21 1D 3E [18:34:23]Write i2c OK [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: 01 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: 01 07 00 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: 01 07 00 21 1D 00 00 00 00 00 D6 0C 27 [18:34:23]RasterBufferAndPrint [18:34:23]line [18:34:23]line [18:34:23]line [18:34:23]line [18:34:23]line [18:34:23]written 0, free lines is 3293 [18:34:23]MH_Cut [18:34:23]Write to MH i2c: D1 01 00 28 1D 01 17 [18:34:23]Write i2c OK [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: D1 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: D1 01 00 [18:34:23]MH_I2C_Read... [18:34:23]Read from MH i2c: D1 01 00 28 1D 00 16 [18:34:23]Write to MH i2c: 01 00 00 29 1D 46 [18:34:23]Write i2c OK [18:34:23]MH_I2C_Read... [18:34:23]OFD Sender: No OFD packet to send [18:34:24]*** Cut start [18:34:24]*** Partial cut [18:34:24]*** CUTSNS_PIN = 1 [18:34:24]*** CUTSNS_PIN = 0 [18:34:24]*** Brake cut motor [18:34:24]Read from MH i2c: 01 [18:34:24]MH_I2C_Read... [18:34:24]*** Stop cut motor [18:34:24]*** Cut end [18:34:24]Read from MH i2c: 01 07 00 [18:34:24]MH_I2C_Read... [18:34:24]Read from MH i2c: 01 07 00 29 1D 00 00 00 00 00 FF 0F 5B [18:34:24]process_action close_receipt done [18:34:24]requested_data is exist [18:34:24]produce_requested_data [18:34:24]requested_item fm.sn is exist - process it [18:34:24]wFMCommunicate request_size=4 [18:34:24]MH_SAM_APDU [18:34:24]CAPDU: 80 11 00 00 [18:34:24]Write to MH i2c: E2 08 00 2A 1D 80 11 00 00 00 00 00 00 C1 [18:34:24]Write i2c OK [18:34:24]MH_I2C_Read... [18:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:24]Read from MH i2c: E2 [18:34:24]MH_I2C_Read... [18:34:24]Read from MH i2c: E2 17 00 [18:34:24]MH_I2C_Read... [18:34:24]Read from MH i2c: E2 17 00 2A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 13 [18:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:34:24]wFMCommunicate OK [18:34:24]requested_item fd.num is exist - process it [18:34:24]SAM_PROTO_GetFieldsCounters [18:34:24]wFMCommunicate request_size=4 [18:34:24]MH_SAM_APDU [18:34:24]CAPDU: 80 13 00 00 [18:34:24]Write to MH i2c: E2 08 00 2B 1D 80 13 00 00 00 00 00 00 C4 [18:34:24]Write i2c OK [18:34:24]MH_I2C_Read... [18:34:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:25]Read from MH i2c: E2 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: E2 62 00 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: E2 62 00 2B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9F B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [18:34:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9F B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:25]wFMCommunicate OK [18:34:25]SAM_PROTO_GetFieldsCounters done [18:34:25]requested_item shift.num is exist - process it [18:34:25]requested_item shift.opened is exist - process it [18:34:25]req_shift_opened [18:34:25]FM_GetShiftState [18:34:25]SAM_PROTO_GetShiftState [18:34:25]wFMCommunicate request_size=4 [18:34:25]MH_SAM_APDU [18:34:25]CAPDU: 80 13 01 00 [18:34:25]Write to MH i2c: E2 08 00 2C 1D 80 13 01 00 00 00 00 00 C6 [18:34:25]Write i2c OK [18:34:25]MH_I2C_Read... [18:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:25]Read from MH i2c: E2 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: E2 0E 00 [18:34:25]MH_I2C_Read... [18:34:25]Read from MH i2c: E2 0E 00 2C 1D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 43 [18:34:25]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:34:25]wFMCommunicate OK [18:34:25]SAM_PROTO_GetShiftState done [18:34:25]FM_GetShiftState done [18:34:25]req_shift_opened done [18:34:25]requested_item shift.open_date is exist - process it [18:34:25]req_shift_open_date [18:34:25]req_shift_open_date done [18:34:25]produce_requested_data done [18:34:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112031,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:34:25]process_action_free close_receipt [18:34:25]json_value_free [18:34:25]json_value_free done [18:34:25]process_json_proto returns [18:34:25]Send response to host [18:34:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112031,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:34:25]free response buf [18:34:25]execute_script done [18:34:25]execute_script returns [18:34:25]free content buf [18:34:25]Sock 7.Close socket [18:34:25]Sock 7.Thread stoped [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:49]accept exits with 9 [18:34:49]New connection [18:34:49]New thread 3066731876 created [18:34:49]Thread 3066875236 joined [18:34:49]Waiting for new connection... [18:34:49] Sock 9.Parse request [18:34:49]Sock 9.Check first char [18:34:49]Sock 9.First char is OK [18:34:49]request: POST /json_proto HTTP/1.0 [18:34:49]Method: POST [18:34:49]URL: /json_proto [18:34:49]Method is POST - this is cgi request [18:34:49]url: /json_proto [18:34:49]query_string will be loaded in cgi processing [18:34:49]execute_cgi json_proto POST (null) [18:34:49]execute_cgi path=json_proto method=POST [18:34:49]POST find Content-Length [18:34:49]Host: 172.17.59.68:8080 [18:34:49]Content-Length: 677 [18:34:49]Content-Type: application/json [18:34:49] [18:34:49]POST finish read [18:34:49]Found Content-Length = 677 [18:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:49]execute_script... [18:34: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)320683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:49]POST & json_proto [18:34:49]process_json_proto [18:34:49]json parsed OK: [18:34:49]protocol is kg_v1.0 [18:34:49]action value=close_receipt [18:34:49]process_action close_receipt [18:34:49]cmd_close_receipt [18:34:49]MH_GetDate [18:34:49]Write to MH i2c: F0 00 00 2D 1D 39 [18:34:49]Write i2c OK [18:34:49]MH_I2C_Read... [18:34:49]Read from MH i2c: F0 [18:34:49]MH_I2C_Read... [18:34:49]Read from MH i2c: F0 09 00 [18:34:49]MH_I2C_Read... [18:34:49]Read from MH i2c: F0 09 00 2D 1D 00 D1 C7 75 66 BC EC 60 65 22 [18:34:49]GetLastDocTimeStamp 1718994868 [18:34:49]current date 1718994897 [18:34:49]FM_GetShiftState [18:34:49]SAM_PROTO_GetShiftState [18:34:49]wFMCommunicate request_size=4 [18:34:49]MH_SAM_APDU [18:34:49]CAPDU: 80 13 01 00 [18:34:49]Write to MH i2c: E2 08 00 2E 1D 80 13 01 00 00 00 00 00 C8 [18:34:49]Write i2c OK [18:34:49]MH_I2C_Read... [18:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:49]Read from MH i2c: E2 [18:34:49]MH_I2C_Read... [18:34:49]Read from MH i2c: E2 0E 00 [18:34:49]MH_I2C_Read... [18:34:49]Read from MH i2c: E2 0E 00 2E 1D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 45 [18:34:49]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:34:49]wFMCommunicate OK [18:34:49]SAM_PROTO_GetShiftState done [18:34:49]FM_GetShiftState done [18:34:49]opened in 1718933695 [18:34:49]opened+sec_in_day 1719020095 [18:34:49]quantity*price = 30012 [18:34:49]sum+1 = 30014 [18:34:49]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 200 21.06.2024 18:34 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112032 肖袩袛: 32289414036328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183457&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112032&fm=32289414036328&tin=02508201610067®Number=0000000000092771&sum=30000 [18:34:50]StoreToDocumentArchive [18:34:50]shift 390 fd 112032 [18:34:50]save to /storage/0390/doc_00112032 [18:34:50]save last doc name /storage/0390/doc_00112032 to /storage/kkm_last_doc_name [18:34:50]save OK [18:34:50]Clear old archive folders... [18:34:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:50]tlvbuf is B6EAE6F0 [18:34:50]SAM_PROTO_ClearQueue [18:34:50]wFMCommunicate request_size=4 [18:34:50]MH_SAM_APDU [18:34:50]CAPDU: 80 09 00 00 [18:34:50]Write to MH i2c: E2 08 00 3B 1D 80 09 00 00 00 00 00 00 CA [18:34:50]Write i2c OK [18:34:50]MH_I2C_Read... [18:34:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:50]Read from MH i2c: E2 [18:34:50]MH_I2C_Read... [18:34:50]Read from MH i2c: E2 03 00 [18:34:50]MH_I2C_Read... [18:34:50]Read from MH i2c: E2 03 00 3B 1D 00 90 00 CC [18:34:50]RAPDU: 90 00 [18:34:50]wFMCommunicate OK [18:34:50]SAM_PROTO_ClearQueue done [18:34:50]KKMCreateOFDPacket [18:34:50]OFDProtocolAddRootSTLVToBuf [18:34:50]FM_MakeSignedData [18:34:50]FM_MakeSignedData [18:34:50]SAM_PROTO_SignData [18:34:50]wFMCommunicate request_size=4 [18:34:50]MH_SAM_APDU [18:34:50]CAPDU: 80 0D 01 02 [18:34:50]Write to MH i2c: E2 08 00 3C 1D 80 0D 01 02 00 00 00 00 D2 [18:34:50]Write i2c OK [18:34:50]MH_I2C_Read... [18:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:51]Read from MH i2c: E2 [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: E2 03 00 [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: E2 03 00 3C 1D 00 90 00 CD [18:34:51]RAPDU: 90 00 [18:34:51]wFMCommunicate OK [18:34:51]wFMCommunicate request_size=255 [18:34:51]MH_SAM_APDU [18:34: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 C8 00 00 00 F4 03 04 00 D1 C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B5 01 00 35 04 06 00 1D [18:34:51]Write to MH i2c: E2 02 01 3D 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 C8 00 00 00 F4 03 04 00 D1 C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B5 01 00 35 04 06 00 1D 00 00 59 [18:34:51]Write i2c OK [18:34:51]MH_I2C_Read... [18:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:51]Read from MH i2c: E2 [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: E2 03 00 [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: E2 03 00 3D 1D 00 90 00 CE [18:34:51]RAPDU: 90 00 [18:34:51]wFMCommunicate OK [18:34:51]wFMCommunicate request_size=10 [18:34:51]MH_SAM_APDU [18:34:51]CAPDU: 80 0D 02 02 05 5D F7 0D BB 68 [18:34:51]Write to MH i2c: E2 0D 00 3E 1D 80 0D 02 02 05 00 5D F7 0D BB 68 00 00 63 [18:34:51]Write i2c OK [18:34:51]MH_I2C_Read... [18:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:51]Read from MH i2c: E2 [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: E2 03 00 [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: E2 03 00 3E 1D 00 90 00 CF [18:34:51]RAPDU: 90 00 [18:34:51]wFMCommunicate OK [18:34:51]wFMCommunicate request_size=4 [18:34:51]MH_SAM_APDU [18:34:51]CAPDU: 80 0D 03 02 [18:34:51]Write to MH i2c: E2 08 00 3F 1D 80 0D 03 02 00 00 00 00 D7 [18:34:51]Write i2c OK [18:34:51]MH_I2C_Read... [18:34:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:51]Read from MH i2c: E2 [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: E2 0B 00 [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: E2 0B 00 3F 1D 00 2E 70 21 FF 8D DC 92 81 90 00 12 [18:34:51]RAPDU: 2E 70 21 FF 8D DC 92 81 90 00 [18:34:51]wFMCommunicate OK [18:34:51]SAM_PROTO_SignData done [18:34:51]FM_MakeSignedData done [18:34:51]CreateOFDProtocolMessage [18:34:51]wFMCommunicate request_size=4 [18:34:51]MH_SAM_APDU [18:34:51]CAPDU: 80 11 00 00 [18:34:51]Write to MH i2c: E2 08 00 40 1D 80 11 00 00 00 00 00 00 D7 [18:34:51]Write i2c OK [18:34:51]MH_I2C_Read... [18:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:51]Read from MH i2c: E2 [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: E2 17 00 [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: E2 17 00 40 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [18:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:34:51]wFMCommunicate OK [18:34:51]CreateOFDProtocolMessage done [18:34:51]OFDSenderStorePacket 112032 [18:34:51]StoreOFDPacket docnum=112032 [18:34:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 6E 07 01 82 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 C8 00 00 00 F4 03 04 00 D1 C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B5 01 00 35 04 06 00 1D 5D F7 0D BB 68 2E 70 21 FF 8D DC 92 81 [18:34:51]CheckFolder [18:34:51]dirname=/storage/ofd_packets [18:34:51]CheckFolder done [18:34:51]ProducePacketName [18:34:51]name=ofd_packets/00112032 [18:34:51]NVStorageSaveData ofd_packets/00112032 [18:34:51]File name is /storage/ofd_packets/00112032 [18:34:51]Write 301 bytes [18:34:51]NVStorageSaveData done [18:34:51]OFDSenderStorePacket done [18:34:51]KKMCreateOFDPacket done [18:34:51]NVStorageSaveData kkm_last_timestamp [18:34:51]File name is /storage/kkm_last_timestamp [18:34:51]Write 4 bytes [18:34:51]NVStorageSaveData done [18:34:51]ExternCall_PrintAddStr [18:34:51]wPrintStart [18:34:51]Write to MH i2c: 01 00 00 41 1D 5E [18:34:51]Write i2c OK [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: 01 [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: 01 07 00 [18:34:51]MH_I2C_Read... [18:34:51]Read from MH i2c: 01 07 00 41 1D 00 00 00 00 00 FF 0F 73 [18:34:51]RasterBufferAndPrint [18:34:51]line 小褔械褌 N : (1)320683 [18:34:51]line 袠袧袧: 02508201610067 [18:34:51]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:34:51]line 袩袪袨袛袗袞袗 [18:34:51]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:34:51]line 孝芯胁邪褉: 2710124130 [18:34:51]line 袗懈-92-袣-5 [18:34:51]line 4.520 * 66.40 [18:34:51]line = 300.13 [18:34:51]line 袧袛小 12% 袧小袩 1% [18:34:51]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:34:51]line 袨袣袪校袚袥袝袧袠袝: -0.13 [18:34:51]line 袠孝袨袚袨: 300.00 [18:34:51]line 袙薪械褋械薪芯: 300.00 [18:34:51]line 小袛袗效袗: 0.00 [18:34:51]line 袧小袩 1% : 2.66 [18:34:51]line 袧袛小 12% : 31.87 [18:34:51]line 袧邪谢懈褔薪褘屑懈: 300.00 [18:34:51]line 袘械蟹薪邪谢.: 0.00 [18:34:51]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:34:51]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:34:51]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:34:51]line 效械泻 200 21.06.2024 18:34 [18:34:51]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:34:51]line 袟袧袦: 0300000198 [18:34:51]line 袪袧袦: 0000000000092771 [18:34:51]line 袙械褉褋懈褟 袣袣袦: 001 [18:34:51]line 肖袦: 0000000000875083 [18:34:51]line 肖袛: 112032 [18:34:51]line 肖袩袛: 32289414036328 [18:34:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T183457&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112032&fm=32289414036328&tin=02508201610067®Number=0000000000092771&sum=30000 [18:34:51]OFD Sender: Processing packet 112032 [packets to send 38, broken 37] [18:34:51]ProducePacketName [18:34:51]name=ofd_packets/00112032 [18:34:51]OFD Sender: To server: 嚂鰌G, [18:34:51]CommunicateWithHost lk.salyk.kg:30040 [18:34:51]ConnectInit lk.salyk.kg [18:34:51]written 0, free lines is 4095 [18:34:51]Connected sock=10 [18:34:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 6E 07 01 82 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 C8 00 00 00 F4 03 04 00 D1 C7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B5 01 00 35 04 06 00 1D 5D F7 0D BB 68 2E 70 21 FF 8D DC 92 81 [18:34:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 58 B8 47 00 44 B6 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 30 38 37 35 30 38 33 10 04 04 00 A0 B5 01 00 F4 03 04 00 F4 5E 75 66 B6 04 01 00 00 7C 48 6E 75 C5 F9 5A DB [18:34:52]CommunicateWithHost err = 0 [18:34:52]CheckOFDResponse [18:34:52]1017 (14) - 77093643461234 [18:34:52]1041 (16) - 0000000000875083 [18:34:52]1040 (4) - 112032 [18:34:52]1012 (4) - 21.06.2024 11:07 [18:34:52]1206 (1) - 0 [18:34:52]OFD Sender: Remove packet 112032 [18:34:52]ProducePacketName [18:34:52]name=ofd_packets/00112032 [18:34:52]NVStorageDeleteData [18:34:52]Write to MH i2c: 01 00 00 6C 1D 89 [18:34:52]Write i2c OK [18:34:52]MH_I2C_Read... [18:34:52]Read from MH i2c: 01 [18:34:52]MH_I2C_Read... [18:34:52]Read from MH i2c: 01 07 00 [18:34:52]MH_I2C_Read... [18:34:52]Read from MH i2c: 01 07 00 6C 1D 00 00 00 00 00 E3 0C 7F [18:34:52]RasterBufferAndPrint [18:34:52]line [18:34:52]line [18:34:52]line [18:34:52]line [18:34:52]line [18:34:52]written 0, free lines is 3305 [18:34:52]MH_Cut [18:34:52]Write to MH i2c: D1 01 00 73 1D 01 62 [18:34:52]Write i2c OK [18:34:52]MH_I2C_Read... [18:34:52]Read from MH i2c: D1 [18:34:52]MH_I2C_Read... [18:34:52]Read from MH i2c: D1 01 00 [18:34:52]MH_I2C_Read... [18:34:52]Read from MH i2c: D1 01 00 73 1D 00 61 [18:34:52]Write to MH i2c: 01 00 00 74 1D 91 [18:34:52]Write i2c OK [18:34:52]MH_I2C_Read... [18:34:52]OFD Sender: No OFD packet to send [18:34:52]*** Cut start [18:34:52]*** Partial cut [18:34:52]*** CUTSNS_PIN = 1 [18:34:53]*** CUTSNS_PIN = 0 [18:34:53]*** Brake cut motor [18:34:53]Read from MH i2c: 01 [18:34:53]MH_I2C_Read... [18:34:53]*** Stop cut motor [18:34:53]*** Cut end [18:34:53]Read from MH i2c: 01 07 00 [18:34:53]MH_I2C_Read... [18:34:53]Read from MH i2c: 01 07 00 74 1D 00 00 00 00 00 FF 0F A6 [18:34:53]process_action close_receipt done [18:34:53]requested_data is exist [18:34:53]produce_requested_data [18:34:53]requested_item fm.sn is exist - process it [18:34:53]wFMCommunicate request_size=4 [18:34:53]MH_SAM_APDU [18:34:53]CAPDU: 80 11 00 00 [18:34:53]Write to MH i2c: E2 08 00 75 1D 80 11 00 00 00 00 00 00 0C [18:34:53]Write i2c OK [18:34:53]MH_I2C_Read... [18:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:53]Read from MH i2c: E2 [18:34:53]MH_I2C_Read... [18:34:53]Read from MH i2c: E2 17 00 [18:34:53]MH_I2C_Read... [18:34:53]Read from MH i2c: E2 17 00 75 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5E [18:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:34:53]wFMCommunicate OK [18:34:53]requested_item fd.num is exist - process it [18:34:53]SAM_PROTO_GetFieldsCounters [18:34:53]wFMCommunicate request_size=4 [18:34:53]MH_SAM_APDU [18:34:53]CAPDU: 80 13 00 00 [18:34:53]Write to MH i2c: E2 08 00 76 1D 80 13 00 00 00 00 00 00 0F [18:34:53]Write i2c OK [18:34:53]MH_I2C_Read... [18:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:53]Read from MH i2c: E2 [18:34:53]MH_I2C_Read... [18:34:53]Read from MH i2c: E2 62 00 [18:34:53]MH_I2C_Read... [18:34:53]Read from MH i2c: E2 62 00 76 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [18:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:53]wFMCommunicate OK [18:34:53]SAM_PROTO_GetFieldsCounters done [18:34:53]requested_item shift.num is exist - process it [18:34:53]requested_item shift.opened is exist - process it [18:34:53]req_shift_opened [18:34:53]FM_GetShiftState [18:34:53]SAM_PROTO_GetShiftState [18:34:53]wFMCommunicate request_size=4 [18:34:53]MH_SAM_APDU [18:34:53]CAPDU: 80 13 01 00 [18:34:53]Write to MH i2c: E2 08 00 77 1D 80 13 01 00 00 00 00 00 11 [18:34:53]Write i2c OK [18:34:53]MH_I2C_Read... [18:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:53]Read from MH i2c: E2 [18:34:53]MH_I2C_Read... [18:34:53]Read from MH i2c: E2 0E 00 [18:34:53]MH_I2C_Read... [18:34:53]Read from MH i2c: E2 0E 00 77 1D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 8E [18:34:53]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:34:53]wFMCommunicate OK [18:34:53]SAM_PROTO_GetShiftState done [18:34:53]FM_GetShiftState done [18:34:53]req_shift_opened done [18:34:53]requested_item shift.open_date is exist - process it [18:34:53]req_shift_open_date [18:34:53]req_shift_open_date done [18:34:53]produce_requested_data done [18:34:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112032,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:34:53]process_action_free close_receipt [18:34:53]json_value_free [18:34:53]json_value_free done [18:34:53]process_json_proto returns [18:34:53]Send response to host [18:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112032,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:34:53]free response buf [18:34:53]execute_script done [18:34:53]execute_script returns [18:34:53]free content buf [18:34:53]Sock 9.Close socket [18:34:53]Sock 9.Thread stoped [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:36]accept exits with 7 [18:45:36]New connection [18:45:36]New thread 3066875236 created [18:45:36]Thread 3066731876 joined [18:45:36]Waiting for new connection... [18:45:36] Sock 7.Parse request [18:45:36]Sock 7.Check first char [18:45:36]Sock 7.First char is OK [18:45:36]request: POST /json_proto HTTP/1.0 [18:45:36]Method: POST [18:45:36]URL: /json_proto [18:45:36]Method is POST - this is cgi request [18:45:36]url: /json_proto [18:45:36]query_string will be loaded in cgi processing [18:45:36]execute_cgi json_proto POST (null) [18:45:36]execute_cgi path=json_proto method=POST [18:45:36]POST find Content-Length [18:45:36]Host: 172.17.59.68:8080 [18:45:36]Content-Length: 677 [18:45:36]Content-Type: application/json [18:45:36] [18:45:36]POST finish read [18:45:36]Found Content-Length = 677 [18:45:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:36]execute_script... [18:45: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 : (1)320684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:36]POST & json_proto [18:45:36]process_json_proto [18:45:36]json parsed OK: [18:45:36]protocol is kg_v1.0 [18:45:36]action value=close_receipt [18:45:36]process_action close_receipt [18:45:36]cmd_close_receipt [18:45:36]MH_GetDate [18:45:36]Write to MH i2c: F0 00 00 78 1D 84 [18:45:36]Write i2c OK [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: F0 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: F0 09 00 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: F0 09 00 78 1D 00 58 CA 75 66 BC EC 60 65 F7 [18:45:36]GetLastDocTimeStamp 1718994897 [18:45:36]current date 1718995544 [18:45:36]FM_GetShiftState [18:45:36]SAM_PROTO_GetShiftState [18:45:36]wFMCommunicate request_size=4 [18:45:36]MH_SAM_APDU [18:45:36]CAPDU: 80 13 01 00 [18:45:36]Write to MH i2c: E2 08 00 79 1D 80 13 01 00 00 00 00 00 13 [18:45:36]Write i2c OK [18:45:36]MH_I2C_Read... [18:45:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:36]Read from MH i2c: E2 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: E2 0E 00 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: E2 0E 00 79 1D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 90 [18:45:36]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:45:36]wFMCommunicate OK [18:45:36]SAM_PROTO_GetShiftState done [18:45:36]FM_GetShiftState done [18:45:36]opened in 1718933695 [18:45:36]opened+sec_in_day 1719020095 [18:45:36]quantity*price = 30012 [18:45:36]sum+1 = 30014 [18:45:36]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 201 21.06.2024 18:45 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112033 肖袩袛: 47082829445189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T184544&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112033&fm=47082829445189&tin=02508201610067®Number=0000000000092771&sum=30000 [18:45:37]StoreToDocumentArchive [18:45:37]shift 390 fd 112033 [18:45:37]save to /storage/0390/doc_00112033 [18:45:37]save last doc name /storage/0390/doc_00112033 to /storage/kkm_last_doc_name [18:45:37]save OK [18:45:37]Clear old archive folders... [18:45:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:37]tlvbuf is 00340560 [18:45:37]SAM_PROTO_ClearQueue [18:45:37]wFMCommunicate request_size=4 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 09 00 00 [18:45:37]Write to MH i2c: E2 08 00 86 1D 80 09 00 00 00 00 00 00 15 [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 86 1D 00 90 00 17 [18:45:37]RAPDU: 90 00 [18:45:37]wFMCommunicate OK [18:45:37]SAM_PROTO_ClearQueue done [18:45:37]KKMCreateOFDPacket [18:45:37]OFDProtocolAddRootSTLVToBuf [18:45:37]FM_MakeSignedData [18:45:37]FM_MakeSignedData [18:45:37]SAM_PROTO_SignData [18:45:37]wFMCommunicate request_size=4 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 0D 01 02 [18:45:37]Write to MH i2c: E2 08 00 87 1D 80 0D 01 02 00 00 00 00 1D [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 87 1D 00 90 00 18 [18:45:37]RAPDU: 90 00 [18:45:37]wFMCommunicate OK [18:45:37]wFMCommunicate request_size=255 [18:45:37]MH_SAM_APDU [18:45:37]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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 C9 00 00 00 F4 03 04 00 58 CA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B5 01 00 35 04 06 00 2A [18:45:37]Write to MH i2c: E2 02 01 88 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 C9 00 00 00 F4 03 04 00 58 CA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B5 01 00 35 04 06 00 2A 00 00 3D [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:38]OFD Sender: No OFD packet to send [18:45:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 88 1D 00 90 00 19 [18:45:38]RAPDU: 90 00 [18:45:38]wFMCommunicate OK [18:45:38]wFMCommunicate request_size=10 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 0D 02 02 05 D2 53 52 F8 45 [18:45:38]Write to MH i2c: E2 0D 00 89 1D 80 0D 02 02 05 00 D2 53 52 F8 45 00 00 DE [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 89 1D 00 90 00 1A [18:45:38]RAPDU: 90 00 [18:45:38]wFMCommunicate OK [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 0D 03 02 [18:45:38]Write to MH i2c: E2 08 00 8A 1D 80 0D 03 02 00 00 00 00 22 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 0B 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 0B 00 8A 1D 00 7B 5B A6 8B 98 76 61 5C 90 00 F5 [18:45:38]RAPDU: 7B 5B A6 8B 98 76 61 5C 90 00 [18:45:38]wFMCommunicate OK [18:45:38]SAM_PROTO_SignData done [18:45:38]FM_MakeSignedData done [18:45:38]CreateOFDProtocolMessage [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 11 00 00 [18:45:38]Write to MH i2c: E2 08 00 8B 1D 80 11 00 00 00 00 00 00 22 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 17 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 17 00 8B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [18:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:45:38]wFMCommunicate OK [18:45:38]CreateOFDProtocolMessage done [18:45:38]OFDSenderStorePacket 112033 [18:45:38]StoreOFDPacket docnum=112033 [18:45:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 14 26 07 01 0F 1D 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 C9 00 00 00 F4 03 04 00 58 CA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B5 01 00 35 04 06 00 2A D2 53 52 F8 45 7B 5B A6 8B 98 76 61 5C [18:45:38]CheckFolder [18:45:38]dirname=/storage/ofd_packets [18:45:38]CheckFolder done [18:45:38]ProducePacketName [18:45:38]name=ofd_packets/00112033 [18:45:38]NVStorageSaveData ofd_packets/00112033 [18:45:38]File name is /storage/ofd_packets/00112033 [18:45:38]Write 301 bytes [18:45:38]NVStorageSaveData done [18:45:38]OFDSenderStorePacket done [18:45:38]KKMCreateOFDPacket done [18:45:38]NVStorageSaveData kkm_last_timestamp [18:45:38]File name is /storage/kkm_last_timestamp [18:45:38]Write 4 bytes [18:45:38]NVStorageSaveData done [18:45:38]ExternCall_PrintAddStr [18:45:38]wPrintStart [18:45:38]Write to MH i2c: 01 00 00 8C 1D A9 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 07 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 07 00 8C 1D 00 00 00 00 00 FF 0F BE [18:45:38]RasterBufferAndPrint [18:45:38]line 小褔械褌 N : (1)320684 [18:45:38]line 袠袧袧: 02508201610067 [18:45:38]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:45:38]line 袩袪袨袛袗袞袗 [18:45:38]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:45:38]line 孝芯胁邪褉: 2710124130 [18:45:38]line 袗懈-92-袣-5 [18:45:38]line 4.520 * 66.40 [18:45:38]line = 300.13 [18:45:38]line 袧袛小 12% 袧小袩 1% [18:45:38]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:45:38]line 袨袣袪校袚袥袝袧袠袝: -0.13 [18:45:38]line 袠孝袨袚袨: 300.00 [18:45:38]line 袙薪械褋械薪芯: 300.00 [18:45:38]line 小袛袗效袗: 0.00 [18:45:38]line 袧小袩 1% : 2.66 [18:45:38]line 袧袛小 12% : 31.87 [18:45:38]line 袧邪谢懈褔薪褘屑懈: 300.00 [18:45:38]line 袘械蟹薪邪谢.: 0.00 [18:45:38]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:45:38]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:45:38]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:45:38]line 效械泻 201 21.06.2024 18:45 [18:45:38]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:45:38]line 袟袧袦: 0300000198 [18:45:38]line 袪袧袦: 0000000000092771 [18:45:38]line 袙械褉褋懈褟 袣袣袦: 001 [18:45:38]line 肖袦: 0000000000875083 [18:45:38]line 肖袛: 112033 [18:45:38]line 肖袩袛: 47082829445189 [18:45:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T184544&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112033&fm=47082829445189&tin=02508201610067®Number=0000000000092771&sum=30000 [18:45:38]OFD Sender: Processing packet 112033 [packets to send 38, broken 37] [18:45:38]ProducePacketName [18:45:38]name=ofd_packets/00112033 [18:45:38]OFD Sender: To server: 嚂鰌G, [18:45:38]CommunicateWithHost lk.salyk.kg:30040 [18:45:38]ConnectInit lk.salyk.kg [18:45:38]written 0, free lines is 4095 [18:45:38]Connected sock=10 [18:45:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 14 26 07 01 0F 1D 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 C9 00 00 00 F4 03 04 00 58 CA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B5 01 00 35 04 06 00 2A D2 53 52 F8 45 7B 5B A6 8B 98 76 61 5C [18:45:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EC AC 47 00 B2 73 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 30 38 37 35 30 38 33 10 04 04 00 A1 B5 01 00 F4 03 04 00 7B 61 75 66 B6 04 01 00 00 0C F5 D6 0D 57 53 1E 12 [18:45:39]CommunicateWithHost err = 0 [18:45:39]CheckOFDResponse [18:45:39]1017 (14) - 77093643461234 [18:45:39]1041 (16) - 0000000000875083 [18:45:39]1040 (4) - 112033 [18:45:39]1012 (4) - 21.06.2024 11:18 [18:45:39]1206 (1) - 0 [18:45:39]OFD Sender: Remove packet 112033 [18:45:39]ProducePacketName [18:45:39]name=ofd_packets/00112033 [18:45:39]NVStorageDeleteData [18:45:39]Write to MH i2c: 01 00 00 B7 1D D4 [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: 01 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: 01 07 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: 01 07 00 B7 1D 00 00 00 00 00 EA 0C D1 [18:45:39]RasterBufferAndPrint [18:45:39]line [18:45:39]line [18:45:39]line [18:45:39]line [18:45:39]line [18:45:39]written 0, free lines is 3312 [18:45:39]MH_Cut [18:45:39]Write to MH i2c: D1 01 00 BE 1D 01 AD [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: D1 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: D1 01 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: D1 01 00 BE 1D 00 AC [18:45:39]Write to MH i2c: 01 00 00 BF 1D DC [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]OFD Sender: No OFD packet to send [18:45:39]*** Cut start [18:45:39]*** Partial cut [18:45:39]*** CUTSNS_PIN = 1 [18:45:39]*** CUTSNS_PIN = 0 [18:45:40]*** Brake cut motor [18:45:40]Read from MH i2c: 01 [18:45:40]MH_I2C_Read... [18:45:40]*** Stop cut motor [18:45:40]*** Cut end [18:45:40]Read from MH i2c: 01 07 00 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: 01 07 00 BF 1D 00 00 00 00 00 FF 0F F1 [18:45:40]process_action close_receipt done [18:45:40]requested_data is exist [18:45:40]produce_requested_data [18:45:40]requested_item fm.sn is exist - process it [18:45:40]wFMCommunicate request_size=4 [18:45:40]MH_SAM_APDU [18:45:40]CAPDU: 80 11 00 00 [18:45:40]Write to MH i2c: E2 08 00 C0 1D 80 11 00 00 00 00 00 00 57 [18:45:40]Write i2c OK [18:45:40]MH_I2C_Read... [18:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:40]Read from MH i2c: E2 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 17 00 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 17 00 C0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A9 [18:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:45:40]wFMCommunicate OK [18:45:40]requested_item fd.num is exist - process it [18:45:40]SAM_PROTO_GetFieldsCounters [18:45:40]wFMCommunicate request_size=4 [18:45:40]MH_SAM_APDU [18:45:40]CAPDU: 80 13 00 00 [18:45:40]Write to MH i2c: E2 08 00 C1 1D 80 13 00 00 00 00 00 00 5A [18:45:40]Write i2c OK [18:45:40]MH_I2C_Read... [18:45:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:40]Read from MH i2c: E2 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 62 00 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 62 00 C1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A1 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [18:45:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A1 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:40]wFMCommunicate OK [18:45:40]SAM_PROTO_GetFieldsCounters done [18:45:40]requested_item shift.num is exist - process it [18:45:40]requested_item shift.opened is exist - process it [18:45:40]req_shift_opened [18:45:40]FM_GetShiftState [18:45:40]SAM_PROTO_GetShiftState [18:45:40]wFMCommunicate request_size=4 [18:45:40]MH_SAM_APDU [18:45:40]CAPDU: 80 13 01 00 [18:45:40]Write to MH i2c: E2 08 00 C2 1D 80 13 01 00 00 00 00 00 5C [18:45:40]Write i2c OK [18:45:40]MH_I2C_Read... [18:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:40]Read from MH i2c: E2 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 0E 00 [18:45:40]MH_I2C_Read... [18:45:40]Read from MH i2c: E2 0E 00 C2 1D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D9 [18:45:40]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:45:40]wFMCommunicate OK [18:45:40]SAM_PROTO_GetShiftState done [18:45:40]FM_GetShiftState done [18:45:40]req_shift_opened done [18:45:40]requested_item shift.open_date is exist - process it [18:45:40]req_shift_open_date [18:45:40]req_shift_open_date done [18:45:40]produce_requested_data done [18:45:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112033,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:45:40]process_action_free close_receipt [18:45:40]json_value_free [18:45:40]json_value_free done [18:45:40]process_json_proto returns [18:45:40]Send response to host [18:45:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112033,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:45:40]free response buf [18:45:40]execute_script done [18:45:40]execute_script returns [18:45:40]free content buf [18:45:40]Sock 7.Close socket [18:45:40]Sock 7.Thread stoped [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:47]accept exits with 9 [18:46:47]New connection [18:46:47]New thread 3066731876 created [18:46:47]Thread 3066875236 joined [18:46:47]Waiting for new connection... [18:46:47] Sock 9.Parse request [18:46:47]Sock 9.Check first char [18:46:47]Sock 9.First char is OK [18:46:47]request: POST /json_proto HTTP/1.0 [18:46:47]Method: POST [18:46:47]URL: /json_proto [18:46:47]Method is POST - this is cgi request [18:46:47]url: /json_proto [18:46:47]query_string will be loaded in cgi processing [18:46:47]execute_cgi json_proto POST (null) [18:46:47]execute_cgi path=json_proto method=POST [18:46:47]POST find Content-Length [18:46:47]Host: 172.17.59.68:8080 [18:46:47]Content-Length: 677 [18:46:47]Content-Type: application/json [18:46:47] [18:46:47]POST finish read [18:46:47]Found Content-Length = 677 [18:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.690, "sum" : 311.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 332.00, "total" : 311.00, "payments": [ { "type": 0, "sum" : 311.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:47]execute_script... [18:46: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)320685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.690, "sum" : 311.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 332.00, "total" : 311.00, "payments": [ { "type": 0, "sum" : 311.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:47]POST & json_proto [18:46:47]process_json_proto [18:46:47]json parsed OK: [18:46:47]protocol is kg_v1.0 [18:46:47]action value=close_receipt [18:46:47]process_action close_receipt [18:46:47]cmd_close_receipt [18:46:47]MH_GetDate [18:46:47]Write to MH i2c: F0 00 00 C3 1D CF [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: F0 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: F0 09 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: F0 09 00 C3 1D 00 9E CA 75 66 BC EC 60 65 88 [18:46:47]GetLastDocTimeStamp 1718995544 [18:46:47]current date 1718995614 [18:46:47]FM_GetShiftState [18:46:47]SAM_PROTO_GetShiftState [18:46:47]wFMCommunicate request_size=4 [18:46:47]MH_SAM_APDU [18:46:47]CAPDU: 80 13 01 00 [18:46:47]Write to MH i2c: E2 08 00 C4 1D 80 13 01 00 00 00 00 00 5E [18:46:47]Write i2c OK [18:46:47]MH_I2C_Read... [18:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:47]Read from MH i2c: E2 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 0E 00 [18:46:47]MH_I2C_Read... [18:46:47]Read from MH i2c: E2 0E 00 C4 1D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 DB [18:46:47]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:46:47]wFMCommunicate OK [18:46:47]SAM_PROTO_GetShiftState done [18:46:47]FM_GetShiftState done [18:46:47]opened in 1718933695 [18:46:47]opened+sec_in_day 1719020095 [18:46:47]quantity*price = 31141 [18:46:47]sum+1 = 31143 [18:46:47]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.42 袠孝袨袚袨: 311.00 袙薪械褋械薪芯: 332.00 小袛袗效袗: 21.00 袧小袩 1% : 2.76 袧袛小 12% : 33.07 袧邪谢懈褔薪褘屑懈: 311.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 202 21.06.2024 18:46 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112034 肖袩袛: 198685789411792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T184654&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112034&fm=198685789411792&tin=02508201610067®Number=0000000000092771&sum=31100 [18:46:48]StoreToDocumentArchive [18:46:48]shift 390 fd 112034 [18:46:48]save to /storage/0390/doc_00112034 [18:46:48]save last doc name /storage/0390/doc_00112034 to /storage/kkm_last_doc_name [18:46:48]save OK [18:46:48]Clear old archive folders... [18:46:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:48]tlvbuf is B6E95720 [18:46:48]SAM_PROTO_ClearQueue [18:46:48]wFMCommunicate request_size=4 [18:46:48]MH_SAM_APDU [18:46:48]CAPDU: 80 09 00 00 [18:46:48]Write to MH i2c: E2 08 00 D1 1D 80 09 00 00 00 00 00 00 60 [18:46:48]Write i2c OK [18:46:48]MH_I2C_Read... [18:46:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:48]Read from MH i2c: E2 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: E2 03 00 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: E2 03 00 D1 1D 00 90 00 62 [18:46:48]RAPDU: 90 00 [18:46:48]wFMCommunicate OK [18:46:48]SAM_PROTO_ClearQueue done [18:46:48]KKMCreateOFDPacket [18:46:48]OFDProtocolAddRootSTLVToBuf [18:46:48]FM_MakeSignedData [18:46:48]FM_MakeSignedData [18:46:48]SAM_PROTO_SignData [18:46:48]wFMCommunicate request_size=4 [18:46:48]MH_SAM_APDU [18:46:48]CAPDU: 80 0D 01 02 [18:46:48]Write to MH i2c: E2 08 00 D2 1D 80 0D 01 02 00 00 00 00 68 [18:46:48]Write i2c OK [18:46:48]MH_I2C_Read... [18:46:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:48]Read from MH i2c: E2 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: E2 03 00 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: E2 03 00 D2 1D 00 90 00 63 [18:46:48]RAPDU: 90 00 [18:46:48]wFMCommunicate OK [18:46:48]wFMCommunicate request_size=255 [18:46:48]MH_SAM_APDU [18:46:48]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 52 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A6 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 0C 00 00 00 00 07 04 06 00 7C 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9E CA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B5 01 00 35 04 06 00 B4 [18:46:48]Write to MH i2c: E2 02 01 D3 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 52 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A6 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 0C 00 00 00 00 07 04 06 00 7C 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9E CA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B5 01 00 35 04 06 00 B4 00 00 94 [18:46:48]Write i2c OK [18:46:48]MH_I2C_Read... [18:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:48]Read from MH i2c: E2 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: E2 03 00 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: E2 03 00 D3 1D 00 90 00 64 [18:46:48]RAPDU: 90 00 [18:46:48]wFMCommunicate OK [18:46:48]wFMCommunicate request_size=10 [18:46:48]MH_SAM_APDU [18:46:48]CAPDU: 80 0D 02 02 05 B4 23 E6 59 D0 [18:46:48]Write to MH i2c: E2 0D 00 D4 1D 80 0D 02 02 05 00 B4 23 E6 59 D0 00 00 5B [18:46:48]Write i2c OK [18:46:48]MH_I2C_Read... [18:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:48]Read from MH i2c: E2 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: E2 03 00 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: E2 03 00 D4 1D 00 90 00 65 [18:46:48]RAPDU: 90 00 [18:46:48]wFMCommunicate OK [18:46:48]wFMCommunicate request_size=4 [18:46:48]MH_SAM_APDU [18:46:48]CAPDU: 80 0D 03 02 [18:46:48]Write to MH i2c: E2 08 00 D5 1D 80 0D 03 02 00 00 00 00 6D [18:46:48]Write i2c OK [18:46:48]MH_I2C_Read... [18:46:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:48]Read from MH i2c: E2 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: E2 0B 00 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: E2 0B 00 D5 1D 00 81 D7 E2 EE E3 B7 4D 4A 90 00 C7 [18:46:48]RAPDU: 81 D7 E2 EE E3 B7 4D 4A 90 00 [18:46:48]wFMCommunicate OK [18:46:48]SAM_PROTO_SignData done [18:46:48]FM_MakeSignedData done [18:46:48]CreateOFDProtocolMessage [18:46:48]wFMCommunicate request_size=4 [18:46:48]MH_SAM_APDU [18:46:48]CAPDU: 80 11 00 00 [18:46:48]Write to MH i2c: E2 08 00 D6 1D 80 11 00 00 00 00 00 00 6D [18:46:48]Write i2c OK [18:46:48]MH_I2C_Read... [18:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:48]Read from MH i2c: E2 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: E2 17 00 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: E2 17 00 D6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BF [18:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:46:48]wFMCommunicate OK [18:46:48]CreateOFDProtocolMessage done [18:46:48]OFDSenderStorePacket 112034 [18:46:48]StoreOFDPacket docnum=112034 [18:46:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF 6C 07 01 AB 5C 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 52 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A6 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 0C 00 00 00 00 07 04 06 00 7C 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9E CA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B5 01 00 35 04 06 00 B4 B4 23 E6 59 D0 81 D7 E2 EE E3 B7 4D 4A [18:46:48]CheckFolder [18:46:48]dirname=/storage/ofd_packets [18:46:48]CheckFolder done [18:46:48]ProducePacketName [18:46:48]name=ofd_packets/00112034 [18:46:48]NVStorageSaveData ofd_packets/00112034 [18:46:48]File name is /storage/ofd_packets/00112034 [18:46:48]Write 301 bytes [18:46:48]NVStorageSaveData done [18:46:48]OFDSenderStorePacket done [18:46:48]KKMCreateOFDPacket done [18:46:48]NVStorageSaveData kkm_last_timestamp [18:46:48]File name is /storage/kkm_last_timestamp [18:46:48]Write 4 bytes [18:46:48]NVStorageSaveData done [18:46:48]ExternCall_PrintAddStr [18:46:48]wPrintStart [18:46:48]Write to MH i2c: 01 00 00 D7 1D F4 [18:46:48]Write i2c OK [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: 01 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: 01 07 00 [18:46:48]MH_I2C_Read... [18:46:48]Read from MH i2c: 01 07 00 D7 1D 00 00 00 00 00 FF 0F 09 [18:46:48]RasterBufferAndPrint [18:46:48]line 小褔械褌 N : (1)320685 [18:46:48]line 袠袧袧: 02508201610067 [18:46:48]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:46:48]line 袩袪袨袛袗袞袗 [18:46:48]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:46:48]line 孝芯胁邪褉: 2710124130 [18:46:48]line 袗懈-92-袣-5 [18:46:48]line 4.690 * 66.40 [18:46:48]line = 311.42 [18:46:48]line 袧袛小 12% 袧小袩 1% [18:46:48]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:46:48]line 袨袣袪校袚袥袝袧袠袝: -0.42 [18:46:48]line 袠孝袨袚袨: 311.00 [18:46:48]line 袙薪械褋械薪芯: 332.00 [18:46:48]line 小袛袗效袗: 21.00 [18:46:48]line 袧小袩 1% : 2.76 [18:46:48]line 袧袛小 12% : 33.07 [18:46:48]line 袧邪谢懈褔薪褘屑懈: 311.00 [18:46:48]line 袘械蟹薪邪谢.: 0.00 [18:46:48]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:46:48]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:46:48]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:46:48]line 效械泻 202 21.06.2024 18:46 [18:46:48]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:46:48]line 袟袧袦: 0300000198 [18:46:48]line 袪袧袦: 0000000000092771 [18:46:48]line 袙械褉褋懈褟 袣袣袦: 001 [18:46:48]line 肖袦: 0000000000875083 [18:46:48]line 肖袛: 112034 [18:46:48]line 肖袩袛: 198685789411792 [18:46:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T184654&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112034&fm=198685789411792&tin=02508201610067®Number=0000000000092771&sum=31100 [18:46:49]OFD Sender: Processing packet 112034 [packets to send 38, broken 37] [18:46:49]ProducePacketName [18:46:49]name=ofd_packets/00112034 [18:46:49]OFD Sender: To server: 嚂鰌G, [18:46:49]CommunicateWithHost lk.salyk.kg:30040 [18:46:49]ConnectInit lk.salyk.kg [18:46:49]written 0, free lines is 4095 [18:46:49]Connected sock=10 [18:46:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF 6C 07 01 AB 5C 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 52 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A6 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 0C 00 00 00 00 07 04 06 00 7C 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 9E CA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B5 01 00 35 04 06 00 B4 B4 23 E6 59 D0 81 D7 E2 EE E3 B7 4D 4A [18:46:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E3 DD 47 00 28 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B5 01 00 F4 03 04 00 C2 61 75 66 B6 04 01 00 00 81 FD 7E 28 DB F7 5B 20 [18:46:49]CommunicateWithHost err = 0 [18:46:49]CheckOFDResponse [18:46:49]1017 (14) - 77093643461234 [18:46:49]1041 (16) - 0000000000875083 [18:46:49]1040 (4) - 112034 [18:46:49]1012 (4) - 21.06.2024 11:19 [18:46:49]1206 (1) - 0 [18:46:49]OFD Sender: Remove packet 112034 [18:46:49]ProducePacketName [18:46:49]name=ofd_packets/00112034 [18:46:49]NVStorageDeleteData [18:46:49]Write to MH i2c: 01 00 00 02 1E 20 [18:46:49]Write i2c OK [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: 01 [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: 01 07 00 [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: 01 07 00 02 1E 00 00 00 00 00 E6 0C 19 [18:46:49]RasterBufferAndPrint [18:46:49]line [18:46:49]line [18:46:49]line [18:46:49]line [18:46:49]line [18:46:49]written 0, free lines is 3308 [18:46:49]MH_Cut [18:46:49]Write to MH i2c: D1 01 00 09 1E 01 F9 [18:46:49]Write i2c OK [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: D1 [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: D1 01 00 [18:46:49]MH_I2C_Read... [18:46:49]Read from MH i2c: D1 01 00 09 1E 00 F8 [18:46:49]Write to MH i2c: 01 00 00 0A 1E 28 [18:46:49]Write i2c OK [18:46:49]MH_I2C_Read... [18:46:50]OFD Sender: No OFD packet to send [18:46:50]*** Cut start [18:46:50]*** Partial cut [18:46:50]*** CUTSNS_PIN = 1 [18:46:50]*** CUTSNS_PIN = 0 [18:46:50]*** Brake cut motor [18:46:51]Read from MH i2c: 01 [18:46:51]MH_I2C_Read... [18:46:51]*** Stop cut motor [18:46:51]*** Cut end [18:46:51]Read from MH i2c: 01 07 00 [18:46:51]MH_I2C_Read... [18:46:51]Read from MH i2c: 01 07 00 0A 1E 00 00 00 00 00 FF 0F 3D [18:46:51]process_action close_receipt done [18:46:51]requested_data is exist [18:46:51]produce_requested_data [18:46:51]requested_item fm.sn is exist - process it [18:46:51]wFMCommunicate request_size=4 [18:46:51]MH_SAM_APDU [18:46:51]CAPDU: 80 11 00 00 [18:46:51]Write to MH i2c: E2 08 00 0B 1E 80 11 00 00 00 00 00 00 A3 [18:46:51]Write i2c OK [18:46:51]MH_I2C_Read... [18:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:51]Read from MH i2c: E2 [18:46:51]MH_I2C_Read... [18:46:51]Read from MH i2c: E2 17 00 [18:46:51]MH_I2C_Read... [18:46:51]Read from MH i2c: E2 17 00 0B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F5 [18:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:46:51]wFMCommunicate OK [18:46:51]requested_item fd.num is exist - process it [18:46:51]SAM_PROTO_GetFieldsCounters [18:46:51]wFMCommunicate request_size=4 [18:46:51]MH_SAM_APDU [18:46:51]CAPDU: 80 13 00 00 [18:46:51]Write to MH i2c: E2 08 00 0C 1E 80 13 00 00 00 00 00 00 A6 [18:46:51]Write i2c OK [18:46:51]MH_I2C_Read... [18:46:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:51]Read from MH i2c: E2 [18:46:51]MH_I2C_Read... [18:46:51]Read from MH i2c: E2 62 00 [18:46:51]MH_I2C_Read... [18:46:51]Read from MH i2c: E2 62 00 0C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [18:46:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:51]wFMCommunicate OK [18:46:51]SAM_PROTO_GetFieldsCounters done [18:46:51]requested_item shift.num is exist - process it [18:46:51]requested_item shift.opened is exist - process it [18:46:51]req_shift_opened [18:46:51]FM_GetShiftState [18:46:51]SAM_PROTO_GetShiftState [18:46:51]wFMCommunicate request_size=4 [18:46:51]MH_SAM_APDU [18:46:51]CAPDU: 80 13 01 00 [18:46:51]Write to MH i2c: E2 08 00 0D 1E 80 13 01 00 00 00 00 00 A8 [18:46:51]Write i2c OK [18:46:51]MH_I2C_Read... [18:46:51]Read from MH i2c: E2 [18:46:51]MH_I2C_Read... [18:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:51]Read from MH i2c: E2 0E 00 [18:46:51]MH_I2C_Read... [18:46:51]Read from MH i2c: E2 0E 00 0D 1E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 25 [18:46:51]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:46:51]wFMCommunicate OK [18:46:51]SAM_PROTO_GetShiftState done [18:46:51]FM_GetShiftState done [18:46:51]req_shift_opened done [18:46:51]requested_item shift.open_date is exist - process it [18:46:51]req_shift_open_date [18:46:51]req_shift_open_date done [18:46:51]produce_requested_data done [18:46:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112034,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:46:51]process_action_free close_receipt [18:46:51]json_value_free [18:46:51]json_value_free done [18:46:51]process_json_proto returns [18:46:51]Send response to host [18:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112034,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:46:51]free response buf [18:46:51]execute_script done [18:46:51]execute_script returns [18:46:51]free content buf [18:46:51]Sock 9.Close socket [18:46:51]Sock 9.Thread stoped [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:30]accept exits with 7 [18:49:30]New connection [18:49:30]New thread 3066875236 created [18:49:30]Thread 3066731876 joined [18:49:30]Waiting for new connection... [18:49:30] Sock 7.Parse request [18:49:30]Sock 7.Check first char [18:49:30]Sock 7.First char is OK [18:49:30]request: POST /json_proto HTTP/1.0 [18:49:30]Method: POST [18:49:30]URL: /json_proto [18:49:30]Method is POST - this is cgi request [18:49:30]url: /json_proto [18:49:30]query_string will be loaded in cgi processing [18:49:30]execute_cgi json_proto POST (null) [18:49:30]execute_cgi path=json_proto method=POST [18:49:30]POST find Content-Length [18:49:30]Host: 172.17.59.68:8080 [18:49:30]Content-Length: 678 [18:49:30]Content-Type: application/json [18:49:30] [18:49:30]POST finish read [18:49:30]Found Content-Length = 678 [18:49:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 11.150, "sum" : 740.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:30]execute_script... [18:49: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)320686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 11.150, "sum" : 740.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:30]POST & json_proto [18:49:30]process_json_proto [18:49:30]json parsed OK: [18:49:30]protocol is kg_v1.0 [18:49:30]action value=close_receipt [18:49:30]process_action close_receipt [18:49:30]cmd_close_receipt [18:49:30]MH_GetDate [18:49:30]Write to MH i2c: F0 00 00 0E 1E 1B [18:49:30]Write i2c OK [18:49:30]MH_I2C_Read... [18:49:30]Read from MH i2c: F0 [18:49:30]MH_I2C_Read... [18:49:30]Read from MH i2c: F0 09 00 [18:49:30]MH_I2C_Read... [18:49:30]Read from MH i2c: F0 09 00 0E 1E 00 42 CB 75 66 BC EC 60 65 79 [18:49:30]GetLastDocTimeStamp 1718995614 [18:49:30]current date 1718995778 [18:49:30]FM_GetShiftState [18:49:30]SAM_PROTO_GetShiftState [18:49:30]wFMCommunicate request_size=4 [18:49:30]MH_SAM_APDU [18:49:30]CAPDU: 80 13 01 00 [18:49:30]Write to MH i2c: E2 08 00 0F 1E 80 13 01 00 00 00 00 00 AA [18:49:30]Write i2c OK [18:49:30]MH_I2C_Read... [18:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:30]Read from MH i2c: E2 [18:49:30]MH_I2C_Read... [18:49:30]Read from MH i2c: E2 0E 00 [18:49:30]MH_I2C_Read... [18:49:30]Read from MH i2c: E2 0E 00 0F 1E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 27 [18:49:30]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:49:30]wFMCommunicate OK [18:49:30]SAM_PROTO_GetShiftState done [18:49:30]FM_GetShiftState done [18:49:30]opened in 1718933695 [18:49:30]opened+sec_in_day 1719020095 [18:49:30]quantity*price = 74036 [18:49:30]sum+1 = 74037 [18:49:30]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.36 袠孝袨袚袨: 740.00 袙薪械褋械薪芯: 740.00 小袛袗效袗: 0.00 袧小袩 1% : 6.55 袧袛小 12% : 78.62 袧邪谢懈褔薪褘屑懈: 740.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 203 21.06.2024 18:49 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112035 肖袩袛: 160918242019894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T184938&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112035&fm=160918242019894&tin=02508201610067®Number=0000000000092771&sum=74000 [18:49:31]StoreToDocumentArchive [18:49:31]shift 390 fd 112035 [18:49:31]save to /storage/0390/doc_00112035 [18:49:31]save last doc name /storage/0390/doc_00112035 to /storage/kkm_last_doc_name [18:49:31]save OK [18:49:31]Clear old archive folders... [18:49:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:31]tlvbuf is 003410E0 [18:49:31]SAM_PROTO_ClearQueue [18:49:31]wFMCommunicate request_size=4 [18:49:31]MH_SAM_APDU [18:49:31]CAPDU: 80 09 00 00 [18:49:31]Write to MH i2c: E2 08 00 1C 1E 80 09 00 00 00 00 00 00 AC [18:49:31]Write i2c OK [18:49:31]MH_I2C_Read... [18:49:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:31]Read from MH i2c: E2 [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: E2 03 00 [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: E2 03 00 1C 1E 00 90 00 AE [18:49:31]RAPDU: 90 00 [18:49:31]wFMCommunicate OK [18:49:31]SAM_PROTO_ClearQueue done [18:49:31]KKMCreateOFDPacket [18:49:31]OFDProtocolAddRootSTLVToBuf [18:49:31]FM_MakeSignedData [18:49:31]FM_MakeSignedData [18:49:31]SAM_PROTO_SignData [18:49:31]wFMCommunicate request_size=4 [18:49:31]MH_SAM_APDU [18:49:31]CAPDU: 80 0D 01 02 [18:49:31]Write to MH i2c: E2 08 00 1D 1E 80 0D 01 02 00 00 00 00 B4 [18:49:31]Write i2c OK [18:49:31]MH_I2C_Read... [18:49:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:31]Read from MH i2c: E2 [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: E2 03 00 [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: E2 03 00 1D 1E 00 90 00 AF [18:49:31]RAPDU: 90 00 [18:49:31]wFMCommunicate OK [18:49:31]wFMCommunicate request_size=255 [18:49:31]MH_SAM_APDU [18:49:31]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 8E 2B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 21 01 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 B6 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 CB 00 00 00 F4 03 04 00 42 CB 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B5 01 00 35 04 06 00 92 [18:49:31]Write to MH i2c: E2 02 01 1E 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 8E 2B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 21 01 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 B6 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 CB 00 00 00 F4 03 04 00 42 CB 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B5 01 00 35 04 06 00 92 00 00 C4 [18:49:31]Write i2c OK [18:49:31]MH_I2C_Read... [18:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:31]Read from MH i2c: E2 [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: E2 03 00 [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: E2 03 00 1E 1E 00 90 00 B0 [18:49:31]RAPDU: 90 00 [18:49:31]wFMCommunicate OK [18:49:31]wFMCommunicate request_size=10 [18:49:31]MH_SAM_APDU [18:49:31]CAPDU: 80 0D 02 02 05 5A B2 A7 4A 36 [18:49:31]Write to MH i2c: E2 0D 00 1F 1E 80 0D 02 02 05 00 5A B2 A7 4A 36 00 00 F4 [18:49:31]Write i2c OK [18:49:31]MH_I2C_Read... [18:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:31]Read from MH i2c: E2 [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: E2 03 00 [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: E2 03 00 1F 1E 00 90 00 B1 [18:49:31]RAPDU: 90 00 [18:49:31]wFMCommunicate OK [18:49:31]wFMCommunicate request_size=4 [18:49:31]MH_SAM_APDU [18:49:31]CAPDU: 80 0D 03 02 [18:49:31]Write to MH i2c: E2 08 00 20 1E 80 0D 03 02 00 00 00 00 B9 [18:49:31]Write i2c OK [18:49:31]MH_I2C_Read... [18:49:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:32]Read from MH i2c: E2 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: E2 0B 00 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: E2 0B 00 20 1E 00 3D AC B4 FF A3 7A A8 B0 90 00 CB [18:49:32]RAPDU: 3D AC B4 FF A3 7A A8 B0 90 00 [18:49:32]wFMCommunicate OK [18:49:32]SAM_PROTO_SignData done [18:49:32]FM_MakeSignedData done [18:49:32]CreateOFDProtocolMessage [18:49:32]wFMCommunicate request_size=4 [18:49:32]MH_SAM_APDU [18:49:32]CAPDU: 80 11 00 00 [18:49:32]Write to MH i2c: E2 08 00 21 1E 80 11 00 00 00 00 00 00 B9 [18:49:32]Write i2c OK [18:49:32]MH_I2C_Read... [18:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:32]Read from MH i2c: E2 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: E2 17 00 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: E2 17 00 21 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0B [18:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:49:32]wFMCommunicate OK [18:49:32]CreateOFDProtocolMessage done [18:49:32]OFDSenderStorePacket 112035 [18:49:32]StoreOFDPacket docnum=112035 [18:49:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 85 A9 07 01 14 04 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 8E 2B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 21 01 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 B6 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 CB 00 00 00 F4 03 04 00 42 CB 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B5 01 00 35 04 06 00 92 5A B2 A7 4A 36 3D AC B4 FF A3 7A A8 B0 [18:49:32]CheckFolder [18:49:32]dirname=/storage/ofd_packets [18:49:32]CheckFolder done [18:49:32]ProducePacketName [18:49:32]name=ofd_packets/00112035 [18:49:32]NVStorageSaveData ofd_packets/00112035 [18:49:32]File name is /storage/ofd_packets/00112035 [18:49:32]Write 301 bytes [18:49:32]NVStorageSaveData done [18:49:32]OFDSenderStorePacket done [18:49:32]KKMCreateOFDPacket done [18:49:32]NVStorageSaveData kkm_last_timestamp [18:49:32]File name is /storage/kkm_last_timestamp [18:49:32]Write 4 bytes [18:49:32]NVStorageSaveData done [18:49:32]ExternCall_PrintAddStr [18:49:32]wPrintStart [18:49:32]Write to MH i2c: 01 00 00 22 1E 40 [18:49:32]Write i2c OK [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: 01 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: 01 07 00 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: 01 07 00 22 1E 00 00 00 00 00 FF 0F 55 [18:49:32]RasterBufferAndPrint [18:49:32]line 小褔械褌 N : (1)320686 [18:49:32]line 袠袧袧: 02508201610067 [18:49:32]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:49:32]line 袩袪袨袛袗袞袗 [18:49:32]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:49:32]line 孝芯胁邪褉: 2710124130 [18:49:32]line 袗懈-92-袣-5 [18:49:32]line 11.150 * 66.40 [18:49:32]line = 740.36 [18:49:32]line 袧袛小 12% 袧小袩 1% [18:49:32]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:49:32]line 袨袣袪校袚袥袝袧袠袝: -0.36 [18:49:32]line 袠孝袨袚袨: 740.00 [18:49:32]line 袙薪械褋械薪芯: 740.00 [18:49:32]line 小袛袗效袗: 0.00 [18:49:32]line 袧小袩 1% : 6.55 [18:49:32]line 袧袛小 12% : 78.62 [18:49:32]line 袧邪谢懈褔薪褘屑懈: 740.00 [18:49:32]line 袘械蟹薪邪谢.: 0.00 [18:49:32]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:49:32]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:49:32]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:49:32]line 效械泻 203 21.06.2024 18:49 [18:49:32]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:49:32]line 袟袧袦: 0300000198 [18:49:32]line 袪袧袦: 0000000000092771 [18:49:32]line 袙械褉褋懈褟 袣袣袦: 001 [18:49:32]line 肖袦: 0000000000875083 [18:49:32]line 肖袛: 112035 [18:49:32]line 肖袩袛: 160918242019894 [18:49:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T184938&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112035&fm=160918242019894&tin=02508201610067®Number=0000000000092771&sum=74000 [18:49:32]OFD Sender: Processing packet 112035 [packets to send 38, broken 37] [18:49:32]ProducePacketName [18:49:32]name=ofd_packets/00112035 [18:49:32]OFD Sender: To server: 嚂鰌G, [18:49:32]CommunicateWithHost lk.salyk.kg:30040 [18:49:32]ConnectInit lk.salyk.kg [18:49:32]written 0, free lines is 4095 [18:49:32]Connected sock=10 [18:49:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 85 A9 07 01 14 04 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 8E 2B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 34 21 01 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 B6 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 CB 00 00 00 F4 03 04 00 42 CB 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B5 01 00 35 04 06 00 92 5A B2 A7 4A 36 3D AC B4 FF A3 7A A8 B0 [18:49:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4E 62 47 00 F9 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 30 38 37 35 30 38 33 10 04 04 00 A3 B5 01 00 F4 03 04 00 65 62 75 66 B6 04 01 00 00 FD 82 F1 FF 2D 5E 8D 99 [18:49:32]CommunicateWithHost err = 0 [18:49:32]CheckOFDResponse [18:49:32]1017 (14) - 77093643461234 [18:49:32]1041 (16) - 0000000000875083 [18:49:32]1040 (4) - 112035 [18:49:32]1012 (4) - 21.06.2024 11:22 [18:49:32]1206 (1) - 0 [18:49:32]OFD Sender: Remove packet 112035 [18:49:32]ProducePacketName [18:49:32]name=ofd_packets/00112035 [18:49:32]NVStorageDeleteData [18:49:32]Write to MH i2c: 01 00 00 4D 1E 6B [18:49:32]Write i2c OK [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: 01 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: 01 07 00 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: 01 07 00 4D 1E 00 00 00 00 00 E4 0C 62 [18:49:32]RasterBufferAndPrint [18:49:32]line [18:49:32]line [18:49:32]line [18:49:32]line [18:49:32]line [18:49:32]written 0, free lines is 3306 [18:49:32]MH_Cut [18:49:32]Write to MH i2c: D1 01 00 54 1E 01 44 [18:49:32]Write i2c OK [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: D1 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: D1 01 00 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: D1 01 00 54 1E 00 43 [18:49:32]Write to MH i2c: 01 00 00 55 1E 73 [18:49:32]Write i2c OK [18:49:32]MH_I2C_Read... [18:49:33]OFD Sender: No OFD packet to send [18:49:33]*** Cut start [18:49:33]*** Partial cut [18:49:33]*** CUTSNS_PIN = 1 [18:49:33]*** CUTSNS_PIN = 0 [18:49:33]*** Brake cut motor [18:49:34]Read from MH i2c: 01 [18:49:34]MH_I2C_Read... [18:49:34]*** Stop cut motor [18:49:34]*** Cut end [18:49:34]Read from MH i2c: 01 07 00 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: 01 07 00 55 1E 00 00 00 00 00 FF 0F 88 [18:49:34]process_action close_receipt done [18:49:34]requested_data is exist [18:49:34]produce_requested_data [18:49:34]requested_item fm.sn is exist - process it [18:49:34]wFMCommunicate request_size=4 [18:49:34]MH_SAM_APDU [18:49:34]CAPDU: 80 11 00 00 [18:49:34]Write to MH i2c: E2 08 00 56 1E 80 11 00 00 00 00 00 00 EE [18:49:34]Write i2c OK [18:49:34]MH_I2C_Read... [18:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:34]Read from MH i2c: E2 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: E2 17 00 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: E2 17 00 56 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 40 [18:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:49:34]wFMCommunicate OK [18:49:34]requested_item fd.num is exist - process it [18:49:34]SAM_PROTO_GetFieldsCounters [18:49:34]wFMCommunicate request_size=4 [18:49:34]MH_SAM_APDU [18:49:34]CAPDU: 80 13 00 00 [18:49:34]Write to MH i2c: E2 08 00 57 1E 80 13 00 00 00 00 00 00 F1 [18:49:34]Write i2c OK [18:49:34]MH_I2C_Read... [18:49:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:34]Read from MH i2c: E2 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: E2 62 00 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: E2 62 00 57 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [18:49:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:34]wFMCommunicate OK [18:49:34]SAM_PROTO_GetFieldsCounters done [18:49:34]requested_item shift.num is exist - process it [18:49:34]requested_item shift.opened is exist - process it [18:49:34]req_shift_opened [18:49:34]FM_GetShiftState [18:49:34]SAM_PROTO_GetShiftState [18:49:34]wFMCommunicate request_size=4 [18:49:34]MH_SAM_APDU [18:49:34]CAPDU: 80 13 01 00 [18:49:34]Write to MH i2c: E2 08 00 58 1E 80 13 01 00 00 00 00 00 F3 [18:49:34]Write i2c OK [18:49:34]MH_I2C_Read... [18:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:34]Read from MH i2c: E2 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: E2 0E 00 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: E2 0E 00 58 1E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 70 [18:49:34]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:49:34]wFMCommunicate OK [18:49:34]SAM_PROTO_GetShiftState done [18:49:34]FM_GetShiftState done [18:49:34]req_shift_opened done [18:49:34]requested_item shift.open_date is exist - process it [18:49:34]req_shift_open_date [18:49:34]req_shift_open_date done [18:49:34]produce_requested_data done [18:49:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112035,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:49:34]process_action_free close_receipt [18:49:34]json_value_free [18:49:34]json_value_free done [18:49:34]process_json_proto returns [18:49:34]Send response to host [18:49:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112035,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:49:34]free response buf [18:49:34]execute_script done [18:49:34]execute_script returns [18:49:34]free content buf [18:49:34]Sock 7.Close socket [18:49:34]Sock 7.Thread stoped [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:56]accept exits with 9 [18:52:56]New connection [18:52:56]New thread 3066731876 created [18:52:56]Thread 3066875236 joined [18:52:56]Waiting for new connection... [18:52:56] Sock 9.Parse request [18:52:56]Sock 9.Check first char [18:52:56]Sock 9.First char is OK [18:52:56]request: POST /json_proto HTTP/1.0 [18:52:56]Method: POST [18:52:56]URL: /json_proto [18:52:56]Method is POST - this is cgi request [18:52:56]url: /json_proto [18:52:56]query_string will be loaded in cgi processing [18:52:56]execute_cgi json_proto POST (null) [18:52:56]execute_cgi path=json_proto method=POST [18:52:56]POST find Content-Length [18:52:56]Host: 172.17.59.68:8080 [18:52:56]Content-Length: 639 [18:52:56]Content-Type: application/json [18:52:56] [18:52:56]POST finish read [18:52:56]Found Content-Length = 639 [18:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:56]execute_script... [18:52: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)320687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:56]POST & json_proto [18:52:56]process_json_proto [18:52:56]json parsed OK: [18:52:56]protocol is kg_v1.0 [18:52:56]action value=close_receipt [18:52:56]process_action close_receipt [18:52:56]cmd_close_receipt [18:52:56]MH_GetDate [18:52:56]Write to MH i2c: F0 00 00 59 1E 66 [18:52:56]Write i2c OK [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: F0 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: F0 09 00 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: F0 09 00 59 1E 00 10 CC 75 66 BC EC 60 65 93 [18:52:56]GetLastDocTimeStamp 1718995778 [18:52:56]current date 1718995984 [18:52:56]FM_GetShiftState [18:52:56]SAM_PROTO_GetShiftState [18:52:56]wFMCommunicate request_size=4 [18:52:56]MH_SAM_APDU [18:52:56]CAPDU: 80 13 01 00 [18:52:56]Write to MH i2c: E2 08 00 5A 1E 80 13 01 00 00 00 00 00 F5 [18:52:56]Write i2c OK [18:52:56]MH_I2C_Read... [18:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:56]Read from MH i2c: E2 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: E2 0E 00 [18:52:56]MH_I2C_Read... [18:52:56]Read from MH i2c: E2 0E 00 5A 1E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 72 [18:52:56]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:52:56]wFMCommunicate OK [18:52:56]SAM_PROTO_GetShiftState done [18:52:56]FM_GetShiftState done [18:52:56]opened in 1718933695 [18:52:56]opened+sec_in_day 1719020095 [18:52:56]quantity*price = 33200 [18:52:56]sum+1 = 33201 [18:52:56]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 332.00 袧小袩 1% : 2.94 袧袛小 12% : 35.26 袧邪谢懈褔薪褘屑懈: 332.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 204 21.06.2024 18:53 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112036 肖袩袛: 255446360418568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185304&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112036&fm=255446360418568&tin=02508201610067®Number=0000000000092771&sum=33200 [18:52:57]StoreToDocumentArchive [18:52:57]shift 390 fd 112036 [18:52:57]save to /storage/0390/doc_00112036 [18:52:57]save last doc name /storage/0390/doc_00112036 to /storage/kkm_last_doc_name [18:52:57]save OK [18:52:57]Clear old archive folders... [18:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:57]tlvbuf is 00465890 [18:52:57]SAM_PROTO_ClearQueue [18:52:57]wFMCommunicate request_size=4 [18:52:57]MH_SAM_APDU [18:52:57]CAPDU: 80 09 00 00 [18:52:57]Write to MH i2c: E2 08 00 67 1E 80 09 00 00 00 00 00 00 F7 [18:52:57]Write i2c OK [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: E2 [18:52:57]MH_I2C_Read... [18:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:57]Read from MH i2c: E2 03 00 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: E2 03 00 67 1E 00 90 00 F9 [18:52:57]RAPDU: 90 00 [18:52:57]wFMCommunicate OK [18:52:57]SAM_PROTO_ClearQueue done [18:52:57]KKMCreateOFDPacket [18:52:57]OFDProtocolAddRootSTLVToBuf [18:52:57]FM_MakeSignedData [18:52:57]FM_MakeSignedData [18:52:57]SAM_PROTO_SignData [18:52:57]wFMCommunicate request_size=4 [18:52:57]MH_SAM_APDU [18:52:57]CAPDU: 80 0D 01 02 [18:52:57]Write to MH i2c: E2 08 00 68 1E 80 0D 01 02 00 00 00 00 FF [18:52:57]Write i2c OK [18:52:57]MH_I2C_Read... [18:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:57]Read from MH i2c: E2 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: E2 03 00 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: E2 03 00 68 1E 00 90 00 FA [18:52:57]RAPDU: 90 00 [18:52:57]wFMCommunicate OK [18:52:57]wFMCommunicate request_size=255 [18:52:57]MH_SAM_APDU [18:52: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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 10 CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B5 01 00 35 04 06 00 E8 [18:52:57]Write to MH i2c: E2 02 01 69 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 10 CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B5 01 00 35 04 06 00 E8 00 00 86 [18:52:57]Write i2c OK [18:52:57]MH_I2C_Read... [18:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:57]Read from MH i2c: E2 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: E2 03 00 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: E2 03 00 69 1E 00 90 00 FB [18:52:57]RAPDU: 90 00 [18:52:57]wFMCommunicate OK [18:52:57]wFMCommunicate request_size=10 [18:52:57]MH_SAM_APDU [18:52:57]CAPDU: 80 0D 02 02 05 53 BD 92 69 08 [18:52:57]Write to MH i2c: E2 0D 00 6A 1E 80 0D 02 02 05 00 53 BD 92 69 08 00 00 1F [18:52:57]Write i2c OK [18:52:57]MH_I2C_Read... [18:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:57]Read from MH i2c: E2 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: E2 03 00 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [18:52:57]RAPDU: 90 00 [18:52:57]wFMCommunicate OK [18:52:57]wFMCommunicate request_size=4 [18:52:57]MH_SAM_APDU [18:52:57]CAPDU: 80 0D 03 02 [18:52:57]Write to MH i2c: E2 08 00 6B 1E 80 0D 03 02 00 00 00 00 04 [18:52:57]Write i2c OK [18:52:57]MH_I2C_Read... [18:52:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:57]Read from MH i2c: E2 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: E2 0B 00 [18:52:57]MH_I2C_Read... [18:52:57]Read from MH i2c: E2 0B 00 6B 1E 00 CA F3 6E DF BD 4A 89 90 90 00 2F [18:52:57]RAPDU: CA F3 6E DF BD 4A 89 90 90 00 [18:52:57]wFMCommunicate OK [18:52:57]SAM_PROTO_SignData done [18:52:57]FM_MakeSignedData done [18:52:57]CreateOFDProtocolMessage [18:52:57]wFMCommunicate request_size=4 [18:52:57]MH_SAM_APDU [18:52:57]CAPDU: 80 11 00 00 [18:52:57]Write to MH i2c: E2 08 00 6C 1E 80 11 00 00 00 00 00 00 04 [18:52:57]Write i2c OK [18:52:57]MH_I2C_Read... [18:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:58]Read from MH i2c: E2 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 17 00 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: E2 17 00 6C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 56 [18:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:52:58]wFMCommunicate OK [18:52:58]CreateOFDProtocolMessage done [18:52:58]OFDSenderStorePacket 112036 [18:52:58]StoreOFDPacket docnum=112036 [18:52:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C E2 07 01 58 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 10 CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B5 01 00 35 04 06 00 E8 53 BD 92 69 08 CA F3 6E DF BD 4A 89 90 [18:52:58]CheckFolder [18:52:58]dirname=/storage/ofd_packets [18:52:58]CheckFolder done [18:52:58]ProducePacketName [18:52:58]name=ofd_packets/00112036 [18:52:58]NVStorageSaveData ofd_packets/00112036 [18:52:58]File name is /storage/ofd_packets/00112036 [18:52:58]Write 301 bytes [18:52:58]NVStorageSaveData done [18:52:58]OFDSenderStorePacket done [18:52:58]KKMCreateOFDPacket done [18:52:58]NVStorageSaveData kkm_last_timestamp [18:52:58]File name is /storage/kkm_last_timestamp [18:52:58]Write 4 bytes [18:52:58]NVStorageSaveData done [18:52:58]ExternCall_PrintAddStr [18:52:58]wPrintStart [18:52:58]Write to MH i2c: 01 00 00 6D 1E 8B [18:52:58]Write i2c OK [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: 01 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: 01 07 00 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: 01 07 00 6D 1E 00 00 00 00 00 FF 0F A0 [18:52:58]RasterBufferAndPrint [18:52:58]line 小褔械褌 N : (1)320687 [18:52:58]line 袠袧袧: 02508201610067 [18:52:58]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:52:58]line 袩袪袨袛袗袞袗 [18:52:58]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:52:58]line 孝芯胁邪褉: 2710124130 [18:52:58]line 袗懈-92-袣-5 [18:52:58]line 5.000 * 66.40 [18:52:58]line = 332.00 [18:52:58]line 袧袛小 12% 袧小袩 1% [18:52:58]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:52:58]line 袠孝袨袚袨: 332.00 [18:52:58]line 袧小袩 1% : 2.94 [18:52:58]line 袧袛小 12% : 35.26 [18:52:58]line 袧邪谢懈褔薪褘屑懈: 332.00 [18:52:58]line 袘械蟹薪邪谢.: 0.00 [18:52:58]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:52:58]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:52:58]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:52:58]line 效械泻 204 21.06.2024 18:53 [18:52:58]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:52:58]line 袟袧袦: 0300000198 [18:52:58]line 袪袧袦: 0000000000092771 [18:52:58]line 袙械褉褋懈褟 袣袣袦: 001 [18:52:58]line 肖袦: 0000000000875083 [18:52:58]line 肖袛: 112036 [18:52:58]line 肖袩袛: 255446360418568 [18:52:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185304&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112036&fm=255446360418568&tin=02508201610067®Number=0000000000092771&sum=33200 [18:52:58]OFD Sender: Processing packet 112036 [packets to send 38, broken 37] [18:52:58]ProducePacketName [18:52:58]name=ofd_packets/00112036 [18:52:58]OFD Sender: To server: 嚂鰌G, [18:52:58]CommunicateWithHost lk.salyk.kg:30040 [18:52:58]ConnectInit lk.salyk.kg [18:52:58]written 0, free lines is 4095 [18:52:58]Connected sock=10 [18:52:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C E2 07 01 58 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 10 CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B5 01 00 35 04 06 00 E8 53 BD 92 69 08 CA F3 6E DF BD 4A 89 90 [18:52:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F AE 47 00 1E 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 30 38 37 35 30 38 33 10 04 04 00 A4 B5 01 00 F4 03 04 00 33 63 75 66 B6 04 01 00 00 49 09 13 62 44 21 F7 BC [18:52:58]CommunicateWithHost err = 0 [18:52:58]CheckOFDResponse [18:52:58]1017 (14) - 77093643461234 [18:52:58]1041 (16) - 0000000000875083 [18:52:58]1040 (4) - 112036 [18:52:58]1012 (4) - 21.06.2024 11:25 [18:52:58]1206 (1) - 0 [18:52:58]OFD Sender: Remove packet 112036 [18:52:58]ProducePacketName [18:52:58]name=ofd_packets/00112036 [18:52:58]NVStorageDeleteData [18:52:58]Write to MH i2c: 01 00 00 95 1E B3 [18:52:58]Write i2c OK [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: 01 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: 01 07 00 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: 01 07 00 95 1E 00 00 00 00 00 12 0D D9 [18:52:58]RasterBufferAndPrint [18:52:58]line [18:52:58]line [18:52:58]line [18:52:58]line [18:52:58]line [18:52:58]written 0, free lines is 3353 [18:52:58]MH_Cut [18:52:58]Write to MH i2c: D1 01 00 9C 1E 01 8C [18:52:58]Write i2c OK [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: D1 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: D1 01 00 [18:52:58]MH_I2C_Read... [18:52:58]Read from MH i2c: D1 01 00 9C 1E 00 8B [18:52:58]Write to MH i2c: 01 00 00 9D 1E BB [18:52:58]Write i2c OK [18:52:58]MH_I2C_Read... [18:52:59]OFD Sender: No OFD packet to send [18:52:59]*** Cut start [18:52:59]*** Partial cut [18:52:59]*** CUTSNS_PIN = 1 [18:52:59]*** CUTSNS_PIN = 0 [18:52:59]*** Brake cut motor [18:53:00]Read from MH i2c: 01 [18:53:00]MH_I2C_Read... [18:53:00]*** Stop cut motor [18:53:00]*** Cut end [18:53:00]Read from MH i2c: 01 07 00 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: 01 07 00 9D 1E 00 00 00 00 00 FF 0F D0 [18:53:00]process_action close_receipt done [18:53:00]requested_data is exist [18:53:00]produce_requested_data [18:53:00]requested_item fm.sn is exist - process it [18:53:00]wFMCommunicate request_size=4 [18:53:00]MH_SAM_APDU [18:53:00]CAPDU: 80 11 00 00 [18:53:00]Write to MH i2c: E2 08 00 9E 1E 80 11 00 00 00 00 00 00 36 [18:53:00]Write i2c OK [18:53:00]MH_I2C_Read... [18:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:00]Read from MH i2c: E2 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: E2 17 00 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: E2 17 00 9E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [18:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:53:00]wFMCommunicate OK [18:53:00]requested_item fd.num is exist - process it [18:53:00]SAM_PROTO_GetFieldsCounters [18:53:00]wFMCommunicate request_size=4 [18:53:00]MH_SAM_APDU [18:53:00]CAPDU: 80 13 00 00 [18:53:00]Write to MH i2c: E2 08 00 9F 1E 80 13 00 00 00 00 00 00 39 [18:53:00]Write i2c OK [18:53:00]MH_I2C_Read... [18:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:00]Read from MH i2c: E2 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: E2 62 00 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: E2 62 00 9F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A4 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [18:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A4 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:00]wFMCommunicate OK [18:53:00]SAM_PROTO_GetFieldsCounters done [18:53:00]requested_item shift.num is exist - process it [18:53:00]requested_item shift.opened is exist - process it [18:53:00]req_shift_opened [18:53:00]FM_GetShiftState [18:53:00]SAM_PROTO_GetShiftState [18:53:00]wFMCommunicate request_size=4 [18:53:00]MH_SAM_APDU [18:53:00]CAPDU: 80 13 01 00 [18:53:00]Write to MH i2c: E2 08 00 A0 1E 80 13 01 00 00 00 00 00 3B [18:53:00]Write i2c OK [18:53:00]MH_I2C_Read... [18:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:00]Read from MH i2c: E2 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: E2 0E 00 [18:53:00]MH_I2C_Read... [18:53:00]Read from MH i2c: E2 0E 00 A0 1E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B8 [18:53:00]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:53:00]wFMCommunicate OK [18:53:00]SAM_PROTO_GetShiftState done [18:53:00]FM_GetShiftState done [18:53:00]req_shift_opened done [18:53:00]requested_item shift.open_date is exist - process it [18:53:00]req_shift_open_date [18:53:00]req_shift_open_date done [18:53:00]produce_requested_data done [18:53:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112036,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:53:00]process_action_free close_receipt [18:53:00]json_value_free [18:53:00]json_value_free done [18:53:00]process_json_proto returns [18:53:00]Send response to host [18:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112036,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:53:00]free response buf [18:53:00]execute_script done [18:53:00]execute_script returns [18:53:00]free content buf [18:53:00]Sock 9.Close socket [18:53:00]Sock 9.Thread stoped [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:58]accept exits with 7 [18:53:58]New connection [18:53:58]New thread 3066875236 created [18:53:58]Thread 3066731876 joined [18:53:58]Waiting for new connection... [18:53:58] Sock 7.Parse request [18:53:58]Sock 7.Check first char [18:53:58]Sock 7.First char is OK [18:53:58]request: POST /json_proto HTTP/1.0 [18:53:58]Method: POST [18:53:58]URL: /json_proto [18:53:58]Method is POST - this is cgi request [18:53:58]url: /json_proto [18:53:58]query_string will be loaded in cgi processing [18:53:58]execute_cgi json_proto POST (null) [18:53:58]execute_cgi path=json_proto method=POST [18:53:58]POST find Content-Length [18:53:58]Host: 172.17.59.68:8080 [18:53:58]Content-Length: 639 [18:53:58]Content-Type: application/json [18:53:58] [18:53:58]POST finish read [18:53:58]Found Content-Length = 639 [18:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:58]execute_script... [18:53: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)320688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:58]POST & json_proto [18:53:58]process_json_proto [18:53:58]json parsed OK: [18:53:58]protocol is kg_v1.0 [18:53:58]action value=close_receipt [18:53:58]process_action close_receipt [18:53:58]cmd_close_receipt [18:53:58]MH_GetDate [18:53:58]Write to MH i2c: F0 00 00 A1 1E AE [18:53:58]Write i2c OK [18:53:58]MH_I2C_Read... [18:53:58]Read from MH i2c: F0 [18:53:58]MH_I2C_Read... [18:53:58]Read from MH i2c: F0 09 00 [18:53:58]MH_I2C_Read... [18:53:58]Read from MH i2c: F0 09 00 A1 1E 00 4E CC 75 66 BC EC 60 65 19 [18:53:58]GetLastDocTimeStamp 1718995984 [18:53:58]current date 1718996046 [18:53:58]FM_GetShiftState [18:53:58]SAM_PROTO_GetShiftState [18:53:58]wFMCommunicate request_size=4 [18:53:58]MH_SAM_APDU [18:53:58]CAPDU: 80 13 01 00 [18:53:58]Write to MH i2c: E2 08 00 A2 1E 80 13 01 00 00 00 00 00 3D [18:53:58]Write i2c OK [18:53:58]MH_I2C_Read... [18:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:58]Read from MH i2c: E2 [18:53:58]MH_I2C_Read... [18:53:58]Read from MH i2c: E2 0E 00 [18:53:58]MH_I2C_Read... [18:53:58]Read from MH i2c: E2 0E 00 A2 1E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 BA [18:53:58]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:53:58]wFMCommunicate OK [18:53:58]SAM_PROTO_GetShiftState done [18:53:58]FM_GetShiftState done [18:53:58]opened in 1718933695 [18:53:58]opened+sec_in_day 1719020095 [18:53:58]quantity*price = 33200 [18:53:58]sum+1 = 33201 [18:53:58]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 332.00 袧小袩 1% : 2.94 袧袛小 12% : 35.26 袧邪谢懈褔薪褘屑懈: 332.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 205 21.06.2024 18:54 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112037 肖袩袛: 213190301709528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185406&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112037&fm=213190301709528&tin=02508201610067®Number=0000000000092771&sum=33200 [18:53:59]StoreToDocumentArchive [18:53:59]shift 390 fd 112037 [18:53:59]save to /storage/0390/doc_00112037 [18:53:59]save last doc name /storage/0390/doc_00112037 to /storage/kkm_last_doc_name [18:53:59]save OK [18:53:59]Clear old archive folders... [18:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:59]tlvbuf is B6EAE3D0 [18:53:59]SAM_PROTO_ClearQueue [18:53:59]wFMCommunicate request_size=4 [18:53:59]MH_SAM_APDU [18:53:59]CAPDU: 80 09 00 00 [18:53:59]Write to MH i2c: E2 08 00 AF 1E 80 09 00 00 00 00 00 00 3F [18:53:59]Write i2c OK [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 [18:53:59]MH_I2C_Read... [18:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:59]Read from MH i2c: E2 03 00 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 03 00 AF 1E 00 90 00 41 [18:53:59]RAPDU: 90 00 [18:53:59]wFMCommunicate OK [18:53:59]SAM_PROTO_ClearQueue done [18:53:59]KKMCreateOFDPacket [18:53:59]OFDProtocolAddRootSTLVToBuf [18:53:59]FM_MakeSignedData [18:53:59]FM_MakeSignedData [18:53:59]SAM_PROTO_SignData [18:53:59]wFMCommunicate request_size=4 [18:53:59]MH_SAM_APDU [18:53:59]CAPDU: 80 0D 01 02 [18:53:59]Write to MH i2c: E2 08 00 B0 1E 80 0D 01 02 00 00 00 00 47 [18:53:59]Write i2c OK [18:53:59]MH_I2C_Read... [18:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:59]Read from MH i2c: E2 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 03 00 [18:53:59]MH_I2C_Read... [18:53:59]Read from MH i2c: E2 03 00 B0 1E 00 90 00 42 [18:53:59]RAPDU: 90 00 [18:53:59]wFMCommunicate OK [18:53:59]wFMCommunicate request_size=255 [18:53:59]MH_SAM_APDU [18:53:59]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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 4E CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B5 01 00 35 04 06 00 C1 [18:53:59]Write to MH i2c: E2 02 01 B1 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 4E CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B5 01 00 35 04 06 00 C1 00 00 E7 [18:53:59]Write i2c OK [18:53:59]MH_I2C_Read... [18:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:00]Read from MH i2c: E2 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: E2 03 00 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: E2 03 00 B1 1E 00 90 00 43 [18:54:00]RAPDU: 90 00 [18:54:00]wFMCommunicate OK [18:54:00]wFMCommunicate request_size=10 [18:54:00]MH_SAM_APDU [18:54:00]CAPDU: 80 0D 02 02 05 E5 3C 33 F4 D8 [18:54:00]Write to MH i2c: E2 0D 00 B2 1E 80 0D 02 02 05 00 E5 3C 33 F4 D8 00 00 74 [18:54:00]Write i2c OK [18:54:00]MH_I2C_Read... [18:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:00]Read from MH i2c: E2 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: E2 03 00 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: E2 03 00 B2 1E 00 90 00 44 [18:54:00]RAPDU: 90 00 [18:54:00]wFMCommunicate OK [18:54:00]wFMCommunicate request_size=4 [18:54:00]MH_SAM_APDU [18:54:00]CAPDU: 80 0D 03 02 [18:54:00]Write to MH i2c: E2 08 00 B3 1E 80 0D 03 02 00 00 00 00 4C [18:54:00]Write i2c OK [18:54:00]MH_I2C_Read... [18:54:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:00]Read from MH i2c: E2 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: E2 0B 00 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: E2 0B 00 B3 1E 00 60 94 0A A7 D3 90 50 C5 90 00 6A [18:54:00]RAPDU: 60 94 0A A7 D3 90 50 C5 90 00 [18:54:00]wFMCommunicate OK [18:54:00]SAM_PROTO_SignData done [18:54:00]FM_MakeSignedData done [18:54:00]CreateOFDProtocolMessage [18:54:00]wFMCommunicate request_size=4 [18:54:00]MH_SAM_APDU [18:54:00]CAPDU: 80 11 00 00 [18:54:00]Write to MH i2c: E2 08 00 B4 1E 80 11 00 00 00 00 00 00 4C [18:54:00]Write i2c OK [18:54:00]MH_I2C_Read... [18:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:00]Read from MH i2c: E2 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: E2 17 00 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: E2 17 00 B4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [18:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:54:00]wFMCommunicate OK [18:54:00]CreateOFDProtocolMessage done [18:54:00]OFDSenderStorePacket 112037 [18:54:00]StoreOFDPacket docnum=112037 [18:54:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FB 9C 07 01 67 E2 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 4E CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B5 01 00 35 04 06 00 C1 E5 3C 33 F4 D8 60 94 0A A7 D3 90 50 C5 [18:54:00]CheckFolder [18:54:00]dirname=/storage/ofd_packets [18:54:00]CheckFolder done [18:54:00]ProducePacketName [18:54:00]name=ofd_packets/00112037 [18:54:00]NVStorageSaveData ofd_packets/00112037 [18:54:00]File name is /storage/ofd_packets/00112037 [18:54:00]Write 301 bytes [18:54:00]NVStorageSaveData done [18:54:00]OFDSenderStorePacket done [18:54:00]KKMCreateOFDPacket done [18:54:00]NVStorageSaveData kkm_last_timestamp [18:54:00]File name is /storage/kkm_last_timestamp [18:54:00]Write 4 bytes [18:54:00]NVStorageSaveData done [18:54:00]ExternCall_PrintAddStr [18:54:00]wPrintStart [18:54:00]Write to MH i2c: 01 00 00 B5 1E D3 [18:54:00]Write i2c OK [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: 01 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: 01 07 00 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: 01 07 00 B5 1E 00 00 00 00 00 FF 0F E8 [18:54:00]RasterBufferAndPrint [18:54:00]line 小褔械褌 N : (1)320688 [18:54:00]line 袠袧袧: 02508201610067 [18:54:00]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:54:00]line 袩袪袨袛袗袞袗 [18:54:00]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:54:00]line 孝芯胁邪褉: 2710124130 [18:54:00]line 袗懈-92-袣-5 [18:54:00]line 5.000 * 66.40 [18:54:00]line = 332.00 [18:54:00]line 袧袛小 12% 袧小袩 1% [18:54:00]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:54:00]line 袠孝袨袚袨: 332.00 [18:54:00]line 袧小袩 1% : 2.94 [18:54:00]line 袧袛小 12% : 35.26 [18:54:00]line 袧邪谢懈褔薪褘屑懈: 332.00 [18:54:00]line 袘械蟹薪邪谢.: 0.00 [18:54:00]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:54:00]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:54:00]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:54:00]line 效械泻 205 21.06.2024 18:54 [18:54:00]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:54:00]line 袟袧袦: 0300000198 [18:54:00]line 袪袧袦: 0000000000092771 [18:54:00]line 袙械褉褋懈褟 袣袣袦: 001 [18:54:00]line 肖袦: 0000000000875083 [18:54:00]line 肖袛: 112037 [18:54:00]line 肖袩袛: 213190301709528 [18:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185406&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112037&fm=213190301709528&tin=02508201610067®Number=0000000000092771&sum=33200 [18:54:00]OFD Sender: Processing packet 112037 [packets to send 38, broken 37] [18:54:00]ProducePacketName [18:54:00]name=ofd_packets/00112037 [18:54:00]OFD Sender: To server: 嚂鰌G, [18:54:00]CommunicateWithHost lk.salyk.kg:30040 [18:54:00]ConnectInit lk.salyk.kg [18:54:00]written 0, free lines is 4095 [18:54:00]Connected sock=10 [18:54:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FB 9C 07 01 67 E2 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 4E CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B5 01 00 35 04 06 00 C1 E5 3C 33 F4 D8 60 94 0A A7 D3 90 50 C5 [18:54:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D0 4D 47 00 D6 77 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 30 38 37 35 30 38 33 10 04 04 00 A5 B5 01 00 F4 03 04 00 71 63 75 66 B6 04 01 00 00 E1 73 2B 5C B0 F4 F2 13 [18:54:00]CommunicateWithHost err = 0 [18:54:00]CheckOFDResponse [18:54:00]1017 (14) - 77093643461234 [18:54:00]1041 (16) - 0000000000875083 [18:54:00]1040 (4) - 112037 [18:54:00]1012 (4) - 21.06.2024 11:26 [18:54:00]1206 (1) - 0 [18:54:00]OFD Sender: Remove packet 112037 [18:54:00]ProducePacketName [18:54:00]name=ofd_packets/00112037 [18:54:00]NVStorageDeleteData [18:54:00]Write to MH i2c: 01 00 00 DD 1E FB [18:54:00]Write i2c OK [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: 01 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: 01 07 00 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: 01 07 00 DD 1E 00 00 00 00 00 0E 0D 1D [18:54:00]RasterBufferAndPrint [18:54:00]line [18:54:00]line [18:54:00]line [18:54:00]line [18:54:00]line [18:54:00]written 0, free lines is 3348 [18:54:00]MH_Cut [18:54:00]Write to MH i2c: D1 01 00 E4 1E 01 D4 [18:54:00]Write i2c OK [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: D1 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: D1 01 00 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: D1 01 00 E4 1E 00 D3 [18:54:00]Write to MH i2c: 01 00 00 E5 1E 03 [18:54:00]Write i2c OK [18:54:00]MH_I2C_Read... [18:54:01]OFD Sender: No OFD packet to send [18:54:01]*** Cut start [18:54:01]*** Partial cut [18:54:01]*** CUTSNS_PIN = 1 [18:54:01]*** CUTSNS_PIN = 0 [18:54:01]*** Brake cut motor [18:54:02]Read from MH i2c: 01 [18:54:02]MH_I2C_Read... [18:54:02]*** Stop cut motor [18:54:02]*** Cut end [18:54:02]Read from MH i2c: 01 07 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: 01 07 00 E5 1E 00 00 00 00 00 FF 0F 18 [18:54:02]process_action close_receipt done [18:54:02]requested_data is exist [18:54:02]produce_requested_data [18:54:02]requested_item fm.sn is exist - process it [18:54:02]wFMCommunicate request_size=4 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 11 00 00 [18:54:02]Write to MH i2c: E2 08 00 E6 1E 80 11 00 00 00 00 00 00 7E [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 17 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 17 00 E6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D0 [18:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:54:02]wFMCommunicate OK [18:54:02]requested_item fd.num is exist - process it [18:54:02]SAM_PROTO_GetFieldsCounters [18:54:02]wFMCommunicate request_size=4 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 13 00 00 [18:54:02]Write to MH i2c: E2 08 00 E7 1E 80 13 00 00 00 00 00 00 81 [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 62 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 62 00 E7 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A5 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [18:54:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A5 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:02]wFMCommunicate OK [18:54:02]SAM_PROTO_GetFieldsCounters done [18:54:02]requested_item shift.num is exist - process it [18:54:02]requested_item shift.opened is exist - process it [18:54:02]req_shift_opened [18:54:02]FM_GetShiftState [18:54:02]SAM_PROTO_GetShiftState [18:54:02]wFMCommunicate request_size=4 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 13 01 00 [18:54:02]Write to MH i2c: E2 08 00 E8 1E 80 13 01 00 00 00 00 00 83 [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:02]Read from MH i2c: E2 0E 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 0E 00 E8 1E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 00 [18:54:02]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:54:02]wFMCommunicate OK [18:54:02]SAM_PROTO_GetShiftState done [18:54:02]FM_GetShiftState done [18:54:02]req_shift_opened done [18:54:02]requested_item shift.open_date is exist - process it [18:54:02]req_shift_open_date [18:54:02]req_shift_open_date done [18:54:02]produce_requested_data done [18:54:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112037,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:54:02]process_action_free close_receipt [18:54:02]json_value_free [18:54:02]json_value_free done [18:54:02]process_json_proto returns [18:54:02]Send response to host [18:54:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112037,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:54:02]free response buf [18:54:02]execute_script done [18:54:02]execute_script returns [18:54:02]free content buf [18:54:02]Sock 7.Close socket [18:54:02]Sock 7.Thread stoped [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:48]accept exits with 9 [18:54:48]New connection [18:54:48]New thread 3066731876 created [18:54:48]Thread 3066875236 joined [18:54:48]Waiting for new connection... [18:54:48] Sock 9.Parse request [18:54:48]Sock 9.Check first char [18:54:48]Sock 9.First char is OK [18:54:48]request: POST /json_proto HTTP/1.0 [18:54:48]Method: POST [18:54:48]URL: /json_proto [18:54:48]Method is POST - this is cgi request [18:54:48]url: /json_proto [18:54:48]query_string will be loaded in cgi processing [18:54:48]execute_cgi json_proto POST (null) [18:54:48]execute_cgi path=json_proto method=POST [18:54:48]POST find Content-Length [18:54:48]Host: 172.17.59.68:8080 [18:54:48]Content-Length: 677 [18:54:48]Content-Type: application/json [18:54:48] [18:54:48]POST finish read [18:54:48]Found Content-Length = 677 [18:54:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:48]execute_script... [18:54: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)320689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:48]POST & json_proto [18:54:48]process_json_proto [18:54:48]json parsed OK: [18:54:48]protocol is kg_v1.0 [18:54:48]action value=close_receipt [18:54:48]process_action close_receipt [18:54:48]cmd_close_receipt [18:54:48]MH_GetDate [18:54:48]Write to MH i2c: F0 00 00 E9 1E F6 [18:54:48]Write i2c OK [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: F0 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: F0 09 00 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: F0 09 00 E9 1E 00 7F CC 75 66 BC EC 60 65 92 [18:54:48]GetLastDocTimeStamp 1718996046 [18:54:48]current date 1718996095 [18:54:48]FM_GetShiftState [18:54:48]SAM_PROTO_GetShiftState [18:54:48]wFMCommunicate request_size=4 [18:54:48]MH_SAM_APDU [18:54:48]CAPDU: 80 13 01 00 [18:54:48]Write to MH i2c: E2 08 00 EA 1E 80 13 01 00 00 00 00 00 85 [18:54:48]Write i2c OK [18:54:48]MH_I2C_Read... [18:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:48]Read from MH i2c: E2 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 0E 00 [18:54:48]MH_I2C_Read... [18:54:48]Read from MH i2c: E2 0E 00 EA 1E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 02 [18:54:48]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:54:48]wFMCommunicate OK [18:54:48]SAM_PROTO_GetShiftState done [18:54:48]FM_GetShiftState done [18:54:48]opened in 1718933695 [18:54:48]opened+sec_in_day 1719020095 [18:54:48]quantity*price = 30012 [18:54:48]sum+1 = 30014 [18:54:48]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 206 21.06.2024 18:54 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112038 肖袩袛: 93357762299916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112038&fm=93357762299916&tin=02508201610067®Number=0000000000092771&sum=30000 [18:54:49]StoreToDocumentArchive [18:54:49]shift 390 fd 112038 [18:54:49]save to /storage/0390/doc_00112038 [18:54:49]save last doc name /storage/0390/doc_00112038 to /storage/kkm_last_doc_name [18:54:49]save OK [18:54:49]Clear old archive folders... [18:54:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:49]tlvbuf is 00465780 [18:54:49]SAM_PROTO_ClearQueue [18:54:49]wFMCommunicate request_size=4 [18:54:49]MH_SAM_APDU [18:54:49]CAPDU: 80 09 00 00 [18:54:49]Write to MH i2c: E2 08 00 F7 1E 80 09 00 00 00 00 00 00 87 [18:54:49]Write i2c OK [18:54:49]MH_I2C_Read... [18:54:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:49]Read from MH i2c: E2 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: E2 03 00 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: E2 03 00 F7 1E 00 90 00 89 [18:54:49]RAPDU: 90 00 [18:54:49]wFMCommunicate OK [18:54:49]SAM_PROTO_ClearQueue done [18:54:49]KKMCreateOFDPacket [18:54:49]OFDProtocolAddRootSTLVToBuf [18:54:49]FM_MakeSignedData [18:54:49]FM_MakeSignedData [18:54:49]SAM_PROTO_SignData [18:54:49]wFMCommunicate request_size=4 [18:54:49]MH_SAM_APDU [18:54:49]CAPDU: 80 0D 01 02 [18:54:49]Write to MH i2c: E2 08 00 F8 1E 80 0D 01 02 00 00 00 00 8F [18:54:49]Write i2c OK [18:54:49]MH_I2C_Read... [18:54:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:49]Read from MH i2c: E2 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: E2 03 00 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: E2 03 00 F8 1E 00 90 00 8A [18:54:49]RAPDU: 90 00 [18:54:49]wFMCommunicate OK [18:54:49]wFMCommunicate request_size=255 [18:54:49]MH_SAM_APDU [18:54:49]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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 CE 00 00 00 F4 03 04 00 7F CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B5 01 00 35 04 06 00 54 [18:54:49]Write to MH i2c: E2 02 01 F9 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 CE 00 00 00 F4 03 04 00 7F CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B5 01 00 35 04 06 00 54 00 00 0C [18:54:49]Write i2c OK [18:54:49]MH_I2C_Read... [18:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:49]Read from MH i2c: E2 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: E2 03 00 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: E2 03 00 F9 1E 00 90 00 8B [18:54:49]RAPDU: 90 00 [18:54:49]wFMCommunicate OK [18:54:49]wFMCommunicate request_size=10 [18:54:49]MH_SAM_APDU [18:54:49]CAPDU: 80 0D 02 02 05 E8 8C 42 48 0C [18:54:49]Write to MH i2c: E2 0D 00 FA 1E 80 0D 02 02 05 00 E8 8C 42 48 0C 00 00 A6 [18:54:49]Write i2c OK [18:54:49]MH_I2C_Read... [18:54:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:49]Read from MH i2c: E2 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: E2 03 00 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: E2 03 00 FA 1E 00 90 00 8C [18:54:49]RAPDU: 90 00 [18:54:49]wFMCommunicate OK [18:54:49]wFMCommunicate request_size=4 [18:54:49]MH_SAM_APDU [18:54:49]CAPDU: 80 0D 03 02 [18:54:49]Write to MH i2c: E2 08 00 FB 1E 80 0D 03 02 00 00 00 00 94 [18:54:49]Write i2c OK [18:54:49]MH_I2C_Read... [18:54:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:49]Read from MH i2c: E2 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: E2 0B 00 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: E2 0B 00 FB 1E 00 F4 A0 5B EC 9A 4D FE 17 90 00 6C [18:54:49]RAPDU: F4 A0 5B EC 9A 4D FE 17 90 00 [18:54:49]wFMCommunicate OK [18:54:49]SAM_PROTO_SignData done [18:54:49]FM_MakeSignedData done [18:54:49]CreateOFDProtocolMessage [18:54:49]wFMCommunicate request_size=4 [18:54:49]MH_SAM_APDU [18:54:49]CAPDU: 80 11 00 00 [18:54:49]Write to MH i2c: E2 08 00 FC 1E 80 11 00 00 00 00 00 00 94 [18:54:49]Write i2c OK [18:54:49]MH_I2C_Read... [18:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:49]Read from MH i2c: E2 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: E2 17 00 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: E2 17 00 FC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [18:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:54:49]wFMCommunicate OK [18:54:49]CreateOFDProtocolMessage done [18:54:49]OFDSenderStorePacket 112038 [18:54:49]StoreOFDPacket docnum=112038 [18:54:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8F 12 07 01 59 9A 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 CE 00 00 00 F4 03 04 00 7F CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B5 01 00 35 04 06 00 54 E8 8C 42 48 0C F4 A0 5B EC 9A 4D FE 17 [18:54:49]CheckFolder [18:54:49]dirname=/storage/ofd_packets [18:54:49]CheckFolder done [18:54:49]ProducePacketName [18:54:49]name=ofd_packets/00112038 [18:54:49]NVStorageSaveData ofd_packets/00112038 [18:54:49]File name is /storage/ofd_packets/00112038 [18:54:49]Write 301 bytes [18:54:49]NVStorageSaveData done [18:54:49]OFDSenderStorePacket done [18:54:49]KKMCreateOFDPacket done [18:54:49]NVStorageSaveData kkm_last_timestamp [18:54:49]File name is /storage/kkm_last_timestamp [18:54:49]Write 4 bytes [18:54:49]NVStorageSaveData done [18:54:49]ExternCall_PrintAddStr [18:54:49]wPrintStart [18:54:49]Write to MH i2c: 01 00 00 FD 1E 1B [18:54:49]Write i2c OK [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: 01 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: 01 07 00 [18:54:49]MH_I2C_Read... [18:54:49]Read from MH i2c: 01 07 00 FD 1E 00 00 00 00 00 FF 0F 30 [18:54:49]RasterBufferAndPrint [18:54:49]line 小褔械褌 N : (1)320689 [18:54:49]line 袠袧袧: 02508201610067 [18:54:49]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:54:49]line 袩袪袨袛袗袞袗 [18:54:49]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:54:49]line 孝芯胁邪褉: 2710124130 [18:54:49]line 袗懈-92-袣-5 [18:54:49]line 4.520 * 66.40 [18:54:49]line = 300.13 [18:54:49]line 袧袛小 12% 袧小袩 1% [18:54:49]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:54:49]line 袨袣袪校袚袥袝袧袠袝: -0.13 [18:54:49]line 袠孝袨袚袨: 300.00 [18:54:49]line 袙薪械褋械薪芯: 300.00 [18:54:49]line 小袛袗效袗: 0.00 [18:54:49]line 袧小袩 1% : 2.66 [18:54:49]line 袧袛小 12% : 31.87 [18:54:49]line 袧邪谢懈褔薪褘屑懈: 300.00 [18:54:49]line 袘械蟹薪邪谢.: 0.00 [18:54:49]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:54:49]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:54:49]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:54:49]line 效械泻 206 21.06.2024 18:54 [18:54:49]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:54:49]line 袟袧袦: 0300000198 [18:54:49]line 袪袧袦: 0000000000092771 [18:54:49]line 袙械褉褋懈褟 袣袣袦: 001 [18:54:49]line 肖袦: 0000000000875083 [18:54:49]line 肖袛: 112038 [18:54:49]line 肖袩袛: 93357762299916 [18:54:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112038&fm=93357762299916&tin=02508201610067®Number=0000000000092771&sum=30000 [18:54:50]OFD Sender: Processing packet 112038 [packets to send 38, broken 37] [18:54:50]ProducePacketName [18:54:50]name=ofd_packets/00112038 [18:54:50]OFD Sender: To server: 嚂鰌G, [18:54:50]CommunicateWithHost lk.salyk.kg:30040 [18:54:50]ConnectInit lk.salyk.kg [18:54:50]written 0, free lines is 4095 [18:54:50]Connected sock=10 [18:54:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8F 12 07 01 59 9A 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 CE 00 00 00 F4 03 04 00 7F CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B5 01 00 35 04 06 00 54 E8 8C 42 48 0C F4 A0 5B EC 9A 4D FE 17 [18:54:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B1 32 47 00 1B C2 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 30 38 37 35 30 38 33 10 04 04 00 A6 B5 01 00 F4 03 04 00 A3 63 75 66 B6 04 01 00 00 6B 7D 20 61 A5 98 1B 6D [18:54:50]CommunicateWithHost err = 0 [18:54:50]CheckOFDResponse [18:54:50]1017 (14) - 77093643461234 [18:54:50]1041 (16) - 0000000000875083 [18:54:50]1040 (4) - 112038 [18:54:50]1012 (4) - 21.06.2024 11:27 [18:54:50]1206 (1) - 0 [18:54:50]OFD Sender: Remove packet 112038 [18:54:50]ProducePacketName [18:54:50]name=ofd_packets/00112038 [18:54:50]NVStorageDeleteData [18:54:50]Write to MH i2c: 01 00 00 28 1F 47 [18:54:50]Write i2c OK [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: 01 [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: 01 07 00 [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: 01 07 00 28 1F 00 00 00 00 00 F2 0C 4C [18:54:50]RasterBufferAndPrint [18:54:50]line [18:54:50]line [18:54:50]line [18:54:50]line [18:54:50]line [18:54:50]written 0, free lines is 3320 [18:54:50]MH_Cut [18:54:50]Write to MH i2c: D1 01 00 2F 1F 01 20 [18:54:50]Write i2c OK [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: D1 [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: D1 01 00 [18:54:50]MH_I2C_Read... [18:54:50]Read from MH i2c: D1 01 00 2F 1F 00 1F [18:54:50]Write to MH i2c: 01 00 00 30 1F 4F [18:54:50]Write i2c OK [18:54:50]MH_I2C_Read... [18:54:50]OFD Sender: No OFD packet to send [18:54:51]*** Cut start [18:54:51]*** Partial cut [18:54:51]*** CUTSNS_PIN = 1 [18:54:51]*** CUTSNS_PIN = 0 [18:54:51]*** Brake cut motor [18:54:51]Read from MH i2c: 01 [18:54:51]MH_I2C_Read... [18:54:51]*** Stop cut motor [18:54:51]*** Cut end [18:54:51]Read from MH i2c: 01 07 00 [18:54:51]MH_I2C_Read... [18:54:51]Read from MH i2c: 01 07 00 30 1F 00 00 00 00 00 FF 0F 64 [18:54:51]process_action close_receipt done [18:54:51]requested_data is exist [18:54:51]produce_requested_data [18:54:51]requested_item fm.sn is exist - process it [18:54:51]wFMCommunicate request_size=4 [18:54:51]MH_SAM_APDU [18:54:51]CAPDU: 80 11 00 00 [18:54:51]Write to MH i2c: E2 08 00 31 1F 80 11 00 00 00 00 00 00 CA [18:54:51]Write i2c OK [18:54:51]MH_I2C_Read... [18:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:51]Read from MH i2c: E2 [18:54:51]MH_I2C_Read... [18:54:51]Read from MH i2c: E2 17 00 [18:54:51]MH_I2C_Read... [18:54:51]Read from MH i2c: E2 17 00 31 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1C [18:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:54:51]wFMCommunicate OK [18:54:51]requested_item fd.num is exist - process it [18:54:51]SAM_PROTO_GetFieldsCounters [18:54:51]wFMCommunicate request_size=4 [18:54:51]MH_SAM_APDU [18:54:51]CAPDU: 80 13 00 00 [18:54:51]Write to MH i2c: E2 08 00 32 1F 80 13 00 00 00 00 00 00 CD [18:54:51]Write i2c OK [18:54:51]MH_I2C_Read... [18:54:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:52]Read from MH i2c: E2 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 62 00 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 62 00 32 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A6 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [18:54:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A6 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:52]wFMCommunicate OK [18:54:52]SAM_PROTO_GetFieldsCounters done [18:54:52]requested_item shift.num is exist - process it [18:54:52]requested_item shift.opened is exist - process it [18:54:52]req_shift_opened [18:54:52]FM_GetShiftState [18:54:52]SAM_PROTO_GetShiftState [18:54:52]wFMCommunicate request_size=4 [18:54:52]MH_SAM_APDU [18:54:52]CAPDU: 80 13 01 00 [18:54:52]Write to MH i2c: E2 08 00 33 1F 80 13 01 00 00 00 00 00 CF [18:54:52]Write i2c OK [18:54:52]MH_I2C_Read... [18:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:52]Read from MH i2c: E2 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 0E 00 [18:54:52]MH_I2C_Read... [18:54:52]Read from MH i2c: E2 0E 00 33 1F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 4C [18:54:52]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:54:52]wFMCommunicate OK [18:54:52]SAM_PROTO_GetShiftState done [18:54:52]FM_GetShiftState done [18:54:52]req_shift_opened done [18:54:52]requested_item shift.open_date is exist - process it [18:54:52]req_shift_open_date [18:54:52]req_shift_open_date done [18:54:52]produce_requested_data done [18:54:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112038,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:54:52]process_action_free close_receipt [18:54:52]json_value_free [18:54:52]json_value_free done [18:54:52]process_json_proto returns [18:54:52]Send response to host [18:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112038,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:54:52]free response buf [18:54:52]execute_script done [18:54:52]execute_script returns [18:54:52]free content buf [18:54:52]Sock 9.Close socket [18:54:52]Sock 9.Thread stoped [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]accept exits with 7 [18:56:00]New connection [18:56:00]New thread 3066875236 created [18:56:00]Thread 3066731876 joined [18:56:00]Waiting for new connection... [18:56:00] Sock 7.Parse request [18:56:00]Sock 7.Check first char [18:56:00]Sock 7.First char is OK [18:56:00]request: POST /json_proto HTTP/1.0 [18:56:00]Method: POST [18:56:00]URL: /json_proto [18:56:00]Method is POST - this is cgi request [18:56:00]url: /json_proto [18:56:00]query_string will be loaded in cgi processing [18:56:00]execute_cgi json_proto POST (null) [18:56:00]execute_cgi path=json_proto method=POST [18:56:00]POST find Content-Length [18:56:00]Host: 172.17.59.68:8080 [18:56:00]Content-Length: 678 [18:56:00]Content-Type: application/json [18:56:00] [18:56:00]POST finish read [18:56:00]Found Content-Length = 678 [18:56:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [18:56:00]execute_script... [18:56: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)320690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [18:56:00]POST & json_proto [18:56:00]process_json_proto [18:56:00]json parsed OK: [18:56:00]protocol is kg_v1.0 [18:56:00]action value=close_receipt [18:56:00]process_action close_receipt [18:56:00]cmd_close_receipt [18:56:00]MH_GetDate [18:56:00]Write to MH i2c: F0 00 00 34 1F 42 [18:56:00]Write i2c OK [18:56:00]MH_I2C_Read... [18:56:00]Read from MH i2c: F0 [18:56:00]MH_I2C_Read... [18:56:00]Read from MH i2c: F0 09 00 [18:56:00]MH_I2C_Read... [18:56:00]Read from MH i2c: F0 09 00 34 1F 00 C8 CC 75 66 BC EC 60 65 27 [18:56:00]GetLastDocTimeStamp 1718996095 [18:56:00]current date 1718996168 [18:56:00]FM_GetShiftState [18:56:00]SAM_PROTO_GetShiftState [18:56:00]wFMCommunicate request_size=4 [18:56:00]MH_SAM_APDU [18:56:00]CAPDU: 80 13 01 00 [18:56:00]Write to MH i2c: E2 08 00 35 1F 80 13 01 00 00 00 00 00 D1 [18:56:00]Write i2c OK [18:56:00]MH_I2C_Read... [18:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:00]Read from MH i2c: E2 [18:56:00]MH_I2C_Read... [18:56:00]Read from MH i2c: E2 0E 00 [18:56:00]MH_I2C_Read... [18:56:00]Read from MH i2c: E2 0E 00 35 1F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 4E [18:56:00]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:56:00]wFMCommunicate OK [18:56:00]SAM_PROTO_GetShiftState done [18:56:00]FM_GetShiftState done [18:56:00]opened in 1718933695 [18:56:00]opened+sec_in_day 1719020095 [18:56:00]quantity*price = 70052 [18:56:00]sum+1 = 70053 [18:56:00]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.52 袠孝袨袚袨: 700.00 袙薪械褋械薪芯: 700.00 小袛袗效袗: 0.00 袧小袩 1% : 6.20 袧袛小 12% : 74.39 袧邪谢懈褔薪褘屑懈: 700.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 207 21.06.2024 18:56 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112039 肖袩袛: 235145148281054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185608&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112039&fm=235145148281054&tin=02508201610067®Number=0000000000092771&sum=70000 [18:56:01]StoreToDocumentArchive [18:56:01]shift 390 fd 112039 [18:56:01]save to /storage/0390/doc_00112039 [18:56:01]save last doc name /storage/0390/doc_00112039 to /storage/kkm_last_doc_name [18:56:01]save OK [18:56:01]Clear old archive folders... [18:56:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:01]tlvbuf is 00340B50 [18:56:01]SAM_PROTO_ClearQueue [18:56:01]wFMCommunicate request_size=4 [18:56:01]MH_SAM_APDU [18:56:01]CAPDU: 80 09 00 00 [18:56:01]Write to MH i2c: E2 08 00 42 1F 80 09 00 00 00 00 00 00 D3 [18:56:01]Write i2c OK [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 [18:56:01]MH_I2C_Read... [18:56:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:01]Read from MH i2c: E2 03 00 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 03 00 42 1F 00 90 00 D5 [18:56:01]RAPDU: 90 00 [18:56:01]wFMCommunicate OK [18:56:01]SAM_PROTO_ClearQueue done [18:56:01]KKMCreateOFDPacket [18:56:01]OFDProtocolAddRootSTLVToBuf [18:56:01]FM_MakeSignedData [18:56:01]FM_MakeSignedData [18:56:01]SAM_PROTO_SignData [18:56:01]wFMCommunicate request_size=4 [18:56:01]MH_SAM_APDU [18:56:01]CAPDU: 80 0D 01 02 [18:56:01]Write to MH i2c: E2 08 00 43 1F 80 0D 01 02 00 00 00 00 DB [18:56:01]Write i2c OK [18:56:01]MH_I2C_Read... [18:56:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:01]Read from MH i2c: E2 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 03 00 [18:56:01]MH_I2C_Read... [18:56:01]Read from MH i2c: E2 03 00 43 1F 00 90 00 D6 [18:56:01]RAPDU: 90 00 [18:56:01]wFMCommunicate OK [18:56:01]wFMCommunicate request_size=255 [18:56:01]MH_SAM_APDU [18:56: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 CF 00 00 00 F4 03 04 00 C8 CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B5 01 00 35 04 06 00 D5 [18:56:01]Write to MH i2c: E2 02 01 44 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 CF 00 00 00 F4 03 04 00 C8 CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B5 01 00 35 04 06 00 D5 00 00 98 [18:56:01]Write i2c OK [18:56:01]MH_I2C_Read... [18:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:02]Read from MH i2c: E2 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 03 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 03 00 44 1F 00 90 00 D7 [18:56:02]RAPDU: 90 00 [18:56:02]wFMCommunicate OK [18:56:02]wFMCommunicate request_size=10 [18:56:02]MH_SAM_APDU [18:56:02]CAPDU: 80 0D 02 02 05 DC FF 08 B0 DE [18:56:02]Write to MH i2c: E2 0D 00 45 1F 80 0D 02 02 05 00 DC FF 08 B0 DE 00 00 59 [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:02]Read from MH i2c: E2 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 03 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 03 00 45 1F 00 90 00 D8 [18:56:02]RAPDU: 90 00 [18:56:02]wFMCommunicate OK [18:56:02]wFMCommunicate request_size=4 [18:56:02]MH_SAM_APDU [18:56:02]CAPDU: 80 0D 03 02 [18:56:02]Write to MH i2c: E2 08 00 46 1F 80 0D 03 02 00 00 00 00 E0 [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:02]Read from MH i2c: E2 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 0B 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 0B 00 46 1F 00 D4 4E 44 CA 68 00 57 8B 90 00 5B [18:56:02]RAPDU: D4 4E 44 CA 68 00 57 8B 90 00 [18:56:02]wFMCommunicate OK [18:56:02]SAM_PROTO_SignData done [18:56:02]FM_MakeSignedData done [18:56:02]CreateOFDProtocolMessage [18:56:02]wFMCommunicate request_size=4 [18:56:02]MH_SAM_APDU [18:56:02]CAPDU: 80 11 00 00 [18:56:02]Write to MH i2c: E2 08 00 47 1F 80 11 00 00 00 00 00 00 E0 [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:02]Read from MH i2c: E2 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 17 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: E2 17 00 47 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 32 [18:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:56:02]wFMCommunicate OK [18:56:02]CreateOFDProtocolMessage done [18:56:02]OFDSenderStorePacket 112039 [18:56:02]StoreOFDPacket docnum=112039 [18:56:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 F9 07 01 2A 21 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 CF 00 00 00 F4 03 04 00 C8 CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B5 01 00 35 04 06 00 D5 DC FF 08 B0 DE D4 4E 44 CA 68 00 57 8B [18:56:02]CheckFolder [18:56:02]dirname=/storage/ofd_packets [18:56:02]CheckFolder done [18:56:02]ProducePacketName [18:56:02]name=ofd_packets/00112039 [18:56:02]NVStorageSaveData ofd_packets/00112039 [18:56:02]File name is /storage/ofd_packets/00112039 [18:56:02]Write 301 bytes [18:56:02]NVStorageSaveData done [18:56:02]OFDSenderStorePacket done [18:56:02]KKMCreateOFDPacket done [18:56:02]NVStorageSaveData kkm_last_timestamp [18:56:02]File name is /storage/kkm_last_timestamp [18:56:02]Write 4 bytes [18:56:02]NVStorageSaveData done [18:56:02]ExternCall_PrintAddStr [18:56:02]wPrintStart [18:56:02]Write to MH i2c: 01 00 00 48 1F 67 [18:56:02]Write i2c OK [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: 01 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: 01 07 00 [18:56:02]MH_I2C_Read... [18:56:02]Read from MH i2c: 01 07 00 48 1F 00 00 00 00 00 FF 0F 7C [18:56:02]RasterBufferAndPrint [18:56:02]line 小褔械褌 N : (1)320690 [18:56:02]line 袠袧袧: 02508201610067 [18:56:02]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:56:02]line 袩袪袨袛袗袞袗 [18:56:02]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [18:56:02]line 孝芯胁邪褉: 2710124130 [18:56:02]line 袗懈-92-袣-5 [18:56:02]line 10.550 * 66.40 [18:56:02]line = 700.52 [18:56:02]line 袧袛小 12% 袧小袩 1% [18:56:02]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:56:02]line 袨袣袪校袚袥袝袧袠袝: -0.52 [18:56:02]line 袠孝袨袚袨: 700.00 [18:56:02]line 袙薪械褋械薪芯: 700.00 [18:56:02]line 小袛袗效袗: 0.00 [18:56:02]line 袧小袩 1% : 6.20 [18:56:02]line 袧袛小 12% : 74.39 [18:56:02]line 袧邪谢懈褔薪褘屑懈: 700.00 [18:56:02]line 袘械蟹薪邪谢.: 0.00 [18:56:02]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:56:02]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:56:02]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:56:02]line 效械泻 207 21.06.2024 18:56 [18:56:02]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:56:02]line 袟袧袦: 0300000198 [18:56:02]line 袪袧袦: 0000000000092771 [18:56:02]line 袙械褉褋懈褟 袣袣袦: 001 [18:56:02]line 肖袦: 0000000000875083 [18:56:02]line 肖袛: 112039 [18:56:02]line 肖袩袛: 235145148281054 [18:56:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185608&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112039&fm=235145148281054&tin=02508201610067®Number=0000000000092771&sum=70000 [18:56:02]OFD Sender: Processing packet 112039 [packets to send 38, broken 37] [18:56:02]ProducePacketName [18:56:02]name=ofd_packets/00112039 [18:56:02]OFD Sender: To server: 嚂鰌G, [18:56:02]CommunicateWithHost lk.salyk.kg:30040 [18:56:02]ConnectInit lk.salyk.kg [18:56:02]written 0, free lines is 4095 [18:56:02]Connected sock=10 [18:56:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 F9 07 01 2A 21 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 CF 00 00 00 F4 03 04 00 C8 CC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B5 01 00 35 04 06 00 D5 DC FF 08 B0 DE D4 4E 44 CA 68 00 57 8B [18:56:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6E BB 47 00 85 01 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 30 38 37 35 30 38 33 10 04 04 00 A7 B5 01 00 F4 03 04 00 EB 63 75 66 B6 04 01 00 00 88 3A 15 1A AE 77 02 FE [18:56:02]CommunicateWithHost err = 0 [18:56:02]CheckOFDResponse [18:56:02]1017 (14) - 77093643461234 [18:56:02]1041 (16) - 0000000000875083 [18:56:02]1040 (4) - 112039 [18:56:02]1012 (4) - 21.06.2024 11:28 [18:56:02]1206 (1) - 0 [18:56:02]OFD Sender: Remove packet 112039 [18:56:02]ProducePacketName [18:56:02]name=ofd_packets/00112039 [18:56:02]NVStorageDeleteData [18:56:03]Write to MH i2c: 01 00 00 73 1F 92 [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: 01 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: 01 07 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: 01 07 00 73 1F 00 00 00 00 00 E8 0C 8D [18:56:03]RasterBufferAndPrint [18:56:03]line [18:56:03]line [18:56:03]line [18:56:03]line [18:56:03]line [18:56:03]written 0, free lines is 3310 [18:56:03]MH_Cut [18:56:03]Write to MH i2c: D1 01 00 7A 1F 01 6B [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: D1 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: D1 01 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: D1 01 00 7A 1F 00 6A [18:56:03]Write to MH i2c: 01 00 00 7B 1F 9A [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]OFD Sender: No OFD packet to send [18:56:03]*** Cut start [18:56:03]*** Partial cut [18:56:03]*** CUTSNS_PIN = 1 [18:56:03]*** CUTSNS_PIN = 0 [18:56:03]*** Brake cut motor [18:56:04]Read from MH i2c: 01 [18:56:04]MH_I2C_Read... [18:56:04]*** Stop cut motor [18:56:04]*** Cut end [18:56:04]Read from MH i2c: 01 07 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 07 00 7B 1F 00 00 00 00 00 FF 0F AF [18:56:04]process_action close_receipt done [18:56:04]requested_data is exist [18:56:04]produce_requested_data [18:56:04]requested_item fm.sn is exist - process it [18:56:04]wFMCommunicate request_size=4 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 11 00 00 [18:56:04]Write to MH i2c: E2 08 00 7C 1F 80 11 00 00 00 00 00 00 15 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 17 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 17 00 7C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 67 [18:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:56:04]wFMCommunicate OK [18:56:04]requested_item fd.num is exist - process it [18:56:04]SAM_PROTO_GetFieldsCounters [18:56:04]wFMCommunicate request_size=4 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 13 00 00 [18:56:04]Write to MH i2c: E2 08 00 7D 1F 80 13 00 00 00 00 00 00 18 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 62 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 62 00 7D 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A7 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [18:56:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A7 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:04]wFMCommunicate OK [18:56:04]SAM_PROTO_GetFieldsCounters done [18:56:04]requested_item shift.num is exist - process it [18:56:04]requested_item shift.opened is exist - process it [18:56:04]req_shift_opened [18:56:04]FM_GetShiftState [18:56:04]SAM_PROTO_GetShiftState [18:56:04]wFMCommunicate request_size=4 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 13 01 00 [18:56:04]Write to MH i2c: E2 08 00 7E 1F 80 13 01 00 00 00 00 00 1A [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 0E 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 0E 00 7E 1F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 97 [18:56:04]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:56:04]wFMCommunicate OK [18:56:04]SAM_PROTO_GetShiftState done [18:56:04]FM_GetShiftState done [18:56:04]req_shift_opened done [18:56:04]requested_item shift.open_date is exist - process it [18:56:04]req_shift_open_date [18:56:04]req_shift_open_date done [18:56:04]produce_requested_data done [18:56:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112039,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:56:04]process_action_free close_receipt [18:56:04]json_value_free [18:56:04]json_value_free done [18:56:04]process_json_proto returns [18:56:04]Send response to host [18:56:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112039,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:56:04]free response buf [18:56:04]execute_script done [18:56:04]execute_script returns [18:56:04]free content buf [18:56:04]Sock 7.Close socket [18:56:04]Sock 7.Thread stoped [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:56:59]accept exits with 9 [18:56:59]New connection [18:56:59]New thread 3066731876 created [18:56:59]Thread 3066875236 joined [18:56:59]Waiting for new connection... [18:56:59] Sock 9.Parse request [18:56:59]Sock 9.Check first char [18:56:59]Sock 9.First char is OK [18:56:59]request: POST /json_proto HTTP/1.0 [18:56:59]Method: POST [18:56:59]URL: /json_proto [18:56:59]Method is POST - this is cgi request [18:56:59]url: /json_proto [18:56:59]query_string will be loaded in cgi processing [18:56:59]execute_cgi json_proto POST (null) [18:56:59]execute_cgi path=json_proto method=POST [18:56:59]POST find Content-Length [18:56:59]Host: 172.17.59.68:8080 [18:56:59]Content-Length: 679 [18:56:59]Content-Type: application/json [18:56:59] [18:56:59]POST finish read [18:56:59]Found Content-Length = 679 [18:56:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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" ] } } [18:56:59]execute_script... [18:56:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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" ] } } [18:56:59]POST & json_proto [18:56:59]process_json_proto [18:56:59]json parsed OK: [18:56:59]protocol is kg_v1.0 [18:56:59]action value=close_receipt [18:56:59]process_action close_receipt [18:56:59]cmd_close_receipt [18:56:59]MH_GetDate [18:56:59]Write to MH i2c: F0 00 00 7F 1F 8D [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: F0 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: F0 09 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: F0 09 00 7F 1F 00 02 CD 75 66 BC EC 60 65 AD [18:56:59]GetLastDocTimeStamp 1718996168 [18:56:59]current date 1718996226 [18:56:59]FM_GetShiftState [18:56:59]SAM_PROTO_GetShiftState [18:56:59]wFMCommunicate request_size=4 [18:56:59]MH_SAM_APDU [18:56:59]CAPDU: 80 13 01 00 [18:56:59]Write to MH i2c: E2 08 00 80 1F 80 13 01 00 00 00 00 00 1C [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:59]Read from MH i2c: E2 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 0E 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 0E 00 80 1F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 99 [18:56:59]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:56:59]wFMCommunicate OK [18:56:59]SAM_PROTO_GetShiftState done [18:56:59]FM_GetShiftState done [18:56:59]opened in 1718933695 [18:56:59]opened+sec_in_day 1719020095 [18:56:59]quantity*price = 100018 [18:56:59]sum+1 = 100020 [18:56:59]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.19 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.21 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 208 21.06.2024 18:57 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112040 肖袩袛: 275684018792735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185706&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112040&fm=275684018792735&tin=02508201610067®Number=0000000000092771&sum=100000 [18:57:00]StoreToDocumentArchive [18:57:00]shift 390 fd 112040 [18:57:00]save to /storage/0390/doc_00112040 [18:57:00]save last doc name /storage/0390/doc_00112040 to /storage/kkm_last_doc_name [18:57:00]save OK [18:57:00]Clear old archive folders... [18:57:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:57:00]tlvbuf is 00465420 [18:57:00]SAM_PROTO_ClearQueue [18:57:00]wFMCommunicate request_size=4 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 09 00 00 [18:57:00]Write to MH i2c: E2 08 00 8D 1F 80 09 00 00 00 00 00 00 1E [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 8D 1F 00 90 00 20 [18:57:00]RAPDU: 90 00 [18:57:00]wFMCommunicate OK [18:57:00]SAM_PROTO_ClearQueue done [18:57:00]KKMCreateOFDPacket [18:57:00]OFDProtocolAddRootSTLVToBuf [18:57:00]FM_MakeSignedData [18:57:00]FM_MakeSignedData [18:57:00]SAM_PROTO_SignData [18:57:00]wFMCommunicate request_size=4 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 0D 01 02 [18:57:00]Write to MH i2c: E2 08 00 8E 1F 80 0D 01 02 00 00 00 00 26 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 8E 1F 00 90 00 21 [18:57:00]RAPDU: 90 00 [18:57:00]wFMCommunicate OK [18:57:00]wFMCommunicate request_size=255 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 7D 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 D0 00 00 00 F4 03 04 00 02 CD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B5 01 00 35 04 06 00 FA BB B0 02 [18:57:00]Write to MH i2c: E2 02 01 8F 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 7D 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 D0 00 00 00 F4 03 04 00 02 CD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B5 01 00 35 04 06 00 FA BB B0 02 00 00 52 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 8F 1F 00 90 00 22 [18:57:00]RAPDU: 90 00 [18:57:00]wFMCommunicate OK [18:57:00]wFMCommunicate request_size=7 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 0D 02 02 02 A9 1F [18:57:00]Write to MH i2c: E2 0A 00 90 1F 80 0D 02 02 02 00 A9 1F 00 00 F5 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 03 00 90 1F 00 90 00 23 [18:57:00]RAPDU: 90 00 [18:57:00]wFMCommunicate OK [18:57:00]wFMCommunicate request_size=4 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 0D 03 02 [18:57:00]Write to MH i2c: E2 08 00 91 1F 80 0D 03 02 00 00 00 00 2B [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 0B 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 0B 00 91 1F 00 98 D5 E3 18 E9 C3 29 A8 90 00 11 [18:57:00]RAPDU: 98 D5 E3 18 E9 C3 29 A8 90 00 [18:57:00]wFMCommunicate OK [18:57:00]SAM_PROTO_SignData done [18:57:00]FM_MakeSignedData done [18:57:00]CreateOFDProtocolMessage [18:57:00]wFMCommunicate request_size=4 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 11 00 00 [18:57:00]Write to MH i2c: E2 08 00 92 1F 80 11 00 00 00 00 00 00 2B [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 17 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 17 00 92 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7D [18:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:57:00]wFMCommunicate OK [18:57:00]CreateOFDProtocolMessage done [18:57:00]OFDSenderStorePacket 112040 [18:57:00]StoreOFDPacket docnum=112040 [18:57:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 2C DB 04 01 95 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 7D 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 D0 00 00 00 F4 03 04 00 02 CD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B5 01 00 35 04 06 00 FA BB B0 02 A9 1F 98 D5 E3 18 E9 C3 29 A8 [18:57:00]CheckFolder [18:57:00]dirname=/storage/ofd_packets [18:57:00]CheckFolder done [18:57:00]ProducePacketName [18:57:00]name=ofd_packets/00112040 [18:57:00]NVStorageSaveData ofd_packets/00112040 [18:57:00]File name is /storage/ofd_packets/00112040 [18:57:00]Write 298 bytes [18:57:00]NVStorageSaveData done [18:57:00]OFDSenderStorePacket done [18:57:00]KKMCreateOFDPacket done [18:57:00]NVStorageSaveData kkm_last_timestamp [18:57:00]File name is /storage/kkm_last_timestamp [18:57:00]Write 4 bytes [18:57:00]NVStorageSaveData done [18:57:00]ExternCall_PrintAddStr [18:57:00]wPrintStart [18:57:00]Write to MH i2c: 01 00 00 93 1F B2 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: 01 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: 01 07 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: 01 07 00 93 1F 00 00 00 00 00 FF 0F C7 [18:57:00]RasterBufferAndPrint [18:57:00]line 小褔械褌 N : (1)320691 [18:57:00]line 袠袧袧: 02508201610067 [18:57:00]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [18:57:00]line 袩袪袨袛袗袞袗 [18:57:00]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [18:57:00]line 孝芯胁邪褉: 2710194210 [18:57:00]line 袛孝-袣-5 [18:57:00]line 13.720 * 72.90 [18:57:00]line = 1000.19 [18:57:00]line 袧袛小 12% 袧小袩 1% [18:57:00]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [18:57:00]line 袨袣袪校袚袥袝袧袠袝: -0.19 [18:57:00]line 袠孝袨袚袨: 1000.00 [18:57:00]line 袙薪械褋械薪芯: 1000.00 [18:57:00]line 小袛袗效袗: 0.00 [18:57:00]line 袧小袩 1% : 8.85 [18:57:00]line 袧袛小 12% : 106.21 [18:57:00]line 袧邪谢懈褔薪褘屑懈: 1000.00 [18:57:00]line 袘械蟹薪邪谢.: 0.00 [18:57:00]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [18:57:00]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [18:57:00]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [18:57:00]line 效械泻 208 21.06.2024 18:57 [18:57:00]line 小屑械薪邪: 390 肖肖袛: 1.0 [18:57:00]line 袟袧袦: 0300000198 [18:57:00]line 袪袧袦: 0000000000092771 [18:57:00]line 袙械褉褋懈褟 袣袣袦: 001 [18:57:00]line 肖袦: 0000000000875083 [18:57:00]line 肖袛: 112040 [18:57:00]line 肖袩袛: 275684018792735 [18:57:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T185706&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112040&fm=275684018792735&tin=02508201610067®Number=0000000000092771&sum=100000 [18:57:01]OFD Sender: Processing packet 112040 [packets to send 38, broken 37] [18:57:01]ProducePacketName [18:57:01]name=ofd_packets/00112040 [18:57:01]OFD Sender: To server: 嚂鰌G, [18:57:01]CommunicateWithHost lk.salyk.kg:30040 [18:57:01]ConnectInit lk.salyk.kg [18:57:01]written 0, free lines is 4095 [18:57:01]Connected sock=10 [18:57:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 2C DB 04 01 95 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 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 7D 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 D0 00 00 00 F4 03 04 00 02 CD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B5 01 00 35 04 06 00 FA BB B0 02 A9 1F 98 D5 E3 18 E9 C3 29 A8 [18:57:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6B B2 47 00 0B 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 30 38 37 35 30 38 33 10 04 04 00 A8 B5 01 00 F4 03 04 00 26 64 75 66 B6 04 01 00 00 93 0B E7 00 D0 0E 50 49 [18:57:01]CommunicateWithHost err = 0 [18:57:01]CheckOFDResponse [18:57:01]1017 (14) - 77093643461234 [18:57:01]1041 (16) - 0000000000875083 [18:57:01]1040 (4) - 112040 [18:57:01]1012 (4) - 21.06.2024 11:29 [18:57:01]1206 (1) - 0 [18:57:01]OFD Sender: Remove packet 112040 [18:57:01]ProducePacketName [18:57:01]name=ofd_packets/00112040 [18:57:01]NVStorageDeleteData [18:57:01]Write to MH i2c: 01 00 00 BE 1F DD [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 07 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 07 00 BE 1F 00 00 00 00 00 EC 0C DC [18:57:01]RasterBufferAndPrint [18:57:01]line [18:57:01]line [18:57:01]line [18:57:01]line [18:57:01]line [18:57:01]written 0, free lines is 3314 [18:57:01]MH_Cut [18:57:01]Write to MH i2c: D1 01 00 C5 1F 01 B6 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: D1 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: D1 01 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: D1 01 00 C5 1F 00 B5 [18:57:01]Write to MH i2c: 01 00 00 C6 1F E5 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]OFD Sender: No OFD packet to send [18:57:02]*** Cut start [18:57:02]*** Partial cut [18:57:02]*** CUTSNS_PIN = 1 [18:57:02]*** CUTSNS_PIN = 0 [18:57:02]*** Brake cut motor [18:57:02]Read from MH i2c: 01 [18:57:02]MH_I2C_Read... [18:57:02]*** Stop cut motor [18:57:02]*** Cut end [18:57:02]Read from MH i2c: 01 07 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 07 00 C6 1F 00 00 00 00 00 FF 0F FA [18:57:02]process_action close_receipt done [18:57:02]requested_data is exist [18:57:02]produce_requested_data [18:57:02]requested_item fm.sn is exist - process it [18:57:02]wFMCommunicate request_size=4 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 11 00 00 [18:57:02]Write to MH i2c: E2 08 00 C7 1F 80 11 00 00 00 00 00 00 60 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 17 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 17 00 C7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B2 [18:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:57:02]wFMCommunicate OK [18:57:02]requested_item fd.num is exist - process it [18:57:02]SAM_PROTO_GetFieldsCounters [18:57:02]wFMCommunicate request_size=4 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 13 00 00 [18:57:02]Write to MH i2c: E2 08 00 C8 1F 80 13 00 00 00 00 00 00 63 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:03]Read from MH i2c: E2 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 62 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 62 00 C8 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A8 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [18:57:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A8 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:03]wFMCommunicate OK [18:57:03]SAM_PROTO_GetFieldsCounters done [18:57:03]requested_item shift.num is exist - process it [18:57:03]requested_item shift.opened is exist - process it [18:57:03]req_shift_opened [18:57:03]FM_GetShiftState [18:57:03]SAM_PROTO_GetShiftState [18:57:03]wFMCommunicate request_size=4 [18:57:03]MH_SAM_APDU [18:57:03]CAPDU: 80 13 01 00 [18:57:03]Write to MH i2c: E2 08 00 C9 1F 80 13 01 00 00 00 00 00 65 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:03]Read from MH i2c: E2 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 0E 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 0E 00 C9 1F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E2 [18:57:03]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [18:57:03]wFMCommunicate OK [18:57:03]SAM_PROTO_GetShiftState done [18:57:03]FM_GetShiftState done [18:57:03]req_shift_opened done [18:57:03]requested_item shift.open_date is exist - process it [18:57:03]req_shift_open_date [18:57:03]req_shift_open_date done [18:57:03]produce_requested_data done [18:57:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112040,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [18:57:03]process_action_free close_receipt [18:57:03]json_value_free [18:57:03]json_value_free done [18:57:03]process_json_proto returns [18:57:03]Send response to host [18:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112040,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [18:57:03]free response buf [18:57:03]execute_script done [18:57:03]execute_script returns [18:57:03]free content buf [18:57:03]Sock 9.Close socket [18:57:03]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:52]accept exits with 7 [19:02:52]New connection [19:02:52]New thread 3066875236 created [19:02:52]Thread 3066731876 joined [19:02:52]Waiting for new connection... [19:02:52] Sock 7.Parse request [19:02:52]Sock 7.Check first char [19:02:52]Sock 7.First char is OK [19:02:52]request: POST /json_proto HTTP/1.0 [19:02:52]Method: POST [19:02:52]URL: /json_proto [19:02:52]Method is POST - this is cgi request [19:02:52]url: /json_proto [19:02:52]query_string will be loaded in cgi processing [19:02:52]execute_cgi json_proto POST (null) [19:02:52]execute_cgi path=json_proto method=POST [19:02:52]POST find Content-Length [19:02:52]Host: 172.17.59.68:8080 [19:02:52]Content-Length: 674 [19:02:52]Content-Type: application/json [19:02:52] [19:02:52]POST finish read [19:02:52]Found Content-Length = 674 [19:02:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:52]execute_script... [19:02: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)320692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:52]POST & json_proto [19:02:52]process_json_proto [19:02:52]json parsed OK: [19:02:52]protocol is kg_v1.0 [19:02:52]action value=close_receipt [19:02:52]process_action close_receipt [19:02:52]cmd_close_receipt [19:02:52]MH_GetDate [19:02:52]Write to MH i2c: F0 00 00 CA 1F D8 [19:02:52]Write i2c OK [19:02:52]MH_I2C_Read... [19:02:52]Read from MH i2c: F0 [19:02:52]MH_I2C_Read... [19:02:52]Read from MH i2c: F0 09 00 [19:02:52]MH_I2C_Read... [19:02:52]Read from MH i2c: F0 09 00 CA 1F 00 64 CE 75 66 BC EC 60 65 5B [19:02:52]GetLastDocTimeStamp 1718996226 [19:02:52]current date 1718996580 [19:02:52]FM_GetShiftState [19:02:52]SAM_PROTO_GetShiftState [19:02:52]wFMCommunicate request_size=4 [19:02:52]MH_SAM_APDU [19:02:52]CAPDU: 80 13 01 00 [19:02:52]Write to MH i2c: E2 08 00 CB 1F 80 13 01 00 00 00 00 00 67 [19:02:52]Write i2c OK [19:02:52]MH_I2C_Read... [19:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:52]Read from MH i2c: E2 [19:02:52]MH_I2C_Read... [19:02:52]Read from MH i2c: E2 0E 00 [19:02:52]MH_I2C_Read... [19:02:52]Read from MH i2c: E2 0E 00 CB 1F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E4 [19:02:52]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:02:52]wFMCommunicate OK [19:02:52]SAM_PROTO_GetShiftState done [19:02:52]FM_GetShiftState done [19:02:52]opened in 1718933695 [19:02:52]opened+sec_in_day 1719020095 [19:02:52]quantity*price = 20047 [19:02:52]sum+1 = 20049 [19:02:52]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.48 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 209 21.06.2024 19:03 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112041 肖袩袛: 5263942437362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T190300&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112041&fm=5263942437362&tin=02508201610067®Number=0000000000092771&sum=20000 [19:02:54]StoreToDocumentArchive [19:02:54]shift 390 fd 112041 [19:02:54]save to /storage/0390/doc_00112041 [19:02:54]save last doc name /storage/0390/doc_00112041 to /storage/kkm_last_doc_name [19:02:54]save OK [19:02:54]Clear old archive folders... [19:02:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:02:54]tlvbuf is 0046B900 [19:02:54]SAM_PROTO_ClearQueue [19:02:54]wFMCommunicate request_size=4 [19:02:54]MH_SAM_APDU [19:02:54]CAPDU: 80 09 00 00 [19:02:54]Write to MH i2c: E2 08 00 D8 1F 80 09 00 00 00 00 00 00 69 [19:02:54]Write i2c OK [19:02:54]MH_I2C_Read... [19:02:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:54]Read from MH i2c: E2 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 03 00 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 03 00 D8 1F 00 90 00 6B [19:02:54]RAPDU: 90 00 [19:02:54]wFMCommunicate OK [19:02:54]SAM_PROTO_ClearQueue done [19:02:54]KKMCreateOFDPacket [19:02:54]OFDProtocolAddRootSTLVToBuf [19:02:54]FM_MakeSignedData [19:02:54]FM_MakeSignedData [19:02:54]SAM_PROTO_SignData [19:02:54]wFMCommunicate request_size=4 [19:02:54]MH_SAM_APDU [19:02:54]CAPDU: 80 0D 01 02 [19:02:54]Write to MH i2c: E2 08 00 D9 1F 80 0D 01 02 00 00 00 00 71 [19:02:54]Write i2c OK [19:02:54]MH_I2C_Read... [19:02:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:54]Read from MH i2c: E2 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 03 00 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 03 00 D9 1F 00 90 00 6C [19:02:54]RAPDU: 90 00 [19:02:54]wFMCommunicate OK [19:02:54]wFMCommunicate request_size=255 [19:02:54]MH_SAM_APDU [19:02:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 64 CE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B5 01 00 35 04 06 00 04 C9 9B 6B [19:02:54]Write to MH i2c: E2 02 01 DA 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 64 CE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B5 01 00 35 04 06 00 04 C9 9B 6B 00 00 47 [19:02:54]Write i2c OK [19:02:54]MH_I2C_Read... [19:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:54]Read from MH i2c: E2 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 03 00 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 03 00 DA 1F 00 90 00 6D [19:02:54]RAPDU: 90 00 [19:02:54]wFMCommunicate OK [19:02:54]wFMCommunicate request_size=7 [19:02:54]MH_SAM_APDU [19:02:54]CAPDU: 80 0D 02 02 02 49 F2 [19:02:54]Write to MH i2c: E2 0A 00 DB 1F 80 0D 02 02 02 00 49 F2 00 00 B3 [19:02:54]Write i2c OK [19:02:54]MH_I2C_Read... [19:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:54]Read from MH i2c: E2 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 03 00 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 03 00 DB 1F 00 90 00 6E [19:02:54]RAPDU: 90 00 [19:02:54]wFMCommunicate OK [19:02:54]wFMCommunicate request_size=4 [19:02:54]MH_SAM_APDU [19:02:54]CAPDU: 80 0D 03 02 [19:02:54]Write to MH i2c: E2 08 00 DC 1F 80 0D 03 02 00 00 00 00 76 [19:02:54]Write i2c OK [19:02:54]MH_I2C_Read... [19:02:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:54]Read from MH i2c: E2 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 0B 00 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 0B 00 DC 1F 00 29 DD 28 D8 0C 57 EA BA 90 00 84 [19:02:54]RAPDU: 29 DD 28 D8 0C 57 EA BA 90 00 [19:02:54]wFMCommunicate OK [19:02:54]SAM_PROTO_SignData done [19:02:54]FM_MakeSignedData done [19:02:54]CreateOFDProtocolMessage [19:02:54]wFMCommunicate request_size=4 [19:02:54]MH_SAM_APDU [19:02:54]CAPDU: 80 11 00 00 [19:02:54]Write to MH i2c: E2 08 00 DD 1F 80 11 00 00 00 00 00 00 76 [19:02:54]Write i2c OK [19:02:54]MH_I2C_Read... [19:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:54]Read from MH i2c: E2 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 17 00 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: E2 17 00 DD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C8 [19:02:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:02:54]wFMCommunicate OK [19:02:54]CreateOFDProtocolMessage done [19:02:54]OFDSenderStorePacket 112041 [19:02:54]StoreOFDPacket docnum=112041 [19:02:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 22 BC 04 01 5B 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 64 CE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B5 01 00 35 04 06 00 04 C9 9B 6B 49 F2 29 DD 28 D8 0C 57 EA BA [19:02:54]CheckFolder [19:02:54]dirname=/storage/ofd_packets [19:02:54]CheckFolder done [19:02:54]ProducePacketName [19:02:54]name=ofd_packets/00112041 [19:02:54]NVStorageSaveData ofd_packets/00112041 [19:02:54]File name is /storage/ofd_packets/00112041 [19:02:54]Write 298 bytes [19:02:54]NVStorageSaveData done [19:02:54]OFDSenderStorePacket done [19:02:54]KKMCreateOFDPacket done [19:02:54]NVStorageSaveData kkm_last_timestamp [19:02:54]File name is /storage/kkm_last_timestamp [19:02:54]Write 4 bytes [19:02:54]NVStorageSaveData done [19:02:54]ExternCall_PrintAddStr [19:02:54]wPrintStart [19:02:54]Write to MH i2c: 01 00 00 DE 1F FD [19:02:54]Write i2c OK [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: 01 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: 01 07 00 [19:02:54]MH_I2C_Read... [19:02:54]Read from MH i2c: 01 07 00 DE 1F 00 00 00 00 00 FF 0F 12 [19:02:54]RasterBufferAndPrint [19:02:54]line 小褔械褌 N : (1)320692 [19:02:54]line 袠袧袧: 02508201610067 [19:02:54]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:02:54]line 袩袪袨袛袗袞袗 [19:02:54]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [19:02:54]line 孝芯胁邪褉: 2710194210 [19:02:54]line 袛孝-袣-5 [19:02:54]line 2.750 * 72.90 [19:02:54]line = 200.48 [19:02:54]line 袧袛小 12% 袧小袩 1% [19:02:54]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:02:54]line 袨袣袪校袚袥袝袧袠袝: -0.48 [19:02:54]line 袠孝袨袚袨: 200.00 [19:02:54]line 袙薪械褋械薪芯: 200.00 [19:02:54]line 小袛袗效袗: 0.00 [19:02:54]line 袧小袩 1% : 1.77 [19:02:54]line 袧袛小 12% : 21.29 [19:02:54]line 袧邪谢懈褔薪褘屑懈: 200.00 [19:02:54]line 袘械蟹薪邪谢.: 0.00 [19:02:54]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:02:54]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:02:54]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:02:54]line 效械泻 209 21.06.2024 19:03 [19:02:54]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:02:54]line 袟袧袦: 0300000198 [19:02:54]line 袪袧袦: 0000000000092771 [19:02:54]line 袙械褉褋懈褟 袣袣袦: 001 [19:02:54]line 肖袦: 0000000000875083 [19:02:54]line 肖袛: 112041 [19:02:54]line 肖袩袛: 5263942437362 [19:02:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T190300&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112041&fm=5263942437362&tin=02508201610067®Number=0000000000092771&sum=20000 [19:02:54]written 0, free lines is 4095 [19:02:54]OFD Sender: Processing packet 112041 [packets to send 38, broken 37] [19:02:54]ProducePacketName [19:02:54]name=ofd_packets/00112041 [19:02:54]OFD Sender: To server: 嚂鰌G, [19:02:54]CommunicateWithHost lk.salyk.kg:30040 [19:02:54]ConnectInit lk.salyk.kg [19:02:55]Connected sock=10 [19:02:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 22 BC 04 01 5B 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 64 CE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B5 01 00 35 04 06 00 04 C9 9B 6B 49 F2 29 DD 28 D8 0C 57 EA BA [19:02:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C7 1B 47 00 56 4A 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 30 38 37 35 30 38 33 10 04 04 00 A9 B5 01 00 F4 03 04 00 87 65 75 66 B6 04 01 00 00 E4 0B FB 14 EA 7A 4A 72 [19:02:55]CommunicateWithHost err = 0 [19:02:55]CheckOFDResponse [19:02:55]1017 (14) - 77093643461234 [19:02:55]1041 (16) - 0000000000875083 [19:02:55]1040 (4) - 112041 [19:02:55]1012 (4) - 21.06.2024 11:35 [19:02:55]1206 (1) - 0 [19:02:55]OFD Sender: Remove packet 112041 [19:02:55]ProducePacketName [19:02:55]name=ofd_packets/00112041 [19:02:55]NVStorageDeleteData [19:02:55]Write to MH i2c: 01 00 00 09 20 29 [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: 01 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: 01 07 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: 01 07 00 09 20 00 00 00 00 00 E3 0C 1F [19:02:55]RasterBufferAndPrint [19:02:55]line [19:02:55]line [19:02:55]line [19:02:55]line [19:02:55]line [19:02:55]written 0, free lines is 3305 [19:02:55]MH_Cut [19:02:55]Write to MH i2c: D1 01 00 10 20 01 02 [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: D1 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: D1 01 00 [19:02:55]MH_I2C_Read... [19:02:55]Read from MH i2c: D1 01 00 10 20 00 01 [19:02:55]Write to MH i2c: 01 00 00 11 20 31 [19:02:55]Write i2c OK [19:02:55]MH_I2C_Read... [19:02:55]OFD Sender: No OFD packet to send [19:02:56]*** Cut start [19:02:56]*** Partial cut [19:02:56]*** CUTSNS_PIN = 1 [19:02:56]*** CUTSNS_PIN = 0 [19:02:56]*** Brake cut motor [19:02:56]Read from MH i2c: 01 [19:02:56]MH_I2C_Read... [19:02:56]*** Stop cut motor [19:02:56]*** Cut end [19:02:56]Read from MH i2c: 01 07 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: 01 07 00 11 20 00 00 00 00 00 FF 0F 46 [19:02:56]process_action close_receipt done [19:02:56]requested_data is exist [19:02:56]produce_requested_data [19:02:56]requested_item fm.sn is exist - process it [19:02:56]wFMCommunicate request_size=4 [19:02:56]MH_SAM_APDU [19:02:56]CAPDU: 80 11 00 00 [19:02:56]Write to MH i2c: E2 08 00 12 20 80 11 00 00 00 00 00 00 AC [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:56]Read from MH i2c: E2 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 17 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 17 00 12 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FE [19:02:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:02:56]wFMCommunicate OK [19:02:56]requested_item fd.num is exist - process it [19:02:56]SAM_PROTO_GetFieldsCounters [19:02:56]wFMCommunicate request_size=4 [19:02:56]MH_SAM_APDU [19:02:56]CAPDU: 80 13 00 00 [19:02:56]Write to MH i2c: E2 08 00 13 20 80 13 00 00 00 00 00 00 AF [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:56]Read from MH i2c: E2 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 62 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 62 00 13 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A9 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [19:02:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A9 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:56]wFMCommunicate OK [19:02:56]SAM_PROTO_GetFieldsCounters done [19:02:56]requested_item shift.num is exist - process it [19:02:56]requested_item shift.opened is exist - process it [19:02:56]req_shift_opened [19:02:56]FM_GetShiftState [19:02:56]SAM_PROTO_GetShiftState [19:02:56]wFMCommunicate request_size=4 [19:02:56]MH_SAM_APDU [19:02:56]CAPDU: 80 13 01 00 [19:02:56]Write to MH i2c: E2 08 00 14 20 80 13 01 00 00 00 00 00 B1 [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:56]Read from MH i2c: E2 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 0E 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 0E 00 14 20 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 2E [19:02:56]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:02:56]wFMCommunicate OK [19:02:56]SAM_PROTO_GetShiftState done [19:02:56]FM_GetShiftState done [19:02:56]req_shift_opened done [19:02:56]requested_item shift.open_date is exist - process it [19:02:56]req_shift_open_date [19:02:56]req_shift_open_date done [19:02:56]produce_requested_data done [19:02:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112041,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:02:56]process_action_free close_receipt [19:02:56]json_value_free [19:02:56]json_value_free done [19:02:56]process_json_proto returns [19:02:56]Send response to host [19:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112041,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:02:56]free response buf [19:02:56]execute_script done [19:02:56]execute_script returns [19:02:56]free content buf [19:02:56]Sock 7.Close socket [19:02:56]Sock 7.Thread stoped [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:51]accept exits with 9 [19:03:51]New connection [19:03:51]New thread 3066731876 created [19:03:51]Thread 3066875236 joined [19:03:51]Waiting for new connection... [19:03:51] Sock 9.Parse request [19:03:51]Sock 9.Check first char [19:03:51]Sock 9.First char is OK [19:03:51]request: POST /json_proto HTTP/1.0 [19:03:51]Method: POST [19:03:51]URL: /json_proto [19:03:51]Method is POST - this is cgi request [19:03:51]url: /json_proto [19:03:51]query_string will be loaded in cgi processing [19:03:51]execute_cgi json_proto POST (null) [19:03:51]execute_cgi path=json_proto method=POST [19:03:51]POST find Content-Length [19:03:51]Host: 172.17.59.68:8080 [19:03:51]Content-Length: 677 [19:03:51]Content-Type: application/json [19:03:51] [19:03:51]POST finish read [19:03:51]Found Content-Length = 677 [19:03:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.940, "sum" : 660.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:51]execute_script... [19: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 : (1)320693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.940, "sum" : 660.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:51]POST & json_proto [19:03:51]process_json_proto [19:03:51]json parsed OK: [19:03:51]protocol is kg_v1.0 [19:03:51]action value=close_receipt [19:03:51]process_action close_receipt [19:03:51]cmd_close_receipt [19:03:51]MH_GetDate [19:03:51]Write to MH i2c: F0 00 00 15 20 24 [19:03:51]Write i2c OK [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: F0 [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: F0 09 00 [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: F0 09 00 15 20 00 9F CE 75 66 BC EC 60 65 E2 [19:03:51]GetLastDocTimeStamp 1718996580 [19:03:51]current date 1718996639 [19:03:51]FM_GetShiftState [19:03:51]SAM_PROTO_GetShiftState [19:03:51]wFMCommunicate request_size=4 [19:03:51]MH_SAM_APDU [19:03:51]CAPDU: 80 13 01 00 [19:03:51]Write to MH i2c: E2 08 00 16 20 80 13 01 00 00 00 00 00 B3 [19:03:51]Write i2c OK [19:03:51]MH_I2C_Read... [19:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:51]Read from MH i2c: E2 [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: E2 0E 00 [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: E2 0E 00 16 20 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 30 [19:03:51]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:03:51]wFMCommunicate OK [19:03:51]SAM_PROTO_GetShiftState done [19:03:51]FM_GetShiftState done [19:03:51]opened in 1718933695 [19:03:51]opened+sec_in_day 1719020095 [19:03:51]quantity*price = 66001 [19:03:51]sum+1 = 66003 [19:03:51]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.02 袠孝袨袚袨: 660.00 袙薪械褋械薪芯: 660.00 小袛袗效袗: 0.00 袧小袩 1% : 5.84 袧袛小 12% : 70.09 袧邪谢懈褔薪褘屑懈: 660.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 210 21.06.2024 19:03 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112042 肖袩袛: 224888913275040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T190359&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112042&fm=224888913275040&tin=02508201610067®Number=0000000000092771&sum=66000 [19:03:53]StoreToDocumentArchive [19:03:53]shift 390 fd 112042 [19:03:53]save to /storage/0390/doc_00112042 [19:03:53]save last doc name /storage/0390/doc_00112042 to /storage/kkm_last_doc_name [19:03:53]save OK [19:03:53]Clear old archive folders... [19:03:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:53]tlvbuf is 0036C260 [19:03:53]SAM_PROTO_ClearQueue [19:03:53]wFMCommunicate request_size=4 [19:03:53]MH_SAM_APDU [19:03:53]CAPDU: 80 09 00 00 [19:03:53]Write to MH i2c: E2 08 00 23 20 80 09 00 00 00 00 00 00 B5 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 03 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 03 00 23 20 00 90 00 B7 [19:03:53]RAPDU: 90 00 [19:03:53]wFMCommunicate OK [19:03:53]SAM_PROTO_ClearQueue done [19:03:53]KKMCreateOFDPacket [19:03:53]OFDProtocolAddRootSTLVToBuf [19:03:53]FM_MakeSignedData [19:03:53]FM_MakeSignedData [19:03:53]SAM_PROTO_SignData [19:03:53]wFMCommunicate request_size=4 [19:03:53]MH_SAM_APDU [19:03:53]CAPDU: 80 0D 01 02 [19:03:53]Write to MH i2c: E2 08 00 24 20 80 0D 01 02 00 00 00 00 BD [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 03 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 03 00 24 20 00 90 00 B8 [19:03:53]RAPDU: 90 00 [19:03:53]wFMCommunicate OK [19:03:53]wFMCommunicate request_size=255 [19:03:53]MH_SAM_APDU [19:03: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 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 9F CE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B5 01 00 35 04 06 00 CC [19:03:53]Write to MH i2c: E2 02 01 25 20 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 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 9F CE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B5 01 00 35 04 06 00 CC 00 00 D5 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 03 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 03 00 25 20 00 90 00 B9 [19:03:53]RAPDU: 90 00 [19:03:53]wFMCommunicate OK [19:03:53]wFMCommunicate request_size=10 [19:03:53]MH_SAM_APDU [19:03:53]CAPDU: 80 0D 02 02 05 89 07 CA 28 A0 [19:03:53]Write to MH i2c: E2 0D 00 26 20 80 0D 02 02 05 00 89 07 CA 28 A0 00 00 EC [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 03 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 03 00 26 20 00 90 00 BA [19:03:53]RAPDU: 90 00 [19:03:53]wFMCommunicate OK [19:03:53]wFMCommunicate request_size=4 [19:03:53]MH_SAM_APDU [19:03:53]CAPDU: 80 0D 03 02 [19:03:53]Write to MH i2c: E2 08 00 27 20 80 0D 03 02 00 00 00 00 C2 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 0B 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 0B 00 27 20 00 DE FF 7E 9C F4 CB 31 F8 90 00 A2 [19:03:53]RAPDU: DE FF 7E 9C F4 CB 31 F8 90 00 [19:03:53]wFMCommunicate OK [19:03:53]SAM_PROTO_SignData done [19:03:53]FM_MakeSignedData done [19:03:53]CreateOFDProtocolMessage [19:03:53]wFMCommunicate request_size=4 [19:03:53]MH_SAM_APDU [19:03:53]CAPDU: 80 11 00 00 [19:03:53]Write to MH i2c: E2 08 00 28 20 80 11 00 00 00 00 00 00 C2 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 17 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 17 00 28 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 14 [19:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:03:53]wFMCommunicate OK [19:03:53]CreateOFDProtocolMessage done [19:03:53]OFDSenderStorePacket 112042 [19:03:53]StoreOFDPacket docnum=112042 [19:03:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AB 5C 07 01 BD 97 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 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 9F CE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B5 01 00 35 04 06 00 CC 89 07 CA 28 A0 DE FF 7E 9C F4 CB 31 F8 [19:03:53]CheckFolder [19:03:53]dirname=/storage/ofd_packets [19:03:53]CheckFolder done [19:03:53]ProducePacketName [19:03:53]name=ofd_packets/00112042 [19:03:53]NVStorageSaveData ofd_packets/00112042 [19:03:53]File name is /storage/ofd_packets/00112042 [19:03:53]Write 301 bytes [19:03:53]NVStorageSaveData done [19:03:53]OFDSenderStorePacket done [19:03:53]KKMCreateOFDPacket done [19:03:53]NVStorageSaveData kkm_last_timestamp [19:03:53]File name is /storage/kkm_last_timestamp [19:03:53]Write 4 bytes [19:03:53]NVStorageSaveData done [19:03:53]ExternCall_PrintAddStr [19:03:53]wPrintStart [19:03:53]Write to MH i2c: 01 00 00 29 20 49 [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 07 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: 01 07 00 29 20 00 00 00 00 00 FF 0F 5E [19:03:53]RasterBufferAndPrint [19:03:53]line 小褔械褌 N : (1)320693 [19:03:53]line 袠袧袧: 02508201610067 [19:03:53]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:03:53]line 袩袪袨袛袗袞袗 [19:03:53]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:03:53]line 孝芯胁邪褉: 2710124130 [19:03:53]line 袗懈-92-袣-5 [19:03:53]line 9.940 * 66.40 [19:03:53]line = 660.02 [19:03:53]line 袧袛小 12% 袧小袩 1% [19:03:53]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:03:53]line 袨袣袪校袚袥袝袧袠袝: -0.02 [19:03:53]line 袠孝袨袚袨: 660.00 [19:03:53]line 袙薪械褋械薪芯: 660.00 [19:03:53]line 小袛袗效袗: 0.00 [19:03:53]line 袧小袩 1% : 5.84 [19:03:53]line 袧袛小 12% : 70.09 [19:03:53]line 袧邪谢懈褔薪褘屑懈: 660.00 [19:03:53]line 袘械蟹薪邪谢.: 0.00 [19:03:53]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:03:53]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:03:53]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:03:53]line 效械泻 210 21.06.2024 19:03 [19:03:53]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:03:53]line 袟袧袦: 0300000198 [19:03:53]line 袪袧袦: 0000000000092771 [19:03:53]line 袙械褉褋懈褟 袣袣袦: 001 [19:03:53]line 肖袦: 0000000000875083 [19:03:53]line 肖袛: 112042 [19:03:53]line 肖袩袛: 224888913275040 [19:03:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T190359&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112042&fm=224888913275040&tin=02508201610067®Number=0000000000092771&sum=66000 [19:03:53]OFD Sender: Processing packet 112042 [packets to send 38, broken 37] [19:03:53]ProducePacketName [19:03:53]name=ofd_packets/00112042 [19:03:53]OFD Sender: To server: 嚂鰌G, [19:03:53]CommunicateWithHost lk.salyk.kg:30040 [19:03:53]ConnectInit lk.salyk.kg [19:03:53]written 0, free lines is 4095 [19:03:54]Connected sock=10 [19:03:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AB 5C 07 01 BD 97 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 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 9F CE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B5 01 00 35 04 06 00 CC 89 07 CA 28 A0 DE FF 7E 9C F4 CB 31 F8 [19:03:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 62 4B 47 00 8E C9 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 30 38 37 35 30 38 33 10 04 04 00 AA B5 01 00 F4 03 04 00 C3 65 75 66 B6 04 01 00 00 C4 E0 89 D7 37 61 BF E2 [19:03:54]CommunicateWithHost err = 0 [19:03:54]CheckOFDResponse [19:03:54]1017 (14) - 77093643461234 [19:03:54]1041 (16) - 0000000000875083 [19:03:54]1040 (4) - 112042 [19:03:54]1012 (4) - 21.06.2024 11:36 [19:03:54]1206 (1) - 0 [19:03:54]OFD Sender: Remove packet 112042 [19:03:54]ProducePacketName [19:03:54]name=ofd_packets/00112042 [19:03:54]NVStorageDeleteData [19:03:54]Write to MH i2c: 01 00 00 54 20 74 [19:03:54]Write i2c OK [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: 01 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: 01 07 00 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: 01 07 00 54 20 00 00 00 00 00 DF 0C 66 [19:03:54]RasterBufferAndPrint [19:03:54]line [19:03:54]line [19:03:54]line [19:03:54]line [19:03:54]line [19:03:54]written 0, free lines is 3301 [19:03:54]MH_Cut [19:03:54]Write to MH i2c: D1 01 00 5B 20 01 4D [19:03:54]Write i2c OK [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: D1 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: D1 01 00 [19:03:54]MH_I2C_Read... [19:03:54]Read from MH i2c: D1 01 00 5B 20 00 4C [19:03:54]Write to MH i2c: 01 00 00 5C 20 7C [19:03:54]Write i2c OK [19:03:54]MH_I2C_Read... [19:03:54]OFD Sender: No OFD packet to send [19:03:55]*** Cut start [19:03:55]*** Partial cut [19:03:55]*** CUTSNS_PIN = 1 [19:03:55]*** CUTSNS_PIN = 0 [19:03:55]*** Brake cut motor [19:03:55]Read from MH i2c: 01 [19:03:55]MH_I2C_Read... [19:03:55]*** Stop cut motor [19:03:55]*** Cut end [19:03:55]Read from MH i2c: 01 07 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: 01 07 00 5C 20 00 00 00 00 00 FF 0F 91 [19:03:55]process_action close_receipt done [19:03:55]requested_data is exist [19:03:55]produce_requested_data [19:03:55]requested_item fm.sn is exist - process it [19:03:55]wFMCommunicate request_size=4 [19:03:55]MH_SAM_APDU [19:03:55]CAPDU: 80 11 00 00 [19:03:55]Write to MH i2c: E2 08 00 5D 20 80 11 00 00 00 00 00 00 F7 [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:55]Read from MH i2c: E2 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 17 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 17 00 5D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 49 [19:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:03:55]wFMCommunicate OK [19:03:55]requested_item fd.num is exist - process it [19:03:55]SAM_PROTO_GetFieldsCounters [19:03:55]wFMCommunicate request_size=4 [19:03:55]MH_SAM_APDU [19:03:55]CAPDU: 80 13 00 00 [19:03:55]Write to MH i2c: E2 08 00 5E 20 80 13 00 00 00 00 00 00 FA [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:55]Read from MH i2c: E2 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 62 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 62 00 5E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [19:03:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:55]wFMCommunicate OK [19:03:55]SAM_PROTO_GetFieldsCounters done [19:03:55]requested_item shift.num is exist - process it [19:03:55]requested_item shift.opened is exist - process it [19:03:55]req_shift_opened [19:03:55]FM_GetShiftState [19:03:55]SAM_PROTO_GetShiftState [19:03:55]wFMCommunicate request_size=4 [19:03:55]MH_SAM_APDU [19:03:55]CAPDU: 80 13 01 00 [19:03:55]Write to MH i2c: E2 08 00 5F 20 80 13 01 00 00 00 00 00 FC [19:03:55]Write i2c OK [19:03:55]MH_I2C_Read... [19:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:55]Read from MH i2c: E2 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 0E 00 [19:03:55]MH_I2C_Read... [19:03:55]Read from MH i2c: E2 0E 00 5F 20 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 79 [19:03:55]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:03:55]wFMCommunicate OK [19:03:55]SAM_PROTO_GetShiftState done [19:03:55]FM_GetShiftState done [19:03:55]req_shift_opened done [19:03:55]requested_item shift.open_date is exist - process it [19:03:55]req_shift_open_date [19:03:55]req_shift_open_date done [19:03:55]produce_requested_data done [19:03:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112042,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:03:55]process_action_free close_receipt [19:03:55]json_value_free [19:03:55]json_value_free done [19:03:55]process_json_proto returns [19:03:55]Send response to host [19:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112042,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:03:55]free response buf [19:03:55]execute_script done [19:03:55]execute_script returns [19:03:55]free content buf [19:03:55]Sock 9.Close socket [19:03:55]Sock 9.Thread stoped [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]accept exits with 7 [19:06:09]New connection [19:06:09]New thread 3066875236 created [19:06:09]Thread 3066731876 joined [19:06:09]Waiting for new connection... [19:06:09] Sock 7.Parse request [19:06:09]Sock 7.Check first char [19:06:09]Sock 7.First char is OK [19:06:09]request: POST /json_proto HTTP/1.0 [19:06:09]Method: POST [19:06:09]URL: /json_proto [19:06:09]Method is POST - this is cgi request [19:06:09]url: /json_proto [19:06:09]query_string will be loaded in cgi processing [19:06:09]execute_cgi json_proto POST (null) [19:06:09]execute_cgi path=json_proto method=POST [19:06:09]POST find Content-Length [19:06:09]Host: 172.17.59.68:8080 [19:06:09]Content-Length: 677 [19:06:09]Content-Type: application/json [19:06:09] [19:06:09]POST finish read [19:06:09]Found Content-Length = 677 [19:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [19:06:09]execute_script... [19:06:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [19:06:09]POST & json_proto [19:06:09]process_json_proto [19:06:09]json parsed OK: [19:06:09]protocol is kg_v1.0 [19:06:09]action value=close_receipt [19:06:09]process_action close_receipt [19:06:09]cmd_close_receipt [19:06:09]MH_GetDate [19:06:09]Write to MH i2c: F0 00 00 60 20 6F [19:06:09]Write i2c OK [19:06:09]MH_I2C_Read... [19:06:09]Read from MH i2c: F0 [19:06:09]MH_I2C_Read... [19:06:09]Read from MH i2c: F0 09 00 [19:06:09]MH_I2C_Read... [19:06:09]Read from MH i2c: F0 09 00 60 20 00 29 CF 75 66 BC EC 60 65 B8 [19:06:09]GetLastDocTimeStamp 1718996639 [19:06:09]current date 1718996777 [19:06:09]FM_GetShiftState [19:06:09]SAM_PROTO_GetShiftState [19:06:09]wFMCommunicate request_size=4 [19:06:09]MH_SAM_APDU [19:06:09]CAPDU: 80 13 01 00 [19:06:09]Write to MH i2c: E2 08 00 61 20 80 13 01 00 00 00 00 00 FE [19:06:09]OFD Sender: No OFD packet to send [19:06:09]Write i2c OK [19:06:09]MH_I2C_Read... [19:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:09]Read from MH i2c: E2 [19:06:09]MH_I2C_Read... [19:06:09]Read from MH i2c: E2 0E 00 [19:06:09]MH_I2C_Read... [19:06:09]Read from MH i2c: E2 0E 00 61 20 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 7B [19:06:09]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:06:09]wFMCommunicate OK [19:06:09]SAM_PROTO_GetShiftState done [19:06:09]FM_GetShiftState done [19:06:09]opened in 1718933695 [19:06:09]opened+sec_in_day 1719020095 [19:06:09]quantity*price = 50065 [19:06:09]sum+1 = 50067 [19:06:09]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 211 21.06.2024 19:06 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112043 肖袩袛: 57720248317257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T190617&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112043&fm=57720248317257&tin=02508201610067®Number=0000000000092771&sum=50000 [19:06:11]StoreToDocumentArchive [19:06:11]shift 390 fd 112043 [19:06:11]save to /storage/0390/doc_00112043 [19:06:11]save last doc name /storage/0390/doc_00112043 to /storage/kkm_last_doc_name [19:06:11]save OK [19:06:11]Clear old archive folders... [19:06:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:11]tlvbuf is 0036C1E0 [19:06:11]SAM_PROTO_ClearQueue [19:06:11]wFMCommunicate request_size=4 [19:06:11]MH_SAM_APDU [19:06:11]CAPDU: 80 09 00 00 [19:06:11]Write to MH i2c: E2 08 00 6E 20 80 09 00 00 00 00 00 00 00 [19:06:11]Write i2c OK [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 [19:06:11]MH_I2C_Read... [19:06:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:11]Read from MH i2c: E2 03 00 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 03 00 6E 20 00 90 00 02 [19:06:11]RAPDU: 90 00 [19:06:11]wFMCommunicate OK [19:06:11]SAM_PROTO_ClearQueue done [19:06:11]KKMCreateOFDPacket [19:06:11]OFDProtocolAddRootSTLVToBuf [19:06:11]FM_MakeSignedData [19:06:11]FM_MakeSignedData [19:06:11]SAM_PROTO_SignData [19:06:11]wFMCommunicate request_size=4 [19:06:11]MH_SAM_APDU [19:06:11]CAPDU: 80 0D 01 02 [19:06:11]Write to MH i2c: E2 08 00 6F 20 80 0D 01 02 00 00 00 00 08 [19:06:11]Write i2c OK [19:06:11]MH_I2C_Read... [19:06:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:11]Read from MH i2c: E2 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 03 00 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 03 00 6F 20 00 90 00 03 [19:06:11]RAPDU: 90 00 [19:06:11]wFMCommunicate OK [19:06:11]wFMCommunicate request_size=255 [19:06:11]MH_SAM_APDU [19:06:11]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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 D3 00 00 00 F4 03 04 00 29 CF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B5 01 00 35 04 06 00 34 [19:06:11]Write to MH i2c: E2 02 01 70 20 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 D3 00 00 00 F4 03 04 00 29 CF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B5 01 00 35 04 06 00 34 00 00 7E [19:06:11]Write i2c OK [19:06:11]MH_I2C_Read... [19:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:11]Read from MH i2c: E2 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 03 00 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 03 00 70 20 00 90 00 04 [19:06:11]RAPDU: 90 00 [19:06:11]wFMCommunicate OK [19:06:11]wFMCommunicate request_size=10 [19:06:11]MH_SAM_APDU [19:06:11]CAPDU: 80 0D 02 02 05 7F 0A E5 B5 49 [19:06:11]Write to MH i2c: E2 0D 00 71 20 80 0D 02 02 05 00 7F 0A E5 B5 49 00 00 81 [19:06:11]Write i2c OK [19:06:11]MH_I2C_Read... [19:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:11]Read from MH i2c: E2 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 03 00 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 03 00 71 20 00 90 00 05 [19:06:11]RAPDU: 90 00 [19:06:11]wFMCommunicate OK [19:06:11]wFMCommunicate request_size=4 [19:06:11]MH_SAM_APDU [19:06:11]CAPDU: 80 0D 03 02 [19:06:11]Write to MH i2c: E2 08 00 72 20 80 0D 03 02 00 00 00 00 0D [19:06:11]Write i2c OK [19:06:11]MH_I2C_Read... [19:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:11]Read from MH i2c: E2 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 0B 00 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 0B 00 72 20 00 45 55 B7 96 4A 47 6C DC 90 00 CE [19:06:11]RAPDU: 45 55 B7 96 4A 47 6C DC 90 00 [19:06:11]wFMCommunicate OK [19:06:11]SAM_PROTO_SignData done [19:06:11]FM_MakeSignedData done [19:06:11]CreateOFDProtocolMessage [19:06:11]wFMCommunicate request_size=4 [19:06:11]MH_SAM_APDU [19:06:11]CAPDU: 80 11 00 00 [19:06:11]Write to MH i2c: E2 08 00 73 20 80 11 00 00 00 00 00 00 0D [19:06:11]Write i2c OK [19:06:11]MH_I2C_Read... [19:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:11]Read from MH i2c: E2 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 17 00 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 17 00 73 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5F [19:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:06:11]wFMCommunicate OK [19:06:11]CreateOFDProtocolMessage done [19:06:11]OFDSenderStorePacket 112043 [19:06:11]StoreOFDPacket docnum=112043 [19:06:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 49 AA 07 01 A6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 D3 00 00 00 F4 03 04 00 29 CF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B5 01 00 35 04 06 00 34 7F 0A E5 B5 49 45 55 B7 96 4A 47 6C DC [19:06:11]CheckFolder [19:06:11]dirname=/storage/ofd_packets [19:06:11]CheckFolder done [19:06:11]ProducePacketName [19:06:11]name=ofd_packets/00112043 [19:06:11]NVStorageSaveData ofd_packets/00112043 [19:06:11]File name is /storage/ofd_packets/00112043 [19:06:11]Write 301 bytes [19:06:11]NVStorageSaveData done [19:06:11]OFDSenderStorePacket done [19:06:11]KKMCreateOFDPacket done [19:06:11]NVStorageSaveData kkm_last_timestamp [19:06:11]File name is /storage/kkm_last_timestamp [19:06:11]Write 4 bytes [19:06:11]NVStorageSaveData done [19:06:11]ExternCall_PrintAddStr [19:06:11]wPrintStart [19:06:11]Write to MH i2c: 01 00 00 74 20 94 [19:06:11]Write i2c OK [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: 01 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: 01 07 00 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: 01 07 00 74 20 00 00 00 00 00 FF 0F A9 [19:06:11]RasterBufferAndPrint [19:06:11]line 小褔械褌 N : (1)320694 [19:06:11]line 袠袧袧: 02508201610067 [19:06:11]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:06:11]line 袩袪袨袛袗袞袗 [19:06:11]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:06:11]line 孝芯胁邪褉: 2710124130 [19:06:11]line 袗懈-92-袣-5 [19:06:11]line 7.540 * 66.40 [19:06:11]line = 500.66 [19:06:11]line 袧袛小 12% 袧小袩 1% [19:06:11]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:06:11]line 袨袣袪校袚袥袝袧袠袝: -0.66 [19:06:11]line 袠孝袨袚袨: 500.00 [19:06:11]line 袙薪械褋械薪芯: 500.00 [19:06:11]line 小袛袗效袗: 0.00 [19:06:11]line 袧小袩 1% : 4.43 [19:06:11]line 袧袛小 12% : 53.17 [19:06:11]line 袧邪谢懈褔薪褘屑懈: 500.00 [19:06:11]line 袘械蟹薪邪谢.: 0.00 [19:06:11]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:06:11]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:06:11]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:06:11]line 效械泻 211 21.06.2024 19:06 [19:06:11]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:06:11]line 袟袧袦: 0300000198 [19:06:11]line 袪袧袦: 0000000000092771 [19:06:11]line 袙械褉褋懈褟 袣袣袦: 001 [19:06:11]line 肖袦: 0000000000875083 [19:06:11]line 肖袛: 112043 [19:06:11]line 肖袩袛: 57720248317257 [19:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T190617&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112043&fm=57720248317257&tin=02508201610067®Number=0000000000092771&sum=50000 [19:06:11]OFD Sender: Processing packet 112043 [packets to send 38, broken 37] [19:06:11]ProducePacketName [19:06:11]name=ofd_packets/00112043 [19:06:11]OFD Sender: To server: 嚂鰌G, [19:06:11]CommunicateWithHost lk.salyk.kg:30040 [19:06:11]ConnectInit lk.salyk.kg [19:06:11]written 0, free lines is 4095 [19:06:12]Connected sock=10 [19:06:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 49 AA 07 01 A6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 D3 00 00 00 F4 03 04 00 29 CF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B5 01 00 35 04 06 00 34 7F 0A E5 B5 49 45 55 B7 96 4A 47 6C DC [19:06:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DA 72 47 00 E9 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 30 38 37 35 30 38 33 10 04 04 00 AB B5 01 00 F4 03 04 00 4C 66 75 66 B6 04 01 00 00 74 0D 95 F4 92 F3 7A 7D [19:06:12]CommunicateWithHost err = 0 [19:06:12]CheckOFDResponse [19:06:12]1017 (14) - 77093643461234 [19:06:12]1041 (16) - 0000000000875083 [19:06:12]1040 (4) - 112043 [19:06:12]1012 (4) - 21.06.2024 11:38 [19:06:12]1206 (1) - 0 [19:06:12]OFD Sender: Remove packet 112043 [19:06:12]ProducePacketName [19:06:12]name=ofd_packets/00112043 [19:06:12]NVStorageDeleteData [19:06:12]Write to MH i2c: 01 00 00 9F 20 BF [19:06:12]Write i2c OK [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: 01 [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: 01 07 00 [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: 01 07 00 9F 20 00 00 00 00 00 E4 0C B6 [19:06:12]RasterBufferAndPrint [19:06:12]line [19:06:12]line [19:06:12]line [19:06:12]line [19:06:12]line [19:06:12]written 0, free lines is 3306 [19:06:12]MH_Cut [19:06:12]Write to MH i2c: D1 01 00 A6 20 01 98 [19:06:12]Write i2c OK [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: D1 [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: D1 01 00 [19:06:12]MH_I2C_Read... [19:06:12]Read from MH i2c: D1 01 00 A6 20 00 97 [19:06:12]Write to MH i2c: 01 00 00 A7 20 C7 [19:06:12]Write i2c OK [19:06:12]MH_I2C_Read... [19:06:12]OFD Sender: No OFD packet to send [19:06:13]*** Cut start [19:06:13]*** Partial cut [19:06:13]*** CUTSNS_PIN = 1 [19:06:13]*** CUTSNS_PIN = 0 [19:06:13]*** Brake cut motor [19:06:13]Read from MH i2c: 01 [19:06:13]MH_I2C_Read... [19:06:13]*** Stop cut motor [19:06:13]*** Cut end [19:06:13]Read from MH i2c: 01 07 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: 01 07 00 A7 20 00 00 00 00 00 FF 0F DC [19:06:13]process_action close_receipt done [19:06:13]requested_data is exist [19:06:13]produce_requested_data [19:06:13]requested_item fm.sn is exist - process it [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 11 00 00 [19:06:13]Write to MH i2c: E2 08 00 A8 20 80 11 00 00 00 00 00 00 42 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 17 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 17 00 A8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 94 [19:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:06:13]wFMCommunicate OK [19:06:13]requested_item fd.num is exist - process it [19:06:13]SAM_PROTO_GetFieldsCounters [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 13 00 00 [19:06:13]Write to MH i2c: E2 08 00 A9 20 80 13 00 00 00 00 00 00 45 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 62 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 62 00 A9 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [19:06:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:13]wFMCommunicate OK [19:06:13]SAM_PROTO_GetFieldsCounters done [19:06:13]requested_item shift.num is exist - process it [19:06:13]requested_item shift.opened is exist - process it [19:06:13]req_shift_opened [19:06:13]FM_GetShiftState [19:06:13]SAM_PROTO_GetShiftState [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 13 01 00 [19:06:13]Write to MH i2c: E2 08 00 AA 20 80 13 01 00 00 00 00 00 47 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:13]Read from MH i2c: E2 0E 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 0E 00 AA 20 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C4 [19:06:13]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:06:13]wFMCommunicate OK [19:06:13]SAM_PROTO_GetShiftState done [19:06:13]FM_GetShiftState done [19:06:13]req_shift_opened done [19:06:13]requested_item shift.open_date is exist - process it [19:06:13]req_shift_open_date [19:06:13]req_shift_open_date done [19:06:13]produce_requested_data done [19:06:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112043,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:06:13]process_action_free close_receipt [19:06:13]json_value_free [19:06:13]json_value_free done [19:06:13]process_json_proto returns [19:06:13]Send response to host [19:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112043,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:06:13]free response buf [19:06:13]execute_script done [19:06:13]execute_script returns [19:06:13]free content buf [19:06:13]Sock 7.Close socket [19:06:13]Sock 7.Thread stoped [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:24]accept exits with 9 [19:08:24]New connection [19:08:24]New thread 3066731876 created [19:08:24]Thread 3066875236 joined [19:08:24]Waiting for new connection... [19:08:24] Sock 9.Parse request [19:08:24]Sock 9.Check first char [19:08:24]Sock 9.First char is OK [19:08:24]request: POST /json_proto HTTP/1.0 [19:08:24]Method: POST [19:08:24]URL: /json_proto [19:08:24]Method is POST - this is cgi request [19:08:24]url: /json_proto [19:08:24]query_string will be loaded in cgi processing [19:08:24]execute_cgi json_proto POST (null) [19:08:24]execute_cgi path=json_proto method=POST [19:08:24]POST find Content-Length [19:08:24]Host: 172.17.59.68:8080 [19:08:24]Content-Length: 1200 [19:08:24]Content-Type: application/json [19:08:24] [19:08:24]POST finish read [19:08:24]Found Content-Length = 1200 [19:08:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320695\u000A21.06.2024 17:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03347\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:24]execute_script... [19:08:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320695\u000A21.06.2024 17:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03347\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:24]POST & json_proto [19:08:24]process_json_proto [19:08:24]json parsed OK: [19:08:24]protocol is kg_v1.0 [19:08:24]action value=print_text [19:08:24]process_action print_text [19:08:24]cmd_print_text [19:08:24]ExternCall_PrintAddStr [19:08:24]wPrintStart [19:08:24]Write to MH i2c: 01 00 00 AB 20 CB [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: 01 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: 01 07 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: 01 07 00 AB 20 00 00 00 00 00 FF 0F E0 [19:08:24]RasterBufferAndPrint [19:08:24]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [19:08:24]line 袗袟小 65 [19:08:24]line 袩邪褉褌薪械褉 薪械褎褌褜 [19:08:24]line 02508201610067 [19:08:24]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [19:08:24]line 小褔械褌 N : (1)320695 [19:08:24]line 21.06.2024 17:35 [19:08:24]line 袩袪袨袛袗袞袗 [19:08:24]line 孝袪袣 (袦袪袣, 袚袧袣): 11 [19:08:24]line 袙懈写 袚小袦 : 2710124130 [19:08:24]line 袗懈-92-袣-5 [19:08:24]line 10.000 x 66.40 [19:08:24]line 袠孝袨袚: 664.00 [19:08:24]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [19:08:24]line 03347 [19:08:24]line ______________________ [19:08:24]line (锌芯写锌懈褋褜) [19:08:24]written 0, free lines is 4095 [19:08:24]Write to MH i2c: 01 00 00 BF 20 DF [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: 01 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: 01 07 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: 01 07 00 BF 20 00 00 00 00 00 11 0E 05 [19:08:24]RasterBufferAndPrint [19:08:24]line [19:08:24]line [19:08:24]line [19:08:24]line [19:08:24]line [19:08:24]written 0, free lines is 3603 [19:08:24]MH_Cut [19:08:24]Write to MH i2c: D1 01 00 C6 20 01 B8 [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: D1 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: D1 01 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: D1 01 00 C6 20 00 B7 [19:08:24]Write to MH i2c: 01 00 00 C7 20 E7 [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:25]*** Cut start [19:08:25]*** Partial cut [19:08:25]*** CUTSNS_PIN = 1 [19:08:25]*** CUTSNS_PIN = 0 [19:08:25]*** Brake cut motor [19:08:25]Read from MH i2c: 01 [19:08:25]MH_I2C_Read... [19:08:25]*** Stop cut motor [19:08:25]*** Cut end [19:08:25]Read from MH i2c: 01 07 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: 01 07 00 C7 20 00 00 00 00 00 FF 0F FC [19:08:25]process_action print_text done [19:08:25]requested_data is exist [19:08:25]produce_requested_data [19:08:25]requested_item fm.sn is exist - process it [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 11 00 00 [19:08:25]Write to MH i2c: E2 08 00 C8 20 80 11 00 00 00 00 00 00 62 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 17 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 17 00 C8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B4 [19:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:08:25]wFMCommunicate OK [19:08:25]requested_item fd.num is exist - process it [19:08:25]SAM_PROTO_GetFieldsCounters [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 13 00 00 [19:08:25]Write to MH i2c: E2 08 00 C9 20 80 13 00 00 00 00 00 00 65 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 62 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 62 00 C9 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [19:08:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:25]wFMCommunicate OK [19:08:25]SAM_PROTO_GetFieldsCounters done [19:08:25]requested_item shift.num is exist - process it [19:08:25]requested_item shift.opened is exist - process it [19:08:25]req_shift_opened [19:08:25]FM_GetShiftState [19:08:25]SAM_PROTO_GetShiftState [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 13 01 00 [19:08:25]Write to MH i2c: E2 08 00 CA 20 80 13 01 00 00 00 00 00 67 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 0E 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 0E 00 CA 20 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E4 [19:08:25]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:08:25]wFMCommunicate OK [19:08:25]SAM_PROTO_GetShiftState done [19:08:25]FM_GetShiftState done [19:08:25]req_shift_opened done [19:08:25]requested_item shift.open_date is exist - process it [19:08:25]req_shift_open_date [19:08:25]req_shift_open_date done [19:08:25]produce_requested_data done [19:08:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112043,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:08:25]process_action_free print_text [19:08:25]json_value_free [19:08:25]json_value_free done [19:08:25]process_json_proto returns [19:08:25]Send response to host [19:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112043,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:08:25]free response buf [19:08:25]execute_script done [19:08:25]execute_script returns [19:08:25]free content buf [19:08:25]Sock 9.Close socket [19:08:25]Sock 9.Thread stoped [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:16]accept exits with 7 [19:11:16]New connection [19:11:16]New thread 3066875236 created [19:11:16]Thread 3066731876 joined [19:11:16]Waiting for new connection... [19:11:16] Sock 7.Parse request [19:11:16]Sock 7.Check first char [19:11:16]Sock 7.First char is OK [19:11:16]request: POST /json_proto HTTP/1.0 [19:11:16]Method: POST [19:11:16]URL: /json_proto [19:11:16]Method is POST - this is cgi request [19:11:16]url: /json_proto [19:11:16]query_string will be loaded in cgi processing [19:11:16]execute_cgi json_proto POST (null) [19:11:16]execute_cgi path=json_proto method=POST [19:11:16]POST find Content-Length [19:11:16]Host: 172.17.59.68:8080 [19:11:16]Content-Length: 1201 [19:11:16]Content-Type: application/json [19:11:16] [19:11:16]POST finish read [19:11:16]Found Content-Length = 1201 [19:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320696\u000A21.06.2024 17:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03347\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:16]execute_script... [19:11:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320696\u000A21.06.2024 17:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03347\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:16]POST & json_proto [19:11:16]process_json_proto [19:11:16]json parsed OK: [19:11:16]protocol is kg_v1.0 [19:11:16]action value=print_text [19:11:16]process_action print_text [19:11:16]cmd_print_text [19:11:16]ExternCall_PrintAddStr [19:11:16]wPrintStart [19:11:16]Write to MH i2c: 01 00 00 CB 20 EB [19:11:16]Write i2c OK [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: 01 [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: 01 07 00 [19:11:16]MH_I2C_Read... [19:11:16]Read from MH i2c: 01 07 00 CB 20 00 00 00 00 00 FF 0F 00 [19:11:16]RasterBufferAndPrint [19:11:16]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [19:11:16]line 袗袟小 65 [19:11:16]line 袩邪褉褌薪械褉 薪械褎褌褜 [19:11:16]line 02508201610067 [19:11:16]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [19:11:16]line 小褔械褌 N : (1)320696 [19:11:16]line 21.06.2024 17:38 [19:11:16]line 袩袪袨袛袗袞袗 [19:11:16]line 孝袪袣 (袦袪袣, 袚袧袣): 11 [19:11:16]line 袙懈写 袚小袦 : 2710124130 [19:11:16]line 袗懈-92-袣-5 [19:11:16]line 20.000 x 66.40 [19:11:16]line 袠孝袨袚: 1328.00 [19:11:16]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [19:11:16]line 03347 [19:11:16]line ______________________ [19:11:16]line (锌芯写锌懈褋褜) [19:11:16]written 0, free lines is 4095 [19:11:17]Write to MH i2c: 01 00 00 DF 20 FF [19:11:17]Write i2c OK [19:11:17]MH_I2C_Read... [19:11:17]Read from MH i2c: 01 [19:11:17]MH_I2C_Read... [19:11:17]Read from MH i2c: 01 07 00 [19:11:17]MH_I2C_Read... [19:11:17]Read from MH i2c: 01 07 00 DF 20 00 00 00 00 00 12 0E 26 [19:11:17]RasterBufferAndPrint [19:11:17]line [19:11:17]line [19:11:17]line [19:11:17]line [19:11:17]line [19:11:17]written 0, free lines is 3604 [19:11:17]MH_Cut [19:11:17]Write to MH i2c: D1 01 00 E6 20 01 D8 [19:11:17]Write i2c OK [19:11:17]MH_I2C_Read... [19:11:17]Read from MH i2c: D1 [19:11:17]MH_I2C_Read... [19:11:17]Read from MH i2c: D1 01 00 [19:11:17]MH_I2C_Read... [19:11:17]Read from MH i2c: D1 01 00 E6 20 00 D7 [19:11:17]Write to MH i2c: 01 00 00 E7 20 07 [19:11:17]Write i2c OK [19:11:17]MH_I2C_Read... [19:11:17]*** Cut start [19:11:17]*** Partial cut [19:11:17]*** CUTSNS_PIN = 1 [19:11:17]*** CUTSNS_PIN = 0 [19:11:17]*** Brake cut motor [19:11:17]OFD Sender: No OFD packet to send [19:11:18]Read from MH i2c: 01 [19:11:18]MH_I2C_Read... [19:11:18]*** Stop cut motor [19:11:18]*** Cut end [19:11:18]Read from MH i2c: 01 07 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: 01 07 00 E7 20 00 00 00 00 00 FF 0F 1C [19:11:18]process_action print_text done [19:11:18]requested_data is exist [19:11:18]produce_requested_data [19:11:18]requested_item fm.sn is exist - process it [19:11:18]wFMCommunicate request_size=4 [19:11:18]MH_SAM_APDU [19:11:18]CAPDU: 80 11 00 00 [19:11:18]Write to MH i2c: E2 08 00 E8 20 80 11 00 00 00 00 00 00 82 [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:18]Read from MH i2c: E2 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 17 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 17 00 E8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D4 [19:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:11:18]wFMCommunicate OK [19:11:18]requested_item fd.num is exist - process it [19:11:18]SAM_PROTO_GetFieldsCounters [19:11:18]wFMCommunicate request_size=4 [19:11:18]MH_SAM_APDU [19:11:18]CAPDU: 80 13 00 00 [19:11:18]Write to MH i2c: E2 08 00 E9 20 80 13 00 00 00 00 00 00 85 [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:18]Read from MH i2c: E2 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 62 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 62 00 E9 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [19:11:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:18]wFMCommunicate OK [19:11:18]SAM_PROTO_GetFieldsCounters done [19:11:18]requested_item shift.num is exist - process it [19:11:18]requested_item shift.opened is exist - process it [19:11:18]req_shift_opened [19:11:18]FM_GetShiftState [19:11:18]SAM_PROTO_GetShiftState [19:11:18]wFMCommunicate request_size=4 [19:11:18]MH_SAM_APDU [19:11:18]CAPDU: 80 13 01 00 [19:11:18]Write to MH i2c: E2 08 00 EA 20 80 13 01 00 00 00 00 00 87 [19:11:18]Write i2c OK [19:11:18]MH_I2C_Read... [19:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:18]Read from MH i2c: E2 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 0E 00 [19:11:18]MH_I2C_Read... [19:11:18]Read from MH i2c: E2 0E 00 EA 20 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 04 [19:11:18]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:11:18]wFMCommunicate OK [19:11:18]SAM_PROTO_GetShiftState done [19:11:18]FM_GetShiftState done [19:11:18]req_shift_opened done [19:11:18]requested_item shift.open_date is exist - process it [19:11:18]req_shift_open_date [19:11:18]req_shift_open_date done [19:11:18]produce_requested_data done [19:11:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112043,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:11:18]process_action_free print_text [19:11:18]json_value_free [19:11:18]json_value_free done [19:11:18]process_json_proto returns [19:11:18]Send response to host [19:11:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112043,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:11:18]free response buf [19:11:18]execute_script done [19:11:18]execute_script returns [19:11:18]free content buf [19:11:18]Sock 7.Close socket [19:11:18]Sock 7.Thread stoped [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [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:52]accept exits with 9 [19:12:52]New connection [19:12:52]New thread 3066731876 created [19:12:52]Thread 3066875236 joined [19:12:52]Waiting for new connection... [19:12:52] Sock 9.Parse request [19:12:52]Sock 9.Check first char [19:12:52]Sock 9.First char is OK [19:12:52]request: POST /json_proto HTTP/1.0 [19:12:52]Method: POST [19:12:52]URL: /json_proto [19:12:52]Method is POST - this is cgi request [19:12:52]url: /json_proto [19:12:52]query_string will be loaded in cgi processing [19:12:52]execute_cgi json_proto POST (null) [19:12:52]execute_cgi path=json_proto method=POST [19:12:52]POST find Content-Length [19:12:52]Host: 172.17.59.68:8080 [19:12:52]Content-Length: 677 [19:12:52]Content-Type: application/json [19:12:52] [19:12:52]POST finish read [19:12:52]Found Content-Length = 677 [19:12:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:52]execute_script... [19:12: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)320698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:52]POST & json_proto [19:12:52]process_json_proto [19:12:52]json parsed OK: [19:12:52]protocol is kg_v1.0 [19:12:52]action value=close_receipt [19:12:52]process_action close_receipt [19:12:52]cmd_close_receipt [19:12:52]MH_GetDate [19:12:52]Write to MH i2c: F0 00 00 EB 20 FA [19:12:52]Write i2c OK [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: F0 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: F0 09 00 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: F0 09 00 EB 20 00 BC D0 75 66 BC EC 60 65 D7 [19:12:52]GetLastDocTimeStamp 1718996777 [19:12:52]current date 1718997180 [19:12:52]FM_GetShiftState [19:12:52]SAM_PROTO_GetShiftState [19:12:52]wFMCommunicate request_size=4 [19:12:52]MH_SAM_APDU [19:12:52]CAPDU: 80 13 01 00 [19:12:52]Write to MH i2c: E2 08 00 EC 20 80 13 01 00 00 00 00 00 89 [19:12:52]Write i2c OK [19:12:52]MH_I2C_Read... [19:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:52]Read from MH i2c: E2 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 0E 00 [19:12:52]MH_I2C_Read... [19:12:52]Read from MH i2c: E2 0E 00 EC 20 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 06 [19:12:52]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:12:52]wFMCommunicate OK [19:12:52]SAM_PROTO_GetShiftState done [19:12:52]FM_GetShiftState done [19:12:52]opened in 1718933695 [19:12:52]opened+sec_in_day 1719020095 [19:12:52]quantity*price = 30012 [19:12:52]sum+1 = 30014 [19:12:52]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 212 21.06.2024 19:13 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112044 肖袩袛: 215531074260517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T191301&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112044&fm=215531074260517&tin=02508201610067®Number=0000000000092771&sum=30000 [19:12:53]StoreToDocumentArchive [19:12:53]shift 390 fd 112044 [19:12:53]save to /storage/0390/doc_00112044 [19:12:53]save last doc name /storage/0390/doc_00112044 to /storage/kkm_last_doc_name [19:12:53]save OK [19:12:53]Clear old archive folders... [19:12:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:53]tlvbuf is 00355440 [19:12:53]SAM_PROTO_ClearQueue [19:12:53]wFMCommunicate request_size=4 [19:12:53]MH_SAM_APDU [19:12:53]CAPDU: 80 09 00 00 [19:12:53]Write to MH i2c: E2 08 00 F9 20 80 09 00 00 00 00 00 00 8B [19:12:53]Write i2c OK [19:12:53]MH_I2C_Read... [19:12:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:53]Read from MH i2c: E2 [19:12:53]MH_I2C_Read... [19:12:53]Read from MH i2c: E2 03 00 [19:12:53]MH_I2C_Read... [19:12:53]Read from MH i2c: E2 03 00 F9 20 00 90 00 8D [19:12:53]RAPDU: 90 00 [19:12:53]wFMCommunicate OK [19:12:53]SAM_PROTO_ClearQueue done [19:12:53]KKMCreateOFDPacket [19:12:53]OFDProtocolAddRootSTLVToBuf [19:12:53]FM_MakeSignedData [19:12:53]FM_MakeSignedData [19:12:53]SAM_PROTO_SignData [19:12:53]wFMCommunicate request_size=4 [19:12:53]MH_SAM_APDU [19:12:53]CAPDU: 80 0D 01 02 [19:12:53]Write to MH i2c: E2 08 00 FA 20 80 0D 01 02 00 00 00 00 93 [19:12:53]Write i2c OK [19:12:53]MH_I2C_Read... [19:12:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:54]Read from MH i2c: E2 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 03 00 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 03 00 FA 20 00 90 00 8E [19:12:54]RAPDU: 90 00 [19:12:54]wFMCommunicate OK [19:12:54]wFMCommunicate request_size=255 [19:12:54]MH_SAM_APDU [19:12: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 D4 00 00 00 F4 03 04 00 BD D0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B5 01 00 35 04 06 00 C4 [19:12:54]Write to MH i2c: E2 02 01 FB 20 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 D4 00 00 00 F4 03 04 00 BD D0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B5 01 00 35 04 06 00 C4 00 00 CE [19:12:54]Write i2c OK [19:12:54]MH_I2C_Read... [19:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:54]Read from MH i2c: E2 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 03 00 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 03 00 FB 20 00 90 00 8F [19:12:54]RAPDU: 90 00 [19:12:54]wFMCommunicate OK [19:12:54]wFMCommunicate request_size=10 [19:12:54]MH_SAM_APDU [19:12:54]CAPDU: 80 0D 02 02 05 06 3D 1E 8E 25 [19:12:54]Write to MH i2c: E2 0D 00 FC 20 80 0D 02 02 05 00 06 3D 1E 8E 25 00 00 B4 [19:12:54]Write i2c OK [19:12:54]MH_I2C_Read... [19:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:54]Read from MH i2c: E2 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 03 00 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 03 00 FC 20 00 90 00 90 [19:12:54]RAPDU: 90 00 [19:12:54]wFMCommunicate OK [19:12:54]wFMCommunicate request_size=4 [19:12:54]MH_SAM_APDU [19:12:54]CAPDU: 80 0D 03 02 [19:12:54]Write to MH i2c: E2 08 00 FD 20 80 0D 03 02 00 00 00 00 98 [19:12:54]Write i2c OK [19:12:54]MH_I2C_Read... [19:12:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:54]Read from MH i2c: E2 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 0B 00 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 0B 00 FD 20 00 7A 48 19 73 7D DE F3 1A 90 00 4F [19:12:54]RAPDU: 7A 48 19 73 7D DE F3 1A 90 00 [19:12:54]wFMCommunicate OK [19:12:54]SAM_PROTO_SignData done [19:12:54]FM_MakeSignedData done [19:12:54]CreateOFDProtocolMessage [19:12:54]wFMCommunicate request_size=4 [19:12:54]MH_SAM_APDU [19:12:54]CAPDU: 80 11 00 00 [19:12:54]Write to MH i2c: E2 08 00 FE 20 80 11 00 00 00 00 00 00 98 [19:12:54]Write i2c OK [19:12:54]MH_I2C_Read... [19:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:54]Read from MH i2c: E2 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 17 00 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: E2 17 00 FE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EA [19:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:12:54]wFMCommunicate OK [19:12:54]CreateOFDProtocolMessage done [19:12:54]OFDSenderStorePacket 112044 [19:12:54]StoreOFDPacket docnum=112044 [19:12:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 57 6C 07 01 22 05 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 D4 00 00 00 F4 03 04 00 BD D0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B5 01 00 35 04 06 00 C4 06 3D 1E 8E 25 7A 48 19 73 7D DE F3 1A [19:12:54]CheckFolder [19:12:54]dirname=/storage/ofd_packets [19:12:54]CheckFolder done [19:12:54]ProducePacketName [19:12:54]name=ofd_packets/00112044 [19:12:54]NVStorageSaveData ofd_packets/00112044 [19:12:54]File name is /storage/ofd_packets/00112044 [19:12:54]Write 301 bytes [19:12:54]NVStorageSaveData done [19:12:54]OFDSenderStorePacket done [19:12:54]KKMCreateOFDPacket done [19:12:54]NVStorageSaveData kkm_last_timestamp [19:12:54]File name is /storage/kkm_last_timestamp [19:12:54]Write 4 bytes [19:12:54]NVStorageSaveData done [19:12:54]ExternCall_PrintAddStr [19:12:54]wPrintStart [19:12:54]Write to MH i2c: 01 00 00 FF 20 1F [19:12:54]Write i2c OK [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: 01 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: 01 07 00 [19:12:54]MH_I2C_Read... [19:12:54]Read from MH i2c: 01 07 00 FF 20 00 00 00 00 00 FF 0F 34 [19:12:54]RasterBufferAndPrint [19:12:54]line 小褔械褌 N : (1)320698 [19:12:54]line 袠袧袧: 02508201610067 [19:12:54]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:12:54]line 袩袪袨袛袗袞袗 [19:12:54]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:12:54]line 孝芯胁邪褉: 2710124130 [19:12:54]line 袗懈-92-袣-5 [19:12:54]line 4.520 * 66.40 [19:12:54]line = 300.13 [19:12:54]line 袧袛小 12% 袧小袩 1% [19:12:54]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:12:54]line 袨袣袪校袚袥袝袧袠袝: -0.13 [19:12:54]line 袠孝袨袚袨: 300.00 [19:12:54]line 袙薪械褋械薪芯: 300.00 [19:12:54]line 小袛袗效袗: 0.00 [19:12:54]line 袧小袩 1% : 2.66 [19:12:54]line 袧袛小 12% : 31.87 [19:12:54]line 袧邪谢懈褔薪褘屑懈: 300.00 [19:12:54]line 袘械蟹薪邪谢.: 0.00 [19:12:54]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:12:54]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:12:54]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:12:54]line 效械泻 212 21.06.2024 19:13 [19:12:54]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:12:54]line 袟袧袦: 0300000198 [19:12:54]line 袪袧袦: 0000000000092771 [19:12:54]line 袙械褉褋懈褟 袣袣袦: 001 [19:12:54]line 肖袦: 0000000000875083 [19:12:54]line 肖袛: 112044 [19:12:54]line 肖袩袛: 215531074260517 [19:12:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T191301&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112044&fm=215531074260517&tin=02508201610067®Number=0000000000092771&sum=30000 [19:12:54]OFD Sender: Processing packet 112044 [packets to send 38, broken 37] [19:12:54]ProducePacketName [19:12:54]name=ofd_packets/00112044 [19:12:54]OFD Sender: To server: 嚂鰌G, [19:12:54]CommunicateWithHost lk.salyk.kg:30040 [19:12:54]ConnectInit lk.salyk.kg [19:12:54]written 0, free lines is 4095 [19:12:54]Connected sock=10 [19:12:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 57 6C 07 01 22 05 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 D4 00 00 00 F4 03 04 00 BD D0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B5 01 00 35 04 06 00 C4 06 3D 1E 8E 25 7A 48 19 73 7D DE F3 1A [19:12:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3A 3E 47 00 B0 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 30 38 37 35 30 38 33 10 04 04 00 AC B5 01 00 F4 03 04 00 DF 67 75 66 B6 04 01 00 00 87 5F CF FB 29 7C 03 8A [19:12:55]CommunicateWithHost err = 0 [19:12:55]CheckOFDResponse [19:12:55]1017 (14) - 77093643461234 [19:12:55]1041 (16) - 0000000000875083 [19:12:55]1040 (4) - 112044 [19:12:55]1012 (4) - 21.06.2024 11:45 [19:12:55]1206 (1) - 0 [19:12:55]OFD Sender: Remove packet 112044 [19:12:55]ProducePacketName [19:12:55]name=ofd_packets/00112044 [19:12:55]NVStorageDeleteData [19:12:55]Write to MH i2c: 01 00 00 2A 21 4B [19:12:55]Write i2c OK [19:12:55]MH_I2C_Read... [19:12:55]Read from MH i2c: 01 [19:12:55]MH_I2C_Read... [19:12:55]Read from MH i2c: 01 07 00 [19:12:55]MH_I2C_Read... [19:12:55]Read from MH i2c: 01 07 00 2A 21 00 00 00 00 00 D0 0C 2E [19:12:55]RasterBufferAndPrint [19:12:55]line [19:12:55]line [19:12:55]line [19:12:55]line [19:12:55]line [19:12:55]written 0, free lines is 3288 [19:12:55]MH_Cut [19:12:55]Write to MH i2c: D1 01 00 31 21 01 24 [19:12:55]Write i2c OK [19:12:55]MH_I2C_Read... [19:12:55]Read from MH i2c: D1 [19:12:55]MH_I2C_Read... [19:12:55]Read from MH i2c: D1 01 00 [19:12:55]MH_I2C_Read... [19:12:55]Read from MH i2c: D1 01 00 31 21 00 23 [19:12:55]Write to MH i2c: 01 00 00 32 21 53 [19:12:55]Write i2c OK [19:12:55]MH_I2C_Read... [19:12:55]OFD Sender: No OFD packet to send [19:12:55]*** Cut start [19:12:55]*** Partial cut [19:12:55]*** CUTSNS_PIN = 1 [19:12:56]*** CUTSNS_PIN = 0 [19:12:56]*** Brake cut motor [19:12:56]Read from MH i2c: 01 [19:12:56]MH_I2C_Read... [19:12:56]*** Stop cut motor [19:12:56]*** Cut end [19:12:56]Read from MH i2c: 01 07 00 [19:12:56]MH_I2C_Read... [19:12:56]Read from MH i2c: 01 07 00 32 21 00 00 00 00 00 FF 0F 68 [19:12:56]process_action close_receipt done [19:12:56]requested_data is exist [19:12:56]produce_requested_data [19:12:56]requested_item fm.sn is exist - process it [19:12:56]wFMCommunicate request_size=4 [19:12:56]MH_SAM_APDU [19:12:56]CAPDU: 80 11 00 00 [19:12:56]Write to MH i2c: E2 08 00 33 21 80 11 00 00 00 00 00 00 CE [19:12:56]Write i2c OK [19:12:56]MH_I2C_Read... [19:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:56]Read from MH i2c: E2 [19:12:56]MH_I2C_Read... [19:12:56]Read from MH i2c: E2 17 00 [19:12:56]MH_I2C_Read... [19:12:56]Read from MH i2c: E2 17 00 33 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 20 [19:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:12:56]wFMCommunicate OK [19:12:56]requested_item fd.num is exist - process it [19:12:56]SAM_PROTO_GetFieldsCounters [19:12:56]wFMCommunicate request_size=4 [19:12:56]MH_SAM_APDU [19:12:56]CAPDU: 80 13 00 00 [19:12:56]Write to MH i2c: E2 08 00 34 21 80 13 00 00 00 00 00 00 D1 [19:12:56]Write i2c OK [19:12:56]MH_I2C_Read... [19:12:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:56]Read from MH i2c: E2 [19:12:56]MH_I2C_Read... [19:12:56]Read from MH i2c: E2 62 00 [19:12:56]MH_I2C_Read... [19:12:56]Read from MH i2c: E2 62 00 34 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [19:12:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:56]wFMCommunicate OK [19:12:56]SAM_PROTO_GetFieldsCounters done [19:12:56]requested_item shift.num is exist - process it [19:12:56]requested_item shift.opened is exist - process it [19:12:56]req_shift_opened [19:12:56]FM_GetShiftState [19:12:56]SAM_PROTO_GetShiftState [19:12:56]wFMCommunicate request_size=4 [19:12:56]MH_SAM_APDU [19:12:56]CAPDU: 80 13 01 00 [19:12:56]Write to MH i2c: E2 08 00 35 21 80 13 01 00 00 00 00 00 D3 [19:12:56]Write i2c OK [19:12:56]MH_I2C_Read... [19:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:56]Read from MH i2c: E2 [19:12:56]MH_I2C_Read... [19:12:56]Read from MH i2c: E2 0E 00 [19:12:56]MH_I2C_Read... [19:12:56]Read from MH i2c: E2 0E 00 35 21 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 50 [19:12:56]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:12:56]wFMCommunicate OK [19:12:56]SAM_PROTO_GetShiftState done [19:12:56]FM_GetShiftState done [19:12:56]req_shift_opened done [19:12:56]requested_item shift.open_date is exist - process it [19:12:56]req_shift_open_date [19:12:56]req_shift_open_date done [19:12:56]produce_requested_data done [19:12:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112044,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:12:56]process_action_free close_receipt [19:12:56]json_value_free [19:12:56]json_value_free done [19:12:56]process_json_proto returns [19:12:56]Send response to host [19:12:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112044,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:12:56]free response buf [19:12:56]execute_script done [19:12:56]execute_script returns [19:12:56]free content buf [19:12:56]Sock 9.Close socket [19:12:56]Sock 9.Thread stoped [19:13:00]OFD Sender: No OFD packet to send [19:13:01]accept exits with 7 [19:13:01]New connection [19:13:01]New thread 3066875236 created [19:13:01]Thread 3066731876 joined [19:13:01]Waiting for new connection... [19:13:01] Sock 7.Parse request [19:13:01]Sock 7.Check first char [19:13:01]Sock 7.First char is OK [19:13:01]request: POST /json_proto HTTP/1.0 [19:13:01]Method: POST [19:13:01]URL: /json_proto [19:13:01]Method is POST - this is cgi request [19:13:01]url: /json_proto [19:13:01]query_string will be loaded in cgi processing [19:13:01]execute_cgi json_proto POST (null) [19:13:01]execute_cgi path=json_proto method=POST [19:13:01]POST find Content-Length [19:13:01]Host: 172.17.59.68:8080 [19:13:01]Content-Length: 678 [19:13:01]Content-Type: application/json [19:13:01] [19:13:01]POST finish read [19:13:01]Found Content-Length = 678 [19:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.020, "sum" : 740.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:01]execute_script... [19:13:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.020, "sum" : 740.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:01]POST & json_proto [19:13:01]process_json_proto [19:13:01]json parsed OK: [19:13:01]protocol is kg_v1.0 [19:13:01]action value=close_receipt [19:13:01]process_action close_receipt [19:13:01]cmd_close_receipt [19:13:01]MH_GetDate [19:13:01]Write to MH i2c: F0 00 00 36 21 46 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: F0 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: F0 09 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: F0 09 00 36 21 00 C5 D0 75 66 BC EC 60 65 2C [19:13:01]GetLastDocTimeStamp 1718997181 [19:13:01]current date 1718997189 [19:13:01]FM_GetShiftState [19:13:01]SAM_PROTO_GetShiftState [19:13:01]wFMCommunicate request_size=4 [19:13:01]MH_SAM_APDU [19:13:01]CAPDU: 80 13 01 00 [19:13:01]Write to MH i2c: E2 08 00 37 21 80 13 01 00 00 00 00 00 D5 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:01]Read from MH i2c: E2 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: E2 0E 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: E2 0E 00 37 21 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 52 [19:13:01]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:13:01]wFMCommunicate OK [19:13:01]SAM_PROTO_GetShiftState done [19:13:01]FM_GetShiftState done [19:13:01]opened in 1718933695 [19:13:01]opened+sec_in_day 1719020095 [19:13:01]quantity*price = 74047 [19:13:01]sum+1 = 74049 [19:13:01]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.48 袠孝袨袚袨: 740.00 袙薪械褋械薪芯: 740.00 小袛袗效袗: 0.00 袧小袩 1% : 6.55 袧袛小 12% : 78.63 袧邪谢懈褔薪褘屑懈: 740.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 213 21.06.2024 19:13 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112045 肖袩袛: 261257401320436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T191309&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112045&fm=261257401320436&tin=02508201610067®Number=0000000000092771&sum=74000 [19:13:02]StoreToDocumentArchive [19:13:02]shift 390 fd 112045 [19:13:02]save to /storage/0390/doc_00112045 [19:13:02]save last doc name /storage/0390/doc_00112045 to /storage/kkm_last_doc_name [19:13:02]save OK [19:13:02]Clear old archive folders... [19:13:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:02]tlvbuf is 00336FA0 [19:13:02]SAM_PROTO_ClearQueue [19:13:02]wFMCommunicate request_size=4 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 09 00 00 [19:13:02]Write to MH i2c: E2 08 00 44 21 80 09 00 00 00 00 00 00 D7 [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:02]Read from MH i2c: E2 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 03 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 03 00 44 21 00 90 00 D9 [19:13:02]RAPDU: 90 00 [19:13:02]wFMCommunicate OK [19:13:02]SAM_PROTO_ClearQueue done [19:13:02]KKMCreateOFDPacket [19:13:02]OFDProtocolAddRootSTLVToBuf [19:13:02]FM_MakeSignedData [19:13:02]FM_MakeSignedData [19:13:02]SAM_PROTO_SignData [19:13:02]wFMCommunicate request_size=4 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 0D 01 02 [19:13:02]Write to MH i2c: E2 08 00 45 21 80 0D 01 02 00 00 00 00 DF [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:02]Read from MH i2c: E2 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 03 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 03 00 45 21 00 90 00 DA [19:13:02]RAPDU: 90 00 [19:13:02]wFMCommunicate OK [19:13:02]wFMCommunicate request_size=255 [19:13:02]MH_SAM_APDU [19:13:02]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 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 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 B7 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 D5 00 00 00 F4 03 04 00 C5 D0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B5 01 00 35 04 06 00 ED [19:13:02]Write to MH i2c: E2 02 01 46 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 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 B7 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 D5 00 00 00 F4 03 04 00 C5 D0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B5 01 00 35 04 06 00 ED 00 00 7A [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:02]Read from MH i2c: E2 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 03 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 03 00 46 21 00 90 00 DB [19:13:02]RAPDU: 90 00 [19:13:02]wFMCommunicate OK [19:13:02]wFMCommunicate request_size=10 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 0D 02 02 05 9C BA 99 C3 F4 [19:13:02]Write to MH i2c: E2 0D 00 47 21 80 0D 02 02 05 00 9C BA 99 C3 F4 00 00 92 [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:02]Read from MH i2c: E2 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 03 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 03 00 47 21 00 90 00 DC [19:13:02]RAPDU: 90 00 [19:13:02]wFMCommunicate OK [19:13:02]wFMCommunicate request_size=4 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 0D 03 02 [19:13:02]Write to MH i2c: E2 08 00 48 21 80 0D 03 02 00 00 00 00 E4 [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:03]Read from MH i2c: E2 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 0B 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 0B 00 48 21 00 75 7E 31 C5 76 7E 9D A6 90 00 05 [19:13:03]RAPDU: 75 7E 31 C5 76 7E 9D A6 90 00 [19:13:03]wFMCommunicate OK [19:13:03]SAM_PROTO_SignData done [19:13:03]FM_MakeSignedData done [19:13:03]CreateOFDProtocolMessage [19:13:03]wFMCommunicate request_size=4 [19:13:03]MH_SAM_APDU [19:13:03]CAPDU: 80 11 00 00 [19:13:03]Write to MH i2c: E2 08 00 49 21 80 11 00 00 00 00 00 00 E4 [19:13:03]Write i2c OK [19:13:03]MH_I2C_Read... [19:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:03]Read from MH i2c: E2 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 17 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 17 00 49 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 36 [19:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:13:03]wFMCommunicate OK [19:13:03]CreateOFDProtocolMessage done [19:13:03]OFDSenderStorePacket 112045 [19:13:03]StoreOFDPacket docnum=112045 [19:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 55 AE 07 01 4F 73 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 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 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 B7 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 D5 00 00 00 F4 03 04 00 C5 D0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B5 01 00 35 04 06 00 ED 9C BA 99 C3 F4 75 7E 31 C5 76 7E 9D A6 [19:13:03]CheckFolder [19:13:03]dirname=/storage/ofd_packets [19:13:03]CheckFolder done [19:13:03]ProducePacketName [19:13:03]name=ofd_packets/00112045 [19:13:03]NVStorageSaveData ofd_packets/00112045 [19:13:03]File name is /storage/ofd_packets/00112045 [19:13:03]Write 301 bytes [19:13:03]NVStorageSaveData done [19:13:03]OFDSenderStorePacket done [19:13:03]KKMCreateOFDPacket done [19:13:03]NVStorageSaveData kkm_last_timestamp [19:13:03]File name is /storage/kkm_last_timestamp [19:13:03]Write 4 bytes [19:13:03]NVStorageSaveData done [19:13:03]ExternCall_PrintAddStr [19:13:03]wPrintStart [19:13:03]Write to MH i2c: 01 00 00 4A 21 6B [19:13:03]Write i2c OK [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: 01 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: 01 07 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: 01 07 00 4A 21 00 00 00 00 00 FF 0F 80 [19:13:03]RasterBufferAndPrint [19:13:03]line 小褔械褌 N : (1)320697 [19:13:03]line 袠袧袧: 02508201610067 [19:13:03]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:13:03]line 袩袪袨袛袗袞袗 [19:13:03]line 孝袪袣 (袦袪袣, 袚袧袣) : 12 [19:13:03]line 孝芯胁邪褉: 2710124500 [19:13:03]line 袗懈-95-袣-5 [19:13:03]line 10.020 * 73.90 [19:13:03]line = 740.48 [19:13:03]line 袧袛小 12% 袧小袩 1% [19:13:03]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:13:03]line 袨袣袪校袚袥袝袧袠袝: -0.48 [19:13:03]line 袠孝袨袚袨: 740.00 [19:13:03]line 袙薪械褋械薪芯: 740.00 [19:13:03]line 小袛袗效袗: 0.00 [19:13:03]line 袧小袩 1% : 6.55 [19:13:03]line 袧袛小 12% : 78.63 [19:13:03]line 袧邪谢懈褔薪褘屑懈: 740.00 [19:13:03]line 袘械蟹薪邪谢.: 0.00 [19:13:03]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:13:03]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:13:03]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:13:03]line 效械泻 213 21.06.2024 19:13 [19:13:03]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:13:03]line 袟袧袦: 0300000198 [19:13:03]line 袪袧袦: 0000000000092771 [19:13:03]line 袙械褉褋懈褟 袣袣袦: 001 [19:13:03]line 肖袦: 0000000000875083 [19:13:03]line 肖袛: 112045 [19:13:03]line 肖袩袛: 261257401320436 [19:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T191309&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112045&fm=261257401320436&tin=02508201610067®Number=0000000000092771&sum=74000 [19:13:03]written 0, free lines is 4095 [19:13:03]OFD Sender: Processing packet 112045 [packets to send 38, broken 37] [19:13:03]ProducePacketName [19:13:03]name=ofd_packets/00112045 [19:13:03]OFD Sender: To server: 嚂鰌G, [19:13:03]CommunicateWithHost lk.salyk.kg:30040 [19:13:03]ConnectInit lk.salyk.kg [19:13:03]Connected sock=10 [19:13:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 55 AE 07 01 4F 73 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 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 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 B7 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 D5 00 00 00 F4 03 04 00 C5 D0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B5 01 00 35 04 06 00 ED 9C BA 99 C3 F4 75 7E 31 C5 76 7E 9D A6 [19:13:03]Write to MH i2c: 01 00 00 75 21 96 [19:13:03]Write i2c OK [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: 01 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: 01 07 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: 01 07 00 75 21 00 00 00 00 00 EC 0C 95 [19:13:03]RasterBufferAndPrint [19:13:03]line [19:13:03]line [19:13:03]line [19:13:03]line [19:13:03]line [19:13:03]written 0, free lines is 3318 [19:13:03]MH_Cut [19:13:03]Write to MH i2c: D1 01 00 7C 21 01 6F [19:13:03]Write i2c OK [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: D1 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: D1 01 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: D1 01 00 7C 21 00 6E [19:13:03]Write to MH i2c: 01 00 00 7D 21 9E [19:13:03]Write i2c OK [19:13:03]MH_I2C_Read... [19:13:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A4 A0 47 00 80 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 30 38 37 35 30 38 33 10 04 04 00 AD B5 01 00 F4 03 04 00 E8 67 75 66 B6 04 01 00 00 A7 7C BB 7F BF 10 C0 F8 [19:13:03]CommunicateWithHost err = 0 [19:13:03]CheckOFDResponse [19:13:03]1017 (14) - 77093643461234 [19:13:03]1041 (16) - 0000000000875083 [19:13:03]1040 (4) - 112045 [19:13:03]1012 (4) - 21.06.2024 11:45 [19:13:03]1206 (1) - 0 [19:13:03]OFD Sender: Remove packet 112045 [19:13:03]ProducePacketName [19:13:03]name=ofd_packets/00112045 [19:13:03]NVStorageDeleteData [19:13:04]OFD Sender: No OFD packet to send [19:13:04]*** Cut start [19:13:04]*** Partial cut [19:13:04]*** CUTSNS_PIN = 1 [19:13:04]*** CUTSNS_PIN = 0 [19:13:04]*** Brake cut motor [19:13:04]Read from MH i2c: 01 [19:13:04]MH_I2C_Read... [19:13:04]*** Stop cut motor [19:13:04]*** Cut end [19:13:04]Read from MH i2c: 01 07 00 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: 01 07 00 7D 21 00 00 00 00 00 FF 0F B3 [19:13:04]process_action close_receipt done [19:13:04]requested_data is exist [19:13:04]produce_requested_data [19:13:04]requested_item fm.sn is exist - process it [19:13:04]wFMCommunicate request_size=4 [19:13:04]MH_SAM_APDU [19:13:04]CAPDU: 80 11 00 00 [19:13:04]Write to MH i2c: E2 08 00 7E 21 80 11 00 00 00 00 00 00 19 [19:13:04]Write i2c OK [19:13:04]MH_I2C_Read... [19:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:04]Read from MH i2c: E2 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 17 00 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: E2 17 00 7E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6B [19:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:13:04]wFMCommunicate OK [19:13:04]requested_item fd.num is exist - process it [19:13:04]SAM_PROTO_GetFieldsCounters [19:13:04]wFMCommunicate request_size=4 [19:13:04]MH_SAM_APDU [19:13:04]CAPDU: 80 13 00 00 [19:13:04]Write to MH i2c: E2 08 00 7F 21 80 13 00 00 00 00 00 00 1C [19:13:04]Write i2c OK [19:13:04]MH_I2C_Read... [19:13:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:05]Read from MH i2c: E2 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: E2 62 00 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: E2 62 00 7F 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AD B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [19:13:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AD B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:05]wFMCommunicate OK [19:13:05]SAM_PROTO_GetFieldsCounters done [19:13:05]requested_item shift.num is exist - process it [19:13:05]requested_item shift.opened is exist - process it [19:13:05]req_shift_opened [19:13:05]FM_GetShiftState [19:13:05]SAM_PROTO_GetShiftState [19:13:05]wFMCommunicate request_size=4 [19:13:05]MH_SAM_APDU [19:13:05]CAPDU: 80 13 01 00 [19:13:05]Write to MH i2c: E2 08 00 80 21 80 13 01 00 00 00 00 00 1E [19:13:05]Write i2c OK [19:13:05]MH_I2C_Read... [19:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:05]Read from MH i2c: E2 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: E2 0E 00 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: E2 0E 00 80 21 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 9B [19:13:05]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:13:05]wFMCommunicate OK [19:13:05]SAM_PROTO_GetShiftState done [19:13:05]FM_GetShiftState done [19:13:05]req_shift_opened done [19:13:05]requested_item shift.open_date is exist - process it [19:13:05]req_shift_open_date [19:13:05]req_shift_open_date done [19:13:05]produce_requested_data done [19:13:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112045,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:13:05]process_action_free close_receipt [19:13:05]json_value_free [19:13:05]json_value_free done [19:13:05]process_json_proto returns [19:13:05]Send response to host [19:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112045,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:13:05]free response buf [19:13:05]execute_script done [19:13:05]execute_script returns [19:13:05]free content buf [19:13:05]Sock 7.Close socket [19:13:05]Sock 7.Thread stoped [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:03]accept exits with 9 [19:15:03]New connection [19:15:03]New thread 3066731876 created [19:15:03]Thread 3066875236 joined [19:15:03]Waiting for new connection... [19:15:03] Sock 9.Parse request [19:15:03]Sock 9.Check first char [19:15:03]Sock 9.First char is OK [19:15:03]request: POST /json_proto HTTP/1.0 [19:15:03]Method: POST [19:15:03]URL: /json_proto [19:15:03]Method is POST - this is cgi request [19:15:03]url: /json_proto [19:15:03]query_string will be loaded in cgi processing [19:15:03]execute_cgi json_proto POST (null) [19:15:03]execute_cgi path=json_proto method=POST [19:15:03]POST find Content-Length [19:15:03]Host: 172.17.59.68:8080 [19:15:03]Content-Length: 805 [19:15:03]Content-Type: application/json [19:15:03] [19:15:03]POST finish read [19:15:03]Found Content-Length = 805 [19:15:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:03]execute_script... [19:15: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)320699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:03]POST & json_proto [19:15:03]process_json_proto [19:15:03]json parsed OK: [19:15:03]protocol is kg_v1.0 [19:15:03]action value=close_receipt [19:15:03]process_action close_receipt [19:15:03]cmd_close_receipt [19:15:03]MH_GetDate [19:15:03]Write to MH i2c: F0 00 00 81 21 91 [19:15:03]Write i2c OK [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: F0 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: F0 09 00 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: F0 09 00 81 21 00 40 D1 75 66 BC EC 60 65 F3 [19:15:03]GetLastDocTimeStamp 1718997189 [19:15:03]current date 1718997312 [19:15:03]FM_GetShiftState [19:15:03]SAM_PROTO_GetShiftState [19:15:03]wFMCommunicate request_size=4 [19:15:03]MH_SAM_APDU [19:15:03]CAPDU: 80 13 01 00 [19:15:03]Write to MH i2c: E2 08 00 82 21 80 13 01 00 00 00 00 00 20 [19:15:03]Write i2c OK [19:15:03]MH_I2C_Read... [19:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:03]Read from MH i2c: E2 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 0E 00 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 0E 00 82 21 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 9D [19:15:03]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:15:03]wFMCommunicate OK [19:15:03]SAM_PROTO_GetShiftState done [19:15:03]FM_GetShiftState done [19:15:03]opened in 1718933695 [19:15:03]opened+sec_in_day 1719020095 [19:15:03]quantity*price = 30012 [19:15:03]sum+1 = 30014 [19:15:03]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 300.13 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 300.13 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 214 21.06.2024 19:15 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112046 肖袩袛: 82035837509672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T191512&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112046&fm=82035837509672&tin=02508201610067®Number=0000000000092771&sum=30013 [19:15:04]StoreToDocumentArchive [19:15:04]shift 390 fd 112046 [19:15:04]save to /storage/0390/doc_00112046 [19:15:04]save last doc name /storage/0390/doc_00112046 to /storage/kkm_last_doc_name [19:15:04]save OK [19:15:04]Clear old archive folders... [19:15:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:04]tlvbuf is 00359460 [19:15:04]SAM_PROTO_ClearQueue [19:15:04]wFMCommunicate request_size=4 [19:15:04]MH_SAM_APDU [19:15:04]CAPDU: 80 09 00 00 [19:15:04]Write to MH i2c: E2 08 00 8F 21 80 09 00 00 00 00 00 00 22 [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:05]Read from MH i2c: E2 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 03 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 03 00 8F 21 00 90 00 24 [19:15:05]RAPDU: 90 00 [19:15:05]wFMCommunicate OK [19:15:05]SAM_PROTO_ClearQueue done [19:15:05]KKMCreateOFDPacket [19:15:05]OFDProtocolAddRootSTLVToBuf [19:15:05]FM_MakeSignedData [19:15:05]FM_MakeSignedData [19:15:05]SAM_PROTO_SignData [19:15:05]wFMCommunicate request_size=4 [19:15:05]MH_SAM_APDU [19:15:05]CAPDU: 80 0D 01 02 [19:15:05]Write to MH i2c: E2 08 00 90 21 80 0D 01 02 00 00 00 00 2A [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:05]Read from MH i2c: E2 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 03 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 03 00 90 21 00 90 00 25 [19:15:05]RAPDU: 90 00 [19:15:05]wFMCommunicate OK [19:15:05]wFMCommunicate request_size=255 [19:15:05]MH_SAM_APDU [19:15: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 40 D1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B5 01 00 35 04 06 00 4A [19:15:05]Write to MH i2c: E2 02 01 91 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 40 D1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B5 01 00 35 04 06 00 4A 00 00 8D [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:05]Read from MH i2c: E2 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 03 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 03 00 91 21 00 90 00 26 [19:15:05]RAPDU: 90 00 [19:15:05]wFMCommunicate OK [19:15:05]wFMCommunicate request_size=10 [19:15:05]MH_SAM_APDU [19:15:05]CAPDU: 80 0D 02 02 05 9C 74 F4 20 28 [19:15:05]Write to MH i2c: E2 0D 00 92 21 80 0D 02 02 05 00 9C 74 F4 20 28 00 00 83 [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:05]Read from MH i2c: E2 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 03 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 03 00 92 21 00 90 00 27 [19:15:05]RAPDU: 90 00 [19:15:05]wFMCommunicate OK [19:15:05]wFMCommunicate request_size=4 [19:15:05]MH_SAM_APDU [19:15:05]CAPDU: 80 0D 03 02 [19:15:05]Write to MH i2c: E2 08 00 93 21 80 0D 03 02 00 00 00 00 2F [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:05]Read from MH i2c: E2 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 0B 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 0B 00 93 21 00 7B 6B 46 D2 38 30 35 BE 90 00 89 [19:15:05]RAPDU: 7B 6B 46 D2 38 30 35 BE 90 00 [19:15:05]wFMCommunicate OK [19:15:05]SAM_PROTO_SignData done [19:15:05]FM_MakeSignedData done [19:15:05]CreateOFDProtocolMessage [19:15:05]wFMCommunicate request_size=4 [19:15:05]MH_SAM_APDU [19:15:05]CAPDU: 80 11 00 00 [19:15:05]Write to MH i2c: E2 08 00 94 21 80 11 00 00 00 00 00 00 2F [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:05]Read from MH i2c: E2 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 17 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: E2 17 00 94 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 81 [19:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:15:05]wFMCommunicate OK [19:15:05]CreateOFDProtocolMessage done [19:15:05]OFDSenderStorePacket 112046 [19:15:05]StoreOFDPacket docnum=112046 [19:15:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3C 64 07 01 C6 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 40 D1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B5 01 00 35 04 06 00 4A 9C 74 F4 20 28 7B 6B 46 D2 38 30 35 BE [19:15:05]CheckFolder [19:15:05]dirname=/storage/ofd_packets [19:15:05]CheckFolder done [19:15:05]ProducePacketName [19:15:05]name=ofd_packets/00112046 [19:15:05]NVStorageSaveData ofd_packets/00112046 [19:15:05]File name is /storage/ofd_packets/00112046 [19:15:05]Write 301 bytes [19:15:05]NVStorageSaveData done [19:15:05]OFDSenderStorePacket done [19:15:05]KKMCreateOFDPacket done [19:15:05]NVStorageSaveData kkm_last_timestamp [19:15:05]File name is /storage/kkm_last_timestamp [19:15:05]Write 4 bytes [19:15:05]NVStorageSaveData done [19:15:05]ExternCall_PrintAddStr [19:15:05]wPrintStart [19:15:05]Write to MH i2c: 01 00 00 95 21 B6 [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: 01 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: 01 07 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: 01 07 00 95 21 00 00 00 00 00 FF 0F CB [19:15:05]RasterBufferAndPrint [19:15:05]line 小褔械褌 N : (1)320699 [19:15:05]line 袠袧袧: 02508201610067 [19:15:05]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:15:05]line 袩袪袨袛袗袞袗 [19:15:05]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:15:05]line 孝芯胁邪褉: 2710124130 [19:15:05]line 袗懈-92-袣-5 [19:15:05]line 4.520 * 66.40 [19:15:05]line = 300.13 [19:15:05]line 袧袛小 12% 袧小袩 1% [19:15:05]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:15:05]line 袠孝袨袚袨: 300.13 [19:15:05]line 袧小袩 1% : 2.66 [19:15:05]line 袧袛小 12% : 31.87 [19:15:05]line 袧邪谢懈褔薪褘屑懈: 0.00 [19:15:05]line 袘械蟹薪邪谢.: 300.13 [19:15:05]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:15:05]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:15:05]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:15:05]line 效械泻 214 21.06.2024 19:15 [19:15:05]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:15:05]line 袟袧袦: 0300000198 [19:15:05]line 袪袧袦: 0000000000092771 [19:15:05]line 袙械褉褋懈褟 袣袣袦: 001 [19:15:05]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [19:15:05]line 肖袦: 0000000000875083 [19:15:05]line 肖袛: 112046 [19:15:05]line 肖袩袛: 82035837509672 [19:15:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T191512&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112046&fm=82035837509672&tin=02508201610067®Number=0000000000092771&sum=30013 [19:15:05]written 0, free lines is 4095 [19:15:05]OFD Sender: Processing packet 112046 [packets to send 38, broken 37] [19:15:05]ProducePacketName [19:15:05]name=ofd_packets/00112046 [19:15:05]OFD Sender: To server: 嚂鰌G, [19:15:05]CommunicateWithHost lk.salyk.kg:30040 [19:15:05]ConnectInit lk.salyk.kg [19:15:05]Connected sock=11 [19:15:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3C 64 07 01 C6 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 40 D1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B5 01 00 35 04 06 00 4A 9C 74 F4 20 28 7B 6B 46 D2 38 30 35 BE [19:15:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8C 33 47 00 81 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B5 01 00 F4 03 04 00 62 68 75 66 B6 04 01 00 00 37 5C 55 38 07 05 43 EC [19:15:05]CommunicateWithHost err = 0 [19:15:05]CheckOFDResponse [19:15:05]1017 (14) - 77093643461234 [19:15:05]1041 (16) - 0000000000875083 [19:15:05]1040 (4) - 112046 [19:15:05]1012 (4) - 21.06.2024 11:47 [19:15:05]1206 (1) - 0 [19:15:05]OFD Sender: Remove packet 112046 [19:15:05]ProducePacketName [19:15:05]name=ofd_packets/00112046 [19:15:05]NVStorageDeleteData [19:15:05]Write to MH i2c: 01 00 00 BF 21 E0 [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: 01 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: 01 07 00 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: 01 07 00 BF 21 00 00 00 00 00 F5 0C E8 [19:15:05]RasterBufferAndPrint [19:15:05]line [19:15:05]line [19:15:05]line [19:15:05]line [19:15:05]line [19:15:05]written 0, free lines is 3324 [19:15:05]MH_Cut [19:15:05]Write to MH i2c: D1 01 00 C6 21 01 B9 [19:15:05]Write i2c OK [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: D1 [19:15:05]MH_I2C_Read... [19:15:05]Read from MH i2c: D1 01 00 [19:15:06]MH_I2C_Read... [19:15:06]Read from MH i2c: D1 01 00 C6 21 00 B8 [19:15:06]Write to MH i2c: 01 00 00 C7 21 E8 [19:15:06]Write i2c OK [19:15:06]MH_I2C_Read... [19:15:06]OFD Sender: No OFD packet to send [19:15:06]*** Cut start [19:15:06]*** Partial cut [19:15:06]*** CUTSNS_PIN = 1 [19:15:06]*** CUTSNS_PIN = 0 [19:15:06]*** Brake cut motor [19:15:07]Read from MH i2c: 01 [19:15:07]MH_I2C_Read... [19:15:07]*** Stop cut motor [19:15:07]*** Cut end [19:15:07]Read from MH i2c: 01 07 00 [19:15:07]MH_I2C_Read... [19:15:07]Read from MH i2c: 01 07 00 C7 21 00 00 00 00 00 FF 0F FD [19:15:07]process_action close_receipt done [19:15:07]requested_data is exist [19:15:07]produce_requested_data [19:15:07]requested_item fm.sn is exist - process it [19:15:07]wFMCommunicate request_size=4 [19:15:07]MH_SAM_APDU [19:15:07]CAPDU: 80 11 00 00 [19:15:07]Write to MH i2c: E2 08 00 C8 21 80 11 00 00 00 00 00 00 63 [19:15:07]Write i2c OK [19:15:07]MH_I2C_Read... [19:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:07]Read from MH i2c: E2 [19:15:07]MH_I2C_Read... [19:15:07]Read from MH i2c: E2 17 00 [19:15:07]MH_I2C_Read... [19:15:07]Read from MH i2c: E2 17 00 C8 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B5 [19:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:15:07]wFMCommunicate OK [19:15:07]requested_item fd.num is exist - process it [19:15:07]SAM_PROTO_GetFieldsCounters [19:15:07]wFMCommunicate request_size=4 [19:15:07]MH_SAM_APDU [19:15:07]CAPDU: 80 13 00 00 [19:15:07]Write to MH i2c: E2 08 00 C9 21 80 13 00 00 00 00 00 00 66 [19:15:07]Write i2c OK [19:15:07]MH_I2C_Read... [19:15:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:07]Read from MH i2c: E2 [19:15:07]MH_I2C_Read... [19:15:07]Read from MH i2c: E2 62 00 [19:15:07]MH_I2C_Read... [19:15:07]Read from MH i2c: E2 62 00 C9 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AE B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [19:15:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AE B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:07]wFMCommunicate OK [19:15:07]SAM_PROTO_GetFieldsCounters done [19:15:07]requested_item shift.num is exist - process it [19:15:07]requested_item shift.opened is exist - process it [19:15:07]req_shift_opened [19:15:07]FM_GetShiftState [19:15:07]SAM_PROTO_GetShiftState [19:15:07]wFMCommunicate request_size=4 [19:15:07]MH_SAM_APDU [19:15:07]CAPDU: 80 13 01 00 [19:15:07]Write to MH i2c: E2 08 00 CA 21 80 13 01 00 00 00 00 00 68 [19:15:07]Write i2c OK [19:15:07]MH_I2C_Read... [19:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:07]Read from MH i2c: E2 [19:15:07]MH_I2C_Read... [19:15:07]Read from MH i2c: E2 0E 00 [19:15:07]MH_I2C_Read... [19:15:07]Read from MH i2c: E2 0E 00 CA 21 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E5 [19:15:07]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:15:07]wFMCommunicate OK [19:15:07]SAM_PROTO_GetShiftState done [19:15:07]FM_GetShiftState done [19:15:07]req_shift_opened done [19:15:07]requested_item shift.open_date is exist - process it [19:15:07]req_shift_open_date [19:15:07]req_shift_open_date done [19:15:07]produce_requested_data done [19:15:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112046,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:15:07]process_action_free close_receipt [19:15:07]json_value_free [19:15:07]json_value_free done [19:15:07]process_json_proto returns [19:15:07]Send response to host [19:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112046,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:15:07]free response buf [19:15:07]execute_script done [19:15:07]execute_script returns [19:15:07]free content buf [19:15:07]Sock 9.Close socket [19:15:07]Sock 9.Thread stoped [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:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:17:58]accept exits with 7 [19:17:58]New connection [19:17:58]New thread 3066875236 created [19:17:58]Thread 3066731876 joined [19:17:58]Waiting for new connection... [19:17:58] Sock 7.Parse request [19:17:58]Sock 7.Check first char [19:17:58]Sock 7.First char is OK [19:17:58]request: POST /json_proto HTTP/1.0 [19:17:58]Method: POST [19:17:58]URL: /json_proto [19:17:58]Method is POST - this is cgi request [19:17:58]url: /json_proto [19:17:58]query_string will be loaded in cgi processing [19:17:58]execute_cgi json_proto POST (null) [19:17:58]execute_cgi path=json_proto method=POST [19:17:58]POST find Content-Length [19:17:58]Host: 172.17.59.68:8080 [19:17:58]Content-Length: 805 [19:17:58]Content-Type: application/json [19:17:58] [19:17:58]POST finish read [19:17:58]Found Content-Length = 805 [19:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:58]execute_script... [19:17: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)320700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:58]POST & json_proto [19:17:58]process_json_proto [19:17:58]json parsed OK: [19:17:58]protocol is kg_v1.0 [19:17:58]action value=close_receipt [19:17:58]process_action close_receipt [19:17:58]cmd_close_receipt [19:17:58]MH_GetDate [19:17:58]Write to MH i2c: F0 00 00 CB 21 DB [19:17:58]Write i2c OK [19:17:58]MH_I2C_Read... [19:17:58]Read from MH i2c: F0 [19:17:58]MH_I2C_Read... [19:17:58]Read from MH i2c: F0 09 00 [19:17:58]MH_I2C_Read... [19:17:58]Read from MH i2c: F0 09 00 CB 21 00 EF D1 75 66 BC EC 60 65 EC [19:17:58]GetLastDocTimeStamp 1718997312 [19:17:58]current date 1718997487 [19:17:58]FM_GetShiftState [19:17:58]SAM_PROTO_GetShiftState [19:17:58]wFMCommunicate request_size=4 [19:17:58]MH_SAM_APDU [19:17:58]CAPDU: 80 13 01 00 [19:17:58]Write to MH i2c: E2 08 00 CC 21 80 13 01 00 00 00 00 00 6A [19:17:58]Write i2c OK [19:17:58]MH_I2C_Read... [19:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:58]Read from MH i2c: E2 [19:17:58]MH_I2C_Read... [19:17:58]Read from MH i2c: E2 0E 00 [19:17:58]MH_I2C_Read... [19:17:58]Read from MH i2c: E2 0E 00 CC 21 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E7 [19:17:58]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:17:58]wFMCommunicate OK [19:17:58]SAM_PROTO_GetShiftState done [19:17:58]FM_GetShiftState done [19:17:58]opened in 1718933695 [19:17:58]opened+sec_in_day 1719020095 [19:17:58]quantity*price = 50065 [19:17:58]sum+1 = 50067 [19:17:58]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 500.66 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 500.66 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 215 21.06.2024 19:18 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112047 肖袩袛: 234090515691246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T191807&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112047&fm=234090515691246&tin=02508201610067®Number=0000000000092771&sum=50066 [19:17:59]StoreToDocumentArchive [19:17:59]shift 390 fd 112047 [19:17:59]save to /storage/0390/doc_00112047 [19:17:59]save last doc name /storage/0390/doc_00112047 to /storage/kkm_last_doc_name [19:17:59]save OK [19:17:59]Clear old archive folders... [19:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:59]tlvbuf is 00343150 [19:17:59]SAM_PROTO_ClearQueue [19:17:59]wFMCommunicate request_size=4 [19:17:59]MH_SAM_APDU [19:17:59]CAPDU: 80 09 00 00 [19:17:59]Write to MH i2c: E2 08 00 D9 21 80 09 00 00 00 00 00 00 6C [19:17:59]Write i2c OK [19:17:59]MH_I2C_Read... [19:17:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:59]Read from MH i2c: E2 [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: E2 03 00 [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: E2 03 00 D9 21 00 90 00 6E [19:17:59]RAPDU: 90 00 [19:17:59]wFMCommunicate OK [19:17:59]SAM_PROTO_ClearQueue done [19:17:59]KKMCreateOFDPacket [19:17:59]OFDProtocolAddRootSTLVToBuf [19:17:59]FM_MakeSignedData [19:17:59]FM_MakeSignedData [19:17:59]SAM_PROTO_SignData [19:17:59]wFMCommunicate request_size=4 [19:17:59]MH_SAM_APDU [19:17:59]CAPDU: 80 0D 01 02 [19:17:59]Write to MH i2c: E2 08 00 DA 21 80 0D 01 02 00 00 00 00 74 [19:17:59]Write i2c OK [19:17:59]MH_I2C_Read... [19:17:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:59]Read from MH i2c: E2 [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: E2 03 00 [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: E2 03 00 DA 21 00 90 00 6F [19:17:59]RAPDU: 90 00 [19:17:59]wFMCommunicate OK [19:17:59]wFMCommunicate request_size=255 [19:17:59]MH_SAM_APDU [19:17:59]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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 EF D1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B5 01 00 35 04 06 00 D4 [19:17:59]Write to MH i2c: E2 02 01 DB 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 EF D1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B5 01 00 35 04 06 00 D4 00 00 DE [19:17:59]Write i2c OK [19:17:59]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 DB 21 00 90 00 70 [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]wFMCommunicate request_size=10 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 02 02 05 E7 72 08 76 EE [19:18:00]Write to MH i2c: E2 0D 00 DC 21 80 0D 02 02 05 00 E7 72 08 76 EE 00 00 46 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 DC 21 00 90 00 71 [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 03 02 [19:18:00]Write to MH i2c: E2 08 00 DD 21 80 0D 03 02 00 00 00 00 79 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 0B 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 0B 00 DD 21 00 26 69 30 7D FD 84 F2 09 90 00 32 [19:18:00]RAPDU: 26 69 30 7D FD 84 F2 09 90 00 [19:18:00]wFMCommunicate OK [19:18:00]SAM_PROTO_SignData done [19:18:00]FM_MakeSignedData done [19:18:00]CreateOFDProtocolMessage [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 11 00 00 [19:18:00]Write to MH i2c: E2 08 00 DE 21 80 11 00 00 00 00 00 00 79 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 17 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 17 00 DE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CB [19:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:18:00]wFMCommunicate OK [19:18:00]CreateOFDProtocolMessage done [19:18:00]OFDSenderStorePacket 112047 [19:18:00]StoreOFDPacket docnum=112047 [19:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AD 2E 07 01 4D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 EF D1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B5 01 00 35 04 06 00 D4 E7 72 08 76 EE 26 69 30 7D FD 84 F2 09 [19:18:00]CheckFolder [19:18:00]dirname=/storage/ofd_packets [19:18:00]CheckFolder done [19:18:00]ProducePacketName [19:18:00]name=ofd_packets/00112047 [19:18:00]NVStorageSaveData ofd_packets/00112047 [19:18:00]File name is /storage/ofd_packets/00112047 [19:18:00]Write 301 bytes [19:18:00]NVStorageSaveData done [19:18:00]OFDSenderStorePacket done [19:18:00]KKMCreateOFDPacket done [19:18:00]NVStorageSaveData kkm_last_timestamp [19:18:00]File name is /storage/kkm_last_timestamp [19:18:00]Write 4 bytes [19:18:00]NVStorageSaveData done [19:18:00]ExternCall_PrintAddStr [19:18:00]wPrintStart [19:18:00]Write to MH i2c: 01 00 00 DF 21 00 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: 01 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: 01 07 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: 01 07 00 DF 21 00 00 00 00 00 FF 0F 15 [19:18:00]RasterBufferAndPrint [19:18:00]line 小褔械褌 N : (1)320700 [19:18:00]line 袠袧袧: 02508201610067 [19:18:00]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:18:00]line 袩袪袨袛袗袞袗 [19:18:00]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:18:00]line 孝芯胁邪褉: 2710124130 [19:18:00]line 袗懈-92-袣-5 [19:18:00]line 7.540 * 66.40 [19:18:00]line = 500.66 [19:18:00]line 袧袛小 12% 袧小袩 1% [19:18:00]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:18:00]line 袠孝袨袚袨: 500.66 [19:18:00]line 袧小袩 1% : 4.43 [19:18:00]line 袧袛小 12% : 53.17 [19:18:00]line 袧邪谢懈褔薪褘屑懈: 0.00 [19:18:00]line 袘械蟹薪邪谢.: 500.66 [19:18:00]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:18:00]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:18:00]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:18:00]line 效械泻 215 21.06.2024 19:18 [19:18:00]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:18:00]line 袟袧袦: 0300000198 [19:18:00]line 袪袧袦: 0000000000092771 [19:18:00]line 袙械褉褋懈褟 袣袣袦: 001 [19:18:00]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [19:18:00]line 肖袦: 0000000000875083 [19:18:00]line 肖袛: 112047 [19:18:00]line 肖袩袛: 234090515691246 [19:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T191807&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112047&fm=234090515691246&tin=02508201610067®Number=0000000000092771&sum=50066 [19:18:00]OFD Sender: Processing packet 112047 [packets to send 38, broken 37] [19:18:00]ProducePacketName [19:18:00]name=ofd_packets/00112047 [19:18:00]OFD Sender: To server: 嚂鰌G, [19:18:00]CommunicateWithHost lk.salyk.kg:30040 [19:18:00]ConnectInit lk.salyk.kg [19:18:00]written 0, free lines is 4095 [19:18:00]Connected sock=10 [19:18:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AD 2E 07 01 4D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 EF D1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B5 01 00 35 04 06 00 D4 E7 72 08 76 EE 26 69 30 7D FD 84 F2 09 [19:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DC 00 47 00 BC 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 30 38 37 35 30 38 33 10 04 04 00 AF B5 01 00 F4 03 04 00 11 69 75 66 B6 04 01 00 00 D8 2F DE 94 02 AE 09 51 [19:18:01]CommunicateWithHost err = 0 [19:18:01]CheckOFDResponse [19:18:01]1017 (14) - 77093643461234 [19:18:01]1041 (16) - 0000000000875083 [19:18:01]1040 (4) - 112047 [19:18:01]1012 (4) - 21.06.2024 11:50 [19:18:01]1206 (1) - 0 [19:18:01]OFD Sender: Remove packet 112047 [19:18:01]ProducePacketName [19:18:01]name=ofd_packets/00112047 [19:18:01]NVStorageDeleteData [19:18:01]Write to MH i2c: 01 00 00 09 22 2B [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: 01 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: 01 07 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: 01 07 00 09 22 00 00 00 00 00 F1 0C 2F [19:18:01]RasterBufferAndPrint [19:18:01]line [19:18:01]line [19:18:01]line [19:18:01]line [19:18:01]line [19:18:01]written 0, free lines is 3319 [19:18:01]MH_Cut [19:18:01]Write to MH i2c: D1 01 00 10 22 01 04 [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: D1 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: D1 01 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: D1 01 00 10 22 00 03 [19:18:01]Write to MH i2c: 01 00 00 11 22 33 [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]OFD Sender: No OFD packet to send [19:18:01]*** Cut start [19:18:01]*** Partial cut [19:18:01]*** CUTSNS_PIN = 1 [19:18:01]*** CUTSNS_PIN = 0 [19:18:02]*** Brake cut motor [19:18:02]Read from MH i2c: 01 [19:18:02]MH_I2C_Read... [19:18:02]*** Stop cut motor [19:18:02]*** Cut end [19:18:02]Read from MH i2c: 01 07 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: 01 07 00 11 22 00 00 00 00 00 FF 0F 48 [19:18:02]process_action close_receipt done [19:18:02]requested_data is exist [19:18:02]produce_requested_data [19:18:02]requested_item fm.sn is exist - process it [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 11 00 00 [19:18:02]Write to MH i2c: E2 08 00 12 22 80 11 00 00 00 00 00 00 AE [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 17 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 17 00 12 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 00 [19:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:18:02]wFMCommunicate OK [19:18:02]requested_item fd.num is exist - process it [19:18:02]SAM_PROTO_GetFieldsCounters [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 13 00 00 [19:18:02]Write to MH i2c: E2 08 00 13 22 80 13 00 00 00 00 00 00 B1 [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 62 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 62 00 13 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [19:18:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:02]wFMCommunicate OK [19:18:02]SAM_PROTO_GetFieldsCounters done [19:18:02]requested_item shift.num is exist - process it [19:18:02]requested_item shift.opened is exist - process it [19:18:02]req_shift_opened [19:18:02]FM_GetShiftState [19:18:02]SAM_PROTO_GetShiftState [19:18:02]wFMCommunicate request_size=4 [19:18:02]MH_SAM_APDU [19:18:02]CAPDU: 80 13 01 00 [19:18:02]Write to MH i2c: E2 08 00 14 22 80 13 01 00 00 00 00 00 B3 [19:18:02]Write i2c OK [19:18:02]MH_I2C_Read... [19:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:02]Read from MH i2c: E2 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 0E 00 [19:18:02]MH_I2C_Read... [19:18:02]Read from MH i2c: E2 0E 00 14 22 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 30 [19:18:02]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:18:02]wFMCommunicate OK [19:18:02]SAM_PROTO_GetShiftState done [19:18:02]FM_GetShiftState done [19:18:02]req_shift_opened done [19:18:02]requested_item shift.open_date is exist - process it [19:18:02]req_shift_open_date [19:18:02]req_shift_open_date done [19:18:02]produce_requested_data done [19:18:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112047,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:18:02]process_action_free close_receipt [19:18:02]json_value_free [19:18:02]json_value_free done [19:18:02]process_json_proto returns [19:18:02]Send response to host [19:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112047,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:18:02]free response buf [19:18:02]execute_script done [19:18:02]execute_script returns [19:18:02]free content buf [19:18:02]Sock 7.Close socket [19:18:02]Sock 7.Thread stoped [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:11]OFD Sender: No OFD packet to send [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:51]accept exits with 9 [19:21:51]New connection [19:21:51]New thread 3066731876 created [19:21:51]Thread 3066875236 joined [19:21:51]Waiting for new connection... [19:21:51] Sock 9.Parse request [19:21:51]Sock 9.Check first char [19:21:51]Sock 9.First char is OK [19:21:51]request: POST /json_proto HTTP/1.0 [19:21:51]Method: POST [19:21:51]URL: /json_proto [19:21:51]Method is POST - this is cgi request [19:21:51]url: /json_proto [19:21:51]query_string will be loaded in cgi processing [19:21:51]execute_cgi json_proto POST (null) [19:21:51]execute_cgi path=json_proto method=POST [19:21:51]POST find Content-Length [19:21:51]Host: 172.17.59.68:8080 [19:21:51]Content-Length: 674 [19:21:51]Content-Type: application/json [19:21:51] [19:21:51]POST finish read [19:21:51]Found Content-Length = 674 [19:21:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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" ] } } [19:21:51]execute_script... [19:21: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)320701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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" ] } } [19:21:51]POST & json_proto [19:21:51]process_json_proto [19:21:51]json parsed OK: [19:21:51]protocol is kg_v1.0 [19:21:51]action value=close_receipt [19:21:51]process_action close_receipt [19:21:51]cmd_close_receipt [19:21:51]MH_GetDate [19:21:51]Write to MH i2c: F0 00 00 15 22 26 [19:21:51]Write i2c OK [19:21:51]MH_I2C_Read... [19:21:51]Read from MH i2c: F0 [19:21:51]MH_I2C_Read... [19:21:51]Read from MH i2c: F0 09 00 [19:21:51]MH_I2C_Read... [19:21:51]Read from MH i2c: F0 09 00 15 22 00 D8 D2 75 66 BC EC 60 65 21 [19:21:51]GetLastDocTimeStamp 1718997487 [19:21:51]current date 1718997720 [19:21:51]FM_GetShiftState [19:21:51]SAM_PROTO_GetShiftState [19:21:51]wFMCommunicate request_size=4 [19:21:51]MH_SAM_APDU [19:21:51]CAPDU: 80 13 01 00 [19:21:51]Write to MH i2c: E2 08 00 16 22 80 13 01 00 00 00 00 00 B5 [19:21:51]Write i2c OK [19:21:51]MH_I2C_Read... [19:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:52]Read from MH i2c: E2 [19:21:52]MH_I2C_Read... [19:21:52]Read from MH i2c: E2 0E 00 [19:21:52]MH_I2C_Read... [19:21:52]Read from MH i2c: E2 0E 00 16 22 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 32 [19:21:52]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:21:52]wFMCommunicate OK [19:21:52]SAM_PROTO_GetShiftState done [19:21:52]FM_GetShiftState done [19:21:52]opened in 1718933695 [19:21:52]opened+sec_in_day 1719020095 [19:21:52]quantity*price = 50009 [19:21:52]sum+1 = 50010 [19:21:52]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.09 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.11 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 216 21.06.2024 19:22 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112048 肖袩袛: 170363953187157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T192200&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112048&fm=170363953187157&tin=02508201610067®Number=0000000000092771&sum=50000 [19:21:53]StoreToDocumentArchive [19:21:53]shift 390 fd 112048 [19:21:53]save to /storage/0390/doc_00112048 [19:21:53]save last doc name /storage/0390/doc_00112048 to /storage/kkm_last_doc_name [19:21:53]save OK [19:21:53]Clear old archive folders... [19:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:21:53]tlvbuf is 0036C6A0 [19:21:53]SAM_PROTO_ClearQueue [19:21:53]wFMCommunicate request_size=4 [19:21:53]MH_SAM_APDU [19:21:53]CAPDU: 80 09 00 00 [19:21:53]Write to MH i2c: E2 08 00 23 22 80 09 00 00 00 00 00 00 B7 [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 23 22 00 90 00 B9 [19:21:53]RAPDU: 90 00 [19:21:53]wFMCommunicate OK [19:21:53]SAM_PROTO_ClearQueue done [19:21:53]KKMCreateOFDPacket [19:21:53]OFDProtocolAddRootSTLVToBuf [19:21:53]FM_MakeSignedData [19:21:53]FM_MakeSignedData [19:21:53]SAM_PROTO_SignData [19:21:53]wFMCommunicate request_size=4 [19:21:53]MH_SAM_APDU [19:21:53]CAPDU: 80 0D 01 02 [19:21:53]Write to MH i2c: E2 08 00 24 22 80 0D 01 02 00 00 00 00 BF [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 24 22 00 90 00 BA [19:21:53]RAPDU: 90 00 [19:21:53]wFMCommunicate OK [19:21:53]wFMCommunicate request_size=255 [19:21:53]MH_SAM_APDU [19:21:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 D8 00 00 00 F4 03 04 00 D8 D2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B5 01 00 35 04 06 00 9A F1 F2 E9 [19:21:53]Write to MH i2c: E2 02 01 25 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 D8 00 00 00 F4 03 04 00 D8 D2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B5 01 00 35 04 06 00 9A F1 F2 E9 00 00 19 [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 25 22 00 90 00 BB [19:21:53]RAPDU: 90 00 [19:21:53]wFMCommunicate OK [19:21:53]wFMCommunicate request_size=7 [19:21:53]MH_SAM_APDU [19:21:53]CAPDU: 80 0D 02 02 02 89 55 [19:21:53]Write to MH i2c: E2 0A 00 26 22 80 0D 02 02 02 00 89 55 00 00 A4 [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 26 22 00 90 00 BC [19:21:53]RAPDU: 90 00 [19:21:53]wFMCommunicate OK [19:21:53]wFMCommunicate request_size=4 [19:21:53]MH_SAM_APDU [19:21:53]CAPDU: 80 0D 03 02 [19:21:53]Write to MH i2c: E2 08 00 27 22 80 0D 03 02 00 00 00 00 C4 [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 0B 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 0B 00 27 22 00 E6 42 8D 2A 74 4F 30 31 90 00 C8 [19:21:53]RAPDU: E6 42 8D 2A 74 4F 30 31 90 00 [19:21:53]wFMCommunicate OK [19:21:53]SAM_PROTO_SignData done [19:21:53]FM_MakeSignedData done [19:21:53]CreateOFDProtocolMessage [19:21:53]wFMCommunicate request_size=4 [19:21:53]MH_SAM_APDU [19:21:53]CAPDU: 80 11 00 00 [19:21:53]Write to MH i2c: E2 08 00 28 22 80 11 00 00 00 00 00 00 C4 [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 17 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 17 00 28 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 16 [19:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:21:53]wFMCommunicate OK [19:21:53]CreateOFDProtocolMessage done [19:21:53]OFDSenderStorePacket 112048 [19:21:53]StoreOFDPacket docnum=112048 [19:21:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 AB A0 04 01 54 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 D8 00 00 00 F4 03 04 00 D8 D2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B5 01 00 35 04 06 00 9A F1 F2 E9 89 55 E6 42 8D 2A 74 4F 30 31 [19:21:53]CheckFolder [19:21:53]dirname=/storage/ofd_packets [19:21:53]CheckFolder done [19:21:53]ProducePacketName [19:21:53]name=ofd_packets/00112048 [19:21:53]NVStorageSaveData ofd_packets/00112048 [19:21:53]File name is /storage/ofd_packets/00112048 [19:21:53]Write 298 bytes [19:21:53]NVStorageSaveData done [19:21:53]OFDSenderStorePacket done [19:21:53]KKMCreateOFDPacket done [19:21:53]NVStorageSaveData kkm_last_timestamp [19:21:53]File name is /storage/kkm_last_timestamp [19:21:53]Write 4 bytes [19:21:53]NVStorageSaveData done [19:21:53]ExternCall_PrintAddStr [19:21:53]wPrintStart [19:21:53]Write to MH i2c: 01 00 00 29 22 4B [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: 01 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: 01 07 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: 01 07 00 29 22 00 00 00 00 00 FF 0F 60 [19:21:53]RasterBufferAndPrint [19:21:53]line 小褔械褌 N : (1)320701 [19:21:53]line 袠袧袧: 02508201610067 [19:21:53]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:21:53]line 袩袪袨袛袗袞袗 [19:21:53]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [19:21:53]line 孝芯胁邪褉: 2710194210 [19:21:53]line 袛孝-袣-5 [19:21:53]line 6.860 * 72.90 [19:21:53]line = 500.09 [19:21:53]line 袧袛小 12% 袧小袩 1% [19:21:53]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:21:53]line 袨袣袪校袚袥袝袧袠袝: -0.09 [19:21:53]line 袠孝袨袚袨: 500.00 [19:21:53]line 袙薪械褋械薪芯: 500.00 [19:21:53]line 小袛袗效袗: 0.00 [19:21:53]line 袧小袩 1% : 4.43 [19:21:53]line 袧袛小 12% : 53.11 [19:21:53]line 袧邪谢懈褔薪褘屑懈: 500.00 [19:21:53]line 袘械蟹薪邪谢.: 0.00 [19:21:53]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:21:53]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:21:53]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:21:53]line 效械泻 216 21.06.2024 19:22 [19:21:53]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:21:53]line 袟袧袦: 0300000198 [19:21:53]line 袪袧袦: 0000000000092771 [19:21:53]line 袙械褉褋懈褟 袣袣袦: 001 [19:21:53]line 肖袦: 0000000000875083 [19:21:53]line 肖袛: 112048 [19:21:53]line 肖袩袛: 170363953187157 [19:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T192200&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112048&fm=170363953187157&tin=02508201610067®Number=0000000000092771&sum=50000 [19:21:54]OFD Sender: Processing packet 112048 [packets to send 38, broken 37] [19:21:54]ProducePacketName [19:21:54]name=ofd_packets/00112048 [19:21:54]OFD Sender: To server: 嚂鰌G, [19:21:54]CommunicateWithHost lk.salyk.kg:30040 [19:21:54]ConnectInit lk.salyk.kg [19:21:54]written 0, free lines is 4095 [19:21:54]Connected sock=10 [19:21:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 AB A0 04 01 54 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 D8 00 00 00 F4 03 04 00 D8 D2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B5 01 00 35 04 06 00 9A F1 F2 E9 89 55 E6 42 8D 2A 74 4F 30 31 [19:21:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 64 D4 47 00 48 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 30 38 37 35 30 38 33 10 04 04 00 B0 B5 01 00 F4 03 04 00 FB 69 75 66 B6 04 01 00 00 51 5C AD B7 DD 49 66 D5 [19:21:54]CommunicateWithHost err = 0 [19:21:54]CheckOFDResponse [19:21:54]1017 (14) - 77093643461234 [19:21:54]1041 (16) - 0000000000875083 [19:21:54]1040 (4) - 112048 [19:21:54]1012 (4) - 21.06.2024 11:54 [19:21:54]1206 (1) - 0 [19:21:54]OFD Sender: Remove packet 112048 [19:21:54]ProducePacketName [19:21:54]name=ofd_packets/00112048 [19:21:54]NVStorageDeleteData [19:21:54]Write to MH i2c: 01 00 00 54 22 76 [19:21:54]Write i2c OK [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: 01 [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: 01 07 00 [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: 01 07 00 54 22 00 00 00 00 00 DC 0C 65 [19:21:54]RasterBufferAndPrint [19:21:54]line [19:21:54]line [19:21:54]line [19:21:54]line [19:21:54]line [19:21:54]written 0, free lines is 3298 [19:21:54]MH_Cut [19:21:54]Write to MH i2c: D1 01 00 5B 22 01 4F [19:21:54]Write i2c OK [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: D1 [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: D1 01 00 [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: D1 01 00 5B 22 00 4E [19:21:54]Write to MH i2c: 01 00 00 5C 22 7E [19:21:54]Write i2c OK [19:21:54]MH_I2C_Read... [19:21:54]OFD Sender: No OFD packet to send [19:21:55]*** Cut start [19:21:55]*** Partial cut [19:21:55]*** CUTSNS_PIN = 1 [19:21:55]*** CUTSNS_PIN = 0 [19:21:55]*** Brake cut motor [19:21:55]Read from MH i2c: 01 [19:21:55]MH_I2C_Read... [19:21:55]*** Stop cut motor [19:21:55]*** Cut end [19:21:55]Read from MH i2c: 01 07 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: 01 07 00 5C 22 00 00 00 00 00 FF 0F 93 [19:21:55]process_action close_receipt done [19:21:55]requested_data is exist [19:21:55]produce_requested_data [19:21:55]requested_item fm.sn is exist - process it [19:21:55]wFMCommunicate request_size=4 [19:21:55]MH_SAM_APDU [19:21:55]CAPDU: 80 11 00 00 [19:21:55]Write to MH i2c: E2 08 00 5D 22 80 11 00 00 00 00 00 00 F9 [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:55]Read from MH i2c: E2 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 17 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 17 00 5D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4B [19:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:21:55]wFMCommunicate OK [19:21:55]requested_item fd.num is exist - process it [19:21:55]SAM_PROTO_GetFieldsCounters [19:21:55]wFMCommunicate request_size=4 [19:21:55]MH_SAM_APDU [19:21:55]CAPDU: 80 13 00 00 [19:21:55]Write to MH i2c: E2 08 00 5E 22 80 13 00 00 00 00 00 00 FC [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:55]Read from MH i2c: E2 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 62 00 [19:21:55]MH_I2C_Read... [19:21:55]Read from MH i2c: E2 62 00 5E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [19:21:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:55]wFMCommunicate OK [19:21:55]SAM_PROTO_GetFieldsCounters done [19:21:55]requested_item shift.num is exist - process it [19:21:55]requested_item shift.opened is exist - process it [19:21:55]req_shift_opened [19:21:55]FM_GetShiftState [19:21:55]SAM_PROTO_GetShiftState [19:21:55]wFMCommunicate request_size=4 [19:21:55]MH_SAM_APDU [19:21:55]CAPDU: 80 13 01 00 [19:21:55]Write to MH i2c: E2 08 00 5F 22 80 13 01 00 00 00 00 00 FE [19:21:55]Write i2c OK [19:21:55]MH_I2C_Read... [19:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:56]Read from MH i2c: E2 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 0E 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 0E 00 5F 22 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 7B [19:21:56]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:21:56]wFMCommunicate OK [19:21:56]SAM_PROTO_GetShiftState done [19:21:56]FM_GetShiftState done [19:21:56]req_shift_opened done [19:21:56]requested_item shift.open_date is exist - process it [19:21:56]req_shift_open_date [19:21:56]req_shift_open_date done [19:21:56]produce_requested_data done [19:21:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112048,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:21:56]process_action_free close_receipt [19:21:56]json_value_free [19:21:56]json_value_free done [19:21:56]process_json_proto returns [19:21:56]Send response to host [19:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112048,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:21:56]free response buf [19:21:56]execute_script done [19:21:56]execute_script returns [19:21:56]free content buf [19:21:56]Sock 9.Close socket [19:21:56]Sock 9.Thread stoped [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:28]accept exits with 7 [19:23:28]New connection [19:23:28]New thread 3066875236 created [19:23:28]Thread 3066731876 joined [19:23:28]Waiting for new connection... [19:23:28] Sock 7.Parse request [19:23:28]Sock 7.Check first char [19:23:28]Sock 7.First char is OK [19:23:28]request: POST /json_proto HTTP/1.0 [19:23:28]Method: POST [19:23:28]URL: /json_proto [19:23:28]Method is POST - this is cgi request [19:23:28]url: /json_proto [19:23:28]query_string will be loaded in cgi processing [19:23:28]execute_cgi json_proto POST (null) [19:23:28]execute_cgi path=json_proto method=POST [19:23:28]POST find Content-Length [19:23:28]Host: 172.17.59.68:8080 [19:23:28]Content-Length: 1201 [19:23:28]Content-Type: application/json [19:23:28] [19:23:28]POST finish read [19:23:28]Found Content-Length = 1201 [19:23:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320702\u000A21.06.2024 17:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 37.660 x 66.40\u000A\u0418\u0422\u041E\u0413: 2500.62\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:28]execute_script... [19:23:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320702\u000A21.06.2024 17:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 37.660 x 66.40\u000A\u0418\u0422\u041E\u0413: 2500.62\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:28]POST & json_proto [19:23:28]process_json_proto [19:23:28]json parsed OK: [19:23:28]protocol is kg_v1.0 [19:23:28]action value=print_text [19:23:28]process_action print_text [19:23:28]cmd_print_text [19:23:28]ExternCall_PrintAddStr [19:23:28]wPrintStart [19:23:28]Write to MH i2c: 01 00 00 60 22 82 [19:23:28]Write i2c OK [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: 01 [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: 01 07 00 [19:23:28]MH_I2C_Read... [19:23:28]Read from MH i2c: 01 07 00 60 22 00 00 00 00 00 FF 0F 97 [19:23:28]RasterBufferAndPrint [19:23:28]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [19:23:28]line 袗袟小 65 [19:23:28]line 袩邪褉褌薪械褉 薪械褎褌褜 [19:23:28]line 02508201610067 [19:23:28]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [19:23:28]line 小褔械褌 N : (1)320702 [19:23:28]line 21.06.2024 17:50 [19:23:28]line 袩袪袨袛袗袞袗 [19:23:28]line 孝袪袣 (袦袪袣, 袚袧袣): 11 [19:23:28]line 袙懈写 袚小袦 : 2710124130 [19:23:28]line 袗懈-92-袣-5 [19:23:28]line 37.660 x 66.40 [19:23:28]line 袠孝袨袚: 2500.62 [19:23:28]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [19:23:28]line 02996 [19:23:28]line ______________________ [19:23:28]line (锌芯写锌懈褋褜) [19:23:29]written 0, free lines is 4095 [19:23:29]Write to MH i2c: 01 00 00 74 22 96 [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: 01 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: 01 07 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: 01 07 00 74 22 00 00 00 00 00 11 0E BC [19:23:29]RasterBufferAndPrint [19:23:29]line [19:23:29]line [19:23:29]line [19:23:29]line [19:23:29]line [19:23:29]written 0, free lines is 3603 [19:23:29]MH_Cut [19:23:29]Write to MH i2c: D1 01 00 7B 22 01 6F [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: D1 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: D1 01 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: D1 01 00 7B 22 00 6E [19:23:29]Write to MH i2c: 01 00 00 7C 22 9E [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]*** Cut start [19:23:29]*** Partial cut [19:23:29]*** CUTSNS_PIN = 1 [19:23:29]*** CUTSNS_PIN = 0 [19:23:29]OFD Sender: No OFD packet to send [19:23:29]*** Brake cut motor [19:23:30]Read from MH i2c: 01 [19:23:30]MH_I2C_Read... [19:23:30]*** Stop cut motor [19:23:30]*** Cut end [19:23:30]Read from MH i2c: 01 07 00 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: 01 07 00 7C 22 00 00 00 00 00 FF 0F B3 [19:23:30]process_action print_text done [19:23:30]requested_data is exist [19:23:30]produce_requested_data [19:23:30]requested_item fm.sn is exist - process it [19:23:30]wFMCommunicate request_size=4 [19:23:30]MH_SAM_APDU [19:23:30]CAPDU: 80 11 00 00 [19:23:30]Write to MH i2c: E2 08 00 7D 22 80 11 00 00 00 00 00 00 19 [19:23:30]Write i2c OK [19:23:30]MH_I2C_Read... [19:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:30]Read from MH i2c: E2 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: E2 17 00 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: E2 17 00 7D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6B [19:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:23:30]wFMCommunicate OK [19:23:30]requested_item fd.num is exist - process it [19:23:30]SAM_PROTO_GetFieldsCounters [19:23:30]wFMCommunicate request_size=4 [19:23:30]MH_SAM_APDU [19:23:30]CAPDU: 80 13 00 00 [19:23:30]Write to MH i2c: E2 08 00 7E 22 80 13 00 00 00 00 00 00 1C [19:23:30]Write i2c OK [19:23:30]MH_I2C_Read... [19:23:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:30]Read from MH i2c: E2 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: E2 62 00 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: E2 62 00 7E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [19:23:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:30]wFMCommunicate OK [19:23:30]SAM_PROTO_GetFieldsCounters done [19:23:30]requested_item shift.num is exist - process it [19:23:30]requested_item shift.opened is exist - process it [19:23:30]req_shift_opened [19:23:30]FM_GetShiftState [19:23:30]SAM_PROTO_GetShiftState [19:23:30]wFMCommunicate request_size=4 [19:23:30]MH_SAM_APDU [19:23:30]CAPDU: 80 13 01 00 [19:23:30]Write to MH i2c: E2 08 00 7F 22 80 13 01 00 00 00 00 00 1E [19:23:30]Write i2c OK [19:23:30]MH_I2C_Read... [19:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:30]Read from MH i2c: E2 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: E2 0E 00 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: E2 0E 00 7F 22 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 9B [19:23:30]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:23:30]wFMCommunicate OK [19:23:30]SAM_PROTO_GetShiftState done [19:23:30]FM_GetShiftState done [19:23:30]req_shift_opened done [19:23:30]requested_item shift.open_date is exist - process it [19:23:30]req_shift_open_date [19:23:30]req_shift_open_date done [19:23:30]produce_requested_data done [19:23:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112048,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:23:30]process_action_free print_text [19:23:30]json_value_free [19:23:30]json_value_free done [19:23:30]process_json_proto returns [19:23:30]Send response to host [19:23:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112048,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:23:30]free response buf [19:23:30]execute_script done [19:23:30]execute_script returns [19:23:30]free content buf [19:23:30]Sock 7.Close socket [19:23:30]Sock 7.Thread stoped [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:34]OFD Sender: No OFD packet to send [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:25]accept exits with 9 [19:25:25]New connection [19:25:25]New thread 3066731876 created [19:25:25]Thread 3066875236 joined [19:25:25]Waiting for new connection... [19:25:25] Sock 9.Parse request [19:25:25]Sock 9.Check first char [19:25:25]Sock 9.First char is OK [19:25:25]request: POST /json_proto HTTP/1.0 [19:25:25]Method: POST [19:25:25]URL: /json_proto [19:25:25]Method is POST - this is cgi request [19:25:25]url: /json_proto [19:25:25]query_string will be loaded in cgi processing [19:25:25]execute_cgi json_proto POST (null) [19:25:25]execute_cgi path=json_proto method=POST [19:25:25]POST find Content-Length [19:25:25]Host: 172.17.59.68:8080 [19:25:25]Content-Length: 677 [19:25:25]Content-Type: application/json [19:25:25] [19:25:25]POST finish read [19:25:25]Found Content-Length = 677 [19:25:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:25]execute_script... [19:25: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)320703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:25]POST & json_proto [19:25:25]process_json_proto [19:25:25]json parsed OK: [19:25:25]protocol is kg_v1.0 [19:25:25]action value=close_receipt [19:25:25]process_action close_receipt [19:25:25]cmd_close_receipt [19:25:25]MH_GetDate [19:25:25]Write to MH i2c: F0 00 00 80 22 91 [19:25:25]Write i2c OK [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: F0 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: F0 09 00 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: F0 09 00 80 22 00 AE D3 75 66 BC EC 60 65 63 [19:25:25]GetLastDocTimeStamp 1718997720 [19:25:25]current date 1718997934 [19:25:25]FM_GetShiftState [19:25:25]SAM_PROTO_GetShiftState [19:25:25]wFMCommunicate request_size=4 [19:25:25]MH_SAM_APDU [19:25:25]CAPDU: 80 13 01 00 [19:25:25]Write to MH i2c: E2 08 00 81 22 80 13 01 00 00 00 00 00 20 [19:25:25]Write i2c OK [19:25:25]MH_I2C_Read... [19:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:25]Read from MH i2c: E2 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: E2 0E 00 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: E2 0E 00 81 22 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 9D [19:25:25]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:25:25]wFMCommunicate OK [19:25:25]SAM_PROTO_GetShiftState done [19:25:25]FM_GetShiftState done [19:25:25]opened in 1718933695 [19:25:25]opened+sec_in_day 1719020095 [19:25:25]quantity*price = 30012 [19:25:25]sum+1 = 30014 [19:25:25]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 217 21.06.2024 19:25 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112049 肖袩袛: 49468001985265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T192534&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112049&fm=49468001985265&tin=02508201610067®Number=0000000000092771&sum=30000 [19:25:27]StoreToDocumentArchive [19:25:27]shift 390 fd 112049 [19:25:27]save to /storage/0390/doc_00112049 [19:25:27]save last doc name /storage/0390/doc_00112049 to /storage/kkm_last_doc_name [19:25:27]save OK [19:25:27]Clear old archive folders... [19:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:25:27]tlvbuf is 0045BE80 [19:25:27]SAM_PROTO_ClearQueue [19:25:27]wFMCommunicate request_size=4 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 09 00 00 [19:25:27]Write to MH i2c: E2 08 00 8E 22 80 09 00 00 00 00 00 00 22 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 8E 22 00 90 00 24 [19:25:27]RAPDU: 90 00 [19:25:27]wFMCommunicate OK [19:25:27]SAM_PROTO_ClearQueue done [19:25:27]KKMCreateOFDPacket [19:25:27]OFDProtocolAddRootSTLVToBuf [19:25:27]FM_MakeSignedData [19:25:27]FM_MakeSignedData [19:25:27]SAM_PROTO_SignData [19:25:27]wFMCommunicate request_size=4 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 0D 01 02 [19:25:27]Write to MH i2c: E2 08 00 8F 22 80 0D 01 02 00 00 00 00 2A [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 8F 22 00 90 00 25 [19:25:27]RAPDU: 90 00 [19:25:27]wFMCommunicate OK [19:25:27]wFMCommunicate request_size=255 [19:25:27]MH_SAM_APDU [19:25: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 D9 00 00 00 F4 03 04 00 AE D3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B5 01 00 35 04 06 00 2C [19:25:27]Write to MH i2c: E2 02 01 90 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 D9 00 00 00 F4 03 04 00 AE D3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B5 01 00 35 04 06 00 2C 00 00 CB [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 90 22 00 90 00 26 [19:25:27]RAPDU: 90 00 [19:25:27]wFMCommunicate OK [19:25:27]wFMCommunicate request_size=10 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 0D 02 02 05 FD AA AF A2 F1 [19:25:27]Write to MH i2c: E2 0D 00 91 22 80 0D 02 02 05 00 FD AA AF A2 F1 00 00 20 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 91 22 00 90 00 27 [19:25:27]RAPDU: 90 00 [19:25:27]wFMCommunicate OK [19:25:27]wFMCommunicate request_size=4 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 0D 03 02 [19:25:27]Write to MH i2c: E2 08 00 92 22 80 0D 03 02 00 00 00 00 2F [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 0B 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 0B 00 92 22 00 66 65 8F 50 0F 8F 17 BB 90 00 4A [19:25:27]RAPDU: 66 65 8F 50 0F 8F 17 BB 90 00 [19:25:27]wFMCommunicate OK [19:25:27]SAM_PROTO_SignData done [19:25:27]FM_MakeSignedData done [19:25:27]CreateOFDProtocolMessage [19:25:27]wFMCommunicate request_size=4 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 11 00 00 [19:25:27]Write to MH i2c: E2 08 00 93 22 80 11 00 00 00 00 00 00 2F [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 17 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 17 00 93 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 81 [19:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:25:27]wFMCommunicate OK [19:25:27]CreateOFDProtocolMessage done [19:25:27]OFDSenderStorePacket 112049 [19:25:27]StoreOFDPacket docnum=112049 [19:25:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 D5 07 01 39 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 D9 00 00 00 F4 03 04 00 AE D3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B5 01 00 35 04 06 00 2C FD AA AF A2 F1 66 65 8F 50 0F 8F 17 BB [19:25:27]CheckFolder [19:25:27]dirname=/storage/ofd_packets [19:25:27]CheckFolder done [19:25:27]ProducePacketName [19:25:27]name=ofd_packets/00112049 [19:25:27]NVStorageSaveData ofd_packets/00112049 [19:25:27]File name is /storage/ofd_packets/00112049 [19:25:27]Write 301 bytes [19:25:27]NVStorageSaveData done [19:25:27]OFDSenderStorePacket done [19:25:27]KKMCreateOFDPacket done [19:25:27]NVStorageSaveData kkm_last_timestamp [19:25:27]File name is /storage/kkm_last_timestamp [19:25:27]Write 4 bytes [19:25:27]NVStorageSaveData done [19:25:27]ExternCall_PrintAddStr [19:25:27]wPrintStart [19:25:27]Write to MH i2c: 01 00 00 94 22 B6 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 94 22 00 00 00 00 00 FF 0F CB [19:25:27]RasterBufferAndPrint [19:25:27]line 小褔械褌 N : (1)320703 [19:25:27]line 袠袧袧: 02508201610067 [19:25:27]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:25:27]line 袩袪袨袛袗袞袗 [19:25:27]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:25:27]line 孝芯胁邪褉: 2710124130 [19:25:27]line 袗懈-92-袣-5 [19:25:27]line 4.520 * 66.40 [19:25:27]line = 300.13 [19:25:27]line 袧袛小 12% 袧小袩 1% [19:25:27]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:25:27]line 袨袣袪校袚袥袝袧袠袝: -0.13 [19:25:27]line 袠孝袨袚袨: 300.00 [19:25:27]line 袙薪械褋械薪芯: 300.00 [19:25:27]line 小袛袗效袗: 0.00 [19:25:27]line 袧小袩 1% : 2.66 [19:25:27]line 袧袛小 12% : 31.87 [19:25:27]line 袧邪谢懈褔薪褘屑懈: 300.00 [19:25:27]line 袘械蟹薪邪谢.: 0.00 [19:25:27]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:25:27]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:25:27]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:25:27]line 效械泻 217 21.06.2024 19:25 [19:25:27]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:25:27]line 袟袧袦: 0300000198 [19:25:27]line 袪袧袦: 0000000000092771 [19:25:27]line 袙械褉褋懈褟 袣袣袦: 001 [19:25:27]line 肖袦: 0000000000875083 [19:25:27]line 肖袛: 112049 [19:25:27]line 肖袩袛: 49468001985265 [19:25:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T192534&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112049&fm=49468001985265&tin=02508201610067®Number=0000000000092771&sum=30000 [19:25:27]OFD Sender: Processing packet 112049 [packets to send 38, broken 37] [19:25:27]ProducePacketName [19:25:27]name=ofd_packets/00112049 [19:25:27]OFD Sender: To server: 嚂鰌G, [19:25:27]CommunicateWithHost lk.salyk.kg:30040 [19:25:27]ConnectInit lk.salyk.kg [19:25:27]written 0, free lines is 4095 [19:25:28]Connected sock=10 [19:25:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 D5 07 01 39 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 D9 00 00 00 F4 03 04 00 AE D3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B5 01 00 35 04 06 00 2C FD AA AF A2 F1 66 65 8F 50 0F 8F 17 BB [19:25:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 93 07 47 00 05 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 30 38 37 35 30 38 33 10 04 04 00 B1 B5 01 00 F4 03 04 00 D1 6A 75 66 B6 04 01 00 00 26 B8 68 5C 36 E0 14 C6 [19:25:28]CommunicateWithHost err = 0 [19:25:28]CheckOFDResponse [19:25:28]1017 (14) - 77093643461234 [19:25:28]1041 (16) - 0000000000875083 [19:25:28]1040 (4) - 112049 [19:25:28]1012 (4) - 21.06.2024 11:58 [19:25:28]1206 (1) - 0 [19:25:28]OFD Sender: Remove packet 112049 [19:25:28]ProducePacketName [19:25:28]name=ofd_packets/00112049 [19:25:28]NVStorageDeleteData [19:25:28]Write to MH i2c: 01 00 00 BF 22 E1 [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: 01 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: 01 07 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: 01 07 00 BF 22 00 00 00 00 00 CD 0C C1 [19:25:28]RasterBufferAndPrint [19:25:28]line [19:25:28]line [19:25:28]line [19:25:28]line [19:25:28]line [19:25:28]written 0, free lines is 3283 [19:25:28]MH_Cut [19:25:28]Write to MH i2c: D1 01 00 C6 22 01 BA [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: D1 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: D1 01 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: D1 01 00 C6 22 00 B9 [19:25:28]Write to MH i2c: 01 00 00 C7 22 E9 [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]OFD Sender: No OFD packet to send [19:25:29]*** Cut start [19:25:29]*** Partial cut [19:25:29]*** CUTSNS_PIN = 1 [19:25:29]*** CUTSNS_PIN = 0 [19:25:29]*** Brake cut motor [19:25:29]Read from MH i2c: 01 [19:25:29]MH_I2C_Read... [19:25:29]*** Stop cut motor [19:25:29]*** Cut end [19:25:29]Read from MH i2c: 01 07 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: 01 07 00 C7 22 00 00 00 00 00 FF 0F FE [19:25:29]process_action close_receipt done [19:25:29]requested_data is exist [19:25:29]produce_requested_data [19:25:29]requested_item fm.sn is exist - process it [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 11 00 00 [19:25:29]Write to MH i2c: E2 08 00 C8 22 80 11 00 00 00 00 00 00 64 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 17 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 17 00 C8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B6 [19:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:25:29]wFMCommunicate OK [19:25:29]requested_item fd.num is exist - process it [19:25:29]SAM_PROTO_GetFieldsCounters [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 13 00 00 [19:25:29]Write to MH i2c: E2 08 00 C9 22 80 13 00 00 00 00 00 00 67 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 62 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 62 00 C9 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B1 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [19:25:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B1 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:29]wFMCommunicate OK [19:25:29]SAM_PROTO_GetFieldsCounters done [19:25:29]requested_item shift.num is exist - process it [19:25:29]requested_item shift.opened is exist - process it [19:25:29]req_shift_opened [19:25:29]FM_GetShiftState [19:25:29]SAM_PROTO_GetShiftState [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 13 01 00 [19:25:29]Write to MH i2c: E2 08 00 CA 22 80 13 01 00 00 00 00 00 69 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:30]Read from MH i2c: E2 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: E2 0E 00 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: E2 0E 00 CA 22 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E6 [19:25:30]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:25:30]wFMCommunicate OK [19:25:30]SAM_PROTO_GetShiftState done [19:25:30]FM_GetShiftState done [19:25:30]req_shift_opened done [19:25:30]requested_item shift.open_date is exist - process it [19:25:30]req_shift_open_date [19:25:30]req_shift_open_date done [19:25:30]produce_requested_data done [19:25:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112049,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:25:30]process_action_free close_receipt [19:25:30]json_value_free [19:25:30]json_value_free done [19:25:30]process_json_proto returns [19:25:30]Send response to host [19:25:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112049,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:25:30]free response buf [19:25:30]execute_script done [19:25:30]execute_script returns [19:25:30]free content buf [19:25:30]Sock 9.Close socket [19:25:30]Sock 9.Thread stoped [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]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:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:13]accept exits with 7 [19:30:13]New connection [19:30:13]New thread 3066875236 created [19:30:13]Thread 3066731876 joined [19:30:13]Waiting for new connection... [19:30:13] Sock 7.Parse request [19:30:13]Sock 7.Check first char [19:30:13]Sock 7.First char is OK [19:30:13]request: POST /json_proto HTTP/1.0 [19:30:13]Method: POST [19:30:13]URL: /json_proto [19:30:13]Method is POST - this is cgi request [19:30:13]url: /json_proto [19:30:13]query_string will be loaded in cgi processing [19:30:13]execute_cgi json_proto POST (null) [19:30:13]execute_cgi path=json_proto method=POST [19:30:13]POST find Content-Length [19:30:13]Host: 172.17.59.68:8080 [19:30:13]Content-Length: 682 [19:30:13]Content-Type: application/json [19:30:13] [19:30:13]POST finish read [19:30:13]Found Content-Length = 682 [19:30:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:30:13]execute_script... [19: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)320705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:30:13]POST & json_proto [19:30:13]process_json_proto [19:30:13]json parsed OK: [19:30:13]protocol is kg_v1.0 [19:30:13]action value=close_receipt [19:30:13]process_action close_receipt [19:30:13]cmd_close_receipt [19:30:13]MH_GetDate [19:30:13]Write to MH i2c: F0 00 00 CB 22 DC [19:30:13]Write i2c OK [19:30:13]MH_I2C_Read... [19:30:13]Read from MH i2c: F0 [19:30:13]MH_I2C_Read... [19:30:13]Read from MH i2c: F0 09 00 [19:30:13]MH_I2C_Read... [19:30:13]Read from MH i2c: F0 09 00 CB 22 00 CE D4 75 66 BC EC 60 65 CF [19:30:13]GetLastDocTimeStamp 1718997934 [19:30:13]current date 1718998222 [19:30:13]FM_GetShiftState [19:30:13]SAM_PROTO_GetShiftState [19:30:13]wFMCommunicate request_size=4 [19:30:13]MH_SAM_APDU [19:30:13]CAPDU: 80 13 01 00 [19:30:13]Write to MH i2c: E2 08 00 CC 22 80 13 01 00 00 00 00 00 6B [19:30:13]Write i2c OK [19:30:13]MH_I2C_Read... [19:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:13]Read from MH i2c: E2 [19:30:13]MH_I2C_Read... [19:30:13]Read from MH i2c: E2 0E 00 [19:30:13]MH_I2C_Read... [19:30:13]Read from MH i2c: E2 0E 00 CC 22 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E8 [19:30:13]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:30:13]wFMCommunicate OK [19:30:13]SAM_PROTO_GetShiftState done [19:30:13]FM_GetShiftState done [19:30:13]opened in 1718933695 [19:30:13]opened+sec_in_day 1719020095 [19:30:13]quantity*price = 100064 [19:30:13]sum+1 = 100066 [19:30:13]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 218 21.06.2024 19:30 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112050 肖袩袛: 127424402864665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112050&fm=127424402864665&tin=02508201610067®Number=0000000000092771&sum=100000 [19:30:14]StoreToDocumentArchive [19:30:14]shift 390 fd 112050 [19:30:14]save to /storage/0390/doc_00112050 [19:30:14]save last doc name /storage/0390/doc_00112050 to /storage/kkm_last_doc_name [19:30:14]save OK [19:30:14]Clear old archive folders... [19:30:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:14]tlvbuf is 0036BE00 [19:30:14]SAM_PROTO_ClearQueue [19:30:14]wFMCommunicate request_size=4 [19:30:14]MH_SAM_APDU [19:30:14]CAPDU: 80 09 00 00 [19:30:14]Write to MH i2c: E2 08 00 D9 22 80 09 00 00 00 00 00 00 6D [19:30:14]Write i2c OK [19:30:14]MH_I2C_Read... [19:30:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:14]Read from MH i2c: E2 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 03 00 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 03 00 D9 22 00 90 00 6F [19:30:14]RAPDU: 90 00 [19:30:14]wFMCommunicate OK [19:30:14]SAM_PROTO_ClearQueue done [19:30:14]KKMCreateOFDPacket [19:30:14]OFDProtocolAddRootSTLVToBuf [19:30:14]FM_MakeSignedData [19:30:14]FM_MakeSignedData [19:30:14]SAM_PROTO_SignData [19:30:14]wFMCommunicate request_size=4 [19:30:14]MH_SAM_APDU [19:30:14]CAPDU: 80 0D 01 02 [19:30:14]Write to MH i2c: E2 08 00 DA 22 80 0D 01 02 00 00 00 00 75 [19:30:14]Write i2c OK [19:30:14]MH_I2C_Read... [19:30:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:14]Read from MH i2c: E2 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 03 00 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 03 00 DA 22 00 90 00 70 [19:30:14]RAPDU: 90 00 [19:30:14]wFMCommunicate OK [19:30:14]wFMCommunicate request_size=255 [19:30:14]MH_SAM_APDU [19: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 DA 00 00 00 F4 03 04 00 CE D4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B5 01 00 35 04 06 00 73 [19:30:14]Write to MH i2c: E2 02 01 DB 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 DA 00 00 00 F4 03 04 00 CE D4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B5 01 00 35 04 06 00 73 00 00 32 [19:30:14]Write i2c OK [19:30:14]MH_I2C_Read... [19:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:14]Read from MH i2c: E2 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 03 00 [19:30:14]MH_I2C_Read... [19:30:14]Read from MH i2c: E2 03 00 DB 22 00 90 00 71 [19:30:14]RAPDU: 90 00 [19:30:14]wFMCommunicate OK [19:30:14]wFMCommunicate request_size=10 [19:30:14]MH_SAM_APDU [19:30:14]CAPDU: 80 0D 02 02 05 E4 4E 44 BA 19 [19:30:14]Write to MH i2c: E2 0D 00 DC 22 80 0D 02 02 05 00 E4 4E 44 BA 19 00 00 CB [19:30:14]Write i2c OK [19:30:14]MH_I2C_Read... [19:30:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:15]Read from MH i2c: E2 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 03 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 03 00 DC 22 00 90 00 72 [19:30:15]RAPDU: 90 00 [19:30:15]wFMCommunicate OK [19:30:15]wFMCommunicate request_size=4 [19:30:15]MH_SAM_APDU [19:30:15]CAPDU: 80 0D 03 02 [19:30:15]Write to MH i2c: E2 08 00 DD 22 80 0D 03 02 00 00 00 00 7A [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:15]Read from MH i2c: E2 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 0B 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 0B 00 DD 22 00 45 50 F4 6B 62 DD C7 7B 90 00 F0 [19:30:15]RAPDU: 45 50 F4 6B 62 DD C7 7B 90 00 [19:30:15]wFMCommunicate OK [19:30:15]SAM_PROTO_SignData done [19:30:15]FM_MakeSignedData done [19:30:15]CreateOFDProtocolMessage [19:30:15]wFMCommunicate request_size=4 [19:30:15]MH_SAM_APDU [19:30:15]CAPDU: 80 11 00 00 [19:30:15]Write to MH i2c: E2 08 00 DE 22 80 11 00 00 00 00 00 00 7A [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:15]Read from MH i2c: E2 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 17 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: E2 17 00 DE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CC [19:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:30:15]wFMCommunicate OK [19:30:15]CreateOFDProtocolMessage done [19:30:15]OFDSenderStorePacket 112050 [19:30:15]StoreOFDPacket docnum=112050 [19:30:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8C 1E 07 01 F6 9E 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 DA 00 00 00 F4 03 04 00 CE D4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B5 01 00 35 04 06 00 73 E4 4E 44 BA 19 45 50 F4 6B 62 DD C7 7B [19:30:15]CheckFolder [19:30:15]dirname=/storage/ofd_packets [19:30:15]CheckFolder done [19:30:15]ProducePacketName [19:30:15]name=ofd_packets/00112050 [19:30:15]NVStorageSaveData ofd_packets/00112050 [19:30:15]File name is /storage/ofd_packets/00112050 [19:30:15]Write 301 bytes [19:30:15]NVStorageSaveData done [19:30:15]OFDSenderStorePacket done [19:30:15]KKMCreateOFDPacket done [19:30:15]NVStorageSaveData kkm_last_timestamp [19:30:15]File name is /storage/kkm_last_timestamp [19:30:15]Write 4 bytes [19:30:15]NVStorageSaveData done [19:30:15]ExternCall_PrintAddStr [19:30:15]wPrintStart [19:30:15]Write to MH i2c: 01 00 00 DF 22 01 [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: 01 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: 01 07 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: 01 07 00 DF 22 00 00 00 00 00 FF 0F 16 [19:30:15]RasterBufferAndPrint [19:30:15]line 小褔械褌 N : (1)320705 [19:30:15]line 袠袧袧: 02508201610067 [19:30:15]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:30:15]line 袩袪袨袛袗袞袗 [19:30:15]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:30:15]line 孝芯胁邪褉: 2710124130 [19:30:15]line 袗懈-92-袣-5 [19:30:15]line 15.070 * 66.40 [19:30:15]line = 1000.65 [19:30:15]line 袧袛小 12% 袧小袩 1% [19:30:15]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:30:15]line 袨袣袪校袚袥袝袧袠袝: -0.65 [19:30:15]line 袠孝袨袚袨: 1000.00 [19:30:15]line 袙薪械褋械薪芯: 1000.00 [19:30:15]line 小袛袗效袗: 0.00 [19:30:15]line 袧小袩 1% : 8.85 [19:30:15]line 袧袛小 12% : 106.26 [19:30:15]line 袧邪谢懈褔薪褘屑懈: 1000.00 [19:30:15]line 袘械蟹薪邪谢.: 0.00 [19:30:15]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:30:15]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:30:15]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:30:15]line 效械泻 218 21.06.2024 19:30 [19:30:15]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:30:15]line 袟袧袦: 0300000198 [19:30:15]line 袪袧袦: 0000000000092771 [19:30:15]line 袙械褉褋懈褟 袣袣袦: 001 [19:30:15]line 肖袦: 0000000000875083 [19:30:15]line 肖袛: 112050 [19:30:15]line 肖袩袛: 127424402864665 [19:30:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193022&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112050&fm=127424402864665&tin=02508201610067®Number=0000000000092771&sum=100000 [19:30:15]OFD Sender: Processing packet 112050 [packets to send 38, broken 37] [19:30:15]ProducePacketName [19:30:15]name=ofd_packets/00112050 [19:30:15]OFD Sender: To server: 嚂鰌G, [19:30:15]CommunicateWithHost lk.salyk.kg:30040 [19:30:15]ConnectInit lk.salyk.kg [19:30:15]written 0, free lines is 4095 [19:30:15]Connected sock=10 [19:30:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 8C 1E 07 01 F6 9E 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 DA 00 00 00 F4 03 04 00 CE D4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B5 01 00 35 04 06 00 73 E4 4E 44 BA 19 45 50 F4 6B 62 DD C7 7B [19:30:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 64 42 47 00 E2 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 30 38 37 35 30 38 33 10 04 04 00 B2 B5 01 00 F4 03 04 00 F0 6B 75 66 B6 04 01 00 00 84 FE 26 6D C4 77 3D A7 [19:30:15]CommunicateWithHost err = 0 [19:30:15]CheckOFDResponse [19:30:15]1017 (14) - 77093643461234 [19:30:15]1041 (16) - 0000000000875083 [19:30:15]1040 (4) - 112050 [19:30:15]1012 (4) - 21.06.2024 12:02 [19:30:15]1206 (1) - 0 [19:30:15]OFD Sender: Remove packet 112050 [19:30:15]ProducePacketName [19:30:15]name=ofd_packets/00112050 [19:30:15]NVStorageDeleteData [19:30:15]Write to MH i2c: 01 00 00 0A 23 2D [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: 01 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: 01 07 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: 01 07 00 0A 23 00 00 00 00 00 D8 0C 18 [19:30:15]RasterBufferAndPrint [19:30:15]line [19:30:15]line [19:30:15]line [19:30:15]line [19:30:15]line [19:30:15]written 0, free lines is 3296 [19:30:15]MH_Cut [19:30:15]Write to MH i2c: D1 01 00 11 23 01 06 [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: D1 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: D1 01 00 [19:30:15]MH_I2C_Read... [19:30:15]Read from MH i2c: D1 01 00 11 23 00 05 [19:30:15]Write to MH i2c: 01 00 00 12 23 35 [19:30:15]Write i2c OK [19:30:15]MH_I2C_Read... [19:30:16]OFD Sender: No OFD packet to send [19:30:16]*** Cut start [19:30:16]*** Partial cut [19:30:16]*** CUTSNS_PIN = 1 [19:30:16]*** CUTSNS_PIN = 0 [19:30:16]*** Brake cut motor [19:30:17]Read from MH i2c: 01 [19:30:17]MH_I2C_Read... [19:30:17]*** Stop cut motor [19:30:17]*** Cut end [19:30:17]Read from MH i2c: 01 07 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: 01 07 00 12 23 00 00 00 00 00 FF 0F 4A [19:30:17]process_action close_receipt done [19:30:17]requested_data is exist [19:30:17]produce_requested_data [19:30:17]requested_item fm.sn is exist - process it [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 11 00 00 [19:30:17]Write to MH i2c: E2 08 00 13 23 80 11 00 00 00 00 00 00 B0 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 17 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 17 00 13 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 02 [19:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:30:17]wFMCommunicate OK [19:30:17]requested_item fd.num is exist - process it [19:30:17]SAM_PROTO_GetFieldsCounters [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 13 00 00 [19:30:17]Write to MH i2c: E2 08 00 14 23 80 13 00 00 00 00 00 00 B3 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 62 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 62 00 14 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [19:30:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:17]wFMCommunicate OK [19:30:17]SAM_PROTO_GetFieldsCounters done [19:30:17]requested_item shift.num is exist - process it [19:30:17]requested_item shift.opened is exist - process it [19:30:17]req_shift_opened [19:30:17]FM_GetShiftState [19:30:17]SAM_PROTO_GetShiftState [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 13 01 00 [19:30:17]Write to MH i2c: E2 08 00 15 23 80 13 01 00 00 00 00 00 B5 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 0E 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 0E 00 15 23 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 32 [19:30:17]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:30:17]wFMCommunicate OK [19:30:17]SAM_PROTO_GetShiftState done [19:30:17]FM_GetShiftState done [19:30:17]req_shift_opened done [19:30:17]requested_item shift.open_date is exist - process it [19:30:17]req_shift_open_date [19:30:17]req_shift_open_date done [19:30:17]produce_requested_data done [19:30:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112050,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:30:17]process_action_free close_receipt [19:30:17]json_value_free [19:30:17]json_value_free done [19:30:17]process_json_proto returns [19:30:17]Send response to host [19:30:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112050,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:30:17]free response buf [19:30:17]execute_script done [19:30:17]execute_script returns [19:30:17]free content buf [19:30:17]Sock 7.Close socket [19:30:17]Sock 7.Thread stoped [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:02]accept exits with 9 [19:31:02]New connection [19:31:02]New thread 3066731876 created [19:31:02]Thread 3066875236 joined [19:31:02]Waiting for new connection... [19:31:02] Sock 9.Parse request [19:31:02]Sock 9.Check first char [19:31:02]Sock 9.First char is OK [19:31:02]request: POST /json_proto HTTP/1.0 [19:31:02]Method: POST [19:31:02]URL: /json_proto [19:31:02]Method is POST - this is cgi request [19:31:02]url: /json_proto [19:31:02]query_string will be loaded in cgi processing [19:31:02]execute_cgi json_proto POST (null) [19:31:02]execute_cgi path=json_proto method=POST [19:31:02]POST find Content-Length [19:31:02]Host: 172.17.59.68:8080 [19:31:02]Content-Length: 1198 [19:31:02]Content-Type: application/json [19:31:02] [19:31:02]POST finish read [19:31:02]Found Content-Length = 1198 [19:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320704\u000A21.06.2024 17:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:02]execute_script... [19:31:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320704\u000A21.06.2024 17:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:02]POST & json_proto [19:31:02]process_json_proto [19:31:02]json parsed OK: [19:31:02]protocol is kg_v1.0 [19:31:02]action value=print_text [19:31:02]process_action print_text [19:31:02]cmd_print_text [19:31:02]ExternCall_PrintAddStr [19:31:02]wPrintStart [19:31:02]Write to MH i2c: 01 00 00 16 23 39 [19:31:02]Write i2c OK [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: 01 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: 01 07 00 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: 01 07 00 16 23 00 00 00 00 00 FF 0F 4E [19:31:02]RasterBufferAndPrint [19:31:02]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [19:31:02]line 袗袟小 65 [19:31:02]line 袩邪褉褌薪械褉 薪械褎褌褜 [19:31:02]line 02508201610067 [19:31:02]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [19:31:02]line 小褔械褌 N : (1)320704 [19:31:02]line 21.06.2024 17:58 [19:31:02]line 袩袪袨袛袗袞袗 [19:31:02]line 孝袪袣 (袦袪袣, 袚袧袣): 22 [19:31:02]line 袙懈写 袚小袦 : 2710194210 [19:31:02]line 袛孝-袣-5 [19:31:02]line 50.000 x 72.90 [19:31:02]line 袠孝袨袚: 3645.00 [19:31:02]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [19:31:02]line 02996 [19:31:02]line ______________________ [19:31:02]line (锌芯写锌懈褋褜) [19:31:02]written 0, free lines is 4095 [19:31:02]Write to MH i2c: 01 00 00 2A 23 4D [19:31:02]Write i2c OK [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: 01 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: 01 07 00 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: 01 07 00 2A 23 00 00 00 00 00 10 0E 72 [19:31:02]RasterBufferAndPrint [19:31:02]line [19:31:02]line [19:31:02]line [19:31:02]line [19:31:02]line [19:31:02]written 0, free lines is 3601 [19:31:02]MH_Cut [19:31:02]Write to MH i2c: D1 01 00 31 23 01 26 [19:31:02]Write i2c OK [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: D1 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: D1 01 00 [19:31:02]MH_I2C_Read... [19:31:02]Read from MH i2c: D1 01 00 31 23 00 25 [19:31:02]Write to MH i2c: 01 00 00 32 23 55 [19:31:02]Write i2c OK [19:31:02]MH_I2C_Read... [19:31:03]*** Cut start [19:31:03]*** Partial cut [19:31:03]*** CUTSNS_PIN = 1 [19:31:03]*** CUTSNS_PIN = 0 [19:31:03]*** Brake cut motor [19:31:04]Read from MH i2c: 01 [19:31:04]MH_I2C_Read... [19:31:04]Read from MH i2c: 01 07 00 [19:31:04]MH_I2C_Read... [19:31:04]*** Stop cut motor [19:31:04]*** Cut end [19:31:04]Read from MH i2c: 01 07 00 32 23 00 00 00 00 00 FF 0F 6A [19:31:04]process_action print_text done [19:31:04]requested_data is exist [19:31:04]produce_requested_data [19:31:04]requested_item fm.sn is exist - process it [19:31:04]wFMCommunicate request_size=4 [19:31:04]MH_SAM_APDU [19:31:04]CAPDU: 80 11 00 00 [19:31:04]Write to MH i2c: E2 08 00 33 23 80 11 00 00 00 00 00 00 D0 [19:31:04]Write i2c OK [19:31:04]MH_I2C_Read... [19:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:04]Read from MH i2c: E2 [19:31:04]MH_I2C_Read... [19:31:04]Read from MH i2c: E2 17 00 [19:31:04]MH_I2C_Read... [19:31:04]Read from MH i2c: E2 17 00 33 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 22 [19:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:31:04]wFMCommunicate OK [19:31:04]requested_item fd.num is exist - process it [19:31:04]SAM_PROTO_GetFieldsCounters [19:31:04]wFMCommunicate request_size=4 [19:31:04]MH_SAM_APDU [19:31:04]CAPDU: 80 13 00 00 [19:31:04]Write to MH i2c: E2 08 00 34 23 80 13 00 00 00 00 00 00 D3 [19:31:04]Write i2c OK [19:31:04]MH_I2C_Read... [19:31:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:04]Read from MH i2c: E2 [19:31:04]MH_I2C_Read... [19:31:04]Read from MH i2c: E2 62 00 [19:31:04]MH_I2C_Read... [19:31:04]Read from MH i2c: E2 62 00 34 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [19:31:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:04]wFMCommunicate OK [19:31:04]SAM_PROTO_GetFieldsCounters done [19:31:04]requested_item shift.num is exist - process it [19:31:04]requested_item shift.opened is exist - process it [19:31:04]req_shift_opened [19:31:04]FM_GetShiftState [19:31:04]SAM_PROTO_GetShiftState [19:31:04]wFMCommunicate request_size=4 [19:31:04]MH_SAM_APDU [19:31:04]CAPDU: 80 13 01 00 [19:31:04]Write to MH i2c: E2 08 00 35 23 80 13 01 00 00 00 00 00 D5 [19:31:04]Write i2c OK [19:31:04]MH_I2C_Read... [19:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:04]Read from MH i2c: E2 [19:31:04]MH_I2C_Read... [19:31:04]Read from MH i2c: E2 0E 00 [19:31:04]MH_I2C_Read... [19:31:04]Read from MH i2c: E2 0E 00 35 23 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 52 [19:31:04]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:31:04]wFMCommunicate OK [19:31:04]SAM_PROTO_GetShiftState done [19:31:04]FM_GetShiftState done [19:31:04]req_shift_opened done [19:31:04]requested_item shift.open_date is exist - process it [19:31:04]req_shift_open_date [19:31:04]req_shift_open_date done [19:31:04]produce_requested_data done [19:31:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112050,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:31:04]process_action_free print_text [19:31:04]json_value_free [19:31:04]json_value_free done [19:31:04]process_json_proto returns [19:31:04]Send response to host [19:31:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112050,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:31:04]free response buf [19:31:04]execute_script done [19:31:04]execute_script returns [19:31:04]free content buf [19:31:04]Sock 9.Close socket [19:31:04]Sock 9.Thread stoped [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]accept exits with 10 [19:31:51]New connection [19:31:51]New thread 3066875236 created [19:31:51]Thread 3066731876 joined [19:31:51]Waiting for new connection... [19:31:51] Sock 10.Parse request [19:31:51]Sock 10.Check first char [19:31:51]Sock 10.First char is OK [19:31:51]request: POST /json_proto HTTP/1.0 [19:31:51]Method: POST [19:31:51]URL: /json_proto [19:31:51]Method is POST - this is cgi request [19:31:51]url: /json_proto [19:31:51]query_string will be loaded in cgi processing [19:31:51]execute_cgi json_proto POST (null) [19:31:51]execute_cgi path=json_proto method=POST [19:31:51]POST find Content-Length [19:31:51]Host: 172.17.59.68:8080 [19:31:51]Content-Length: 678 [19:31:51]Content-Type: application/json [19:31:51] [19:31:51]POST finish read [19:31:51]Found Content-Length = 678 [19:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "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" ] } } [19:31:51]execute_script... [19:31: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)320706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "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" ] } } [19:31:51]POST & json_proto [19:31:51]process_json_proto [19:31:51]json parsed OK: [19:31:51]protocol is kg_v1.0 [19:31:51]action value=close_receipt [19:31:51]process_action close_receipt [19:31:51]cmd_close_receipt [19:31:51]MH_GetDate [19:31:51]Write to MH i2c: F0 00 00 36 23 48 [19:31:51]Write i2c OK [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: F0 [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: F0 09 00 [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: F0 09 00 36 23 00 2F D5 75 66 BC EC 60 65 9D [19:31:51]GetLastDocTimeStamp 1718998222 [19:31:51]current date 1718998319 [19:31:51]FM_GetShiftState [19:31:51]SAM_PROTO_GetShiftState [19:31:51]wFMCommunicate request_size=4 [19:31:51]MH_SAM_APDU [19:31:51]CAPDU: 80 13 01 00 [19:31:51]Write to MH i2c: E2 08 00 37 23 80 13 01 00 00 00 00 00 D7 [19:31:51]Write i2c OK [19:31:51]MH_I2C_Read... [19:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:51]Read from MH i2c: E2 [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: E2 0E 00 [19:31:51]MH_I2C_Read... [19:31:51]Read from MH i2c: E2 0E 00 37 23 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 54 [19:31:51]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:31:51]wFMCommunicate OK [19:31:51]SAM_PROTO_GetShiftState done [19:31:51]FM_GetShiftState done [19:31:51]opened in 1718933695 [19:31:51]opened+sec_in_day 1719020095 [19:31:51]quantity*price = 80012 [19:31:51]sum+1 = 80013 [19:31:51]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.12 袠孝袨袚袨: 800.00 袙薪械褋械薪芯: 800.00 小袛袗效袗: 0.00 袧小袩 1% : 7.08 袧袛小 12% : 84.97 袧邪谢懈褔薪褘屑懈: 800.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 219 21.06.2024 19:31 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112051 肖袩袛: 139309538387254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193159&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112051&fm=139309538387254&tin=02508201610067®Number=0000000000092771&sum=80000 [19:31:52]StoreToDocumentArchive [19:31:52]shift 390 fd 112051 [19:31:52]save to /storage/0390/doc_00112051 [19:31:52]save last doc name /storage/0390/doc_00112051 to /storage/kkm_last_doc_name [19:31:52]save OK [19:31:52]Clear old archive folders... [19:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:52]tlvbuf is 004658B0 [19:31:52]SAM_PROTO_ClearQueue [19:31:52]wFMCommunicate request_size=4 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 09 00 00 [19:31:52]Write to MH i2c: E2 08 00 44 23 80 09 00 00 00 00 00 00 D9 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:52]Read from MH i2c: E2 03 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 44 23 00 90 00 DB [19:31:52]RAPDU: 90 00 [19:31:52]wFMCommunicate OK [19:31:52]SAM_PROTO_ClearQueue done [19:31:52]KKMCreateOFDPacket [19:31:52]OFDProtocolAddRootSTLVToBuf [19:31:52]FM_MakeSignedData [19:31:52]FM_MakeSignedData [19:31:52]SAM_PROTO_SignData [19:31:52]wFMCommunicate request_size=4 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 0D 01 02 [19:31:52]Write to MH i2c: E2 08 00 45 23 80 0D 01 02 00 00 00 00 E1 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 45 23 00 90 00 DC [19:31:52]RAPDU: 90 00 [19:31:52]wFMCommunicate OK [19:31:52]wFMCommunicate request_size=255 [19:31:52]MH_SAM_APDU [19:31: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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 31 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 DB 00 00 00 F4 03 04 00 2F D5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B5 01 00 35 04 06 00 7E [19:31:52]Write to MH i2c: E2 02 01 46 23 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 31 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 DB 00 00 00 F4 03 04 00 2F D5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B5 01 00 35 04 06 00 7E 00 00 AC [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 46 23 00 90 00 DD [19:31:52]RAPDU: 90 00 [19:31:52]wFMCommunicate OK [19:31:52]wFMCommunicate request_size=10 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 0D 02 02 05 B3 87 8C A5 36 [19:31:52]Write to MH i2c: E2 0D 00 47 23 80 0D 02 02 05 00 B3 87 8C A5 36 00 00 8F [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 03 00 47 23 00 90 00 DE [19:31:52]RAPDU: 90 00 [19:31:52]wFMCommunicate OK [19:31:52]wFMCommunicate request_size=4 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 0D 03 02 [19:31:52]Write to MH i2c: E2 08 00 48 23 80 0D 03 02 00 00 00 00 E6 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 0B 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 0B 00 48 23 00 CC 90 01 98 E2 A6 3E 07 90 00 A9 [19:31:52]RAPDU: CC 90 01 98 E2 A6 3E 07 90 00 [19:31:52]wFMCommunicate OK [19:31:52]SAM_PROTO_SignData done [19:31:52]FM_MakeSignedData done [19:31:52]CreateOFDProtocolMessage [19:31:52]wFMCommunicate request_size=4 [19:31:52]MH_SAM_APDU [19:31:52]CAPDU: 80 11 00 00 [19:31:52]Write to MH i2c: E2 08 00 49 23 80 11 00 00 00 00 00 00 E6 [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:52]Read from MH i2c: E2 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 17 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: E2 17 00 49 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 38 [19:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:31:52]wFMCommunicate OK [19:31:52]CreateOFDProtocolMessage done [19:31:52]OFDSenderStorePacket 112051 [19:31:52]StoreOFDPacket docnum=112051 [19:31:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B3 12 07 01 E6 53 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 31 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 DB 00 00 00 F4 03 04 00 2F D5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B5 01 00 35 04 06 00 7E B3 87 8C A5 36 CC 90 01 98 E2 A6 3E 07 [19:31:52]CheckFolder [19:31:52]dirname=/storage/ofd_packets [19:31:52]CheckFolder done [19:31:52]ProducePacketName [19:31:52]name=ofd_packets/00112051 [19:31:52]NVStorageSaveData ofd_packets/00112051 [19:31:52]File name is /storage/ofd_packets/00112051 [19:31:52]Write 301 bytes [19:31:52]NVStorageSaveData done [19:31:52]OFDSenderStorePacket done [19:31:52]KKMCreateOFDPacket done [19:31:52]NVStorageSaveData kkm_last_timestamp [19:31:52]File name is /storage/kkm_last_timestamp [19:31:52]Write 4 bytes [19:31:52]NVStorageSaveData done [19:31:52]ExternCall_PrintAddStr [19:31:52]wPrintStart [19:31:52]Write to MH i2c: 01 00 00 4A 23 6D [19:31:52]Write i2c OK [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: 01 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: 01 07 00 [19:31:52]MH_I2C_Read... [19:31:52]Read from MH i2c: 01 07 00 4A 23 00 00 00 00 00 FF 0F 82 [19:31:52]RasterBufferAndPrint [19:31:52]line 小褔械褌 N : (1)320706 [19:31:52]line 袠袧袧: 02508201610067 [19:31:52]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:31:52]line 袩袪袨袛袗袞袗 [19:31:52]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:31:52]line 孝芯胁邪褉: 2710124130 [19:31:52]line 袗懈-92-袣-5 [19:31:52]line 12.050 * 66.40 [19:31:52]line = 800.12 [19:31:52]line 袧袛小 12% 袧小袩 1% [19:31:52]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:31:52]line 袨袣袪校袚袥袝袧袠袝: -0.12 [19:31:52]line 袠孝袨袚袨: 800.00 [19:31:52]line 袙薪械褋械薪芯: 800.00 [19:31:52]line 小袛袗效袗: 0.00 [19:31:52]line 袧小袩 1% : 7.08 [19:31:52]line 袧袛小 12% : 84.97 [19:31:52]line 袧邪谢懈褔薪褘屑懈: 800.00 [19:31:52]line 袘械蟹薪邪谢.: 0.00 [19:31:52]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:31:52]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:31:52]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:31:52]line 效械泻 219 21.06.2024 19:31 [19:31:52]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:31:52]line 袟袧袦: 0300000198 [19:31:52]line 袪袧袦: 0000000000092771 [19:31:52]line 袙械褉褋懈褟 袣袣袦: 001 [19:31:52]line 肖袦: 0000000000875083 [19:31:52]line 肖袛: 112051 [19:31:52]line 肖袩袛: 139309538387254 [19:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193159&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112051&fm=139309538387254&tin=02508201610067®Number=0000000000092771&sum=80000 [19:31:53]OFD Sender: Processing packet 112051 [packets to send 38, broken 37] [19:31:53]ProducePacketName [19:31:53]name=ofd_packets/00112051 [19:31:53]OFD Sender: To server: 嚂鰌G, [19:31:53]CommunicateWithHost lk.salyk.kg:30040 [19:31:53]ConnectInit lk.salyk.kg [19:31:53]written 0, free lines is 4095 [19:31:53]Connected sock=9 [19:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B3 12 07 01 E6 53 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 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 31 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 DB 00 00 00 F4 03 04 00 2F D5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B5 01 00 35 04 06 00 7E B3 87 8C A5 36 CC 90 01 98 E2 A6 3E 07 [19:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8F 82 47 00 3A 33 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 30 38 37 35 30 38 33 10 04 04 00 B3 B5 01 00 F4 03 04 00 52 6C 75 66 B6 04 01 00 00 34 59 BE 9A 88 BA A8 D9 [19:31:53]CommunicateWithHost err = 0 [19:31:53]CheckOFDResponse [19:31:53]1017 (14) - 77093643461234 [19:31:53]1041 (16) - 0000000000875083 [19:31:53]1040 (4) - 112051 [19:31:53]1012 (4) - 21.06.2024 12:04 [19:31:53]1206 (1) - 0 [19:31:53]OFD Sender: Remove packet 112051 [19:31:53]ProducePacketName [19:31:53]name=ofd_packets/00112051 [19:31:53]NVStorageDeleteData [19:31:53]Write to MH i2c: 01 00 00 75 23 98 [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: 01 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: 01 07 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: 01 07 00 75 23 00 00 00 00 00 D4 0C 7F [19:31:53]RasterBufferAndPrint [19:31:53]line [19:31:53]line [19:31:53]line [19:31:53]line [19:31:53]line [19:31:53]written 0, free lines is 3290 [19:31:53]MH_Cut [19:31:53]Write to MH i2c: D1 01 00 7C 23 01 71 [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: D1 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: D1 01 00 [19:31:53]MH_I2C_Read... [19:31:53]Read from MH i2c: D1 01 00 7C 23 00 70 [19:31:53]Write to MH i2c: 01 00 00 7D 23 A0 [19:31:53]Write i2c OK [19:31:53]MH_I2C_Read... [19:31:53]OFD Sender: No OFD packet to send [19:31:54]*** Cut start [19:31:54]*** Partial cut [19:31:54]*** CUTSNS_PIN = 1 [19:31:54]*** CUTSNS_PIN = 0 [19:31:54]*** Brake cut motor [19:31:54]Read from MH i2c: 01 [19:31:54]MH_I2C_Read... [19:31:54]*** Stop cut motor [19:31:54]*** Cut end [19:31:54]Read from MH i2c: 01 07 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: 01 07 00 7D 23 00 00 00 00 00 FF 0F B5 [19:31:54]process_action close_receipt done [19:31:54]requested_data is exist [19:31:54]produce_requested_data [19:31:54]requested_item fm.sn is exist - process it [19:31:54]wFMCommunicate request_size=4 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 11 00 00 [19:31:54]Write to MH i2c: E2 08 00 7E 23 80 11 00 00 00 00 00 00 1B [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:54]Read from MH i2c: E2 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 17 00 [19:31:54]MH_I2C_Read... [19:31:54]Read from MH i2c: E2 17 00 7E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6D [19:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:31:54]wFMCommunicate OK [19:31:54]requested_item fd.num is exist - process it [19:31:54]SAM_PROTO_GetFieldsCounters [19:31:54]wFMCommunicate request_size=4 [19:31:54]MH_SAM_APDU [19:31:54]CAPDU: 80 13 00 00 [19:31:54]Write to MH i2c: E2 08 00 7F 23 80 13 00 00 00 00 00 00 1E [19:31:54]Write i2c OK [19:31:54]MH_I2C_Read... [19:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:55]Read from MH i2c: E2 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 62 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 62 00 7F 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [19:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:55]wFMCommunicate OK [19:31:55]SAM_PROTO_GetFieldsCounters done [19:31:55]requested_item shift.num is exist - process it [19:31:55]requested_item shift.opened is exist - process it [19:31:55]req_shift_opened [19:31:55]FM_GetShiftState [19:31:55]SAM_PROTO_GetShiftState [19:31:55]wFMCommunicate request_size=4 [19:31:55]MH_SAM_APDU [19:31:55]CAPDU: 80 13 01 00 [19:31:55]Write to MH i2c: E2 08 00 80 23 80 13 01 00 00 00 00 00 20 [19:31:55]Write i2c OK [19:31:55]MH_I2C_Read... [19:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:55]Read from MH i2c: E2 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 0E 00 [19:31:55]MH_I2C_Read... [19:31:55]Read from MH i2c: E2 0E 00 80 23 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 9D [19:31:55]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:31:55]wFMCommunicate OK [19:31:55]SAM_PROTO_GetShiftState done [19:31:55]FM_GetShiftState done [19:31:55]req_shift_opened done [19:31:55]requested_item shift.open_date is exist - process it [19:31:55]req_shift_open_date [19:31:55]req_shift_open_date done [19:31:55]produce_requested_data done [19:31:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112051,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:31:55]process_action_free close_receipt [19:31:55]json_value_free [19:31:55]json_value_free done [19:31:55]process_json_proto returns [19:31:55]Send response to host [19:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112051,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:31:55]free response buf [19:31:55]execute_script done [19:31:55]execute_script returns [19:31:55]free content buf [19:31:55]Sock 10.Close socket [19:31:55]Sock 10.Thread stoped [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:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:34]accept exits with 7 [19:34:34]New connection [19:34:34]New thread 3066731876 created [19:34:34]Thread 3066875236 joined [19:34:34]Waiting for new connection... [19:34:34] Sock 7.Parse request [19:34:34]Sock 7.Check first char [19:34:34]Sock 7.First char is OK [19:34:34]request: POST /json_proto HTTP/1.0 [19:34:34]Method: POST [19:34:34]URL: /json_proto [19:34:34]Method is POST - this is cgi request [19:34:34]url: /json_proto [19:34:34]query_string will be loaded in cgi processing [19:34:34]execute_cgi json_proto POST (null) [19:34:34]execute_cgi path=json_proto method=POST [19:34:34]POST find Content-Length [19:34:34]Host: 172.17.59.68:8080 [19:34:34]Content-Length: 1198 [19:34:34]Content-Type: application/json [19:34:34] [19:34:34]POST finish read [19:34:34]Found Content-Length = 1198 [19:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320707\u000A21.06.2024 18:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 80.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5832.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:34]execute_script... [19:34:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320707\u000A21.06.2024 18:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 80.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5832.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:34]POST & json_proto [19:34:34]process_json_proto [19:34:34]json parsed OK: [19:34:34]protocol is kg_v1.0 [19:34:34]action value=print_text [19:34:34]process_action print_text [19:34:34]cmd_print_text [19:34:34]ExternCall_PrintAddStr [19:34:34]wPrintStart [19:34:34]Write to MH i2c: 01 00 00 81 23 A4 [19:34:34]Write i2c OK [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: 01 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: 01 07 00 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: 01 07 00 81 23 00 00 00 00 00 FF 0F B9 [19:34:34]RasterBufferAndPrint [19:34:34]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [19:34:34]line 袗袟小 65 [19:34:34]line 袩邪褉褌薪械褉 薪械褎褌褜 [19:34:34]line 02508201610067 [19:34:34]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [19:34:34]line 小褔械褌 N : (1)320707 [19:34:34]line 21.06.2024 18:01 [19:34:34]line 袩袪袨袛袗袞袗 [19:34:34]line 孝袪袣 (袦袪袣, 袚袧袣): 22 [19:34:34]line 袙懈写 袚小袦 : 2710194210 [19:34:34]line 袛孝-袣-5 [19:34:34]line 80.000 x 72.90 [19:34:34]line 袠孝袨袚: 5832.00 [19:34:34]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [19:34:34]line 02996 [19:34:34]line ______________________ [19:34:34]line (锌芯写锌懈褋褜) [19:34:34]written 0, free lines is 4095 [19:34:35]Write to MH i2c: 01 00 00 95 23 B8 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: 01 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: 01 07 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: 01 07 00 95 23 00 00 00 00 00 10 0E DD [19:34:35]RasterBufferAndPrint [19:34:35]line [19:34:35]line [19:34:35]line [19:34:35]line [19:34:35]line [19:34:35]written 0, free lines is 3601 [19:34:35]MH_Cut [19:34:35]Write to MH i2c: D1 01 00 9C 23 01 91 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: D1 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: D1 01 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: D1 01 00 9C 23 00 90 [19:34:35]Write to MH i2c: 01 00 00 9D 23 C0 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]*** Cut start [19:34:35]*** Partial cut [19:34:35]*** CUTSNS_PIN = 1 [19:34:35]*** CUTSNS_PIN = 0 [19:34:35]*** Brake cut motor [19:34:36]Read from MH i2c: 01 [19:34:36]MH_I2C_Read... [19:34:36]*** Stop cut motor [19:34:36]*** Cut end [19:34:36]Read from MH i2c: 01 07 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: 01 07 00 9D 23 00 00 00 00 00 FF 0F D5 [19:34:36]process_action print_text done [19:34:36]requested_data is exist [19:34:36]produce_requested_data [19:34:36]requested_item fm.sn is exist - process it [19:34:36]wFMCommunicate request_size=4 [19:34:36]MH_SAM_APDU [19:34:36]CAPDU: 80 11 00 00 [19:34:36]Write to MH i2c: E2 08 00 9E 23 80 11 00 00 00 00 00 00 3B [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:36]Read from MH i2c: E2 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 17 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 17 00 9E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8D [19:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:34:36]wFMCommunicate OK [19:34:36]requested_item fd.num is exist - process it [19:34:36]SAM_PROTO_GetFieldsCounters [19:34:36]wFMCommunicate request_size=4 [19:34:36]MH_SAM_APDU [19:34:36]CAPDU: 80 13 00 00 [19:34:36]Write to MH i2c: E2 08 00 9F 23 80 13 00 00 00 00 00 00 3E [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:36]Read from MH i2c: E2 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 62 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 62 00 9F 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [19:34:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:36]wFMCommunicate OK [19:34:36]SAM_PROTO_GetFieldsCounters done [19:34:36]requested_item shift.num is exist - process it [19:34:36]requested_item shift.opened is exist - process it [19:34:36]req_shift_opened [19:34:36]FM_GetShiftState [19:34:36]SAM_PROTO_GetShiftState [19:34:36]wFMCommunicate request_size=4 [19:34:36]MH_SAM_APDU [19:34:36]CAPDU: 80 13 01 00 [19:34:36]Write to MH i2c: E2 08 00 A0 23 80 13 01 00 00 00 00 00 40 [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:36]Read from MH i2c: E2 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 0E 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 0E 00 A0 23 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 BD [19:34:36]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:34:36]wFMCommunicate OK [19:34:36]SAM_PROTO_GetShiftState done [19:34:36]FM_GetShiftState done [19:34:36]req_shift_opened done [19:34:36]requested_item shift.open_date is exist - process it [19:34:36]req_shift_open_date [19:34:36]req_shift_open_date done [19:34:36]produce_requested_data done [19:34:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112051,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:34:36]process_action_free print_text [19:34:36]json_value_free [19:34:36]json_value_free done [19:34:36]process_json_proto returns [19:34:36]Send response to host [19:34:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112051,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:34:36]free response buf [19:34:36]execute_script done [19:34:36]execute_script returns [19:34:36]free content buf [19:34:36]Sock 7.Close socket [19:34:36]Sock 7.Thread stoped [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:55]accept exits with 9 [19:35:55]New connection [19:35:55]New thread 3066875236 created [19:35:55]Thread 3066731876 joined [19:35:55]Waiting for new connection... [19:35:55] Sock 9.Parse request [19:35:55]Sock 9.Check first char [19:35:55]Sock 9.First char is OK [19:35:55]request: POST /json_proto HTTP/1.0 [19:35:55]Method: POST [19:35:55]URL: /json_proto [19:35:55]Method is POST - this is cgi request [19:35:55]url: /json_proto [19:35:55]query_string will be loaded in cgi processing [19:35:55]execute_cgi json_proto POST (null) [19:35:55]execute_cgi path=json_proto method=POST [19:35:55]POST find Content-Length [19:35:55]Host: 172.17.59.68:8080 [19:35:55]Content-Length: 678 [19:35:55]Content-Type: application/json [19:35:55] [19:35:55]POST finish read [19:35:55]Found Content-Length = 678 [19:35:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:55]execute_script... [19:35: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)320708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:55]POST & json_proto [19:35:55]process_json_proto [19:35:55]json parsed OK: [19:35:55]protocol is kg_v1.0 [19:35:55]action value=close_receipt [19:35:55]process_action close_receipt [19:35:55]cmd_close_receipt [19:35:55]MH_GetDate [19:35:55]Write to MH i2c: F0 00 00 A1 23 B3 [19:35:55]Write i2c OK [19:35:55]MH_I2C_Read... [19:35:55]Read from MH i2c: F0 [19:35:55]MH_I2C_Read... [19:35:55]Read from MH i2c: F0 09 00 [19:35:55]MH_I2C_Read... [19:35:55]Read from MH i2c: F0 09 00 A1 23 00 23 D6 75 66 BC EC 60 65 FD [19:35:55]GetLastDocTimeStamp 1718998319 [19:35:55]current date 1718998563 [19:35:55]FM_GetShiftState [19:35:55]SAM_PROTO_GetShiftState [19:35:55]wFMCommunicate request_size=4 [19:35:55]MH_SAM_APDU [19:35:55]CAPDU: 80 13 01 00 [19:35:55]Write to MH i2c: E2 08 00 A2 23 80 13 01 00 00 00 00 00 42 [19:35:55]Write i2c OK [19:35:55]MH_I2C_Read... [19:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:55]Read from MH i2c: E2 [19:35:55]MH_I2C_Read... [19:35:55]Read from MH i2c: E2 0E 00 [19:35:55]MH_I2C_Read... [19:35:55]Read from MH i2c: E2 0E 00 A2 23 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 BF [19:35:55]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:35:55]wFMCommunicate OK [19:35:55]SAM_PROTO_GetShiftState done [19:35:55]FM_GetShiftState done [19:35:55]opened in 1718933695 [19:35:55]opened+sec_in_day 1719020095 [19:35:55]quantity*price = 90038 [19:35:55]sum+1 = 90039 [19:35:55]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.38 袠孝袨袚袨: 900.00 袙薪械褋械薪芯: 900.00 小袛袗效袗: 0.00 袧小袩 1% : 7.97 袧袛小 12% : 95.62 袧邪谢懈褔薪褘屑懈: 900.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 220 21.06.2024 19:36 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112052 肖袩袛: 251627484803176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193603&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112052&fm=251627484803176&tin=02508201610067®Number=0000000000092771&sum=90000 [19:35:56]StoreToDocumentArchive [19:35:56]shift 390 fd 112052 [19:35:56]save to /storage/0390/doc_00112052 [19:35:56]save last doc name /storage/0390/doc_00112052 to /storage/kkm_last_doc_name [19:35:56]save OK [19:35:56]Clear old archive folders... [19:35:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:56]tlvbuf is 0033BE60 [19:35:56]SAM_PROTO_ClearQueue [19:35:56]wFMCommunicate request_size=4 [19:35:56]MH_SAM_APDU [19:35:56]CAPDU: 80 09 00 00 [19:35:56]Write to MH i2c: E2 08 00 AF 23 80 09 00 00 00 00 00 00 44 [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:56]Read from MH i2c: E2 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 03 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 03 00 AF 23 00 90 00 46 [19:35:56]RAPDU: 90 00 [19:35:56]wFMCommunicate OK [19:35:56]SAM_PROTO_ClearQueue done [19:35:56]KKMCreateOFDPacket [19:35:56]OFDProtocolAddRootSTLVToBuf [19:35:56]FM_MakeSignedData [19:35:56]FM_MakeSignedData [19:35:56]SAM_PROTO_SignData [19:35:56]wFMCommunicate request_size=4 [19:35:56]MH_SAM_APDU [19:35:56]CAPDU: 80 0D 01 02 [19:35:56]Write to MH i2c: E2 08 00 B0 23 80 0D 01 02 00 00 00 00 4C [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:56]Read from MH i2c: E2 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 03 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 03 00 B0 23 00 90 00 47 [19:35:56]RAPDU: 90 00 [19:35:56]wFMCommunicate OK [19:35:56]wFMCommunicate request_size=255 [19:35:56]MH_SAM_APDU [19:35:56]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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 23 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B5 01 00 35 04 06 00 E4 [19:35:56]Write to MH i2c: E2 02 01 B1 23 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 23 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B5 01 00 35 04 06 00 E4 00 00 A5 [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:56]Read from MH i2c: E2 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 03 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 03 00 B1 23 00 90 00 48 [19:35:56]RAPDU: 90 00 [19:35:56]wFMCommunicate OK [19:35:56]wFMCommunicate request_size=10 [19:35:56]MH_SAM_APDU [19:35:56]CAPDU: 80 0D 02 02 05 DA 96 D8 F0 68 [19:35:56]Write to MH i2c: E2 0D 00 B2 23 80 0D 02 02 05 00 DA 96 D8 F0 68 00 00 F9 [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:56]Read from MH i2c: E2 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 03 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 03 00 B2 23 00 90 00 49 [19:35:56]RAPDU: 90 00 [19:35:56]wFMCommunicate OK [19:35:56]wFMCommunicate request_size=4 [19:35:56]MH_SAM_APDU [19:35:56]CAPDU: 80 0D 03 02 [19:35:56]Write to MH i2c: E2 08 00 B3 23 80 0D 03 02 00 00 00 00 51 [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:56]Read from MH i2c: E2 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 0B 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 0B 00 B3 23 00 45 79 46 A7 12 13 D6 FD 90 00 F5 [19:35:56]RAPDU: 45 79 46 A7 12 13 D6 FD 90 00 [19:35:56]wFMCommunicate OK [19:35:56]SAM_PROTO_SignData done [19:35:56]FM_MakeSignedData done [19:35:56]CreateOFDProtocolMessage [19:35:56]wFMCommunicate request_size=4 [19:35:56]MH_SAM_APDU [19:35:56]CAPDU: 80 11 00 00 [19:35:56]Write to MH i2c: E2 08 00 B4 23 80 11 00 00 00 00 00 00 51 [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:56]Read from MH i2c: E2 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 17 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: E2 17 00 B4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A3 [19:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:35:56]wFMCommunicate OK [19:35:56]CreateOFDProtocolMessage done [19:35:56]OFDSenderStorePacket 112052 [19:35:56]StoreOFDPacket docnum=112052 [19:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA 62 07 01 11 B4 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 23 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B5 01 00 35 04 06 00 E4 DA 96 D8 F0 68 45 79 46 A7 12 13 D6 FD [19:35:56]CheckFolder [19:35:56]dirname=/storage/ofd_packets [19:35:56]CheckFolder done [19:35:56]ProducePacketName [19:35:56]name=ofd_packets/00112052 [19:35:56]NVStorageSaveData ofd_packets/00112052 [19:35:56]File name is /storage/ofd_packets/00112052 [19:35:56]Write 301 bytes [19:35:56]NVStorageSaveData done [19:35:56]OFDSenderStorePacket done [19:35:56]KKMCreateOFDPacket done [19:35:56]NVStorageSaveData kkm_last_timestamp [19:35:56]File name is /storage/kkm_last_timestamp [19:35:56]Write 4 bytes [19:35:56]NVStorageSaveData done [19:35:56]ExternCall_PrintAddStr [19:35:56]wPrintStart [19:35:56]Write to MH i2c: 01 00 00 B5 23 D8 [19:35:56]Write i2c OK [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: 01 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: 01 07 00 [19:35:56]MH_I2C_Read... [19:35:56]Read from MH i2c: 01 07 00 B5 23 00 00 00 00 00 FF 0F ED [19:35:56]RasterBufferAndPrint [19:35:56]line 小褔械褌 N : (1)320708 [19:35:56]line 袠袧袧: 02508201610067 [19:35:56]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:35:56]line 袩袪袨袛袗袞袗 [19:35:56]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:35:56]line 孝芯胁邪褉: 2710124130 [19:35:56]line 袗懈-92-袣-5 [19:35:56]line 13.560 * 66.40 [19:35:56]line = 900.38 [19:35:56]line 袧袛小 12% 袧小袩 1% [19:35:56]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:35:56]line 袨袣袪校袚袥袝袧袠袝: -0.38 [19:35:56]line 袠孝袨袚袨: 900.00 [19:35:56]line 袙薪械褋械薪芯: 900.00 [19:35:56]line 小袛袗效袗: 0.00 [19:35:56]line 袧小袩 1% : 7.97 [19:35:56]line 袧袛小 12% : 95.62 [19:35:56]line 袧邪谢懈褔薪褘屑懈: 900.00 [19:35:56]line 袘械蟹薪邪谢.: 0.00 [19:35:56]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:35:56]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:35:56]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:35:56]line 效械泻 220 21.06.2024 19:36 [19:35:56]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:35:56]line 袟袧袦: 0300000198 [19:35:56]line 袪袧袦: 0000000000092771 [19:35:56]line 袙械褉褋懈褟 袣袣袦: 001 [19:35:56]line 肖袦: 0000000000875083 [19:35:56]line 肖袛: 112052 [19:35:56]line 肖袩袛: 251627484803176 [19:35:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193603&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112052&fm=251627484803176&tin=02508201610067®Number=0000000000092771&sum=90000 [19:35:57]OFD Sender: Processing packet 112052 [packets to send 38, broken 37] [19:35:57]ProducePacketName [19:35:57]name=ofd_packets/00112052 [19:35:57]OFD Sender: To server: 嚂鰌G, [19:35:57]CommunicateWithHost lk.salyk.kg:30040 [19:35:57]ConnectInit lk.salyk.kg [19:35:57]written 0, free lines is 4095 [19:35:57]Connected sock=11 [19:35:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA 62 07 01 11 B4 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 23 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B5 01 00 35 04 06 00 E4 DA 96 D8 F0 68 45 79 46 A7 12 13 D6 FD [19:35:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 58 84 47 00 56 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B5 01 00 F4 03 04 00 46 6D 75 66 B6 04 01 00 00 82 DC 84 FA C5 B6 56 70 [19:35:57]CommunicateWithHost err = 0 [19:35:57]CheckOFDResponse [19:35:57]1017 (14) - 77093643461234 [19:35:57]1041 (16) - 0000000000875083 [19:35:57]1040 (4) - 112052 [19:35:57]1012 (4) - 21.06.2024 12:08 [19:35:57]1206 (1) - 0 [19:35:57]OFD Sender: Remove packet 112052 [19:35:57]ProducePacketName [19:35:57]name=ofd_packets/00112052 [19:35:57]NVStorageDeleteData [19:35:57]Write to MH i2c: 01 00 00 E0 23 03 [19:35:57]Write i2c OK [19:35:57]MH_I2C_Read... [19:35:57]Read from MH i2c: 01 [19:35:57]MH_I2C_Read... [19:35:57]Read from MH i2c: 01 07 00 [19:35:57]MH_I2C_Read... [19:35:57]Read from MH i2c: 01 07 00 E0 23 00 00 00 00 00 E4 0C FA [19:35:57]RasterBufferAndPrint [19:35:57]line [19:35:57]line [19:35:57]line [19:35:57]line [19:35:57]line [19:35:57]written 0, free lines is 3306 [19:35:57]MH_Cut [19:35:57]Write to MH i2c: D1 01 00 E7 23 01 DC [19:35:57]Write i2c OK [19:35:57]MH_I2C_Read... [19:35:57]Read from MH i2c: D1 [19:35:57]MH_I2C_Read... [19:35:57]Read from MH i2c: D1 01 00 [19:35:57]MH_I2C_Read... [19:35:57]Read from MH i2c: D1 01 00 E7 23 00 DB [19:35:57]Write to MH i2c: 01 00 00 E8 23 0B [19:35:57]Write i2c OK [19:35:57]MH_I2C_Read... [19:35:57]OFD Sender: No OFD packet to send [19:35:58]*** Cut start [19:35:58]*** Partial cut [19:35:58]*** CUTSNS_PIN = 1 [19:35:58]*** CUTSNS_PIN = 0 [19:35:58]*** Brake cut motor [19:35:58]Read from MH i2c: 01 [19:35:58]MH_I2C_Read... [19:35:58]*** Stop cut motor [19:35:58]*** Cut end [19:35:58]Read from MH i2c: 01 07 00 [19:35:58]MH_I2C_Read... [19:35:58]Read from MH i2c: 01 07 00 E8 23 00 00 00 00 00 FF 0F 20 [19:35:58]process_action close_receipt done [19:35:58]requested_data is exist [19:35:58]produce_requested_data [19:35:58]requested_item fm.sn is exist - process it [19:35:58]wFMCommunicate request_size=4 [19:35:58]MH_SAM_APDU [19:35:58]CAPDU: 80 11 00 00 [19:35:58]Write to MH i2c: E2 08 00 E9 23 80 11 00 00 00 00 00 00 86 [19:35:58]Write i2c OK [19:35:58]MH_I2C_Read... [19:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:58]Read from MH i2c: E2 [19:35:58]MH_I2C_Read... [19:35:58]Read from MH i2c: E2 17 00 [19:35:58]MH_I2C_Read... [19:35:58]Read from MH i2c: E2 17 00 E9 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D8 [19:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:35:58]wFMCommunicate OK [19:35:58]requested_item fd.num is exist - process it [19:35:58]SAM_PROTO_GetFieldsCounters [19:35:58]wFMCommunicate request_size=4 [19:35:58]MH_SAM_APDU [19:35:58]CAPDU: 80 13 00 00 [19:35:58]Write to MH i2c: E2 08 00 EA 23 80 13 00 00 00 00 00 00 89 [19:35:58]Write i2c OK [19:35:58]MH_I2C_Read... [19:35:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:59]Read from MH i2c: E2 [19:35:59]MH_I2C_Read... [19:35:59]Read from MH i2c: E2 62 00 [19:35:59]MH_I2C_Read... [19:35:59]Read from MH i2c: E2 62 00 EA 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B4 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [19:35:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B4 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:59]wFMCommunicate OK [19:35:59]SAM_PROTO_GetFieldsCounters done [19:35:59]requested_item shift.num is exist - process it [19:35:59]requested_item shift.opened is exist - process it [19:35:59]req_shift_opened [19:35:59]FM_GetShiftState [19:35:59]SAM_PROTO_GetShiftState [19:35:59]wFMCommunicate request_size=4 [19:35:59]MH_SAM_APDU [19:35:59]CAPDU: 80 13 01 00 [19:35:59]Write to MH i2c: E2 08 00 EB 23 80 13 01 00 00 00 00 00 8B [19:35:59]Write i2c OK [19:35:59]MH_I2C_Read... [19:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:59]Read from MH i2c: E2 [19:35:59]MH_I2C_Read... [19:35:59]Read from MH i2c: E2 0E 00 [19:35:59]MH_I2C_Read... [19:35:59]Read from MH i2c: E2 0E 00 EB 23 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 08 [19:35:59]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:35:59]wFMCommunicate OK [19:35:59]SAM_PROTO_GetShiftState done [19:35:59]FM_GetShiftState done [19:35:59]req_shift_opened done [19:35:59]requested_item shift.open_date is exist - process it [19:35:59]req_shift_open_date [19:35:59]req_shift_open_date done [19:35:59]produce_requested_data done [19:35:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112052,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:35:59]process_action_free close_receipt [19:35:59]json_value_free [19:35:59]json_value_free done [19:35:59]process_json_proto returns [19:35:59]Send response to host [19:35:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112052,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:35:59]free response buf [19:35:59]execute_script done [19:35:59]execute_script returns [19:35:59]free content buf [19:35:59]Sock 9.Close socket [19:35:59]Sock 9.Thread stoped [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:03]accept exits with 7 [19:37:03]New connection [19:37:03]New thread 3066731876 created [19:37:03]Thread 3066875236 joined [19:37:03]Waiting for new connection... [19:37:03] Sock 7.Parse request [19:37:03]Sock 7.Check first char [19:37:03]Sock 7.First char is OK [19:37:03]request: POST /json_proto HTTP/1.0 [19:37:03]Method: POST [19:37:03]URL: /json_proto [19:37:03]Method is POST - this is cgi request [19:37:03]url: /json_proto [19:37:03]query_string will be loaded in cgi processing [19:37:03]execute_cgi json_proto POST (null) [19:37:03]execute_cgi path=json_proto method=POST [19:37:03]POST find Content-Length [19:37:03]Host: 172.17.59.68:8080 [19:37:03]Content-Length: 677 [19:37:03]Content-Type: application/json [19:37:03] [19:37:03]POST finish read [19:37:03]Found Content-Length = 677 [19:37:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.880, "sum" : 656.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 664.00, "total" : 656.00, "payments": [ { "type": 0, "sum" : 656.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:03]execute_script... [19:37: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)320710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.880, "sum" : 656.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 664.00, "total" : 656.00, "payments": [ { "type": 0, "sum" : 656.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:03]POST & json_proto [19:37:03]process_json_proto [19:37:03]json parsed OK: [19:37:03]protocol is kg_v1.0 [19:37:03]action value=close_receipt [19:37:03]process_action close_receipt [19:37:03]cmd_close_receipt [19:37:03]MH_GetDate [19:37:03]Write to MH i2c: F0 00 00 EC 23 FE [19:37:03]Write i2c OK [19:37:03]MH_I2C_Read... [19:37:03]Read from MH i2c: F0 [19:37:03]MH_I2C_Read... [19:37:03]Read from MH i2c: F0 09 00 [19:37:03]MH_I2C_Read... [19:37:03]Read from MH i2c: F0 09 00 EC 23 00 68 D6 75 66 BC EC 60 65 8D [19:37:03]GetLastDocTimeStamp 1718998563 [19:37:03]current date 1718998632 [19:37:03]FM_GetShiftState [19:37:03]SAM_PROTO_GetShiftState [19:37:03]wFMCommunicate request_size=4 [19:37:03]MH_SAM_APDU [19:37:03]CAPDU: 80 13 01 00 [19:37:03]Write to MH i2c: E2 08 00 ED 23 80 13 01 00 00 00 00 00 8D [19:37:03]Write i2c OK [19:37:03]MH_I2C_Read... [19:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:03]Read from MH i2c: E2 [19:37:03]MH_I2C_Read... [19:37:03]Read from MH i2c: E2 0E 00 [19:37:03]MH_I2C_Read... [19:37:03]Read from MH i2c: E2 0E 00 ED 23 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0A [19:37:03]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:37:03]wFMCommunicate OK [19:37:03]SAM_PROTO_GetShiftState done [19:37:03]FM_GetShiftState done [19:37:03]opened in 1718933695 [19:37:03]opened+sec_in_day 1719020095 [19:37:03]quantity*price = 65603 [19:37:03]sum+1 = 65604 [19:37:03]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.03 袠孝袨袚袨: 656.00 袙薪械褋械薪芯: 664.00 小袛袗效袗: 8.00 袧小袩 1% : 5.81 袧袛小 12% : 69.67 袧邪谢懈褔薪褘屑懈: 656.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 221 21.06.2024 19:37 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112053 肖袩袛: 78813802281749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193712&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112053&fm=78813802281749&tin=02508201610067®Number=0000000000092771&sum=65600 [19:37:04]StoreToDocumentArchive [19:37:04]shift 390 fd 112053 [19:37:04]save to /storage/0390/doc_00112053 [19:37:04]save last doc name /storage/0390/doc_00112053 to /storage/kkm_last_doc_name [19:37:04]save OK [19:37:04]Clear old archive folders... [19:37:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:04]tlvbuf is B6E951A0 [19:37:04]SAM_PROTO_ClearQueue [19:37:04]wFMCommunicate request_size=4 [19:37:04]MH_SAM_APDU [19:37:04]CAPDU: 80 09 00 00 [19:37:04]Write to MH i2c: E2 08 00 FA 23 80 09 00 00 00 00 00 00 8F [19:37:04]Write i2c OK [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: E2 [19:37:04]MH_I2C_Read... [19:37:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:04]Read from MH i2c: E2 03 00 [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: E2 03 00 FA 23 00 90 00 91 [19:37:04]RAPDU: 90 00 [19:37:04]wFMCommunicate OK [19:37:04]SAM_PROTO_ClearQueue done [19:37:04]KKMCreateOFDPacket [19:37:04]OFDProtocolAddRootSTLVToBuf [19:37:04]FM_MakeSignedData [19:37:04]FM_MakeSignedData [19:37:04]SAM_PROTO_SignData [19:37:04]wFMCommunicate request_size=4 [19:37:04]MH_SAM_APDU [19:37:04]CAPDU: 80 0D 01 02 [19:37:04]Write to MH i2c: E2 08 00 FB 23 80 0D 01 02 00 00 00 00 97 [19:37:04]Write i2c OK [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: E2 [19:37:04]MH_I2C_Read... [19:37:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:04]Read from MH i2c: E2 03 00 [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: E2 03 00 FB 23 00 90 00 92 [19:37:04]RAPDU: 90 00 [19:37:04]wFMCommunicate OK [19:37:04]wFMCommunicate request_size=255 [19:37:04]MH_SAM_APDU [19:37: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 98 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 43 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 1B 00 00 00 00 07 04 06 00 40 00 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 68 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B5 01 00 35 04 06 00 47 [19:37:04]Write to MH i2c: E2 02 01 FC 23 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 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 43 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 1B 00 00 00 00 07 04 06 00 40 00 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 68 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B5 01 00 35 04 06 00 47 00 00 F6 [19:37:04]Write i2c OK [19:37:04]MH_I2C_Read... [19:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:04]Read from MH i2c: E2 [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: E2 03 00 [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: E2 03 00 FC 23 00 90 00 93 [19:37:04]RAPDU: 90 00 [19:37:04]wFMCommunicate OK [19:37:04]wFMCommunicate request_size=10 [19:37:04]MH_SAM_APDU [19:37:04]CAPDU: 80 0D 02 02 05 AE 44 B0 3B 15 [19:37:04]Write to MH i2c: E2 0D 00 FD 23 80 0D 02 02 05 00 AE 44 B0 3B 15 00 00 96 [19:37:04]Write i2c OK [19:37:04]MH_I2C_Read... [19:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:04]Read from MH i2c: E2 [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: E2 03 00 [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: E2 03 00 FD 23 00 90 00 94 [19:37:04]RAPDU: 90 00 [19:37:04]wFMCommunicate OK [19:37:04]wFMCommunicate request_size=4 [19:37:04]MH_SAM_APDU [19:37:04]CAPDU: 80 0D 03 02 [19:37:04]Write to MH i2c: E2 08 00 FE 23 80 0D 03 02 00 00 00 00 9C [19:37:04]Write i2c OK [19:37:04]MH_I2C_Read... [19:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:04]Read from MH i2c: E2 [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: E2 0B 00 [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: E2 0B 00 FE 23 00 47 6C 57 AD 0D CF 26 7B 90 00 D1 [19:37:04]RAPDU: 47 6C 57 AD 0D CF 26 7B 90 00 [19:37:04]wFMCommunicate OK [19:37:04]SAM_PROTO_SignData done [19:37:04]FM_MakeSignedData done [19:37:04]CreateOFDProtocolMessage [19:37:04]wFMCommunicate request_size=4 [19:37:04]MH_SAM_APDU [19:37:04]CAPDU: 80 11 00 00 [19:37:04]Write to MH i2c: E2 08 00 FF 23 80 11 00 00 00 00 00 00 9C [19:37:04]Write i2c OK [19:37:04]MH_I2C_Read... [19:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:04]Read from MH i2c: E2 [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: E2 17 00 [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: E2 17 00 FF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [19:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:37:04]wFMCommunicate OK [19:37:04]CreateOFDProtocolMessage done [19:37:04]OFDSenderStorePacket 112053 [19:37:04]StoreOFDPacket docnum=112053 [19:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 9E 07 01 C5 A4 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 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 43 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 1B 00 00 00 00 07 04 06 00 40 00 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 68 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B5 01 00 35 04 06 00 47 AE 44 B0 3B 15 47 6C 57 AD 0D CF 26 7B [19:37:04]CheckFolder [19:37:04]dirname=/storage/ofd_packets [19:37:04]CheckFolder done [19:37:04]ProducePacketName [19:37:04]name=ofd_packets/00112053 [19:37:04]NVStorageSaveData ofd_packets/00112053 [19:37:04]File name is /storage/ofd_packets/00112053 [19:37:04]Write 301 bytes [19:37:04]NVStorageSaveData done [19:37:04]OFDSenderStorePacket done [19:37:04]KKMCreateOFDPacket done [19:37:04]NVStorageSaveData kkm_last_timestamp [19:37:04]File name is /storage/kkm_last_timestamp [19:37:04]Write 4 bytes [19:37:04]NVStorageSaveData done [19:37:04]ExternCall_PrintAddStr [19:37:04]wPrintStart [19:37:04]Write to MH i2c: 01 00 00 00 24 24 [19:37:04]Write i2c OK [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: 01 [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: 01 07 00 [19:37:04]MH_I2C_Read... [19:37:04]Read from MH i2c: 01 07 00 00 24 00 00 00 00 00 FF 0F 39 [19:37:04]RasterBufferAndPrint [19:37:04]line 小褔械褌 N : (1)320710 [19:37:04]line 袠袧袧: 02508201610067 [19:37:04]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:37:04]line 袩袪袨袛袗袞袗 [19:37:04]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:37:04]line 孝芯胁邪褉: 2710124130 [19:37:04]line 袗懈-92-袣-5 [19:37:04]line 9.880 * 66.40 [19:37:04]line = 656.03 [19:37:04]line 袧袛小 12% 袧小袩 1% [19:37:04]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:37:04]line 袨袣袪校袚袥袝袧袠袝: -0.03 [19:37:04]line 袠孝袨袚袨: 656.00 [19:37:04]line 袙薪械褋械薪芯: 664.00 [19:37:04]line 小袛袗效袗: 8.00 [19:37:04]line 袧小袩 1% : 5.81 [19:37:04]line 袧袛小 12% : 69.67 [19:37:04]line 袧邪谢懈褔薪褘屑懈: 656.00 [19:37:04]line 袘械蟹薪邪谢.: 0.00 [19:37:04]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:37:04]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:37:04]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:37:04]line 效械泻 221 21.06.2024 19:37 [19:37:04]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:37:04]line 袟袧袦: 0300000198 [19:37:04]line 袪袧袦: 0000000000092771 [19:37:04]line 袙械褉褋懈褟 袣袣袦: 001 [19:37:04]line 肖袦: 0000000000875083 [19:37:04]line 肖袛: 112053 [19:37:04]line 肖袩袛: 78813802281749 [19:37:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193712&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112053&fm=78813802281749&tin=02508201610067®Number=0000000000092771&sum=65600 [19:37:05]OFD Sender: Processing packet 112053 [packets to send 38, broken 37] [19:37:05]ProducePacketName [19:37:05]name=ofd_packets/00112053 [19:37:05]OFD Sender: To server: 嚂鰌G, [19:37:05]CommunicateWithHost lk.salyk.kg:30040 [19:37:05]ConnectInit lk.salyk.kg [19:37:05]written 0, free lines is 4095 [19:37:05]Write to MH i2c: 01 00 00 2B 24 4F [19:37:05]Write i2c OK [19:37:05]MH_I2C_Read... [19:37:05]Read from MH i2c: 01 [19:37:05]MH_I2C_Read... [19:37:05]Read from MH i2c: 01 07 00 [19:37:05]MH_I2C_Read... [19:37:05]Read from MH i2c: 01 07 00 2B 24 00 00 00 00 00 DA 0C 3C [19:37:05]RasterBufferAndPrint [19:37:05]line [19:37:05]line [19:37:05]line [19:37:05]line [19:37:05]line [19:37:05]written 0, free lines is 3294 [19:37:05]MH_Cut [19:37:05]Write to MH i2c: D1 01 00 32 24 01 28 [19:37:05]Write i2c OK [19:37:05]MH_I2C_Read... [19:37:05]Read from MH i2c: D1 [19:37:05]MH_I2C_Read... [19:37:05]Read from MH i2c: D1 01 00 [19:37:05]MH_I2C_Read... [19:37:05]Read from MH i2c: D1 01 00 32 24 00 27 [19:37:05]Write to MH i2c: 01 00 00 33 24 57 [19:37:05]Write i2c OK [19:37:05]MH_I2C_Read... [19:37:06]*** Cut start [19:37:06]*** Partial cut [19:37:06]*** CUTSNS_PIN = 1 [19:37:06]*** CUTSNS_PIN = 0 [19:37:06]*** Brake cut motor [19:37:07]Read from MH i2c: 01 [19:37:07]MH_I2C_Read... [19:37:07]*** Stop cut motor [19:37:07]*** Cut end [19:37:07]Read from MH i2c: 01 07 00 [19:37:07]MH_I2C_Read... [19:37:07]Read from MH i2c: 01 07 00 33 24 00 00 00 00 00 FF 0F 6C [19:37:07]process_action close_receipt done [19:37:07]requested_data is exist [19:37:07]produce_requested_data [19:37:07]requested_item fm.sn is exist - process it [19:37:07]wFMCommunicate request_size=4 [19:37:07]MH_SAM_APDU [19:37:07]CAPDU: 80 11 00 00 [19:37:07]Write to MH i2c: E2 08 00 34 24 80 11 00 00 00 00 00 00 D2 [19:37:07]Write i2c OK [19:37:07]MH_I2C_Read... [19:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:07]Read from MH i2c: E2 [19:37:07]MH_I2C_Read... [19:37:07]Read from MH i2c: E2 17 00 [19:37:07]MH_I2C_Read... [19:37:07]Read from MH i2c: E2 17 00 34 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 24 [19:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:37:07]wFMCommunicate OK [19:37:07]requested_item fd.num is exist - process it [19:37:07]SAM_PROTO_GetFieldsCounters [19:37:07]wFMCommunicate request_size=4 [19:37:07]MH_SAM_APDU [19:37:07]CAPDU: 80 13 00 00 [19:37:07]Write to MH i2c: E2 08 00 35 24 80 13 00 00 00 00 00 00 D5 [19:37:07]Write i2c OK [19:37:07]MH_I2C_Read... [19:37:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:07]Read from MH i2c: E2 [19:37:07]MH_I2C_Read... [19:37:07]Read from MH i2c: E2 62 00 [19:37:07]MH_I2C_Read... [19:37:07]Read from MH i2c: E2 62 00 35 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B5 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [19:37:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B5 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:07]wFMCommunicate OK [19:37:07]SAM_PROTO_GetFieldsCounters done [19:37:07]requested_item shift.num is exist - process it [19:37:07]requested_item shift.opened is exist - process it [19:37:07]req_shift_opened [19:37:07]FM_GetShiftState [19:37:07]SAM_PROTO_GetShiftState [19:37:07]wFMCommunicate request_size=4 [19:37:07]MH_SAM_APDU [19:37:07]CAPDU: 80 13 01 00 [19:37:07]Write to MH i2c: E2 08 00 36 24 80 13 01 00 00 00 00 00 D7 [19:37:07]Write i2c OK [19:37:07]MH_I2C_Read... [19:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:07]Read from MH i2c: E2 [19:37:07]MH_I2C_Read... [19:37:07]Read from MH i2c: E2 0E 00 [19:37:07]MH_I2C_Read... [19:37:07]Read from MH i2c: E2 0E 00 36 24 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 54 [19:37:07]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:37:07]wFMCommunicate OK [19:37:07]SAM_PROTO_GetShiftState done [19:37:07]FM_GetShiftState done [19:37:07]req_shift_opened done [19:37:07]requested_item shift.open_date is exist - process it [19:37:07]req_shift_open_date [19:37:07]req_shift_open_date done [19:37:07]produce_requested_data done [19:37:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112053,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:37:07]process_action_free close_receipt [19:37:07]json_value_free [19:37:07]json_value_free done [19:37:07]process_json_proto returns [19:37:07]Send response to host [19:37:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112053,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:37:07]free response buf [19:37:07]execute_script done [19:37:07]execute_script returns [19:37:07]free content buf [19:37:07]Sock 7.Close socket [19:37:07]Sock 7.Thread stoped [19:37:41]accept exits with 9 [19:37:41]New connection [19:37:41]New thread 3066875236 created [19:37:41]Thread 3066731876 joined [19:37:41]Waiting for new connection... [19:37:41] Sock 9.Parse request [19:37:41]Sock 9.Check first char [19:37:41]Sock 9.First char is OK [19:37:41]request: POST /json_proto HTTP/1.0 [19:37:41]Method: POST [19:37:41]URL: /json_proto [19:37:41]Method is POST - this is cgi request [19:37:41]url: /json_proto [19:37:41]query_string will be loaded in cgi processing [19:37:41]execute_cgi json_proto POST (null) [19:37:41]execute_cgi path=json_proto method=POST [19:37:41]POST find Content-Length [19:37:41]Host: 172.17.59.68:8080 [19:37:41]Content-Length: 679 [19:37:41]Content-Type: application/json [19:37:41] [19:37:41]POST finish read [19:37:41]Found Content-Length = 679 [19:37:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 50.070, "sum" : 3650.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3650.00, "total" : 3650.00, "payments": [ { "type": 0, "sum" : 3650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:41]execute_script... [19:37: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)320709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 50.070, "sum" : 3650.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3650.00, "total" : 3650.00, "payments": [ { "type": 0, "sum" : 3650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:41]POST & json_proto [19:37:41]process_json_proto [19:37:41]json parsed OK: [19:37:41]protocol is kg_v1.0 [19:37:41]action value=close_receipt [19:37:41]process_action close_receipt [19:37:41]cmd_close_receipt [19:37:41]MH_GetDate [19:37:41]Write to MH i2c: F0 00 00 37 24 4A [19:37:41]Write i2c OK [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: F0 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: F0 09 00 [19:37:41]MH_I2C_Read... [19:37:41]Read from MH i2c: F0 09 00 37 24 00 8E D6 75 66 BC EC 60 65 FF [19:37:41]GetLastDocTimeStamp 1718998632 [19:37:41]current date 1718998670 [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 38 24 80 13 01 00 00 00 00 00 D9 [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 38 24 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 56 [19:37:41]RAPDU: 09 00 01 BF D8 74 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]opened in 1718933695 [19:37:41]opened+sec_in_day 1719020095 [19:37:41]quantity*price = 365010 [19:37:41]sum+1 = 365011 [19:37:41]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.10 袠孝袨袚袨: 3650.00 袙薪械褋械薪芯: 3650.00 小袛袗效袗: 0.00 袧小袩 1% : 32.30 袧袛小 12% : 387.62 袧邪谢懈褔薪褘屑懈: 3650.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 222 21.06.2024 19:37 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112054 肖袩袛: 180209400239400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193750&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112054&fm=180209400239400&tin=02508201610067®Number=0000000000092771&sum=365000 [19:37:42]StoreToDocumentArchive [19:37:42]shift 390 fd 112054 [19:37:42]save to /storage/0390/doc_00112054 [19:37:42]save last doc name /storage/0390/doc_00112054 to /storage/kkm_last_doc_name [19:37:42]save OK [19:37:42]Clear old archive folders... [19:37:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:37:42]tlvbuf is 0033C4D0 [19:37:42]SAM_PROTO_ClearQueue [19:37:42]wFMCommunicate request_size=4 [19:37:42]MH_SAM_APDU [19:37:42]CAPDU: 80 09 00 00 [19:37:42]Write to MH i2c: E2 08 00 45 24 80 09 00 00 00 00 00 00 DB [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:42]Read from MH i2c: E2 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 03 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 03 00 45 24 00 90 00 DD [19:37:42]RAPDU: 90 00 [19:37:42]wFMCommunicate OK [19:37:42]SAM_PROTO_ClearQueue done [19:37:42]KKMCreateOFDPacket [19:37:42]OFDProtocolAddRootSTLVToBuf [19:37:42]FM_MakeSignedData [19:37:42]FM_MakeSignedData [19:37:42]SAM_PROTO_SignData [19:37:42]wFMCommunicate request_size=4 [19:37:42]MH_SAM_APDU [19:37:42]CAPDU: 80 0D 01 02 [19:37:42]Write to MH i2c: E2 08 00 46 24 80 0D 01 02 00 00 00 00 E3 [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:42]Read from MH i2c: E2 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 03 00 [19:37:42]MH_I2C_Read... [19:37:42]Read from MH i2c: E2 03 00 46 24 00 90 00 DE [19:37:42]RAPDU: 90 00 [19:37:42]wFMCommunicate OK [19:37:42]wFMCommunicate request_size=255 [19:37:42]MH_SAM_APDU [19:37:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D2 91 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 91 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 97 00 00 00 00 07 04 06 00 C8 91 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 8E D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B5 01 00 35 04 06 00 A3 E6 45 49 [19:37:42]Write to MH i2c: E2 02 01 47 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D2 91 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 91 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 97 00 00 00 00 07 04 06 00 C8 91 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 8E D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B5 01 00 35 04 06 00 A3 E6 45 49 00 00 25 [19:37:42]Write i2c OK [19:37:42]MH_I2C_Read... [19:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:43]Read from MH i2c: E2 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 03 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 03 00 47 24 00 90 00 DF [19:37:43]RAPDU: 90 00 [19:37:43]wFMCommunicate OK [19:37:43]wFMCommunicate request_size=7 [19:37:43]MH_SAM_APDU [19:37:43]CAPDU: 80 0D 02 02 02 55 28 [19:37:43]Write to MH i2c: E2 0A 00 48 24 80 0D 02 02 02 00 55 28 00 00 67 [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:43]Read from MH i2c: E2 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 03 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 03 00 48 24 00 90 00 E0 [19:37:43]RAPDU: 90 00 [19:37:43]wFMCommunicate OK [19:37:43]wFMCommunicate request_size=4 [19:37:43]MH_SAM_APDU [19:37:43]CAPDU: 80 0D 03 02 [19:37:43]Write to MH i2c: E2 08 00 49 24 80 0D 03 02 00 00 00 00 E8 [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:43]Read from MH i2c: E2 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 0B 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 0B 00 49 24 00 F3 64 29 12 9E FC 94 1F 90 00 C8 [19:37:43]RAPDU: F3 64 29 12 9E FC 94 1F 90 00 [19:37:43]wFMCommunicate OK [19:37:43]SAM_PROTO_SignData done [19:37:43]FM_MakeSignedData done [19:37:43]CreateOFDProtocolMessage [19:37:43]wFMCommunicate request_size=4 [19:37:43]MH_SAM_APDU [19:37:43]CAPDU: 80 11 00 00 [19:37:43]Write to MH i2c: E2 08 00 4A 24 80 11 00 00 00 00 00 00 E8 [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:43]Read from MH i2c: E2 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 17 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: E2 17 00 4A 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3A [19:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:37:43]wFMCommunicate OK [19:37:43]CreateOFDProtocolMessage done [19:37:43]OFDSenderStorePacket 112054 [19:37:43]StoreOFDPacket docnum=112054 [19:37:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 3A A1 04 01 B5 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D2 91 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 91 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 97 00 00 00 00 07 04 06 00 C8 91 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 8E D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B5 01 00 35 04 06 00 A3 E6 45 49 55 28 F3 64 29 12 9E FC 94 1F [19:37:43]CheckFolder [19:37:43]dirname=/storage/ofd_packets [19:37:43]CheckFolder done [19:37:43]ProducePacketName [19:37:43]name=ofd_packets/00112054 [19:37:43]NVStorageSaveData ofd_packets/00112054 [19:37:43]File name is /storage/ofd_packets/00112054 [19:37:43]Write 298 bytes [19:37:43]NVStorageSaveData done [19:37:43]OFDSenderStorePacket done [19:37:43]KKMCreateOFDPacket done [19:37:43]NVStorageSaveData kkm_last_timestamp [19:37:43]File name is /storage/kkm_last_timestamp [19:37:43]Write 4 bytes [19:37:43]NVStorageSaveData done [19:37:43]ExternCall_PrintAddStr [19:37:43]wPrintStart [19:37:43]Write to MH i2c: 01 00 00 4B 24 6F [19:37:43]Write i2c OK [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: 01 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: 01 07 00 [19:37:43]MH_I2C_Read... [19:37:43]Read from MH i2c: 01 07 00 4B 24 00 00 00 00 00 FF 0F 84 [19:37:43]RasterBufferAndPrint [19:37:43]line 小褔械褌 N : (1)320709 [19:37:43]line 袠袧袧: 02508201610067 [19:37:43]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:37:43]line 袩袪袨袛袗袞袗 [19:37:43]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [19:37:43]line 孝芯胁邪褉: 2710194210 [19:37:43]line 袛孝-袣-5 [19:37:43]line 50.070 * 72.90 [19:37:43]line = 3650.10 [19:37:43]line 袧袛小 12% 袧小袩 1% [19:37:43]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:37:43]line 袨袣袪校袚袥袝袧袠袝: -0.10 [19:37:43]line 袠孝袨袚袨: 3650.00 [19:37:43]line 袙薪械褋械薪芯: 3650.00 [19:37:43]line 小袛袗效袗: 0.00 [19:37:43]line 袧小袩 1% : 32.30 [19:37:43]line 袧袛小 12% : 387.62 [19:37:43]line 袧邪谢懈褔薪褘屑懈: 3650.00 [19:37:43]line 袘械蟹薪邪谢.: 0.00 [19:37:43]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:37:43]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:37:43]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:37:43]line 效械泻 222 21.06.2024 19:37 [19:37:43]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:37:43]line 袟袧袦: 0300000198 [19:37:43]line 袪袧袦: 0000000000092771 [19:37:43]line 袙械褉褋懈褟 袣袣袦: 001 [19:37:43]line 肖袦: 0000000000875083 [19:37:43]line 肖袛: 112054 [19:37:43]line 肖袩袛: 180209400239400 [19:37:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193750&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112054&fm=180209400239400&tin=02508201610067®Number=0000000000092771&sum=365000 [19:37:43]written 0, free lines is 4095 [19:37:44]Write to MH i2c: 01 00 00 76 24 9A [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: 01 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: 01 07 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: 01 07 00 76 24 00 00 00 00 00 DC 0C 89 [19:37:44]RasterBufferAndPrint [19:37:44]line [19:37:44]line [19:37:44]line [19:37:44]line [19:37:44]line [19:37:44]written 0, free lines is 3298 [19:37:44]MH_Cut [19:37:44]Write to MH i2c: D1 01 00 7D 24 01 73 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: D1 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: D1 01 00 [19:37:44]MH_I2C_Read... [19:37:44]Read from MH i2c: D1 01 00 7D 24 00 72 [19:37:44]Write to MH i2c: 01 00 00 7E 24 A2 [19:37:44]Write i2c OK [19:37:44]MH_I2C_Read... [19:37:44]*** Cut start [19:37:44]*** Partial cut [19:37:44]*** CUTSNS_PIN = 1 [19:37:44]*** CUTSNS_PIN = 0 [19:37:45]*** Brake cut motor [19:37:45]Read from MH i2c: 01 [19:37:45]MH_I2C_Read... [19:37:45]*** Stop cut motor [19:37:45]*** Cut end [19:37:45]Read from MH i2c: 01 07 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: 01 07 00 7E 24 00 00 00 00 00 FF 0F B7 [19:37:45]process_action close_receipt done [19:37:45]requested_data is exist [19:37:45]produce_requested_data [19:37:45]requested_item fm.sn is exist - process it [19:37:45]wFMCommunicate request_size=4 [19:37:45]MH_SAM_APDU [19:37:45]CAPDU: 80 11 00 00 [19:37:45]Write to MH i2c: E2 08 00 7F 24 80 11 00 00 00 00 00 00 1D [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:45]Read from MH i2c: E2 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 17 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 17 00 7F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6F [19:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:37:45]wFMCommunicate OK [19:37:45]requested_item fd.num is exist - process it [19:37:45]SAM_PROTO_GetFieldsCounters [19:37:45]wFMCommunicate request_size=4 [19:37:45]MH_SAM_APDU [19:37:45]CAPDU: 80 13 00 00 [19:37:45]Write to MH i2c: E2 08 00 80 24 80 13 00 00 00 00 00 00 20 [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:45]Read from MH i2c: E2 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 62 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 62 00 80 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B6 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [19:37:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B6 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:45]wFMCommunicate OK [19:37:45]SAM_PROTO_GetFieldsCounters done [19:37:45]requested_item shift.num is exist - process it [19:37:45]requested_item shift.opened is exist - process it [19:37:45]req_shift_opened [19:37:45]FM_GetShiftState [19:37:45]SAM_PROTO_GetShiftState [19:37:45]wFMCommunicate request_size=4 [19:37:45]MH_SAM_APDU [19:37:45]CAPDU: 80 13 01 00 [19:37:45]Write to MH i2c: E2 08 00 81 24 80 13 01 00 00 00 00 00 22 [19:37:45]Write i2c OK [19:37:45]MH_I2C_Read... [19:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:45]Read from MH i2c: E2 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 0E 00 [19:37:45]MH_I2C_Read... [19:37:45]Read from MH i2c: E2 0E 00 81 24 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 9F [19:37:45]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:37:45]wFMCommunicate OK [19:37:45]SAM_PROTO_GetShiftState done [19:37:45]FM_GetShiftState done [19:37:45]req_shift_opened done [19:37:45]requested_item shift.open_date is exist - process it [19:37:45]req_shift_open_date [19:37:45]req_shift_open_date done [19:37:45]produce_requested_data done [19:37:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112054,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:37:45]process_action_free close_receipt [19:37:45]json_value_free [19:37:45]json_value_free done [19:37:45]process_json_proto returns [19:37:45]Send response to host [19:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112054,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:37:45]free response buf [19:37:45]execute_script done [19:37:45]execute_script returns [19:37:45]free content buf [19:37:45]Sock 9.Close socket [19:37:45]Sock 9.Thread stoped [19:39:16]ConnectInit Can't connect to host [19:39:16]CommunicateWithHost connect error [19:39:16]CommunicateWithHost err = -1 [19:39:16]OFD Sender: Server communicate error [19:39:16]OFD Sender: Processing packet 112053 [packets to send 39, broken 37] [19:39:16]ProducePacketName [19:39:16]name=ofd_packets/00112053 [19:39:16]OFD Sender: To server: 嚂鰌G, [19:39:16]CommunicateWithHost lk.salyk.kg:30040 [19:39:16]ConnectInit lk.salyk.kg [19:39:17]Connected sock=10 [19:39:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 9E 07 01 C5 A4 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 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 43 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 1B 00 00 00 00 07 04 06 00 40 00 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 68 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B5 01 00 35 04 06 00 47 AE 44 B0 3B 15 47 6C 57 AD 0D CF 26 7B [19:39:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 68 8E 47 00 FB 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B5 01 00 F4 03 04 00 0E 6E 75 66 B6 04 01 00 00 9B 7B 13 1B 39 E1 EE 95 [19:39:17]CommunicateWithHost err = 0 [19:39:17]CheckOFDResponse [19:39:17]1017 (14) - 77093643461234 [19:39:17]1041 (16) - 0000000000875083 [19:39:17]1040 (4) - 112053 [19:39:17]1012 (4) - 21.06.2024 12:11 [19:39:17]1206 (1) - 0 [19:39:17]OFD Sender: Remove packet 112053 [19:39:17]ProducePacketName [19:39:17]name=ofd_packets/00112053 [19:39:17]NVStorageDeleteData [19:39:17]OFD Sender: Processing packet 112054 [packets to send 38, broken 37] [19:39:17]ProducePacketName [19:39:17]name=ofd_packets/00112054 [19:39:17]OFD Sender: To server: 嚂鰌G, [19:39:17]CommunicateWithHost lk.salyk.kg:30040 [19:39:17]ConnectInit lk.salyk.kg [19:39:17]Connected sock=9 [19:39:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 3A A1 04 01 B5 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 96 C3 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 D2 91 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 91 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 97 00 00 00 00 07 04 06 00 C8 91 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 8E D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B5 01 00 35 04 06 00 A3 E6 45 49 55 28 F3 64 29 12 9E FC 94 1F [19:39:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 32 DD 47 00 E4 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 30 38 37 35 30 38 33 10 04 04 00 B6 B5 01 00 F4 03 04 00 0E 6E 75 66 B6 04 01 00 00 E8 41 73 27 A2 82 80 E8 [19:39:18]CommunicateWithHost err = 0 [19:39:18]CheckOFDResponse [19:39:18]1017 (14) - 77093643461234 [19:39:18]1041 (16) - 0000000000875083 [19:39:18]1040 (4) - 112054 [19:39:18]1012 (4) - 21.06.2024 12:11 [19:39:18]1206 (1) - 0 [19:39:18]OFD Sender: Remove packet 112054 [19:39:18]ProducePacketName [19:39:18]name=ofd_packets/00112054 [19:39:18]NVStorageDeleteData [19:39:18]OFD Sender: No OFD packet to send [19:39:21]accept exits with 7 [19:39:21]New connection [19:39:21]New thread 3066731876 created [19:39:21]Thread 3066875236 joined [19:39:21]Waiting for new connection... [19:39:21] Sock 7.Parse request [19:39:21]Sock 7.Check first char [19:39:21]Sock 7.First char is OK [19:39:21]request: POST /json_proto HTTP/1.0 [19:39:21]Method: POST [19:39:21]URL: /json_proto [19:39:21]Method is POST - this is cgi request [19:39:21]url: /json_proto [19:39:21]query_string will be loaded in cgi processing [19:39:21]execute_cgi json_proto POST (null) [19:39:21]execute_cgi path=json_proto method=POST [19:39:21]POST find Content-Length [19:39:21]Host: 172.17.59.68:8080 [19:39:21]Content-Length: 679 [19:39:21]Content-Type: application/json [19:39:21] [19:39:21]POST finish read [19:39:21]Found Content-Length = 679 [19:39:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 30.180, "sum" : 2200.12, "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" ] } } [19:39:21]execute_script... [19:39: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)320711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 30.180, "sum" : 2200.12, "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" ] } } [19:39:21]POST & json_proto [19:39:21]process_json_proto [19:39:21]json parsed OK: [19:39:21]protocol is kg_v1.0 [19:39:21]action value=close_receipt [19:39:21]process_action close_receipt [19:39:21]cmd_close_receipt [19:39:21]MH_GetDate [19:39:21]Write to MH i2c: F0 00 00 82 24 95 [19:39:21]Write i2c OK [19:39:21]MH_I2C_Read... [19:39:21]Read from MH i2c: F0 [19:39:21]MH_I2C_Read... [19:39:21]Read from MH i2c: F0 09 00 [19:39:21]MH_I2C_Read... [19:39:21]Read from MH i2c: F0 09 00 82 24 00 F2 D6 75 66 BC EC 60 65 AE [19:39:21]GetLastDocTimeStamp 1718998670 [19:39:21]current date 1718998770 [19:39:21]FM_GetShiftState [19:39:21]SAM_PROTO_GetShiftState [19:39:21]wFMCommunicate request_size=4 [19:39:21]MH_SAM_APDU [19:39:21]CAPDU: 80 13 01 00 [19:39:21]Write to MH i2c: E2 08 00 83 24 80 13 01 00 00 00 00 00 24 [19:39:21]Write i2c OK [19:39:21]MH_I2C_Read... [19:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:21]Read from MH i2c: E2 [19:39:21]MH_I2C_Read... [19:39:21]Read from MH i2c: E2 0E 00 [19:39:21]MH_I2C_Read... [19:39:21]Read from MH i2c: E2 0E 00 83 24 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A1 [19:39:21]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:39:21]wFMCommunicate OK [19:39:21]SAM_PROTO_GetShiftState done [19:39:21]FM_GetShiftState done [19:39:21]opened in 1718933695 [19:39:21]opened+sec_in_day 1719020095 [19:39:21]quantity*price = 220012 [19:39:21]sum+1 = 220013 [19:39:21]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.12 袠孝袨袚袨: 2200.00 袙薪械褋械薪芯: 2200.00 小袛袗效袗: 0.00 袧小袩 1% : 19.47 袧袛小 12% : 233.64 袧邪谢懈褔薪褘屑懈: 2200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 223 21.06.2024 19:39 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112055 肖袩袛: 101905919792720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193930&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112055&fm=101905919792720&tin=02508201610067®Number=0000000000092771&sum=220000 [19:39:23]StoreToDocumentArchive [19:39:23]shift 390 fd 112055 [19:39:23]save to /storage/0390/doc_00112055 [19:39:23]save last doc name /storage/0390/doc_00112055 to /storage/kkm_last_doc_name [19:39:23]save OK [19:39:23]Clear old archive folders... [19:39:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:39:23]tlvbuf is 00379AD0 [19:39:23]SAM_PROTO_ClearQueue [19:39:23]wFMCommunicate request_size=4 [19:39:23]MH_SAM_APDU [19:39:23]CAPDU: 80 09 00 00 [19:39:23]Write to MH i2c: E2 08 00 90 24 80 09 00 00 00 00 00 00 26 [19:39:23]Write i2c OK [19:39:23]MH_I2C_Read... [19:39:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:23]Read from MH i2c: E2 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: E2 03 00 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: E2 03 00 90 24 00 90 00 28 [19:39:23]RAPDU: 90 00 [19:39:23]wFMCommunicate OK [19:39:23]SAM_PROTO_ClearQueue done [19:39:23]KKMCreateOFDPacket [19:39:23]OFDProtocolAddRootSTLVToBuf [19:39:23]FM_MakeSignedData [19:39:23]FM_MakeSignedData [19:39:23]SAM_PROTO_SignData [19:39:23]wFMCommunicate request_size=4 [19:39:23]MH_SAM_APDU [19:39:23]CAPDU: 80 0D 01 02 [19:39:23]Write to MH i2c: E2 08 00 91 24 80 0D 01 02 00 00 00 00 2E [19:39:23]Write i2c OK [19:39:23]MH_I2C_Read... [19:39:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:23]Read from MH i2c: E2 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: E2 03 00 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: E2 03 00 91 24 00 90 00 29 [19:39:23]RAPDU: 90 00 [19:39:23]wFMCommunicate OK [19:39:23]wFMCommunicate request_size=255 [19:39:23]MH_SAM_APDU [19:39:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 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 44 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 DF 00 00 00 F4 03 04 00 F2 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B5 01 00 35 04 06 00 5C AE D2 26 [19:39:23]Write to MH i2c: E2 02 01 92 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 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 44 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 DF 00 00 00 F4 03 04 00 F2 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B5 01 00 35 04 06 00 5C AE D2 26 00 00 79 [19:39:23]Write i2c OK [19:39:23]MH_I2C_Read... [19:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:23]Read from MH i2c: E2 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: E2 03 00 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: E2 03 00 92 24 00 90 00 2A [19:39:23]RAPDU: 90 00 [19:39:23]wFMCommunicate OK [19:39:23]wFMCommunicate request_size=7 [19:39:23]MH_SAM_APDU [19:39:23]CAPDU: 80 0D 02 02 02 56 50 [19:39:23]Write to MH i2c: E2 0A 00 93 24 80 0D 02 02 02 00 56 50 00 00 DB [19:39:23]Write i2c OK [19:39:23]MH_I2C_Read... [19:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:23]Read from MH i2c: E2 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: E2 03 00 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: E2 03 00 93 24 00 90 00 2B [19:39:23]RAPDU: 90 00 [19:39:23]wFMCommunicate OK [19:39:23]wFMCommunicate request_size=4 [19:39:23]MH_SAM_APDU [19:39:23]CAPDU: 80 0D 03 02 [19:39:23]Write to MH i2c: E2 08 00 94 24 80 0D 03 02 00 00 00 00 33 [19:39:23]Write i2c OK [19:39:23]MH_I2C_Read... [19:39:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:23]Read from MH i2c: E2 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: E2 0B 00 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: E2 0B 00 94 24 00 CC D2 0A BE A7 E8 EE 15 90 00 2C [19:39:23]RAPDU: CC D2 0A BE A7 E8 EE 15 90 00 [19:39:23]wFMCommunicate OK [19:39:23]SAM_PROTO_SignData done [19:39:23]FM_MakeSignedData done [19:39:23]CreateOFDProtocolMessage [19:39:23]wFMCommunicate request_size=4 [19:39:23]MH_SAM_APDU [19:39:23]CAPDU: 80 11 00 00 [19:39:23]Write to MH i2c: E2 08 00 95 24 80 11 00 00 00 00 00 00 33 [19:39:23]Write i2c OK [19:39:23]MH_I2C_Read... [19:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:23]Read from MH i2c: E2 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: E2 17 00 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: E2 17 00 95 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 85 [19:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:39:23]wFMCommunicate OK [19:39:23]CreateOFDProtocolMessage done [19:39:23]OFDSenderStorePacket 112055 [19:39:23]StoreOFDPacket docnum=112055 [19:39:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 1B 92 04 01 08 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 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 44 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 DF 00 00 00 F4 03 04 00 F2 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B5 01 00 35 04 06 00 5C AE D2 26 56 50 CC D2 0A BE A7 E8 EE 15 [19:39:23]CheckFolder [19:39:23]dirname=/storage/ofd_packets [19:39:23]CheckFolder done [19:39:23]ProducePacketName [19:39:23]name=ofd_packets/00112055 [19:39:23]NVStorageSaveData ofd_packets/00112055 [19:39:23]File name is /storage/ofd_packets/00112055 [19:39:23]Write 298 bytes [19:39:23]NVStorageSaveData done [19:39:23]OFDSenderStorePacket done [19:39:23]KKMCreateOFDPacket done [19:39:23]NVStorageSaveData kkm_last_timestamp [19:39:23]File name is /storage/kkm_last_timestamp [19:39:23]Write 4 bytes [19:39:23]NVStorageSaveData done [19:39:23]ExternCall_PrintAddStr [19:39:23]wPrintStart [19:39:23]Write to MH i2c: 01 00 00 96 24 BA [19:39:23]Write i2c OK [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: 01 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: 01 07 00 [19:39:23]MH_I2C_Read... [19:39:23]Read from MH i2c: 01 07 00 96 24 00 00 00 00 00 FF 0F CF [19:39:23]RasterBufferAndPrint [19:39:23]line 小褔械褌 N : (1)320711 [19:39:23]line 袠袧袧: 02508201610067 [19:39:23]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:39:23]line 袩袪袨袛袗袞袗 [19:39:23]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [19:39:23]line 孝芯胁邪褉: 2710194210 [19:39:23]line 袛孝-袣-5 [19:39:23]line 30.180 * 72.90 [19:39:23]line = 2200.12 [19:39:23]line 袧袛小 12% 袧小袩 1% [19:39:23]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:39:23]line 袨袣袪校袚袥袝袧袠袝: -0.12 [19:39:23]line 袠孝袨袚袨: 2200.00 [19:39:23]line 袙薪械褋械薪芯: 2200.00 [19:39:23]line 小袛袗效袗: 0.00 [19:39:23]line 袧小袩 1% : 19.47 [19:39:23]line 袧袛小 12% : 233.64 [19:39:23]line 袧邪谢懈褔薪褘屑懈: 2200.00 [19:39:23]line 袘械蟹薪邪谢.: 0.00 [19:39:23]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:39:23]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:39:23]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:39:23]line 效械泻 223 21.06.2024 19:39 [19:39:23]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:39:23]line 袟袧袦: 0300000198 [19:39:23]line 袪袧袦: 0000000000092771 [19:39:23]line 袙械褉褋懈褟 袣袣袦: 001 [19:39:23]line 肖袦: 0000000000875083 [19:39:23]line 肖袛: 112055 [19:39:23]line 肖袩袛: 101905919792720 [19:39:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193930&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112055&fm=101905919792720&tin=02508201610067®Number=0000000000092771&sum=220000 [19:39:23]OFD Sender: Processing packet 112055 [packets to send 38, broken 37] [19:39:23]ProducePacketName [19:39:23]name=ofd_packets/00112055 [19:39:23]OFD Sender: To server: 嚂鰌G, [19:39:23]CommunicateWithHost lk.salyk.kg:30040 [19:39:23]ConnectInit lk.salyk.kg [19:39:23]written 0, free lines is 4095 [19:39:23]Connected sock=10 [19:39:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 1B 92 04 01 08 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 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 44 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 DF 00 00 00 F4 03 04 00 F2 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B5 01 00 35 04 06 00 5C AE D2 26 56 50 CC D2 0A BE A7 E8 EE 15 [19:39:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 44 D0 47 00 CB F1 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 30 38 37 35 30 38 33 10 04 04 00 B7 B5 01 00 F4 03 04 00 14 6E 75 66 B6 04 01 00 00 F9 36 94 A1 77 08 80 B0 [19:39:24]CommunicateWithHost err = 0 [19:39:24]CheckOFDResponse [19:39:24]1017 (14) - 77093643461234 [19:39:24]1041 (16) - 0000000000875083 [19:39:24]1040 (4) - 112055 [19:39:24]1012 (4) - 21.06.2024 12:12 [19:39:24]1206 (1) - 0 [19:39:24]OFD Sender: Remove packet 112055 [19:39:24]ProducePacketName [19:39:24]name=ofd_packets/00112055 [19:39:24]NVStorageDeleteData [19:39:24]Write to MH i2c: 01 00 00 C1 24 E5 [19:39:24]Write i2c OK [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: 01 [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: 01 07 00 [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: 01 07 00 C1 24 00 00 00 00 00 E4 0C DC [19:39:24]RasterBufferAndPrint [19:39:24]line [19:39:24]line [19:39:24]line [19:39:24]line [19:39:24]line [19:39:24]written 0, free lines is 3306 [19:39:24]MH_Cut [19:39:24]Write to MH i2c: D1 01 00 C8 24 01 BE [19:39:24]Write i2c OK [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: D1 [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: D1 01 00 [19:39:24]MH_I2C_Read... [19:39:24]Read from MH i2c: D1 01 00 C8 24 00 BD [19:39:24]Write to MH i2c: 01 00 00 C9 24 ED [19:39:24]Write i2c OK [19:39:24]MH_I2C_Read... [19:39:24]OFD Sender: No OFD packet to send [19:39:25]*** Cut start [19:39:25]*** Partial cut [19:39:25]*** CUTSNS_PIN = 1 [19:39:25]*** CUTSNS_PIN = 0 [19:39:25]*** Brake cut motor [19:39:25]Read from MH i2c: 01 [19:39:25]MH_I2C_Read... [19:39:25]*** Stop cut motor [19:39:25]*** Cut end [19:39:25]Read from MH i2c: 01 07 00 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: 01 07 00 C9 24 00 00 00 00 00 FF 0F 02 [19:39:25]process_action close_receipt done [19:39:25]requested_data is exist [19:39:25]produce_requested_data [19:39:25]requested_item fm.sn is exist - process it [19:39:25]wFMCommunicate request_size=4 [19:39:25]MH_SAM_APDU [19:39:25]CAPDU: 80 11 00 00 [19:39:25]Write to MH i2c: E2 08 00 CA 24 80 11 00 00 00 00 00 00 68 [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:25]Read from MH i2c: E2 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 17 00 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 17 00 CA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BA [19:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:39:25]wFMCommunicate OK [19:39:25]requested_item fd.num is exist - process it [19:39:25]SAM_PROTO_GetFieldsCounters [19:39:25]wFMCommunicate request_size=4 [19:39:25]MH_SAM_APDU [19:39:25]CAPDU: 80 13 00 00 [19:39:25]Write to MH i2c: E2 08 00 CB 24 80 13 00 00 00 00 00 00 6B [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:25]Read from MH i2c: E2 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 62 00 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 62 00 CB 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B7 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [19:39:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B7 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:25]wFMCommunicate OK [19:39:25]SAM_PROTO_GetFieldsCounters done [19:39:25]requested_item shift.num is exist - process it [19:39:25]requested_item shift.opened is exist - process it [19:39:25]req_shift_opened [19:39:25]FM_GetShiftState [19:39:25]SAM_PROTO_GetShiftState [19:39:25]wFMCommunicate request_size=4 [19:39:25]MH_SAM_APDU [19:39:25]CAPDU: 80 13 01 00 [19:39:25]Write to MH i2c: E2 08 00 CC 24 80 13 01 00 00 00 00 00 6D [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:25]Read from MH i2c: E2 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 0E 00 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 0E 00 CC 24 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 EA [19:39:25]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:39:25]wFMCommunicate OK [19:39:25]SAM_PROTO_GetShiftState done [19:39:25]FM_GetShiftState done [19:39:25]req_shift_opened done [19:39:25]requested_item shift.open_date is exist - process it [19:39:25]req_shift_open_date [19:39:25]req_shift_open_date done [19:39:25]produce_requested_data done [19:39:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112055,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:39:25]process_action_free close_receipt [19:39:25]json_value_free [19:39:25]json_value_free done [19:39:25]process_json_proto returns [19:39:25]Send response to host [19:39:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112055,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:39:25]free response buf [19:39:25]execute_script done [19:39:25]execute_script returns [19:39:25]free content buf [19:39:25]Sock 7.Close socket [19:39:25]Sock 7.Thread stoped [19:39:26]accept exits with 9 [19:39:26]New connection [19:39:26]New thread 3066875236 created [19:39:26]Thread 3066731876 joined [19:39:26]Waiting for new connection... [19:39:26] Sock 9.Parse request [19:39:26]Sock 9.Check first char [19:39:26]Sock 9.First char is OK [19:39:26]request: POST /json_proto HTTP/1.0 [19:39:26]Method: POST [19:39:26]URL: /json_proto [19:39:26]Method is POST - this is cgi request [19:39:26]url: /json_proto [19:39:26]query_string will be loaded in cgi processing [19:39:26]execute_cgi json_proto POST (null) [19:39:26]execute_cgi path=json_proto method=POST [19:39:26]POST find Content-Length [19:39:26]Host: 172.17.59.68:8080 [19:39:26]Content-Length: 677 [19:39:26]Content-Type: application/json [19:39:26] [19:39:26]POST finish read [19:39:26]Found Content-Length = 677 [19:39:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:26]execute_script... [19:39: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)320712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:26]POST & json_proto [19:39:26]process_json_proto [19:39:26]json parsed OK: [19:39:26]protocol is kg_v1.0 [19:39:26]action value=close_receipt [19:39:26]process_action close_receipt [19:39:26]cmd_close_receipt [19:39:26]MH_GetDate [19:39:26]Write to MH i2c: F0 00 00 CD 24 E0 [19:39:26]Write i2c OK [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: F0 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: F0 09 00 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: F0 09 00 CD 24 00 F7 D6 75 66 BC EC 60 65 FE [19:39:26]GetLastDocTimeStamp 1718998770 [19:39:26]current date 1718998775 [19:39:26]FM_GetShiftState [19:39:26]SAM_PROTO_GetShiftState [19:39:26]wFMCommunicate request_size=4 [19:39:26]MH_SAM_APDU [19:39:26]CAPDU: 80 13 01 00 [19:39:26]Write to MH i2c: E2 08 00 CE 24 80 13 01 00 00 00 00 00 6F [19:39:26]Write i2c OK [19:39:26]MH_I2C_Read... [19:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:26]Read from MH i2c: E2 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 0E 00 [19:39:26]MH_I2C_Read... [19:39:26]Read from MH i2c: E2 0E 00 CE 24 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 EC [19:39:26]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:39:26]wFMCommunicate OK [19:39:26]SAM_PROTO_GetShiftState done [19:39:26]FM_GetShiftState done [19:39:26]opened in 1718933695 [19:39:26]opened+sec_in_day 1719020095 [19:39:26]quantity*price = 30012 [19:39:26]sum+1 = 30014 [19:39:26]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 224 21.06.2024 19:39 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112056 肖袩袛: 165525369234854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193935&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112056&fm=165525369234854&tin=02508201610067®Number=0000000000092771&sum=30000 [19:39:27]StoreToDocumentArchive [19:39:27]shift 390 fd 112056 [19:39:27]save to /storage/0390/doc_00112056 [19:39:27]save last doc name /storage/0390/doc_00112056 to /storage/kkm_last_doc_name [19:39:27]save OK [19:39:27]Clear old archive folders... [19:39:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:27]tlvbuf is B6F42460 [19:39:27]SAM_PROTO_ClearQueue [19:39:27]wFMCommunicate request_size=4 [19:39:27]MH_SAM_APDU [19:39:27]CAPDU: 80 09 00 00 [19:39:27]Write to MH i2c: E2 08 00 DB 24 80 09 00 00 00 00 00 00 71 [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:27]Read from MH i2c: E2 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 03 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 03 00 DB 24 00 90 00 73 [19:39:27]RAPDU: 90 00 [19:39:27]wFMCommunicate OK [19:39:27]SAM_PROTO_ClearQueue done [19:39:27]KKMCreateOFDPacket [19:39:27]OFDProtocolAddRootSTLVToBuf [19:39:27]FM_MakeSignedData [19:39:27]FM_MakeSignedData [19:39:27]SAM_PROTO_SignData [19:39:27]wFMCommunicate request_size=4 [19:39:27]MH_SAM_APDU [19:39:27]CAPDU: 80 0D 01 02 [19:39:27]Write to MH i2c: E2 08 00 DC 24 80 0D 01 02 00 00 00 00 79 [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:27]Read from MH i2c: E2 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 03 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 03 00 DC 24 00 90 00 74 [19:39:27]RAPDU: 90 00 [19:39:27]wFMCommunicate OK [19:39:27]wFMCommunicate request_size=255 [19:39:27]MH_SAM_APDU [19:39: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 E0 00 00 00 F4 03 04 00 F7 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B5 01 00 35 04 06 00 96 [19:39:27]Write to MH i2c: E2 02 01 DD 24 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 E0 00 00 00 F4 03 04 00 F7 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B5 01 00 35 04 06 00 96 00 00 DE [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:28]Read from MH i2c: E2 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 03 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 03 00 DD 24 00 90 00 75 [19:39:28]RAPDU: 90 00 [19:39:28]wFMCommunicate OK [19:39:28]wFMCommunicate request_size=10 [19:39:28]MH_SAM_APDU [19:39:28]CAPDU: 80 0D 02 02 05 8B 60 D5 A5 A6 [19:39:28]Write to MH i2c: E2 0D 00 DE 24 80 0D 02 02 05 00 8B 60 D5 A5 A6 00 00 91 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:28]Read from MH i2c: E2 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 03 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 03 00 DE 24 00 90 00 76 [19:39:28]RAPDU: 90 00 [19:39:28]wFMCommunicate OK [19:39:28]wFMCommunicate request_size=4 [19:39:28]MH_SAM_APDU [19:39:28]CAPDU: 80 0D 03 02 [19:39:28]Write to MH i2c: E2 08 00 DF 24 80 0D 03 02 00 00 00 00 7E [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:28]Read from MH i2c: E2 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 0B 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 0B 00 DF 24 00 13 07 AC CB BB DB 88 D4 90 00 02 [19:39:28]RAPDU: 13 07 AC CB BB DB 88 D4 90 00 [19:39:28]wFMCommunicate OK [19:39:28]SAM_PROTO_SignData done [19:39:28]FM_MakeSignedData done [19:39:28]CreateOFDProtocolMessage [19:39:28]wFMCommunicate request_size=4 [19:39:28]MH_SAM_APDU [19:39:28]CAPDU: 80 11 00 00 [19:39:28]Write to MH i2c: E2 08 00 E0 24 80 11 00 00 00 00 00 00 7E [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 [19:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 17 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: E2 17 00 E0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D0 [19:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:39:28]wFMCommunicate OK [19:39:28]CreateOFDProtocolMessage done [19:39:28]OFDSenderStorePacket 112056 [19:39:28]StoreOFDPacket docnum=112056 [19:39:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 34 88 07 01 CC E6 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 E0 00 00 00 F4 03 04 00 F7 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B5 01 00 35 04 06 00 96 8B 60 D5 A5 A6 13 07 AC CB BB DB 88 D4 [19:39:28]CheckFolder [19:39:28]dirname=/storage/ofd_packets [19:39:28]CheckFolder done [19:39:28]ProducePacketName [19:39:28]name=ofd_packets/00112056 [19:39:28]NVStorageSaveData ofd_packets/00112056 [19:39:28]File name is /storage/ofd_packets/00112056 [19:39:28]Write 301 bytes [19:39:28]NVStorageSaveData done [19:39:28]OFDSenderStorePacket done [19:39:28]KKMCreateOFDPacket done [19:39:28]NVStorageSaveData kkm_last_timestamp [19:39:28]File name is /storage/kkm_last_timestamp [19:39:28]Write 4 bytes [19:39:28]NVStorageSaveData done [19:39:28]ExternCall_PrintAddStr [19:39:28]wPrintStart [19:39:28]Write to MH i2c: 01 00 00 E1 24 05 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: 01 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: 01 07 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: 01 07 00 E1 24 00 00 00 00 00 FF 0F 1A [19:39:28]RasterBufferAndPrint [19:39:28]line 小褔械褌 N : (1)320712 [19:39:28]line 袠袧袧: 02508201610067 [19:39:28]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:39:28]line 袩袪袨袛袗袞袗 [19:39:28]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:39:28]line 孝芯胁邪褉: 2710124130 [19:39:28]line 袗懈-92-袣-5 [19:39:28]line 4.520 * 66.40 [19:39:28]line = 300.13 [19:39:28]line 袧袛小 12% 袧小袩 1% [19:39:28]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:39:28]line 袨袣袪校袚袥袝袧袠袝: -0.13 [19:39:28]line 袠孝袨袚袨: 300.00 [19:39:28]line 袙薪械褋械薪芯: 300.00 [19:39:28]line 小袛袗效袗: 0.00 [19:39:28]line 袧小袩 1% : 2.66 [19:39:28]line 袧袛小 12% : 31.87 [19:39:28]line 袧邪谢懈褔薪褘屑懈: 300.00 [19:39:28]line 袘械蟹薪邪谢.: 0.00 [19:39:28]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:39:28]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:39:28]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:39:28]line 效械泻 224 21.06.2024 19:39 [19:39:28]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:39:28]line 袟袧袦: 0300000198 [19:39:28]line 袪袧袦: 0000000000092771 [19:39:28]line 袙械褉褋懈褟 袣袣袦: 001 [19:39:28]line 肖袦: 0000000000875083 [19:39:28]line 肖袛: 112056 [19:39:28]line 肖袩袛: 165525369234854 [19:39:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T193935&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112056&fm=165525369234854&tin=02508201610067®Number=0000000000092771&sum=30000 [19:39:28]written 0, free lines is 4095 [19:39:28]OFD Sender: Processing packet 112056 [packets to send 38, broken 37] [19:39:28]ProducePacketName [19:39:28]name=ofd_packets/00112056 [19:39:28]OFD Sender: To server: 嚂鰌G, [19:39:28]CommunicateWithHost lk.salyk.kg:30040 [19:39:28]ConnectInit lk.salyk.kg [19:39:28]Connected sock=10 [19:39:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 34 88 07 01 CC E6 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 E0 00 00 00 F4 03 04 00 F7 D6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B5 01 00 35 04 06 00 96 8B 60 D5 A5 A6 13 07 AC CB BB DB 88 D4 [19:39:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FB 48 47 00 BC C3 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 30 38 37 35 30 38 33 10 04 04 00 B8 B5 01 00 F4 03 04 00 19 6E 75 66 B6 04 01 00 00 53 DD F8 9C 30 4E 69 90 [19:39:28]CommunicateWithHost err = 0 [19:39:28]CheckOFDResponse [19:39:28]1017 (14) - 77093643461234 [19:39:28]1041 (16) - 0000000000875083 [19:39:28]1040 (4) - 112056 [19:39:28]1012 (4) - 21.06.2024 12:12 [19:39:28]1206 (1) - 0 [19:39:28]OFD Sender: Remove packet 112056 [19:39:28]ProducePacketName [19:39:28]name=ofd_packets/00112056 [19:39:28]NVStorageDeleteData [19:39:28]Write to MH i2c: 01 00 00 0C 25 31 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: 01 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: 01 07 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: 01 07 00 0C 25 00 00 00 00 00 E5 0C 29 [19:39:28]RasterBufferAndPrint [19:39:28]line [19:39:28]line [19:39:28]line [19:39:28]line [19:39:28]line [19:39:28]written 0, free lines is 3313 [19:39:28]MH_Cut [19:39:28]Write to MH i2c: D1 01 00 13 25 01 0A [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: D1 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: D1 01 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: D1 01 00 13 25 00 09 [19:39:28]Write to MH i2c: 01 00 00 14 25 39 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:29]OFD Sender: No OFD packet to send [19:39:29]*** Cut start [19:39:29]*** Partial cut [19:39:29]*** CUTSNS_PIN = 1 [19:39:29]*** CUTSNS_PIN = 0 [19:39:29]*** Brake cut motor [19:39:30]Read from MH i2c: 01 [19:39:30]MH_I2C_Read... [19:39:30]*** Stop cut motor [19:39:30]*** Cut end [19:39:30]Read from MH i2c: 01 07 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: 01 07 00 14 25 00 00 00 00 00 FF 0F 4E [19:39:30]process_action close_receipt done [19:39:30]requested_data is exist [19:39:30]produce_requested_data [19:39:30]requested_item fm.sn is exist - process it [19:39:30]wFMCommunicate request_size=4 [19:39:30]MH_SAM_APDU [19:39:30]CAPDU: 80 11 00 00 [19:39:30]Write to MH i2c: E2 08 00 15 25 80 11 00 00 00 00 00 00 B4 [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 17 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 17 00 15 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 06 [19:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:39:30]wFMCommunicate OK [19:39:30]requested_item fd.num is exist - process it [19:39:30]SAM_PROTO_GetFieldsCounters [19:39:30]wFMCommunicate request_size=4 [19:39:30]MH_SAM_APDU [19:39:30]CAPDU: 80 13 00 00 [19:39:30]Write to MH i2c: E2 08 00 16 25 80 13 00 00 00 00 00 00 B7 [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 62 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 62 00 16 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B8 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [19:39:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B8 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:30]wFMCommunicate OK [19:39:30]SAM_PROTO_GetFieldsCounters done [19:39:30]requested_item shift.num is exist - process it [19:39:30]requested_item shift.opened is exist - process it [19:39:30]req_shift_opened [19:39:30]FM_GetShiftState [19:39:30]SAM_PROTO_GetShiftState [19:39:30]wFMCommunicate request_size=4 [19:39:30]MH_SAM_APDU [19:39:30]CAPDU: 80 13 01 00 [19:39:30]Write to MH i2c: E2 08 00 17 25 80 13 01 00 00 00 00 00 B9 [19:39:30]Write i2c OK [19:39:30]MH_I2C_Read... [19:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:30]Read from MH i2c: E2 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 0E 00 [19:39:30]MH_I2C_Read... [19:39:30]Read from MH i2c: E2 0E 00 17 25 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 36 [19:39:30]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:39:30]wFMCommunicate OK [19:39:30]SAM_PROTO_GetShiftState done [19:39:30]FM_GetShiftState done [19:39:30]req_shift_opened done [19:39:30]requested_item shift.open_date is exist - process it [19:39:30]req_shift_open_date [19:39:30]req_shift_open_date done [19:39:30]produce_requested_data done [19:39:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112056,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:39:30]process_action_free close_receipt [19:39:30]json_value_free [19:39:30]json_value_free done [19:39:30]process_json_proto returns [19:39:30]Send response to host [19:39:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112056,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:39:30]free response buf [19:39:30]execute_script done [19:39:30]execute_script returns [19:39:30]free content buf [19:39:30]Sock 9.Close socket [19:39:30]Sock 9.Thread stoped [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:31]accept exits with 7 [19:40:31]New connection [19:40:31]New thread 3066731876 created [19:40:31]Thread 3066875236 joined [19:40:31]Waiting for new connection... [19:40:31] Sock 7.Parse request [19:40:31]Sock 7.Check first char [19:40:31]Sock 7.First char is OK [19:40:31]request: POST /json_proto HTTP/1.0 [19:40:31]Method: POST [19:40:31]URL: /json_proto [19:40:31]Method is POST - this is cgi request [19:40:31]url: /json_proto [19:40:31]query_string will be loaded in cgi processing [19:40:31]execute_cgi json_proto POST (null) [19:40:31]execute_cgi path=json_proto method=POST [19:40:31]POST find Content-Length [19:40:31]Host: 172.17.59.68:8080 [19:40:31]Content-Length: 639 [19:40:31]Content-Type: application/json [19:40:31] [19:40:31]POST finish read [19:40:31]Found Content-Length = 639 [19:40:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:31]execute_script... [19: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 : (1)320713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:31]POST & json_proto [19:40:31]process_json_proto [19:40:31]json parsed OK: [19:40:31]protocol is kg_v1.0 [19:40:31]action value=close_receipt [19:40:31]process_action close_receipt [19:40:31]cmd_close_receipt [19:40:31]MH_GetDate [19:40:31]Write to MH i2c: F0 00 00 18 25 2C [19:40:31]Write i2c OK [19:40:31]MH_I2C_Read... [19:40:31]Read from MH i2c: F0 [19:40:31]MH_I2C_Read... [19:40:31]Read from MH i2c: F0 09 00 [19:40:31]MH_I2C_Read... [19:40:31]Read from MH i2c: F0 09 00 18 25 00 38 D7 75 66 BC EC 60 65 8C [19:40:31]GetLastDocTimeStamp 1718998775 [19:40:31]current date 1718998840 [19:40:31]FM_GetShiftState [19:40:31]SAM_PROTO_GetShiftState [19:40:31]wFMCommunicate request_size=4 [19:40:31]MH_SAM_APDU [19:40:31]CAPDU: 80 13 01 00 [19:40:31]Write to MH i2c: E2 08 00 19 25 80 13 01 00 00 00 00 00 BB [19:40:31]Write i2c OK [19:40:31]MH_I2C_Read... [19:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:32]Read from MH i2c: E2 [19:40:32]MH_I2C_Read... [19:40:32]Read from MH i2c: E2 0E 00 [19:40:32]MH_I2C_Read... [19:40:32]Read from MH i2c: E2 0E 00 19 25 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 38 [19:40:32]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:40:32]wFMCommunicate OK [19:40:32]SAM_PROTO_GetShiftState done [19:40:32]FM_GetShiftState done [19:40:32]opened in 1718933695 [19:40:32]opened+sec_in_day 1719020095 [19:40:32]quantity*price = 33200 [19:40:32]sum+1 = 33201 [19:40:32]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 332.00 袧小袩 1% : 2.94 袧袛小 12% : 35.26 袧邪谢懈褔薪褘屑懈: 332.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 225 21.06.2024 19:40 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112057 肖袩袛: 85465419785428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T194040&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112057&fm=85465419785428&tin=02508201610067®Number=0000000000092771&sum=33200 [19:40:33]StoreToDocumentArchive [19:40:33]shift 390 fd 112057 [19:40:33]save to /storage/0390/doc_00112057 [19:40:33]save last doc name /storage/0390/doc_00112057 to /storage/kkm_last_doc_name [19:40:33]save OK [19:40:33]Clear old archive folders... [19:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:33]tlvbuf is 0036C690 [19:40:33]SAM_PROTO_ClearQueue [19:40:33]wFMCommunicate request_size=4 [19:40:33]MH_SAM_APDU [19:40:33]CAPDU: 80 09 00 00 [19:40:33]Write to MH i2c: E2 08 00 26 25 80 09 00 00 00 00 00 00 BD [19:40:33]Write i2c OK [19:40:33]MH_I2C_Read... [19:40:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:33]Read from MH i2c: E2 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: E2 03 00 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: E2 03 00 26 25 00 90 00 BF [19:40:33]RAPDU: 90 00 [19:40:33]wFMCommunicate OK [19:40:33]SAM_PROTO_ClearQueue done [19:40:33]KKMCreateOFDPacket [19:40:33]OFDProtocolAddRootSTLVToBuf [19:40:33]FM_MakeSignedData [19:40:33]FM_MakeSignedData [19:40:33]SAM_PROTO_SignData [19:40:33]wFMCommunicate request_size=4 [19:40:33]MH_SAM_APDU [19:40:33]CAPDU: 80 0D 01 02 [19:40:33]Write to MH i2c: E2 08 00 27 25 80 0D 01 02 00 00 00 00 C5 [19:40:33]Write i2c OK [19:40:33]MH_I2C_Read... [19:40:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:33]Read from MH i2c: E2 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: E2 03 00 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: E2 03 00 27 25 00 90 00 C0 [19:40:33]RAPDU: 90 00 [19:40:33]wFMCommunicate OK [19:40:33]wFMCommunicate request_size=255 [19:40:33]MH_SAM_APDU [19:40: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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 38 D7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B5 01 00 35 04 06 00 4D [19:40:33]Write to MH i2c: E2 02 01 28 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 38 D7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B5 01 00 35 04 06 00 4D 00 00 0E [19:40:33]Write i2c OK [19:40:33]MH_I2C_Read... [19:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:33]Read from MH i2c: E2 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: E2 03 00 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: E2 03 00 28 25 00 90 00 C1 [19:40:33]RAPDU: 90 00 [19:40:33]wFMCommunicate OK [19:40:33]wFMCommunicate request_size=10 [19:40:33]MH_SAM_APDU [19:40:33]CAPDU: 80 0D 02 02 05 BA F7 FC A4 D4 [19:40:33]Write to MH i2c: E2 0D 00 29 25 80 0D 02 02 05 00 BA F7 FC A4 D4 00 00 F7 [19:40:33]Write i2c OK [19:40:33]MH_I2C_Read... [19:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:33]Read from MH i2c: E2 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: E2 03 00 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: E2 03 00 29 25 00 90 00 C2 [19:40:33]RAPDU: 90 00 [19:40:33]wFMCommunicate OK [19:40:33]wFMCommunicate request_size=4 [19:40:33]MH_SAM_APDU [19:40:33]CAPDU: 80 0D 03 02 [19:40:33]Write to MH i2c: E2 08 00 2A 25 80 0D 03 02 00 00 00 00 CA [19:40:33]Write i2c OK [19:40:33]MH_I2C_Read... [19:40:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:33]Read from MH i2c: E2 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: E2 0B 00 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: E2 0B 00 2A 25 00 E4 88 E4 21 2C 84 63 7A 90 00 C9 [19:40:33]RAPDU: E4 88 E4 21 2C 84 63 7A 90 00 [19:40:33]wFMCommunicate OK [19:40:33]SAM_PROTO_SignData done [19:40:33]FM_MakeSignedData done [19:40:33]CreateOFDProtocolMessage [19:40:33]wFMCommunicate request_size=4 [19:40:33]MH_SAM_APDU [19:40:33]CAPDU: 80 11 00 00 [19:40:33]Write to MH i2c: E2 08 00 2B 25 80 11 00 00 00 00 00 00 CA [19:40:33]Write i2c OK [19:40:33]MH_I2C_Read... [19:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:33]Read from MH i2c: E2 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: E2 17 00 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: E2 17 00 2B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1C [19:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:40:33]wFMCommunicate OK [19:40:33]CreateOFDProtocolMessage done [19:40:33]OFDSenderStorePacket 112057 [19:40:33]StoreOFDPacket docnum=112057 [19:40:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1F 1D 07 01 29 C5 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 38 D7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B5 01 00 35 04 06 00 4D BA F7 FC A4 D4 E4 88 E4 21 2C 84 63 7A [19:40:33]CheckFolder [19:40:33]dirname=/storage/ofd_packets [19:40:33]CheckFolder done [19:40:33]ProducePacketName [19:40:33]name=ofd_packets/00112057 [19:40:33]NVStorageSaveData ofd_packets/00112057 [19:40:33]File name is /storage/ofd_packets/00112057 [19:40:33]Write 301 bytes [19:40:33]NVStorageSaveData done [19:40:33]OFDSenderStorePacket done [19:40:33]KKMCreateOFDPacket done [19:40:33]NVStorageSaveData kkm_last_timestamp [19:40:33]File name is /storage/kkm_last_timestamp [19:40:33]Write 4 bytes [19:40:33]NVStorageSaveData done [19:40:33]ExternCall_PrintAddStr [19:40:33]wPrintStart [19:40:33]Write to MH i2c: 01 00 00 2C 25 51 [19:40:33]Write i2c OK [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: 01 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: 01 07 00 [19:40:33]MH_I2C_Read... [19:40:33]Read from MH i2c: 01 07 00 2C 25 00 00 00 00 00 FF 0F 66 [19:40:33]RasterBufferAndPrint [19:40:33]line 小褔械褌 N : (1)320713 [19:40:33]line 袠袧袧: 02508201610067 [19:40:33]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:40:33]line 袩袪袨袛袗袞袗 [19:40:33]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:40:33]line 孝芯胁邪褉: 2710124130 [19:40:33]line 袗懈-92-袣-5 [19:40:33]line 5.000 * 66.40 [19:40:33]line = 332.00 [19:40:33]line 袧袛小 12% 袧小袩 1% [19:40:33]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:40:33]line 袠孝袨袚袨: 332.00 [19:40:33]line 袧小袩 1% : 2.94 [19:40:33]line 袧袛小 12% : 35.26 [19:40:33]line 袧邪谢懈褔薪褘屑懈: 332.00 [19:40:33]line 袘械蟹薪邪谢.: 0.00 [19:40:33]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:40:33]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:40:33]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:40:33]line 效械泻 225 21.06.2024 19:40 [19:40:33]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:40:33]line 袟袧袦: 0300000198 [19:40:33]line 袪袧袦: 0000000000092771 [19:40:33]line 袙械褉褋懈褟 袣袣袦: 001 [19:40:33]line 肖袦: 0000000000875083 [19:40:33]line 肖袛: 112057 [19:40:33]line 肖袩袛: 85465419785428 [19:40:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T194040&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112057&fm=85465419785428&tin=02508201610067®Number=0000000000092771&sum=33200 [19:40:33]OFD Sender: Processing packet 112057 [packets to send 38, broken 37] [19:40:33]ProducePacketName [19:40:33]name=ofd_packets/00112057 [19:40:33]OFD Sender: To server: 嚂鰌G, [19:40:33]CommunicateWithHost lk.salyk.kg:30040 [19:40:33]ConnectInit lk.salyk.kg [19:40:33]written 0, free lines is 4095 [19:40:34]Connected sock=10 [19:40:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1F 1D 07 01 29 C5 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 38 D7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B5 01 00 35 04 06 00 4D BA F7 FC A4 D4 E4 88 E4 21 2C 84 63 7A [19:40:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B3 AA 47 00 AF 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 30 38 37 35 30 38 33 10 04 04 00 B9 B5 01 00 F4 03 04 00 5B 6E 75 66 B6 04 01 00 00 50 FA 9D 0E B1 87 95 A5 [19:40:34]CommunicateWithHost err = 0 [19:40:34]CheckOFDResponse [19:40:34]1017 (14) - 77093643461234 [19:40:34]1041 (16) - 0000000000875083 [19:40:34]1040 (4) - 112057 [19:40:34]1012 (4) - 21.06.2024 12:13 [19:40:34]1206 (1) - 0 [19:40:34]OFD Sender: Remove packet 112057 [19:40:34]ProducePacketName [19:40:34]name=ofd_packets/00112057 [19:40:34]NVStorageDeleteData [19:40:34]Write to MH i2c: 01 00 00 54 25 79 [19:40:34]Write i2c OK [19:40:34]MH_I2C_Read... [19:40:34]Read from MH i2c: 01 [19:40:34]MH_I2C_Read... [19:40:34]Read from MH i2c: 01 07 00 [19:40:34]MH_I2C_Read... [19:40:34]Read from MH i2c: 01 07 00 54 25 00 00 00 00 00 07 0D 94 [19:40:34]RasterBufferAndPrint [19:40:34]line [19:40:34]line [19:40:34]line [19:40:34]line [19:40:34]line [19:40:34]written 0, free lines is 3341 [19:40:34]MH_Cut [19:40:34]Write to MH i2c: D1 01 00 5B 25 01 52 [19:40:34]Write i2c OK [19:40:34]MH_I2C_Read... [19:40:34]Read from MH i2c: D1 [19:40:34]MH_I2C_Read... [19:40:34]Read from MH i2c: D1 01 00 [19:40:34]MH_I2C_Read... [19:40:34]Read from MH i2c: D1 01 00 5B 25 00 51 [19:40:34]Write to MH i2c: 01 00 00 5C 25 81 [19:40:34]Write i2c OK [19:40:34]MH_I2C_Read... [19:40:34]OFD Sender: No OFD packet to send [19:40:35]*** Cut start [19:40:35]*** Partial cut [19:40:35]*** CUTSNS_PIN = 1 [19:40:35]*** CUTSNS_PIN = 0 [19:40:35]*** Brake cut motor [19:40:35]Read from MH i2c: 01 [19:40:35]MH_I2C_Read... [19:40:35]*** Stop cut motor [19:40:35]*** Cut end [19:40:35]Read from MH i2c: 01 07 00 [19:40:35]MH_I2C_Read... [19:40:35]Read from MH i2c: 01 07 00 5C 25 00 00 00 00 00 FF 0F 96 [19:40:35]process_action close_receipt done [19:40:35]requested_data is exist [19:40:35]produce_requested_data [19:40:35]requested_item fm.sn is exist - process it [19:40:35]wFMCommunicate request_size=4 [19:40:35]MH_SAM_APDU [19:40:35]CAPDU: 80 11 00 00 [19:40:35]Write to MH i2c: E2 08 00 5D 25 80 11 00 00 00 00 00 00 FC [19:40:35]Write i2c OK [19:40:35]MH_I2C_Read... [19:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:35]Read from MH i2c: E2 [19:40:35]MH_I2C_Read... [19:40:35]Read from MH i2c: E2 17 00 [19:40:35]MH_I2C_Read... [19:40:35]Read from MH i2c: E2 17 00 5D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4E [19:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:40:35]wFMCommunicate OK [19:40:35]requested_item fd.num is exist - process it [19:40:35]SAM_PROTO_GetFieldsCounters [19:40:35]wFMCommunicate request_size=4 [19:40:35]MH_SAM_APDU [19:40:35]CAPDU: 80 13 00 00 [19:40:35]Write to MH i2c: E2 08 00 5E 25 80 13 00 00 00 00 00 00 FF [19:40:35]Write i2c OK [19:40:35]MH_I2C_Read... [19:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:35]Read from MH i2c: E2 [19:40:35]MH_I2C_Read... [19:40:35]Read from MH i2c: E2 62 00 [19:40:35]MH_I2C_Read... [19:40:35]Read from MH i2c: E2 62 00 5E 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B9 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [19:40:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B9 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:35]wFMCommunicate OK [19:40:35]SAM_PROTO_GetFieldsCounters done [19:40:35]requested_item shift.num is exist - process it [19:40:35]requested_item shift.opened is exist - process it [19:40:35]req_shift_opened [19:40:35]FM_GetShiftState [19:40:35]SAM_PROTO_GetShiftState [19:40:35]wFMCommunicate request_size=4 [19:40:35]MH_SAM_APDU [19:40:35]CAPDU: 80 13 01 00 [19:40:35]Write to MH i2c: E2 08 00 5F 25 80 13 01 00 00 00 00 00 01 [19:40:35]Write i2c OK [19:40:35]MH_I2C_Read... [19:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:35]Read from MH i2c: E2 [19:40:35]MH_I2C_Read... [19:40:35]Read from MH i2c: E2 0E 00 [19:40:35]MH_I2C_Read... [19:40:35]Read from MH i2c: E2 0E 00 5F 25 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 7E [19:40:35]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:40:35]wFMCommunicate OK [19:40:35]SAM_PROTO_GetShiftState done [19:40:35]FM_GetShiftState done [19:40:35]req_shift_opened done [19:40:35]requested_item shift.open_date is exist - process it [19:40:35]req_shift_open_date [19:40:35]req_shift_open_date done [19:40:35]produce_requested_data done [19:40:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112057,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:40:35]process_action_free close_receipt [19:40:35]json_value_free [19:40:35]json_value_free done [19:40:35]process_json_proto returns [19:40:35]Send response to host [19:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112057,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:40:35]free response buf [19:40:35]execute_script done [19:40:35]execute_script returns [19:40:35]free content buf [19:40:35]Sock 7.Close socket [19:40:35]Sock 7.Thread stoped [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:21]accept exits with 9 [19:41:21]New connection [19:41:21]New thread 3066875236 created [19:41:21]Thread 3066731876 joined [19:41:21]Waiting for new connection... [19:41:21] Sock 9.Parse request [19:41:21]Sock 9.Check first char [19:41:21]Sock 9.First char is OK [19:41:21]request: POST /json_proto HTTP/1.0 [19:41:21]Method: POST [19:41:21]URL: /json_proto [19:41:21]Method is POST - this is cgi request [19:41:21]url: /json_proto [19:41:21]query_string will be loaded in cgi processing [19:41:21]execute_cgi json_proto POST (null) [19:41:21]execute_cgi path=json_proto method=POST [19:41:21]POST find Content-Length [19:41:21]Host: 172.17.59.68:8080 [19:41:21]Content-Length: 677 [19:41:21]Content-Type: application/json [19:41:21] [19:41:21]POST finish read [19:41:21]Found Content-Length = 677 [19:41:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:41:21]execute_script... [19:41: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)320714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:41:21]POST & json_proto [19:41:21]process_json_proto [19:41:21]json parsed OK: [19:41:21]protocol is kg_v1.0 [19:41:21]action value=close_receipt [19:41:21]process_action close_receipt [19:41:21]cmd_close_receipt [19:41:21]MH_GetDate [19:41:21]Write to MH i2c: F0 00 00 60 25 74 [19:41:21]Write i2c OK [19:41:21]MH_I2C_Read... [19:41:21]Read from MH i2c: F0 [19:41:21]MH_I2C_Read... [19:41:21]Read from MH i2c: F0 09 00 [19:41:21]MH_I2C_Read... [19:41:21]Read from MH i2c: F0 09 00 60 25 00 6A D7 75 66 BC EC 60 65 06 [19:41:21]GetLastDocTimeStamp 1718998840 [19:41:21]current date 1718998890 [19:41:21]FM_GetShiftState [19:41:21]SAM_PROTO_GetShiftState [19:41:21]wFMCommunicate request_size=4 [19:41:21]MH_SAM_APDU [19:41:21]CAPDU: 80 13 01 00 [19:41:21]Write to MH i2c: E2 08 00 61 25 80 13 01 00 00 00 00 00 03 [19:41:21]Write i2c OK [19:41:21]MH_I2C_Read... [19:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:21]Read from MH i2c: E2 [19:41:21]MH_I2C_Read... [19:41:21]Read from MH i2c: E2 0E 00 [19:41:21]MH_I2C_Read... [19:41:21]Read from MH i2c: E2 0E 00 61 25 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 80 [19:41:21]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:41:21]wFMCommunicate OK [19:41:21]SAM_PROTO_GetShiftState done [19:41:21]FM_GetShiftState done [19:41:21]opened in 1718933695 [19:41:21]opened+sec_in_day 1719020095 [19:41:21]quantity*price = 60025 [19:41:21]sum+1 = 60027 [19:41:21]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.26 袠孝袨袚袨: 600.00 袙薪械褋械薪芯: 600.00 小袛袗效袗: 0.00 袧小袩 1% : 5.31 袧袛小 12% : 63.74 袧邪谢懈褔薪褘屑懈: 600.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 226 21.06.2024 19:41 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112058 肖袩袛: 225944497811955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T194130&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112058&fm=225944497811955&tin=02508201610067®Number=0000000000092771&sum=60000 [19:41:22]StoreToDocumentArchive [19:41:22]shift 390 fd 112058 [19:41:22]save to /storage/0390/doc_00112058 [19:41:22]save last doc name /storage/0390/doc_00112058 to /storage/kkm_last_doc_name [19:41:22]save OK [19:41:22]Clear old archive folders... [19:41:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:22]tlvbuf is B6E95600 [19:41:22]SAM_PROTO_ClearQueue [19:41:22]wFMCommunicate request_size=4 [19:41:22]MH_SAM_APDU [19:41:22]CAPDU: 80 09 00 00 [19:41:22]Write to MH i2c: E2 08 00 6E 25 80 09 00 00 00 00 00 00 05 [19:41:22]Write i2c OK [19:41:22]MH_I2C_Read... [19:41:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:22]Read from MH i2c: E2 [19:41:22]MH_I2C_Read... [19:41:22]Read from MH i2c: E2 03 00 [19:41:22]MH_I2C_Read... [19:41:22]Read from MH i2c: E2 03 00 6E 25 00 90 00 07 [19:41:22]RAPDU: 90 00 [19:41:22]wFMCommunicate OK [19:41:22]SAM_PROTO_ClearQueue done [19:41:22]KKMCreateOFDPacket [19:41:22]OFDProtocolAddRootSTLVToBuf [19:41:22]FM_MakeSignedData [19:41:22]FM_MakeSignedData [19:41:22]SAM_PROTO_SignData [19:41:22]wFMCommunicate request_size=4 [19:41:22]MH_SAM_APDU [19:41:22]CAPDU: 80 0D 01 02 [19:41:22]Write to MH i2c: E2 08 00 6F 25 80 0D 01 02 00 00 00 00 0D [19:41:22]Write i2c OK [19:41:22]MH_I2C_Read... [19:41:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:22]Read from MH i2c: E2 [19:41:22]MH_I2C_Read... [19:41:22]Read from MH i2c: E2 03 00 [19:41:22]MH_I2C_Read... [19:41:22]Read from MH i2c: E2 03 00 6F 25 00 90 00 08 [19:41:22]RAPDU: 90 00 [19:41:22]wFMCommunicate OK [19:41:22]wFMCommunicate request_size=255 [19:41:22]MH_SAM_APDU [19:41: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 E2 00 00 00 F4 03 04 00 6A D7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B5 01 00 35 04 06 00 CD [19:41:22]Write to MH i2c: E2 02 01 70 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 E2 00 00 00 F4 03 04 00 6A D7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B5 01 00 35 04 06 00 CD 00 00 60 [19:41:22]Write i2c OK [19:41:22]MH_I2C_Read... [19:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:23]Read from MH i2c: E2 [19:41:23]MH_I2C_Read... [19:41:23]Read from MH i2c: E2 03 00 [19:41:23]MH_I2C_Read... [19:41:23]Read from MH i2c: E2 03 00 70 25 00 90 00 09 [19:41:23]RAPDU: 90 00 [19:41:23]wFMCommunicate OK [19:41:23]wFMCommunicate request_size=10 [19:41:23]MH_SAM_APDU [19:41:23]CAPDU: 80 0D 02 02 05 7E CD 87 F1 F3 [19:41:23]Write to MH i2c: E2 0D 00 71 25 80 0D 02 02 05 00 7E CD 87 F1 F3 00 00 D0 [19:41:23]Write i2c OK [19:41:23]MH_I2C_Read... [19:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:23]Read from MH i2c: E2 [19:41:23]MH_I2C_Read... [19:41:23]Read from MH i2c: E2 03 00 [19:41:23]MH_I2C_Read... [19:41:23]Read from MH i2c: E2 03 00 71 25 00 90 00 0A [19:41:23]RAPDU: 90 00 [19:41:23]wFMCommunicate OK [19:41:23]wFMCommunicate request_size=4 [19:41:23]MH_SAM_APDU [19:41:23]CAPDU: 80 0D 03 02 [19:41:23]Write to MH i2c: E2 08 00 72 25 80 0D 03 02 00 00 00 00 12 [19:41:23]Write i2c OK [19:41:23]MH_I2C_Read... [19:41:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:23]Read from MH i2c: E2 [19:41:23]MH_I2C_Read... [19:41:23]Read from MH i2c: E2 0B 00 [19:41:23]MH_I2C_Read... [19:41:23]Read from MH i2c: E2 0B 00 72 25 00 A9 99 9F 45 A3 E0 0D 8A 90 00 53 [19:41:23]RAPDU: A9 99 9F 45 A3 E0 0D 8A 90 00 [19:41:23]wFMCommunicate OK [19:41:23]SAM_PROTO_SignData done [19:41:23]FM_MakeSignedData done [19:41:23]CreateOFDProtocolMessage [19:41:23]wFMCommunicate request_size=4 [19:41:23]MH_SAM_APDU [19:41:23]CAPDU: 80 11 00 00 [19:41:23]Write to MH i2c: E2 08 00 73 25 80 11 00 00 00 00 00 00 12 [19:41:23]Write i2c OK [19:41:23]MH_I2C_Read... [19:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:23]Read from MH i2c: E2 [19:41:23]MH_I2C_Read... [19:41:23]Read from MH i2c: E2 17 00 [19:41:23]MH_I2C_Read... [19:41:23]Read from MH i2c: E2 17 00 73 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 64 [19:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:41:23]wFMCommunicate OK [19:41:23]CreateOFDProtocolMessage done [19:41:23]OFDSenderStorePacket 112058 [19:41:23]StoreOFDPacket docnum=112058 [19:41:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FA E5 07 01 BA 11 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 E2 00 00 00 F4 03 04 00 6A D7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B5 01 00 35 04 06 00 CD 7E CD 87 F1 F3 A9 99 9F 45 A3 E0 0D 8A [19:41:23]CheckFolder [19:41:23]dirname=/storage/ofd_packets [19:41:23]CheckFolder done [19:41:23]ProducePacketName [19:41:23]name=ofd_packets/00112058 [19:41:23]NVStorageSaveData ofd_packets/00112058 [19:41:23]File name is /storage/ofd_packets/00112058 [19:41:23]Write 301 bytes [19:41:23]NVStorageSaveData done [19:41:23]OFDSenderStorePacket done [19:41:23]KKMCreateOFDPacket done [19:41:23]NVStorageSaveData kkm_last_timestamp [19:41:23]File name is /storage/kkm_last_timestamp [19:41:23]Write 4 bytes [19:41:23]NVStorageSaveData done [19:41:23]ExternCall_PrintAddStr [19:41:23]wPrintStart [19:41:23]Write to MH i2c: 01 00 00 74 25 99 [19:41:23]Write i2c OK [19:41:23]MH_I2C_Read... [19:41:23]Read from MH i2c: 01 [19:41:23]MH_I2C_Read... [19:41:23]Read from MH i2c: 01 07 00 [19:41:23]MH_I2C_Read... [19:41:23]Read from MH i2c: 01 07 00 74 25 00 00 00 00 00 FF 0F AE [19:41:23]RasterBufferAndPrint [19:41:23]line 小褔械褌 N : (1)320714 [19:41:23]line 袠袧袧: 02508201610067 [19:41:23]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:41:23]line 袩袪袨袛袗袞袗 [19:41:23]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:41:23]line 孝芯胁邪褉: 2710124130 [19:41:23]line 袗懈-92-袣-5 [19:41:23]line 9.040 * 66.40 [19:41:23]line = 600.26 [19:41:23]line 袧袛小 12% 袧小袩 1% [19:41:23]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:41:23]line 袨袣袪校袚袥袝袧袠袝: -0.26 [19:41:23]line 袠孝袨袚袨: 600.00 [19:41:23]line 袙薪械褋械薪芯: 600.00 [19:41:23]line 小袛袗效袗: 0.00 [19:41:23]line 袧小袩 1% : 5.31 [19:41:23]line 袧袛小 12% : 63.74 [19:41:23]line 袧邪谢懈褔薪褘屑懈: 600.00 [19:41:23]line 袘械蟹薪邪谢.: 0.00 [19:41:23]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:41:23]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:41:23]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:41:23]line 效械泻 226 21.06.2024 19:41 [19:41:23]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:41:23]line 袟袧袦: 0300000198 [19:41:23]line 袪袧袦: 0000000000092771 [19:41:23]line 袙械褉褋懈褟 袣袣袦: 001 [19:41:23]line 肖袦: 0000000000875083 [19:41:23]line 肖袛: 112058 [19:41:23]line 肖袩袛: 225944497811955 [19:41:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T194130&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112058&fm=225944497811955&tin=02508201610067®Number=0000000000092771&sum=60000 [19:41:23]OFD Sender: Processing packet 112058 [packets to send 38, broken 37] [19:41:23]ProducePacketName [19:41:23]name=ofd_packets/00112058 [19:41:23]OFD Sender: To server: 嚂鰌G, [19:41:23]CommunicateWithHost lk.salyk.kg:30040 [19:41:23]ConnectInit lk.salyk.kg [19:41:23]written 0, free lines is 4095 [19:41:23]Connected sock=10 [19:41:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FA E5 07 01 BA 11 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 E2 00 00 00 F4 03 04 00 6A D7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B5 01 00 35 04 06 00 CD 7E CD 87 F1 F3 A9 99 9F 45 A3 E0 0D 8A [19:41:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A3 E3 47 00 89 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 30 38 37 35 30 38 33 10 04 04 00 BA B5 01 00 F4 03 04 00 8C 6E 75 66 B6 04 01 00 00 DC E8 6C E9 EF 3A ED 21 [19:41:23]CommunicateWithHost err = 0 [19:41:23]CheckOFDResponse [19:41:23]1017 (14) - 77093643461234 [19:41:23]1041 (16) - 0000000000875083 [19:41:23]1040 (4) - 112058 [19:41:23]1012 (4) - 21.06.2024 12:14 [19:41:23]1206 (1) - 0 [19:41:23]OFD Sender: Remove packet 112058 [19:41:23]ProducePacketName [19:41:23]name=ofd_packets/00112058 [19:41:23]NVStorageDeleteData [19:41:24]Write to MH i2c: 01 00 00 9F 25 C4 [19:41:24]Write i2c OK [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: 01 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: 01 07 00 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: 01 07 00 9F 25 00 00 00 00 00 D8 0C AF [19:41:24]RasterBufferAndPrint [19:41:24]line [19:41:24]line [19:41:24]line [19:41:24]line [19:41:24]line [19:41:24]written 0, free lines is 3295 [19:41:24]MH_Cut [19:41:24]Write to MH i2c: D1 01 00 A6 25 01 9D [19:41:24]Write i2c OK [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: D1 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: D1 01 00 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: D1 01 00 A6 25 00 9C [19:41:24]Write to MH i2c: 01 00 00 A7 25 CC [19:41:24]Write i2c OK [19:41:24]MH_I2C_Read... [19:41:24]OFD Sender: No OFD packet to send [19:41:24]*** Cut start [19:41:24]*** Partial cut [19:41:24]*** CUTSNS_PIN = 1 [19:41:24]*** CUTSNS_PIN = 0 [19:41:24]*** Brake cut motor [19:41:25]Read from MH i2c: 01 [19:41:25]MH_I2C_Read... [19:41:25]*** Stop cut motor [19:41:25]*** Cut end [19:41:25]Read from MH i2c: 01 07 00 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: 01 07 00 A7 25 00 00 00 00 00 FF 0F E1 [19:41:25]process_action close_receipt done [19:41:25]requested_data is exist [19:41:25]produce_requested_data [19:41:25]requested_item fm.sn is exist - process it [19:41:25]wFMCommunicate request_size=4 [19:41:25]MH_SAM_APDU [19:41:25]CAPDU: 80 11 00 00 [19:41:25]Write to MH i2c: E2 08 00 A8 25 80 11 00 00 00 00 00 00 47 [19:41:25]Write i2c OK [19:41:25]MH_I2C_Read... [19:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:25]Read from MH i2c: E2 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 17 00 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 17 00 A8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 99 [19:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:41:25]wFMCommunicate OK [19:41:25]requested_item fd.num is exist - process it [19:41:25]SAM_PROTO_GetFieldsCounters [19:41:25]wFMCommunicate request_size=4 [19:41:25]MH_SAM_APDU [19:41:25]CAPDU: 80 13 00 00 [19:41:25]Write to MH i2c: E2 08 00 A9 25 80 13 00 00 00 00 00 00 4A [19:41:25]Write i2c OK [19:41:25]MH_I2C_Read... [19:41:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:25]Read from MH i2c: E2 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 62 00 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 62 00 A9 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [19:41:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:25]wFMCommunicate OK [19:41:25]SAM_PROTO_GetFieldsCounters done [19:41:25]requested_item shift.num is exist - process it [19:41:25]requested_item shift.opened is exist - process it [19:41:25]req_shift_opened [19:41:25]FM_GetShiftState [19:41:25]SAM_PROTO_GetShiftState [19:41:25]wFMCommunicate request_size=4 [19:41:25]MH_SAM_APDU [19:41:25]CAPDU: 80 13 01 00 [19:41:25]Write to MH i2c: E2 08 00 AA 25 80 13 01 00 00 00 00 00 4C [19:41:25]Write i2c OK [19:41:25]MH_I2C_Read... [19:41:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:25]Read from MH i2c: E2 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 0E 00 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 0E 00 AA 25 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C9 [19:41:25]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:41:25]wFMCommunicate OK [19:41:25]SAM_PROTO_GetShiftState done [19:41:25]FM_GetShiftState done [19:41:25]req_shift_opened done [19:41:25]requested_item shift.open_date is exist - process it [19:41:25]req_shift_open_date [19:41:25]req_shift_open_date done [19:41:25]produce_requested_data done [19:41:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112058,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:41:25]process_action_free close_receipt [19:41:25]json_value_free [19:41:25]json_value_free done [19:41:25]process_json_proto returns [19:41:25]Send response to host [19:41:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112058,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:41:25]free response buf [19:41:25]execute_script done [19:41:25]execute_script returns [19:41:25]free content buf [19:41:25]Sock 9.Close socket [19:41:25]Sock 9.Thread stoped [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]accept exits with 7 [19:44:34]New connection [19:44:34]New thread 3066731876 created [19:44:34]Thread 3066875236 joined [19:44:34]Waiting for new connection... [19:44:34] Sock 7.Parse request [19:44:34]Sock 7.Check first char [19:44:34]Sock 7.First char is OK [19:44:34]request: POST /json_proto HTTP/1.0 [19:44:34]Method: POST [19:44:34]URL: /json_proto [19:44:34]Method is POST - this is cgi request [19:44:34]url: /json_proto [19:44:34]query_string will be loaded in cgi processing [19:44:34]execute_cgi json_proto POST (null) [19:44:34]execute_cgi path=json_proto method=POST [19:44:34]POST find Content-Length [19:44:34]Host: 172.17.59.68:8080 [19:44:34]Content-Length: 1198 [19:44:34]Content-Type: application/json [19:44:34] [19:44:34]POST finish read [19:44:34]Found Content-Length = 1198 [19:44:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320715\u000A21.06.2024 18:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 65.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4738.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:34]execute_script... [19:44:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320715\u000A21.06.2024 18:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 65.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4738.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:34]POST & json_proto [19:44:34]process_json_proto [19:44:34]json parsed OK: [19:44:34]protocol is kg_v1.0 [19:44:34]action value=print_text [19:44:34]process_action print_text [19:44:34]cmd_print_text [19:44:34]ExternCall_PrintAddStr [19:44:34]wPrintStart [19:44:34]Write to MH i2c: 01 00 00 AB 25 D0 [19:44:34]Write i2c OK [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: 01 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: 01 07 00 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: 01 07 00 AB 25 00 00 00 00 00 FF 0F E5 [19:44:34]RasterBufferAndPrint [19:44:34]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [19:44:34]line 袗袟小 65 [19:44:34]line 袩邪褉褌薪械褉 薪械褎褌褜 [19:44:34]line 02508201610067 [19:44:34]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [19:44:34]line 小褔械褌 N : (1)320715 [19:44:34]line 21.06.2024 18:11 [19:44:34]line 袩袪袨袛袗袞袗 [19:44:34]line 孝袪袣 (袦袪袣, 袚袧袣): 22 [19:44:34]line 袙懈写 袚小袦 : 2710194210 [19:44:34]line 袛孝-袣-5 [19:44:34]line 65.000 x 72.90 [19:44:34]line 袠孝袨袚: 4738.50 [19:44:34]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [19:44:34]line 02996 [19:44:34]line ______________________ [19:44:34]line (锌芯写锌懈褋褜) [19:44:34]written 0, free lines is 4095 [19:44:34]Write to MH i2c: 01 00 00 BF 25 E4 [19:44:34]Write i2c OK [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: 01 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: 01 07 00 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: 01 07 00 BF 25 00 00 00 00 00 11 0E 0A [19:44:34]RasterBufferAndPrint [19:44:34]line [19:44:34]line [19:44:34]line [19:44:34]line [19:44:34]line [19:44:34]written 0, free lines is 3602 [19:44:34]MH_Cut [19:44:34]Write to MH i2c: D1 01 00 C6 25 01 BD [19:44:34]Write i2c OK [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: D1 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: D1 01 00 [19:44:34]MH_I2C_Read... [19:44:34]Read from MH i2c: D1 01 00 C6 25 00 BC [19:44:34]Write to MH i2c: 01 00 00 C7 25 EC [19:44:34]Write i2c OK [19:44:34]MH_I2C_Read... [19:44:34]OFD Sender: No OFD packet to send [19:44:34]*** Cut start [19:44:34]*** Partial cut [19:44:34]*** CUTSNS_PIN = 1 [19:44:34]*** CUTSNS_PIN = 0 [19:44:35]*** Brake cut motor [19:44:35]Read from MH i2c: 01 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: 01 07 00 [19:44:35]MH_I2C_Read... [19:44:35]*** Stop cut motor [19:44:35]*** Cut end [19:44:35]Read from MH i2c: 01 07 00 C7 25 00 00 00 00 00 FF 0F 01 [19:44:35]process_action print_text done [19:44:35]requested_data is exist [19:44:35]produce_requested_data [19:44:35]requested_item fm.sn is exist - process it [19:44:35]wFMCommunicate request_size=4 [19:44:35]MH_SAM_APDU [19:44:35]CAPDU: 80 11 00 00 [19:44:35]Write to MH i2c: E2 08 00 C8 25 80 11 00 00 00 00 00 00 67 [19:44:35]Write i2c OK [19:44:35]MH_I2C_Read... [19:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:35]Read from MH i2c: E2 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: E2 17 00 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: E2 17 00 C8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B9 [19:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:44:35]wFMCommunicate OK [19:44:35]requested_item fd.num is exist - process it [19:44:35]SAM_PROTO_GetFieldsCounters [19:44:35]wFMCommunicate request_size=4 [19:44:35]MH_SAM_APDU [19:44:35]CAPDU: 80 13 00 00 [19:44:35]Write to MH i2c: E2 08 00 C9 25 80 13 00 00 00 00 00 00 6A [19:44:35]Write i2c OK [19:44:35]MH_I2C_Read... [19:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:35]Read from MH i2c: E2 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: E2 62 00 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: E2 62 00 C9 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [19:44:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:35]wFMCommunicate OK [19:44:35]SAM_PROTO_GetFieldsCounters done [19:44:35]requested_item shift.num is exist - process it [19:44:35]requested_item shift.opened is exist - process it [19:44:35]req_shift_opened [19:44:35]FM_GetShiftState [19:44:35]SAM_PROTO_GetShiftState [19:44:35]wFMCommunicate request_size=4 [19:44:35]MH_SAM_APDU [19:44:35]CAPDU: 80 13 01 00 [19:44:35]Write to MH i2c: E2 08 00 CA 25 80 13 01 00 00 00 00 00 6C [19:44:35]Write i2c OK [19:44:35]MH_I2C_Read... [19:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:35]Read from MH i2c: E2 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: E2 0E 00 [19:44:35]MH_I2C_Read... [19:44:35]Read from MH i2c: E2 0E 00 CA 25 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E9 [19:44:35]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:44:35]wFMCommunicate OK [19:44:35]SAM_PROTO_GetShiftState done [19:44:35]FM_GetShiftState done [19:44:35]req_shift_opened done [19:44:35]requested_item shift.open_date is exist - process it [19:44:35]req_shift_open_date [19:44:35]req_shift_open_date done [19:44:35]produce_requested_data done [19:44:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112058,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:44:35]process_action_free print_text [19:44:35]json_value_free [19:44:35]json_value_free done [19:44:35]process_json_proto returns [19:44:35]Send response to host [19:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112058,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:44:35]free response buf [19:44:35]execute_script done [19:44:35]execute_script returns [19:44:35]free content buf [19:44:35]Sock 7.Close socket [19:44:35]Sock 7.Thread stoped [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:46]accept exits with 9 [19:44:46]New connection [19:44:46]New thread 3066875236 created [19:44:46]Thread 3066731876 joined [19:44:46]Waiting for new connection... [19:44:46] Sock 9.Parse request [19:44:46]Sock 9.Check first char [19:44:46]Sock 9.First char is OK [19:44:46]request: POST /json_proto HTTP/1.0 [19:44:46]Method: POST [19:44:46]URL: /json_proto [19:44:46]Method is POST - this is cgi request [19:44:46]url: /json_proto [19:44:46]query_string will be loaded in cgi processing [19:44:46]execute_cgi json_proto POST (null) [19:44:46]execute_cgi path=json_proto method=POST [19:44:46]POST find Content-Length [19:44:46]Host: 172.17.59.68:8080 [19:44:46]Content-Length: 682 [19:44:46]Content-Type: application/json [19:44:46] [19:44:46]POST finish read [19:44:46]Found Content-Length = 682 [19:44:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:44:46]execute_script... [19:44: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)320716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:44:46]POST & json_proto [19:44:46]process_json_proto [19:44:46]json parsed OK: [19:44:46]protocol is kg_v1.0 [19:44:46]action value=close_receipt [19:44:46]process_action close_receipt [19:44:46]cmd_close_receipt [19:44:46]MH_GetDate [19:44:46]Write to MH i2c: F0 00 00 CB 25 DF [19:44:46]Write i2c OK [19:44:46]MH_I2C_Read... [19:44:46]Read from MH i2c: F0 [19:44:46]MH_I2C_Read... [19:44:46]Read from MH i2c: F0 09 00 [19:44:46]MH_I2C_Read... [19:44:46]Read from MH i2c: F0 09 00 CB 25 00 36 D8 75 66 BC EC 60 65 3E [19:44:46]GetLastDocTimeStamp 1718998890 [19:44:46]current date 1718999094 [19:44:46]FM_GetShiftState [19:44:46]SAM_PROTO_GetShiftState [19:44:46]wFMCommunicate request_size=4 [19:44:46]MH_SAM_APDU [19:44:46]CAPDU: 80 13 01 00 [19:44:46]Write to MH i2c: E2 08 00 CC 25 80 13 01 00 00 00 00 00 6E [19:44:46]Write i2c OK [19:44:46]MH_I2C_Read... [19:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:46]Read from MH i2c: E2 [19:44:46]MH_I2C_Read... [19:44:46]Read from MH i2c: E2 0E 00 [19:44:46]MH_I2C_Read... [19:44:46]Read from MH i2c: E2 0E 00 CC 25 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 EB [19:44:46]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:44:46]wFMCommunicate OK [19:44:46]SAM_PROTO_GetShiftState done [19:44:46]FM_GetShiftState done [19:44:46]opened in 1718933695 [19:44:46]opened+sec_in_day 1719020095 [19:44:46]quantity*price = 100064 [19:44:46]sum+1 = 100066 [19:44:46]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 227 21.06.2024 19:44 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112059 肖袩袛: 234651388318266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T194455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112059&fm=234651388318266&tin=02508201610067®Number=0000000000092771&sum=100000 [19:44:47]StoreToDocumentArchive [19:44:47]shift 390 fd 112059 [19:44:47]save to /storage/0390/doc_00112059 [19:44:47]save last doc name /storage/0390/doc_00112059 to /storage/kkm_last_doc_name [19:44:47]save OK [19:44:47]Clear old archive folders... [19:44:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:47]tlvbuf is 003527D0 [19:44:47]SAM_PROTO_ClearQueue [19:44:47]wFMCommunicate request_size=4 [19:44:47]MH_SAM_APDU [19:44:47]CAPDU: 80 09 00 00 [19:44:47]Write to MH i2c: E2 08 00 D9 25 80 09 00 00 00 00 00 00 70 [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:47]Read from MH i2c: E2 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 03 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 03 00 D9 25 00 90 00 72 [19:44:47]RAPDU: 90 00 [19:44:47]wFMCommunicate OK [19:44:47]SAM_PROTO_ClearQueue done [19:44:47]KKMCreateOFDPacket [19:44:47]OFDProtocolAddRootSTLVToBuf [19:44:47]FM_MakeSignedData [19:44:47]FM_MakeSignedData [19:44:47]SAM_PROTO_SignData [19:44:47]wFMCommunicate request_size=4 [19:44:47]MH_SAM_APDU [19:44:47]CAPDU: 80 0D 01 02 [19:44:47]Write to MH i2c: E2 08 00 DA 25 80 0D 01 02 00 00 00 00 78 [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:47]Read from MH i2c: E2 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 03 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 03 00 DA 25 00 90 00 73 [19:44:47]RAPDU: 90 00 [19:44:47]wFMCommunicate OK [19:44:47]wFMCommunicate request_size=255 [19:44:47]MH_SAM_APDU [19:44: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 E3 00 00 00 F4 03 04 00 37 D8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B5 01 00 35 04 06 00 D5 [19:44:47]Write to MH i2c: E2 02 01 DB 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 E3 00 00 00 F4 03 04 00 37 D8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B5 01 00 35 04 06 00 D5 00 00 16 [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:47]Read from MH i2c: E2 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 03 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 03 00 DB 25 00 90 00 74 [19:44:47]RAPDU: 90 00 [19:44:47]wFMCommunicate OK [19:44:47]wFMCommunicate request_size=10 [19:44:47]MH_SAM_APDU [19:44:47]CAPDU: 80 0D 02 02 05 6A 08 A5 92 3A [19:44:47]Write to MH i2c: E2 0D 00 DC 25 80 0D 02 02 05 00 6A 08 A5 92 3A 00 00 68 [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:47]Read from MH i2c: E2 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 03 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 03 00 DC 25 00 90 00 75 [19:44:47]RAPDU: 90 00 [19:44:47]wFMCommunicate OK [19:44:47]wFMCommunicate request_size=4 [19:44:47]MH_SAM_APDU [19:44:47]CAPDU: 80 0D 03 02 [19:44:47]Write to MH i2c: E2 08 00 DD 25 80 0D 03 02 00 00 00 00 7D [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:47]Read from MH i2c: E2 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 0B 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 0B 00 DD 25 00 B9 00 2E 73 56 BE 69 B8 90 00 0D [19:44:47]RAPDU: B9 00 2E 73 56 BE 69 B8 90 00 [19:44:47]wFMCommunicate OK [19:44:47]SAM_PROTO_SignData done [19:44:47]FM_MakeSignedData done [19:44:47]CreateOFDProtocolMessage [19:44:47]wFMCommunicate request_size=4 [19:44:47]MH_SAM_APDU [19:44:47]CAPDU: 80 11 00 00 [19:44:47]Write to MH i2c: E2 08 00 DE 25 80 11 00 00 00 00 00 00 7D [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:47]Read from MH i2c: E2 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 17 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 17 00 DE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CF [19:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:44:47]wFMCommunicate OK [19:44:47]CreateOFDProtocolMessage done [19:44:47]OFDSenderStorePacket 112059 [19:44:47]StoreOFDPacket docnum=112059 [19:44:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E6 63 07 01 1C 54 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 E3 00 00 00 F4 03 04 00 37 D8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B5 01 00 35 04 06 00 D5 6A 08 A5 92 3A B9 00 2E 73 56 BE 69 B8 [19:44:47]CheckFolder [19:44:47]dirname=/storage/ofd_packets [19:44:47]CheckFolder done [19:44:47]ProducePacketName [19:44:47]name=ofd_packets/00112059 [19:44:47]NVStorageSaveData ofd_packets/00112059 [19:44:47]File name is /storage/ofd_packets/00112059 [19:44:47]Write 301 bytes [19:44:47]NVStorageSaveData done [19:44:47]OFDSenderStorePacket done [19:44:47]KKMCreateOFDPacket done [19:44:47]NVStorageSaveData kkm_last_timestamp [19:44:47]File name is /storage/kkm_last_timestamp [19:44:47]Write 4 bytes [19:44:47]NVStorageSaveData done [19:44:47]ExternCall_PrintAddStr [19:44:47]wPrintStart [19:44:47]Write to MH i2c: 01 00 00 DF 25 04 [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: 01 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: 01 07 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: 01 07 00 DF 25 00 00 00 00 00 FF 0F 19 [19:44:47]RasterBufferAndPrint [19:44:47]line 小褔械褌 N : (1)320716 [19:44:47]line 袠袧袧: 02508201610067 [19:44:47]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:44:47]line 袩袪袨袛袗袞袗 [19:44:47]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:44:47]line 孝芯胁邪褉: 2710124130 [19:44:47]line 袗懈-92-袣-5 [19:44:47]line 15.070 * 66.40 [19:44:47]line = 1000.65 [19:44:47]line 袧袛小 12% 袧小袩 1% [19:44:47]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:44:47]line 袨袣袪校袚袥袝袧袠袝: -0.65 [19:44:47]line 袠孝袨袚袨: 1000.00 [19:44:47]line 袙薪械褋械薪芯: 1000.00 [19:44:47]line 小袛袗效袗: 0.00 [19:44:47]line 袧小袩 1% : 8.85 [19:44:47]line 袧袛小 12% : 106.26 [19:44:47]line 袧邪谢懈褔薪褘屑懈: 1000.00 [19:44:47]line 袘械蟹薪邪谢.: 0.00 [19:44:47]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:44:47]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:44:47]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:44:47]line 效械泻 227 21.06.2024 19:44 [19:44:47]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:44:47]line 袟袧袦: 0300000198 [19:44:47]line 袪袧袦: 0000000000092771 [19:44:47]line 袙械褉褋懈褟 袣袣袦: 001 [19:44:47]line 肖袦: 0000000000875083 [19:44:47]line 肖袛: 112059 [19:44:47]line 肖袩袛: 234651388318266 [19:44:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T194455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112059&fm=234651388318266&tin=02508201610067®Number=0000000000092771&sum=100000 [19:44:48]OFD Sender: Processing packet 112059 [packets to send 38, broken 37] [19:44:48]ProducePacketName [19:44:48]name=ofd_packets/00112059 [19:44:48]OFD Sender: To server: 嚂鰌G, [19:44:48]CommunicateWithHost lk.salyk.kg:30040 [19:44:48]ConnectInit lk.salyk.kg [19:44:48]written 0, free lines is 4095 [19:44:48]Connected sock=10 [19:44:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E6 63 07 01 1C 54 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 E3 00 00 00 F4 03 04 00 37 D8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B5 01 00 35 04 06 00 D5 6A 08 A5 92 3A B9 00 2E 73 56 BE 69 B8 [19:44:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0E C6 47 00 8C 1D 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 30 38 37 35 30 38 33 10 04 04 00 BB B5 01 00 F4 03 04 00 59 6F 75 66 B6 04 01 00 00 4E BF 15 C6 2D 92 10 68 [19:44:48]CommunicateWithHost err = 0 [19:44:48]CheckOFDResponse [19:44:48]1017 (14) - 77093643461234 [19:44:48]1041 (16) - 0000000000875083 [19:44:48]1040 (4) - 112059 [19:44:48]1012 (4) - 21.06.2024 12:17 [19:44:48]1206 (1) - 0 [19:44:48]OFD Sender: Remove packet 112059 [19:44:48]ProducePacketName [19:44:48]name=ofd_packets/00112059 [19:44:48]NVStorageDeleteData [19:44:48]Write to MH i2c: 01 00 00 0A 26 30 [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: 01 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: 01 07 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: 01 07 00 0A 26 00 00 00 00 00 ED 0C 30 [19:44:48]RasterBufferAndPrint [19:44:48]line [19:44:48]line [19:44:48]line [19:44:48]line [19:44:48]line [19:44:48]written 0, free lines is 3315 [19:44:48]MH_Cut [19:44:48]Write to MH i2c: D1 01 00 11 26 01 09 [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: D1 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: D1 01 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: D1 01 00 11 26 00 08 [19:44:48]Write to MH i2c: 01 00 00 12 26 38 [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]OFD Sender: No OFD packet to send [19:44:49]*** Cut start [19:44:49]*** Partial cut [19:44:49]*** CUTSNS_PIN = 1 [19:44:49]*** CUTSNS_PIN = 0 [19:44:49]*** Brake cut motor [19:44:49]Read from MH i2c: 01 [19:44:49]MH_I2C_Read... [19:44:49]*** Stop cut motor [19:44:49]*** Cut end [19:44:49]Read from MH i2c: 01 07 00 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: 01 07 00 12 26 00 00 00 00 00 FF 0F 4D [19:44:49]process_action close_receipt done [19:44:49]requested_data is exist [19:44:49]produce_requested_data [19:44:49]requested_item fm.sn is exist - process it [19:44:49]wFMCommunicate request_size=4 [19:44:49]MH_SAM_APDU [19:44:49]CAPDU: 80 11 00 00 [19:44:49]Write to MH i2c: E2 08 00 13 26 80 11 00 00 00 00 00 00 B3 [19:44:49]Write i2c OK [19:44:49]MH_I2C_Read... [19:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:49]Read from MH i2c: E2 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 17 00 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 17 00 13 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 05 [19:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:44:49]wFMCommunicate OK [19:44:49]requested_item fd.num is exist - process it [19:44:49]SAM_PROTO_GetFieldsCounters [19:44:49]wFMCommunicate request_size=4 [19:44:49]MH_SAM_APDU [19:44:49]CAPDU: 80 13 00 00 [19:44:49]Write to MH i2c: E2 08 00 14 26 80 13 00 00 00 00 00 00 B6 [19:44:49]Write i2c OK [19:44:49]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 62 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 62 00 14 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [19:44:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:50]wFMCommunicate OK [19:44:50]SAM_PROTO_GetFieldsCounters done [19:44:50]requested_item shift.num is exist - process it [19:44:50]requested_item shift.opened is exist - process it [19:44:50]req_shift_opened [19:44:50]FM_GetShiftState [19:44:50]SAM_PROTO_GetShiftState [19:44:50]wFMCommunicate request_size=4 [19:44:50]MH_SAM_APDU [19:44:50]CAPDU: 80 13 01 00 [19:44:50]Write to MH i2c: E2 08 00 15 26 80 13 01 00 00 00 00 00 B8 [19:44:50]Write i2c OK [19:44:50]MH_I2C_Read... [19:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:50]Read from MH i2c: E2 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 0E 00 [19:44:50]MH_I2C_Read... [19:44:50]Read from MH i2c: E2 0E 00 15 26 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 35 [19:44:50]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:44:50]wFMCommunicate OK [19:44:50]SAM_PROTO_GetShiftState done [19:44:50]FM_GetShiftState done [19:44:50]req_shift_opened done [19:44:50]requested_item shift.open_date is exist - process it [19:44:50]req_shift_open_date [19:44:50]req_shift_open_date done [19:44:50]produce_requested_data done [19:44:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112059,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:44:50]process_action_free close_receipt [19:44:50]json_value_free [19:44:50]json_value_free done [19:44:50]process_json_proto returns [19:44:50]Send response to host [19:44:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112059,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:44:50]free response buf [19:44:50]execute_script done [19:44:50]execute_script returns [19:44:50]free content buf [19:44:50]Sock 9.Close socket [19:44:50]Sock 9.Thread stoped [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:43]accept exits with 7 [19:45:43]New connection [19:45:43]New thread 3066731876 created [19:45:43]Thread 3066875236 joined [19:45:43]Waiting for new connection... [19:45:43] Sock 7.Parse request [19:45:43]Sock 7.Check first char [19:45:43]Sock 7.First char is OK [19:45:43]request: POST /json_proto HTTP/1.0 [19:45:43]Method: POST [19:45:43]URL: /json_proto [19:45:43]Method is POST - this is cgi request [19:45:43]url: /json_proto [19:45:43]query_string will be loaded in cgi processing [19:45:43]execute_cgi json_proto POST (null) [19:45:43]execute_cgi path=json_proto method=POST [19:45:43]POST find Content-Length [19:45:43]Host: 172.17.59.68:8080 [19:45:43]Content-Length: 1198 [19:45:43]Content-Type: application/json [19:45:43] [19:45:43]POST finish read [19:45:43]Found Content-Length = 1198 [19:45:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320717\u000A21.06.2024 18:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 21.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1530.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:43]execute_script... [19:45:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320717\u000A21.06.2024 18:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 21.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1530.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:43]POST & json_proto [19:45:43]process_json_proto [19:45:43]json parsed OK: [19:45:43]protocol is kg_v1.0 [19:45:43]action value=print_text [19:45:43]process_action print_text [19:45:43]cmd_print_text [19:45:43]ExternCall_PrintAddStr [19:45:43]wPrintStart [19:45:43]Write to MH i2c: 01 00 00 16 26 3C [19:45:43]Write i2c OK [19:45:43]MH_I2C_Read... [19:45:43]Read from MH i2c: 01 [19:45:43]MH_I2C_Read... [19:45:43]Read from MH i2c: 01 07 00 [19:45:43]MH_I2C_Read... [19:45:43]Read from MH i2c: 01 07 00 16 26 00 00 00 00 00 FF 0F 51 [19:45:43]RasterBufferAndPrint [19:45:43]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [19:45:43]line 袗袟小 65 [19:45:43]line 袩邪褉褌薪械褉 薪械褎褌褜 [19:45:43]line 02508201610067 [19:45:43]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [19:45:43]line 小褔械褌 N : (1)320717 [19:45:43]line 21.06.2024 18:12 [19:45:43]line 袩袪袨袛袗袞袗 [19:45:43]line 孝袪袣 (袦袪袣, 袚袧袣): 22 [19:45:43]line 袙懈写 袚小袦 : 2710194210 [19:45:43]line 袛孝-袣-5 [19:45:43]line 21.000 x 72.90 [19:45:43]line 袠孝袨袚: 1530.90 [19:45:43]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [19:45:43]line 02996 [19:45:43]line ______________________ [19:45:43]line (锌芯写锌懈褋褜) [19:45:43]written 0, free lines is 4095 [19:45:44]Write to MH i2c: 01 00 00 2A 26 50 [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: 01 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: 01 07 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: 01 07 00 2A 26 00 00 00 00 00 11 0E 76 [19:45:44]RasterBufferAndPrint [19:45:44]line [19:45:44]line [19:45:44]line [19:45:44]line [19:45:44]line [19:45:44]written 0, free lines is 3602 [19:45:44]MH_Cut [19:45:44]Write to MH i2c: D1 01 00 31 26 01 29 [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: D1 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: D1 01 00 [19:45:44]MH_I2C_Read... [19:45:44]Read from MH i2c: D1 01 00 31 26 00 28 [19:45:44]Write to MH i2c: 01 00 00 32 26 58 [19:45:44]Write i2c OK [19:45:44]MH_I2C_Read... [19:45:44]*** Cut start [19:45:44]*** Partial cut [19:45:44]*** CUTSNS_PIN = 1 [19:45:44]*** CUTSNS_PIN = 0 [19:45:44]*** Brake cut motor [19:45:45]Read from MH i2c: 01 [19:45:45]MH_I2C_Read... [19:45:45]*** Stop cut motor [19:45:45]*** Cut end [19:45:45]Read from MH i2c: 01 07 00 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: 01 07 00 32 26 00 00 00 00 00 FF 0F 6D [19:45:45]process_action print_text done [19:45:45]requested_data is exist [19:45:45]produce_requested_data [19:45:45]requested_item fm.sn is exist - process it [19:45:45]wFMCommunicate request_size=4 [19:45:45]MH_SAM_APDU [19:45:45]CAPDU: 80 11 00 00 [19:45:45]Write to MH i2c: E2 08 00 33 26 80 11 00 00 00 00 00 00 D3 [19:45:45]Write i2c OK [19:45:45]MH_I2C_Read... [19:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:45]Read from MH i2c: E2 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: E2 17 00 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: E2 17 00 33 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 25 [19:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:45:45]wFMCommunicate OK [19:45:45]requested_item fd.num is exist - process it [19:45:45]SAM_PROTO_GetFieldsCounters [19:45:45]wFMCommunicate request_size=4 [19:45:45]MH_SAM_APDU [19:45:45]CAPDU: 80 13 00 00 [19:45:45]Write to MH i2c: E2 08 00 34 26 80 13 00 00 00 00 00 00 D6 [19:45:45]Write i2c OK [19:45:45]MH_I2C_Read... [19:45:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:45]Read from MH i2c: E2 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: E2 62 00 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: E2 62 00 34 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [19:45:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:45]wFMCommunicate OK [19:45:45]SAM_PROTO_GetFieldsCounters done [19:45:45]requested_item shift.num is exist - process it [19:45:45]requested_item shift.opened is exist - process it [19:45:45]req_shift_opened [19:45:45]FM_GetShiftState [19:45:45]SAM_PROTO_GetShiftState [19:45:45]wFMCommunicate request_size=4 [19:45:45]MH_SAM_APDU [19:45:45]CAPDU: 80 13 01 00 [19:45:45]Write to MH i2c: E2 08 00 35 26 80 13 01 00 00 00 00 00 D8 [19:45:45]Write i2c OK [19:45:45]MH_I2C_Read... [19:45:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:45]Read from MH i2c: E2 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: E2 0E 00 [19:45:45]MH_I2C_Read... [19:45:45]Read from MH i2c: E2 0E 00 35 26 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 55 [19:45:45]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:45:45]wFMCommunicate OK [19:45:45]SAM_PROTO_GetShiftState done [19:45:45]FM_GetShiftState done [19:45:45]req_shift_opened done [19:45:45]requested_item shift.open_date is exist - process it [19:45:45]req_shift_open_date [19:45:45]req_shift_open_date done [19:45:45]produce_requested_data done [19:45:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112059,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:45:45]process_action_free print_text [19:45:45]json_value_free [19:45:45]json_value_free done [19:45:45]process_json_proto returns [19:45:45]Send response to host [19:45:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112059,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:45:45]free response buf [19:45:45]execute_script done [19:45:45]execute_script returns [19:45:45]free content buf [19:45:45]Sock 7.Close socket [19:45:45]Sock 7.Thread stoped [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]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:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:20]accept exits with 9 [19:49:20]New connection [19:49:20]New thread 3066875236 created [19:49:20]Thread 3066731876 joined [19:49:20]Waiting for new connection... [19:49:20] Sock 9.Parse request [19:49:20]Sock 9.Check first char [19:49:20]Sock 9.First char is OK [19:49:20]request: POST /json_proto HTTP/1.0 [19:49:20]Method: POST [19:49:20]URL: /json_proto [19:49:20]Method is POST - this is cgi request [19:49:20]url: /json_proto [19:49:20]query_string will be loaded in cgi processing [19:49:20]execute_cgi json_proto POST (null) [19:49:20]execute_cgi path=json_proto method=POST [19:49:20]POST find Content-Length [19:49:20]Host: 172.17.59.68:8080 [19:49:20]Content-Length: 802 [19:49:20]Content-Type: application/json [19:49:20] [19:49:20]POST finish read [19:49:20]Found Content-Length = 802 [19:49:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:20]execute_script... [19:49: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)320718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:20]POST & json_proto [19:49:20]process_json_proto [19:49:20]json parsed OK: [19:49:20]protocol is kg_v1.0 [19:49:20]action value=close_receipt [19:49:20]process_action close_receipt [19:49:20]cmd_close_receipt [19:49:20]MH_GetDate [19:49:20]Write to MH i2c: F0 00 00 36 26 4B [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: F0 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: F0 09 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: F0 09 00 36 26 00 49 D9 75 66 BC EC 60 65 BE [19:49:20]GetLastDocTimeStamp 1718999095 [19:49:20]current date 1718999369 [19:49:20]FM_GetShiftState [19:49:20]SAM_PROTO_GetShiftState [19:49:20]wFMCommunicate request_size=4 [19:49:20]MH_SAM_APDU [19:49:20]CAPDU: 80 13 01 00 [19:49:20]Write to MH i2c: E2 08 00 37 26 80 13 01 00 00 00 00 00 DA [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:20]Read from MH i2c: E2 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: E2 0E 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: E2 0E 00 37 26 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 57 [19:49:20]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:49:20]wFMCommunicate OK [19:49:20]SAM_PROTO_GetShiftState done [19:49:20]FM_GetShiftState done [19:49:20]opened in 1718933695 [19:49:20]opened+sec_in_day 1719020095 [19:49:20]quantity*price = 50009 [19:49:20]sum+1 = 50010 [19:49:20]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 500.09 袧小袩 1% : 4.43 袧袛小 12% : 53.11 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 500.09 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 228 21.06.2024 19:49 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112060 肖袩袛: 91887577693614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T194929&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112060&fm=91887577693614&tin=02508201610067®Number=0000000000092771&sum=50009 [19:49:21]StoreToDocumentArchive [19:49:21]shift 390 fd 112060 [19:49:21]save to /storage/0390/doc_00112060 [19:49:21]save last doc name /storage/0390/doc_00112060 to /storage/kkm_last_doc_name [19:49:21]save OK [19:49:21]Clear old archive folders... [19:49:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:49:21]tlvbuf is 00355390 [19:49:21]SAM_PROTO_ClearQueue [19:49:21]wFMCommunicate request_size=4 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 09 00 00 [19:49:21]Write to MH i2c: E2 08 00 44 26 80 09 00 00 00 00 00 00 DC [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 44 26 00 90 00 DE [19:49:21]RAPDU: 90 00 [19:49:21]wFMCommunicate OK [19:49:21]SAM_PROTO_ClearQueue done [19:49:21]KKMCreateOFDPacket [19:49:21]OFDProtocolAddRootSTLVToBuf [19:49:21]FM_MakeSignedData [19:49:21]FM_MakeSignedData [19:49:21]SAM_PROTO_SignData [19:49:21]wFMCommunicate request_size=4 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 0D 01 02 [19:49:21]Write to MH i2c: E2 08 00 45 26 80 0D 01 02 00 00 00 00 E4 [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 45 26 00 90 00 DF [19:49:21]RAPDU: 90 00 [19:49:21]wFMCommunicate OK [19:49:21]wFMCommunicate request_size=255 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 49 D9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B5 01 00 35 04 06 00 53 92 3E 6D [19:49:21]Write to MH i2c: E2 02 01 46 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 49 D9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B5 01 00 35 04 06 00 53 92 3E 6D 00 00 0A [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 03 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 03 00 46 26 00 90 00 E0 [19:49:22]RAPDU: 90 00 [19:49:22]wFMCommunicate OK [19:49:22]wFMCommunicate request_size=7 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 0D 02 02 02 7D AE [19:49:22]Write to MH i2c: E2 0A 00 47 26 80 0D 02 02 02 00 7D AE 00 00 16 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 03 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 03 00 47 26 00 90 00 E1 [19:49:22]RAPDU: 90 00 [19:49:22]wFMCommunicate OK [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 0D 03 02 [19:49:22]Write to MH i2c: E2 08 00 48 26 80 0D 03 02 00 00 00 00 E9 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 0B 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 0B 00 48 26 00 6F AA 78 C9 C1 70 71 A0 90 00 86 [19:49:22]RAPDU: 6F AA 78 C9 C1 70 71 A0 90 00 [19:49:22]wFMCommunicate OK [19:49:22]SAM_PROTO_SignData done [19:49:22]FM_MakeSignedData done [19:49:22]CreateOFDProtocolMessage [19:49:22]wFMCommunicate request_size=4 [19:49:22]MH_SAM_APDU [19:49:22]CAPDU: 80 11 00 00 [19:49:22]Write to MH i2c: E2 08 00 49 26 80 11 00 00 00 00 00 00 E9 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:22]Read from MH i2c: E2 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 17 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: E2 17 00 49 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3B [19:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:49:22]wFMCommunicate OK [19:49:22]CreateOFDProtocolMessage done [19:49:22]OFDSenderStorePacket 112060 [19:49:22]StoreOFDPacket docnum=112060 [19:49:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CB F9 04 01 4C 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 49 D9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B5 01 00 35 04 06 00 53 92 3E 6D 7D AE 6F AA 78 C9 C1 70 71 A0 [19:49:22]CheckFolder [19:49:22]dirname=/storage/ofd_packets [19:49:22]CheckFolder done [19:49:22]ProducePacketName [19:49:22]name=ofd_packets/00112060 [19:49:22]NVStorageSaveData ofd_packets/00112060 [19:49:22]File name is /storage/ofd_packets/00112060 [19:49:22]Write 298 bytes [19:49:22]NVStorageSaveData done [19:49:22]OFDSenderStorePacket done [19:49:22]KKMCreateOFDPacket done [19:49:22]NVStorageSaveData kkm_last_timestamp [19:49:22]File name is /storage/kkm_last_timestamp [19:49:22]Write 4 bytes [19:49:22]NVStorageSaveData done [19:49:22]ExternCall_PrintAddStr [19:49:22]wPrintStart [19:49:22]Write to MH i2c: 01 00 00 4A 26 70 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 4A 26 00 00 00 00 00 FF 0F 85 [19:49:22]RasterBufferAndPrint [19:49:22]line 小褔械褌 N : (1)320718 [19:49:22]line 袠袧袧: 02508201610067 [19:49:22]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:49:22]line 袩袪袨袛袗袞袗 [19:49:22]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [19:49:22]line 孝芯胁邪褉: 2710194210 [19:49:22]line 袛孝-袣-5 [19:49:22]line 6.860 * 72.90 [19:49:22]line = 500.09 [19:49:22]line 袧袛小 12% 袧小袩 1% [19:49:22]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:49:22]line 袠孝袨袚袨: 500.09 [19:49:22]line 袧小袩 1% : 4.43 [19:49:22]line 袧袛小 12% : 53.11 [19:49:22]line 袧邪谢懈褔薪褘屑懈: 0.00 [19:49:22]line 袘械蟹薪邪谢.: 500.09 [19:49:22]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:49:22]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:49:22]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:49:22]line 效械泻 228 21.06.2024 19:49 [19:49:22]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:49:22]line 袟袧袦: 0300000198 [19:49:22]line 袪袧袦: 0000000000092771 [19:49:22]line 袙械褉褋懈褟 袣袣袦: 001 [19:49:22]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [19:49:22]line 肖袦: 0000000000875083 [19:49:22]line 肖袛: 112060 [19:49:22]line 肖袩袛: 91887577693614 [19:49:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T194929&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112060&fm=91887577693614&tin=02508201610067®Number=0000000000092771&sum=50009 [19:49:22]OFD Sender: Processing packet 112060 [packets to send 38, broken 37] [19:49:22]ProducePacketName [19:49:22]name=ofd_packets/00112060 [19:49:22]OFD Sender: To server: 嚂鰌G, [19:49:22]CommunicateWithHost lk.salyk.kg:30040 [19:49:22]ConnectInit lk.salyk.kg [19:49:22]written 0, free lines is 4095 [19:49:22]Connected sock=10 [19:49:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CB F9 04 01 4C 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 49 D9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B5 01 00 35 04 06 00 53 92 3E 6D 7D AE 6F AA 78 C9 C1 70 71 A0 [19:49:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0E E1 47 00 7F 37 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 30 38 37 35 30 38 33 10 04 04 00 BC B5 01 00 F4 03 04 00 6B 70 75 66 B6 04 01 00 00 07 46 7E D3 E4 1D 66 93 [19:49:22]CommunicateWithHost err = 0 [19:49:22]CheckOFDResponse [19:49:22]1017 (14) - 77093643461234 [19:49:22]1041 (16) - 0000000000875083 [19:49:22]1040 (4) - 112060 [19:49:22]1012 (4) - 21.06.2024 12:22 [19:49:22]1206 (1) - 0 [19:49:22]OFD Sender: Remove packet 112060 [19:49:22]ProducePacketName [19:49:22]name=ofd_packets/00112060 [19:49:22]NVStorageDeleteData [19:49:23]Write to MH i2c: 01 00 00 74 26 9A [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 07 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 07 00 74 26 00 00 00 00 00 E9 0C 96 [19:49:23]RasterBufferAndPrint [19:49:23]line [19:49:23]line [19:49:23]line [19:49:23]line [19:49:23]line [19:49:23]written 0, free lines is 3311 [19:49:23]MH_Cut [19:49:23]Write to MH i2c: D1 01 00 7B 26 01 73 [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: D1 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: D1 01 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: D1 01 00 7B 26 00 72 [19:49:23]Write to MH i2c: 01 00 00 7C 26 A2 [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]OFD Sender: No OFD packet to send [19:49:23]*** Cut start [19:49:23]*** Partial cut [19:49:23]*** CUTSNS_PIN = 1 [19:49:23]*** CUTSNS_PIN = 0 [19:49:24]*** Brake cut motor [19:49:24]Read from MH i2c: 01 [19:49:24]MH_I2C_Read... [19:49:24]*** Stop cut motor [19:49:24]*** Cut end [19:49:24]Read from MH i2c: 01 07 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: 01 07 00 7C 26 00 00 00 00 00 FF 0F B7 [19:49:24]process_action close_receipt done [19:49:24]requested_data is exist [19:49:24]produce_requested_data [19:49:24]requested_item fm.sn is exist - process it [19:49:24]wFMCommunicate request_size=4 [19:49:24]MH_SAM_APDU [19:49:24]CAPDU: 80 11 00 00 [19:49:24]Write to MH i2c: E2 08 00 7D 26 80 11 00 00 00 00 00 00 1D [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:24]Read from MH i2c: E2 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 17 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 17 00 7D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6F [19:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:49:24]wFMCommunicate OK [19:49:24]requested_item fd.num is exist - process it [19:49:24]SAM_PROTO_GetFieldsCounters [19:49:24]wFMCommunicate request_size=4 [19:49:24]MH_SAM_APDU [19:49:24]CAPDU: 80 13 00 00 [19:49:24]Write to MH i2c: E2 08 00 7E 26 80 13 00 00 00 00 00 00 20 [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:24]Read from MH i2c: E2 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 62 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 62 00 7E 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [19:49:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:24]wFMCommunicate OK [19:49:24]SAM_PROTO_GetFieldsCounters done [19:49:24]requested_item shift.num is exist - process it [19:49:24]requested_item shift.opened is exist - process it [19:49:24]req_shift_opened [19:49:24]FM_GetShiftState [19:49:24]SAM_PROTO_GetShiftState [19:49:24]wFMCommunicate request_size=4 [19:49:24]MH_SAM_APDU [19:49:24]CAPDU: 80 13 01 00 [19:49:24]Write to MH i2c: E2 08 00 7F 26 80 13 01 00 00 00 00 00 22 [19:49:24]Write i2c OK [19:49:24]MH_I2C_Read... [19:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:24]Read from MH i2c: E2 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 0E 00 [19:49:24]MH_I2C_Read... [19:49:24]Read from MH i2c: E2 0E 00 7F 26 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 9F [19:49:24]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:49:24]wFMCommunicate OK [19:49:24]SAM_PROTO_GetShiftState done [19:49:24]FM_GetShiftState done [19:49:24]req_shift_opened done [19:49:24]requested_item shift.open_date is exist - process it [19:49:24]req_shift_open_date [19:49:24]req_shift_open_date done [19:49:24]produce_requested_data done [19:49:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112060,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:49:24]process_action_free close_receipt [19:49:24]json_value_free [19:49:24]json_value_free done [19:49:24]process_json_proto returns [19:49:24]Send response to host [19:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112060,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:49:24]free response buf [19:49:24]execute_script done [19:49:24]execute_script returns [19:49:24]free content buf [19:49:24]Sock 9.Close socket [19:49:24]Sock 9.Thread stoped [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:35]accept exits with 7 [19:50:35]New connection [19:50:35]New thread 3066731876 created [19:50:35]Thread 3066875236 joined [19:50:35]Waiting for new connection... [19:50:35] Sock 7.Parse request [19:50:35]Sock 7.Check first char [19:50:35]Sock 7.First char is OK [19:50:35]request: POST /json_proto HTTP/1.0 [19:50:35]Method: POST [19:50:35]URL: /json_proto [19:50:35]Method is POST - this is cgi request [19:50:35]url: /json_proto [19:50:35]query_string will be loaded in cgi processing [19:50:35]execute_cgi json_proto POST (null) [19:50:35]execute_cgi path=json_proto method=POST [19:50:35]POST find Content-Length [19:50:35]Host: 172.17.59.68:8080 [19:50:35]Content-Length: 1199 [19:50:35]Content-Type: application/json [19:50:35] [19:50:35]POST finish read [19:50:35]Found Content-Length = 1199 [19:50:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320719\u000A21.06.2024 18:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.540 x 66.40\u000A\u0418\u0422\u041E\u0413: 500.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:35]execute_script... [19:50:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320719\u000A21.06.2024 18:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.540 x 66.40\u000A\u0418\u0422\u041E\u0413: 500.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:35]POST & json_proto [19:50:35]process_json_proto [19:50:35]json parsed OK: [19:50:35]protocol is kg_v1.0 [19:50:35]action value=print_text [19:50:35]process_action print_text [19:50:35]cmd_print_text [19:50:35]ExternCall_PrintAddStr [19:50:35]wPrintStart [19:50:35]Write to MH i2c: 01 00 00 80 26 A6 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 80 26 00 00 00 00 00 FF 0F BB [19:50:35]RasterBufferAndPrint [19:50:35]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [19:50:35]line 袗袟小 65 [19:50:35]line 袩邪褉褌薪械褉 薪械褎褌褜 [19:50:35]line 02508201610067 [19:50:35]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [19:50:35]line 小褔械褌 N : (1)320719 [19:50:35]line 21.06.2024 18:17 [19:50:35]line 袩袪袨袛袗袞袗 [19:50:35]line 孝袪袣 (袦袪袣, 袚袧袣): 11 [19:50:35]line 袙懈写 袚小袦 : 2710124130 [19:50:35]line 袗懈-92-袣-5 [19:50:35]line 7.540 x 66.40 [19:50:35]line 袠孝袨袚: 500.66 [19:50:35]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [19:50:35]line 02996 [19:50:35]line ______________________ [19:50:35]line (锌芯写锌懈褋褜) [19:50:35]written 0, free lines is 4095 [19:50:35]Write to MH i2c: 01 00 00 94 26 BA [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 94 26 00 00 00 00 00 10 0E DF [19:50:35]RasterBufferAndPrint [19:50:35]line [19:50:35]line [19:50:35]line [19:50:35]line [19:50:35]line [19:50:35]written 0, free lines is 3601 [19:50:35]MH_Cut [19:50:35]Write to MH i2c: D1 01 00 9B 26 01 93 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: D1 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: D1 01 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: D1 01 00 9B 26 00 92 [19:50:35]Write to MH i2c: 01 00 00 9C 26 C2 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** Cut start [19:50:35]*** Partial cut [19:50:35]*** CUTSNS_PIN = 1 [19:50:35]*** CUTSNS_PIN = 0 [19:50:35]*** Brake cut motor [19:50:36]Read from MH i2c: 01 [19:50:36]MH_I2C_Read... [19:50:36]*** Stop cut motor [19:50:36]*** Cut end [19:50:36]Read from MH i2c: 01 07 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: 01 07 00 9C 26 00 00 00 00 00 FF 0F D7 [19:50:36]process_action print_text done [19:50:36]requested_data is exist [19:50:36]produce_requested_data [19:50:36]requested_item fm.sn is exist - process it [19:50:36]wFMCommunicate request_size=4 [19:50:36]MH_SAM_APDU [19:50:36]CAPDU: 80 11 00 00 [19:50:36]Write to MH i2c: E2 08 00 9D 26 80 11 00 00 00 00 00 00 3D [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:36]Read from MH i2c: E2 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 17 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 17 00 9D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8F [19:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:50:36]wFMCommunicate OK [19:50:36]requested_item fd.num is exist - process it [19:50:36]SAM_PROTO_GetFieldsCounters [19:50:36]wFMCommunicate request_size=4 [19:50:36]MH_SAM_APDU [19:50:36]CAPDU: 80 13 00 00 [19:50:36]Write to MH i2c: E2 08 00 9E 26 80 13 00 00 00 00 00 00 40 [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:36]Read from MH i2c: E2 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 62 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 62 00 9E 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [19:50:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:36]wFMCommunicate OK [19:50:36]SAM_PROTO_GetFieldsCounters done [19:50:36]requested_item shift.num is exist - process it [19:50:36]requested_item shift.opened is exist - process it [19:50:36]req_shift_opened [19:50:36]FM_GetShiftState [19:50:36]SAM_PROTO_GetShiftState [19:50:36]wFMCommunicate request_size=4 [19:50:36]MH_SAM_APDU [19:50:36]CAPDU: 80 13 01 00 [19:50:36]Write to MH i2c: E2 08 00 9F 26 80 13 01 00 00 00 00 00 42 [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:36]Read from MH i2c: E2 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 0E 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 0E 00 9F 26 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 BF [19:50:36]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:50:36]wFMCommunicate OK [19:50:36]SAM_PROTO_GetShiftState done [19:50:36]FM_GetShiftState done [19:50:36]req_shift_opened done [19:50:36]requested_item shift.open_date is exist - process it [19:50:36]req_shift_open_date [19:50:36]req_shift_open_date done [19:50:36]produce_requested_data done [19:50:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112060,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:50:36]process_action_free print_text [19:50:36]json_value_free [19:50:36]json_value_free done [19:50:36]process_json_proto returns [19:50:36]Send response to host [19:50:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112060,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:50:36]free response buf [19:50:36]execute_script done [19:50:36]execute_script returns [19:50:36]free content buf [19:50:36]Sock 7.Close socket [19:50:36]Sock 7.Thread stoped [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:01]accept exits with 9 [19:52:01]New connection [19:52:01]New thread 3066875236 created [19:52:01]Thread 3066731876 joined [19:52:01]Waiting for new connection... [19:52:01] Sock 9.Parse request [19:52:01]Sock 9.Check first char [19:52:01]Sock 9.First char is OK [19:52:01]request: POST /json_proto HTTP/1.0 [19:52:01]Method: POST [19:52:01]URL: /json_proto [19:52:01]Method is POST - this is cgi request [19:52:01]url: /json_proto [19:52:01]query_string will be loaded in cgi processing [19:52:01]execute_cgi json_proto POST (null) [19:52:01]execute_cgi path=json_proto method=POST [19:52:01]POST find Content-Length [19:52:01]Host: 172.17.59.68:8080 [19:52:01]Content-Length: 677 [19:52:01]Content-Type: application/json [19:52:01] [19:52:01]POST finish read [19:52:01]Found Content-Length = 677 [19:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [19:52:01]execute_script... [19:52:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [19:52:01]POST & json_proto [19:52:01]process_json_proto [19:52:01]json parsed OK: [19:52:01]protocol is kg_v1.0 [19:52:01]action value=close_receipt [19:52:01]process_action close_receipt [19:52:01]cmd_close_receipt [19:52:01]MH_GetDate [19:52:01]Write to MH i2c: F0 00 00 A0 26 B5 [19:52:01]Write i2c OK [19:52:01]MH_I2C_Read... [19:52:01]Read from MH i2c: F0 [19:52:01]MH_I2C_Read... [19:52:01]Read from MH i2c: F0 09 00 [19:52:01]MH_I2C_Read... [19:52:01]Read from MH i2c: F0 09 00 A0 26 00 EA D9 75 66 BC EC 60 65 C9 [19:52:01]GetLastDocTimeStamp 1718999369 [19:52:01]current date 1718999530 [19:52:01]FM_GetShiftState [19:52:01]SAM_PROTO_GetShiftState [19:52:01]wFMCommunicate request_size=4 [19:52:01]MH_SAM_APDU [19:52:01]CAPDU: 80 13 01 00 [19:52:01]Write to MH i2c: E2 08 00 A1 26 80 13 01 00 00 00 00 00 44 [19:52:01]Write i2c OK [19:52:01]MH_I2C_Read... [19:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:01]Read from MH i2c: E2 [19:52:01]MH_I2C_Read... [19:52:01]Read from MH i2c: E2 0E 00 [19:52:01]MH_I2C_Read... [19:52:01]Read from MH i2c: E2 0E 00 A1 26 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C1 [19:52:01]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:52:01]wFMCommunicate OK [19:52:01]SAM_PROTO_GetShiftState done [19:52:01]FM_GetShiftState done [19:52:01]opened in 1718933695 [19:52:01]opened+sec_in_day 1719020095 [19:52:01]quantity*price = 50065 [19:52:01]sum+1 = 50067 [19:52:01]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 229 21.06.2024 19:52 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112061 肖袩袛: 142795255221779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T195210&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112061&fm=142795255221779&tin=02508201610067®Number=0000000000092771&sum=50000 [19:52:02]StoreToDocumentArchive [19:52:02]shift 390 fd 112061 [19:52:02]save to /storage/0390/doc_00112061 [19:52:02]save last doc name /storage/0390/doc_00112061 to /storage/kkm_last_doc_name [19:52:02]save OK [19:52:02]Clear old archive folders... [19:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:02]tlvbuf is B6E95B80 [19:52:02]SAM_PROTO_ClearQueue [19:52:02]wFMCommunicate request_size=4 [19:52:02]MH_SAM_APDU [19:52:02]CAPDU: 80 09 00 00 [19:52:02]Write to MH i2c: E2 08 00 AE 26 80 09 00 00 00 00 00 00 46 [19:52:02]Write i2c OK [19:52:02]MH_I2C_Read... [19:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:02]Read from MH i2c: E2 [19:52:02]MH_I2C_Read... [19:52:02]Read from MH i2c: E2 03 00 [19:52:02]MH_I2C_Read... [19:52:02]Read from MH i2c: E2 03 00 AE 26 00 90 00 48 [19:52:02]RAPDU: 90 00 [19:52:02]wFMCommunicate OK [19:52:02]SAM_PROTO_ClearQueue done [19:52:02]KKMCreateOFDPacket [19:52:02]OFDProtocolAddRootSTLVToBuf [19:52:02]FM_MakeSignedData [19:52:02]FM_MakeSignedData [19:52:02]SAM_PROTO_SignData [19:52:02]wFMCommunicate request_size=4 [19:52:02]MH_SAM_APDU [19:52:02]CAPDU: 80 0D 01 02 [19:52:02]Write to MH i2c: E2 08 00 AF 26 80 0D 01 02 00 00 00 00 4E [19:52:02]Write i2c OK [19:52:02]MH_I2C_Read... [19:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:02]Read from MH i2c: E2 [19:52:02]MH_I2C_Read... [19:52:02]Read from MH i2c: E2 03 00 [19:52:02]MH_I2C_Read... [19:52:02]Read from MH i2c: E2 03 00 AF 26 00 90 00 49 [19:52:02]RAPDU: 90 00 [19:52:02]wFMCommunicate OK [19:52:02]wFMCommunicate request_size=255 [19:52:02]MH_SAM_APDU [19:52:02]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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E5 00 00 00 F4 03 04 00 EA D9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B5 01 00 35 04 06 00 81 [19:52:02]Write to MH i2c: E2 02 01 B0 26 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E5 00 00 00 F4 03 04 00 EA D9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B5 01 00 35 04 06 00 81 00 00 00 [19:52:03]Write i2c OK [19:52:03]MH_I2C_Read... [19:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:03]Read from MH i2c: E2 [19:52:03]MH_I2C_Read... [19:52:03]Read from MH i2c: E2 03 00 [19:52:03]MH_I2C_Read... [19:52:03]Read from MH i2c: E2 03 00 B0 26 00 90 00 4A [19:52:03]RAPDU: 90 00 [19:52:03]wFMCommunicate OK [19:52:03]wFMCommunicate request_size=10 [19:52:03]MH_SAM_APDU [19:52:03]CAPDU: 80 0D 02 02 05 DF 1C 76 8E 13 [19:52:03]Write to MH i2c: E2 0D 00 B1 26 80 0D 02 02 05 00 DF 1C 76 8E 13 00 00 6D [19:52:03]Write i2c OK [19:52:03]MH_I2C_Read... [19:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:03]Read from MH i2c: E2 [19:52:03]MH_I2C_Read... [19:52:03]Read from MH i2c: E2 03 00 [19:52:03]MH_I2C_Read... [19:52:03]Read from MH i2c: E2 03 00 B1 26 00 90 00 4B [19:52:03]RAPDU: 90 00 [19:52:03]wFMCommunicate OK [19:52:03]wFMCommunicate request_size=4 [19:52:03]MH_SAM_APDU [19:52:03]CAPDU: 80 0D 03 02 [19:52:03]Write to MH i2c: E2 08 00 B2 26 80 0D 03 02 00 00 00 00 53 [19:52:03]Write i2c OK [19:52:03]MH_I2C_Read... [19:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:03]Read from MH i2c: E2 [19:52:03]MH_I2C_Read... [19:52:03]Read from MH i2c: E2 0B 00 [19:52:03]MH_I2C_Read... [19:52:03]Read from MH i2c: E2 0B 00 B2 26 00 D9 42 4B 7A 79 47 52 49 90 00 8F [19:52:03]RAPDU: D9 42 4B 7A 79 47 52 49 90 00 [19:52:03]wFMCommunicate OK [19:52:03]SAM_PROTO_SignData done [19:52:03]FM_MakeSignedData done [19:52:03]CreateOFDProtocolMessage [19:52:03]wFMCommunicate request_size=4 [19:52:03]MH_SAM_APDU [19:52:03]CAPDU: 80 11 00 00 [19:52:03]Write to MH i2c: E2 08 00 B3 26 80 11 00 00 00 00 00 00 53 [19:52:03]Write i2c OK [19:52:03]MH_I2C_Read... [19:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:03]Read from MH i2c: E2 [19:52:03]MH_I2C_Read... [19:52:03]Read from MH i2c: E2 17 00 [19:52:03]MH_I2C_Read... [19:52:03]Read from MH i2c: E2 17 00 B3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A5 [19:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:52:03]wFMCommunicate OK [19:52:03]CreateOFDProtocolMessage done [19:52:03]OFDSenderStorePacket 112061 [19:52:03]StoreOFDPacket docnum=112061 [19:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1B BA 07 01 D1 D0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E5 00 00 00 F4 03 04 00 EA D9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B5 01 00 35 04 06 00 81 DF 1C 76 8E 13 D9 42 4B 7A 79 47 52 49 [19:52:03]CheckFolder [19:52:03]dirname=/storage/ofd_packets [19:52:03]CheckFolder done [19:52:03]ProducePacketName [19:52:03]name=ofd_packets/00112061 [19:52:03]NVStorageSaveData ofd_packets/00112061 [19:52:03]File name is /storage/ofd_packets/00112061 [19:52:03]Write 301 bytes [19:52:03]NVStorageSaveData done [19:52:03]OFDSenderStorePacket done [19:52:03]KKMCreateOFDPacket done [19:52:03]NVStorageSaveData kkm_last_timestamp [19:52:03]File name is /storage/kkm_last_timestamp [19:52:03]Write 4 bytes [19:52:03]NVStorageSaveData done [19:52:03]ExternCall_PrintAddStr [19:52:03]wPrintStart [19:52:03]Write to MH i2c: 01 00 00 B4 26 DA [19:52:03]Write i2c OK [19:52:03]MH_I2C_Read... [19:52:03]Read from MH i2c: 01 [19:52:03]MH_I2C_Read... [19:52:03]Read from MH i2c: 01 07 00 [19:52:03]MH_I2C_Read... [19:52:03]Read from MH i2c: 01 07 00 B4 26 00 00 00 00 00 FF 0F EF [19:52:03]RasterBufferAndPrint [19:52:03]line 小褔械褌 N : (1)320720 [19:52:03]line 袠袧袧: 02508201610067 [19:52:03]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:52:03]line 袩袪袨袛袗袞袗 [19:52:03]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:52:03]line 孝芯胁邪褉: 2710124130 [19:52:03]line 袗懈-92-袣-5 [19:52:03]line 7.540 * 66.40 [19:52:03]line = 500.66 [19:52:03]line 袧袛小 12% 袧小袩 1% [19:52:03]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:52:03]line 袨袣袪校袚袥袝袧袠袝: -0.66 [19:52:03]line 袠孝袨袚袨: 500.00 [19:52:03]line 袙薪械褋械薪芯: 500.00 [19:52:03]line 小袛袗效袗: 0.00 [19:52:03]line 袧小袩 1% : 4.43 [19:52:03]line 袧袛小 12% : 53.17 [19:52:03]line 袧邪谢懈褔薪褘屑懈: 500.00 [19:52:03]line 袘械蟹薪邪谢.: 0.00 [19:52:03]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:52:03]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:52:03]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:52:03]line 效械泻 229 21.06.2024 19:52 [19:52:03]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:52:03]line 袟袧袦: 0300000198 [19:52:03]line 袪袧袦: 0000000000092771 [19:52:03]line 袙械褉褋懈褟 袣袣袦: 001 [19:52:03]line 肖袦: 0000000000875083 [19:52:03]line 肖袛: 112061 [19:52:03]line 肖袩袛: 142795255221779 [19:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T195210&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112061&fm=142795255221779&tin=02508201610067®Number=0000000000092771&sum=50000 [19:52:03]OFD Sender: Processing packet 112061 [packets to send 38, broken 37] [19:52:03]ProducePacketName [19:52:03]name=ofd_packets/00112061 [19:52:03]OFD Sender: To server: 嚂鰌G, [19:52:03]CommunicateWithHost lk.salyk.kg:30040 [19:52:03]ConnectInit lk.salyk.kg [19:52:03]written 0, free lines is 4095 [19:52:03]Connected sock=10 [19:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1B BA 07 01 D1 D0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E5 00 00 00 F4 03 04 00 EA D9 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B5 01 00 35 04 06 00 81 DF 1C 76 8E 13 D9 42 4B 7A 79 47 52 49 [19:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DA EB 47 00 AC CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B5 01 00 F4 03 04 00 0C 71 75 66 B6 04 01 00 00 74 0B 6D 07 9F 7C A1 59 [19:52:03]CommunicateWithHost err = 0 [19:52:03]CheckOFDResponse [19:52:03]1017 (14) - 77093643461234 [19:52:03]1041 (16) - 0000000000875083 [19:52:03]1040 (4) - 112061 [19:52:03]1012 (4) - 21.06.2024 12:24 [19:52:03]1206 (1) - 0 [19:52:03]OFD Sender: Remove packet 112061 [19:52:03]ProducePacketName [19:52:03]name=ofd_packets/00112061 [19:52:03]NVStorageDeleteData [19:52:04]Write to MH i2c: 01 00 00 DF 26 05 [19:52:04]Write i2c OK [19:52:04]MH_I2C_Read... [19:52:04]Read from MH i2c: 01 [19:52:04]MH_I2C_Read... [19:52:04]Read from MH i2c: 01 07 00 [19:52:04]MH_I2C_Read... [19:52:04]Read from MH i2c: 01 07 00 DF 26 00 00 00 00 00 DE 0C F6 [19:52:04]RasterBufferAndPrint [19:52:04]line [19:52:04]line [19:52:04]line [19:52:04]line [19:52:04]line [19:52:04]written 0, free lines is 3300 [19:52:04]MH_Cut [19:52:04]Write to MH i2c: D1 01 00 E6 26 01 DE [19:52:04]Write i2c OK [19:52:04]MH_I2C_Read... [19:52:04]Read from MH i2c: D1 [19:52:04]MH_I2C_Read... [19:52:04]Read from MH i2c: D1 01 00 [19:52:04]MH_I2C_Read... [19:52:04]Read from MH i2c: D1 01 00 E6 26 00 DD [19:52:04]Write to MH i2c: 01 00 00 E7 26 0D [19:52:04]Write i2c OK [19:52:04]MH_I2C_Read... [19:52:04]OFD Sender: No OFD packet to send [19:52:04]*** Cut start [19:52:04]*** Partial cut [19:52:04]*** CUTSNS_PIN = 1 [19:52:04]*** CUTSNS_PIN = 0 [19:52:05]*** Brake cut motor [19:52:05]Read from MH i2c: 01 [19:52:05]MH_I2C_Read... [19:52:05]*** Stop cut motor [19:52:05]*** Cut end [19:52:05]Read from MH i2c: 01 07 00 [19:52:05]MH_I2C_Read... [19:52:05]Read from MH i2c: 01 07 00 E7 26 00 00 00 00 00 FF 0F 22 [19:52:05]process_action close_receipt done [19:52:05]requested_data is exist [19:52:05]produce_requested_data [19:52:05]requested_item fm.sn is exist - process it [19:52:05]wFMCommunicate request_size=4 [19:52:05]MH_SAM_APDU [19:52:05]CAPDU: 80 11 00 00 [19:52:05]Write to MH i2c: E2 08 00 E8 26 80 11 00 00 00 00 00 00 88 [19:52:05]Write i2c OK [19:52:05]MH_I2C_Read... [19:52:05]Read from MH i2c: E2 [19:52:05]MH_I2C_Read... [19:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:05]Read from MH i2c: E2 17 00 [19:52:05]MH_I2C_Read... [19:52:05]Read from MH i2c: E2 17 00 E8 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [19:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:52:05]wFMCommunicate OK [19:52:05]requested_item fd.num is exist - process it [19:52:05]SAM_PROTO_GetFieldsCounters [19:52:05]wFMCommunicate request_size=4 [19:52:05]MH_SAM_APDU [19:52:05]CAPDU: 80 13 00 00 [19:52:05]Write to MH i2c: E2 08 00 E9 26 80 13 00 00 00 00 00 00 8B [19:52:05]Write i2c OK [19:52:05]MH_I2C_Read... [19:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:05]Read from MH i2c: E2 [19:52:05]MH_I2C_Read... [19:52:05]Read from MH i2c: E2 62 00 [19:52:05]MH_I2C_Read... [19:52:05]Read from MH i2c: E2 62 00 E9 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BD B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [19:52:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BD B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:05]wFMCommunicate OK [19:52:05]SAM_PROTO_GetFieldsCounters done [19:52:05]requested_item shift.num is exist - process it [19:52:05]requested_item shift.opened is exist - process it [19:52:05]req_shift_opened [19:52:05]FM_GetShiftState [19:52:05]SAM_PROTO_GetShiftState [19:52:05]wFMCommunicate request_size=4 [19:52:05]MH_SAM_APDU [19:52:05]CAPDU: 80 13 01 00 [19:52:05]Write to MH i2c: E2 08 00 EA 26 80 13 01 00 00 00 00 00 8D [19:52:05]Write i2c OK [19:52:05]MH_I2C_Read... [19:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:05]Read from MH i2c: E2 [19:52:05]MH_I2C_Read... [19:52:05]Read from MH i2c: E2 0E 00 [19:52:05]MH_I2C_Read... [19:52:05]Read from MH i2c: E2 0E 00 EA 26 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0A [19:52:05]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:52:05]wFMCommunicate OK [19:52:05]SAM_PROTO_GetShiftState done [19:52:05]FM_GetShiftState done [19:52:05]req_shift_opened done [19:52:05]requested_item shift.open_date is exist - process it [19:52:05]req_shift_open_date [19:52:05]req_shift_open_date done [19:52:05]produce_requested_data done [19:52:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112061,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:52:05]process_action_free close_receipt [19:52:05]json_value_free [19:52:05]json_value_free done [19:52:05]process_json_proto returns [19:52:05]Send response to host [19:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112061,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:52:05]free response buf [19:52:05]execute_script done [19:52:05]execute_script returns [19:52:05]free content buf [19:52:05]Sock 9.Close socket [19:52:05]Sock 9.Thread stoped [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]accept exits with 7 [19:53:24]New connection [19:53:24]New thread 3066731876 created [19:53:24]Thread 3066875236 joined [19:53:24]Waiting for new connection... [19:53:24] Sock 7.Parse request [19:53:24]Sock 7.Check first char [19:53:24]Sock 7.First char is OK [19:53:24]request: POST /json_proto HTTP/1.0 [19:53:24]Method: POST [19:53:24]URL: /json_proto [19:53:24]Method is POST - this is cgi request [19:53:24]url: /json_proto [19:53:24]query_string will be loaded in cgi processing [19:53:24]execute_cgi json_proto POST (null) [19:53:24]execute_cgi path=json_proto method=POST [19:53:24]POST find Content-Length [19:53:24]Host: 172.17.59.68:8080 [19:53:24]Content-Length: 673 [19:53:24]Content-Type: application/json [19:53:24] [19:53:24]POST finish read [19:53:24]Found Content-Length = 673 [19:53:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.000, "sum" : 66.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 66.00, "total" : 66.00, "payments": [ { "type": 0, "sum" : 66.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:24]execute_script... [19:53: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)320721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.000, "sum" : 66.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 66.00, "total" : 66.00, "payments": [ { "type": 0, "sum" : 66.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:24]POST & json_proto [19:53:24]process_json_proto [19:53:24]json parsed OK: [19:53:24]protocol is kg_v1.0 [19:53:24]action value=close_receipt [19:53:24]process_action close_receipt [19:53:24]cmd_close_receipt [19:53:24]MH_GetDate [19:53:24]Write to MH i2c: F0 00 00 EB 26 00 [19:53:24]Write i2c OK [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: F0 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: F0 09 00 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: F0 09 00 EB 26 00 3D DA 75 66 BC EC 60 65 68 [19:53:24]GetLastDocTimeStamp 1718999530 [19:53:24]current date 1718999613 [19:53:24]FM_GetShiftState [19:53:24]SAM_PROTO_GetShiftState [19:53:24]wFMCommunicate request_size=4 [19:53:24]MH_SAM_APDU [19:53:24]CAPDU: 80 13 01 00 [19:53:24]Write to MH i2c: E2 08 00 EC 26 80 13 01 00 00 00 00 00 8F [19:53:24]Write i2c OK [19:53:24]MH_I2C_Read... [19:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:24]Read from MH i2c: E2 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 0E 00 [19:53:24]MH_I2C_Read... [19:53:24]Read from MH i2c: E2 0E 00 EC 26 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0C [19:53:24]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:53:24]wFMCommunicate OK [19:53:24]SAM_PROTO_GetShiftState done [19:53:24]FM_GetShiftState done [19:53:24]opened in 1718933695 [19:53:24]opened+sec_in_day 1719020095 [19:53:24]quantity*price = 6640 [19:53:24]sum+1 = 6641 [19:53:24]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.40 袠孝袨袚袨: 66.00 袙薪械褋械薪芯: 66.00 小袛袗效袗: 0.00 袧小袩 1% : 0.59 袧袛小 12% : 7.05 袧邪谢懈褔薪褘屑懈: 66.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 230 21.06.2024 19:53 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112062 肖袩袛: 133538359293497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T195333&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112062&fm=133538359293497&tin=02508201610067®Number=0000000000092771&sum=6600 [19:53:25]StoreToDocumentArchive [19:53:25]shift 390 fd 112062 [19:53:25]save to /storage/0390/doc_00112062 [19:53:25]save last doc name /storage/0390/doc_00112062 to /storage/kkm_last_doc_name [19:53:25]save OK [19:53:25]Clear old archive folders... [19:53:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:53:25]tlvbuf is 00352A40 [19:53:25]SAM_PROTO_ClearQueue [19:53:25]wFMCommunicate request_size=4 [19:53:25]MH_SAM_APDU [19:53:25]CAPDU: 80 09 00 00 [19:53:25]Write to MH i2c: E2 08 00 F9 26 80 09 00 00 00 00 00 00 91 [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 03 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 03 00 F9 26 00 90 00 93 [19:53:25]RAPDU: 90 00 [19:53:25]wFMCommunicate OK [19:53:25]SAM_PROTO_ClearQueue done [19:53:25]KKMCreateOFDPacket [19:53:25]OFDProtocolAddRootSTLVToBuf [19:53:25]FM_MakeSignedData [19:53:25]FM_MakeSignedData [19:53:25]SAM_PROTO_SignData [19:53:25]wFMCommunicate request_size=4 [19:53:25]MH_SAM_APDU [19:53:25]CAPDU: 80 0D 01 02 [19:53:25]Write to MH i2c: E2 08 00 FA 26 80 0D 01 02 00 00 00 00 99 [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 03 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 03 00 FA 26 00 90 00 94 [19:53:25]RAPDU: 90 00 [19:53:25]wFMCommunicate OK [19:53:25]wFMCommunicate request_size=255 [19:53:25]MH_SAM_APDU [19:53:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 3D DA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B5 01 00 35 04 06 00 79 [19:53:25]Write to MH i2c: E2 02 01 FB 26 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 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 3D DA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B5 01 00 35 04 06 00 79 00 00 AC [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 03 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 03 00 FB 26 00 90 00 95 [19:53:25]RAPDU: 90 00 [19:53:25]wFMCommunicate OK [19:53:25]wFMCommunicate request_size=10 [19:53:25]MH_SAM_APDU [19:53:25]CAPDU: 80 0D 02 02 05 73 D2 78 36 39 [19:53:25]Write to MH i2c: E2 0D 00 FC 26 80 0D 02 02 05 00 73 D2 78 36 39 00 00 D2 [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 03 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 03 00 FC 26 00 90 00 96 [19:53:25]RAPDU: 90 00 [19:53:25]wFMCommunicate OK [19:53:25]wFMCommunicate request_size=4 [19:53:25]MH_SAM_APDU [19:53:25]CAPDU: 80 0D 03 02 [19:53:25]Write to MH i2c: E2 08 00 FD 26 80 0D 03 02 00 00 00 00 9E [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 0B 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 0B 00 FD 26 00 07 DC E8 40 C5 20 0A 6A 90 00 03 [19:53:25]RAPDU: 07 DC E8 40 C5 20 0A 6A 90 00 [19:53:25]wFMCommunicate OK [19:53:25]SAM_PROTO_SignData done [19:53:25]FM_MakeSignedData done [19:53:25]CreateOFDProtocolMessage [19:53:25]wFMCommunicate request_size=4 [19:53:25]MH_SAM_APDU [19:53:25]CAPDU: 80 11 00 00 [19:53:25]Write to MH i2c: E2 08 00 FE 26 80 11 00 00 00 00 00 00 9E [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:25]Read from MH i2c: E2 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 17 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: E2 17 00 FE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F0 [19:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:53:25]wFMCommunicate OK [19:53:25]CreateOFDProtocolMessage done [19:53:25]OFDSenderStorePacket 112062 [19:53:25]StoreOFDPacket docnum=112062 [19:53:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 12 0D 07 01 B4 1E 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 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 3D DA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B5 01 00 35 04 06 00 79 73 D2 78 36 39 07 DC E8 40 C5 20 0A 6A [19:53:25]CheckFolder [19:53:25]dirname=/storage/ofd_packets [19:53:25]CheckFolder done [19:53:25]ProducePacketName [19:53:25]name=ofd_packets/00112062 [19:53:25]NVStorageSaveData ofd_packets/00112062 [19:53:25]File name is /storage/ofd_packets/00112062 [19:53:25]Write 301 bytes [19:53:25]NVStorageSaveData done [19:53:25]OFDSenderStorePacket done [19:53:25]KKMCreateOFDPacket done [19:53:25]NVStorageSaveData kkm_last_timestamp [19:53:25]File name is /storage/kkm_last_timestamp [19:53:25]Write 4 bytes [19:53:25]NVStorageSaveData done [19:53:25]ExternCall_PrintAddStr [19:53:25]wPrintStart [19:53:25]Write to MH i2c: 01 00 00 FF 26 25 [19:53:25]Write i2c OK [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: 01 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: 01 07 00 [19:53:25]MH_I2C_Read... [19:53:25]Read from MH i2c: 01 07 00 FF 26 00 00 00 00 00 FF 0F 3A [19:53:25]RasterBufferAndPrint [19:53:25]line 小褔械褌 N : (1)320721 [19:53:25]line 袠袧袧: 02508201610067 [19:53:25]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:53:25]line 袩袪袨袛袗袞袗 [19:53:25]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:53:25]line 孝芯胁邪褉: 2710124130 [19:53:25]line 袗懈-92-袣-5 [19:53:25]line 1.000 * 66.40 [19:53:25]line = 66.40 [19:53:25]line 袧袛小 12% 袧小袩 1% [19:53:25]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:53:25]line 袨袣袪校袚袥袝袧袠袝: -0.40 [19:53:25]line 袠孝袨袚袨: 66.00 [19:53:25]line 袙薪械褋械薪芯: 66.00 [19:53:25]line 小袛袗效袗: 0.00 [19:53:25]line 袧小袩 1% : 0.59 [19:53:25]line 袧袛小 12% : 7.05 [19:53:25]line 袧邪谢懈褔薪褘屑懈: 66.00 [19:53:25]line 袘械蟹薪邪谢.: 0.00 [19:53:25]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:53:25]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:53:25]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:53:25]line 效械泻 230 21.06.2024 19:53 [19:53:25]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:53:25]line 袟袧袦: 0300000198 [19:53:25]line 袪袧袦: 0000000000092771 [19:53:25]line 袙械褉褋懈褟 袣袣袦: 001 [19:53:25]line 肖袦: 0000000000875083 [19:53:25]line 肖袛: 112062 [19:53:25]line 肖袩袛: 133538359293497 [19:53:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T195333&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112062&fm=133538359293497&tin=02508201610067®Number=0000000000092771&sum=6600 [19:53:26]OFD Sender: Processing packet 112062 [packets to send 38, broken 37] [19:53:26]ProducePacketName [19:53:26]name=ofd_packets/00112062 [19:53:26]OFD Sender: To server: 嚂鰌G, [19:53:26]CommunicateWithHost lk.salyk.kg:30040 [19:53:26]ConnectInit lk.salyk.kg [19:53:26]written 0, free lines is 4095 [19:53:26]Connected sock=10 [19:53:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 12 0D 07 01 B4 1E 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 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 3D DA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B5 01 00 35 04 06 00 79 73 D2 78 36 39 07 DC E8 40 C5 20 0A 6A [19:53:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 20 77 47 00 2A 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 30 38 37 35 30 38 33 10 04 04 00 BE B5 01 00 F4 03 04 00 5F 71 75 66 B6 04 01 00 00 B7 69 9F 97 02 EE 33 25 [19:53:26]CommunicateWithHost err = 0 [19:53:26]CheckOFDResponse [19:53:26]1017 (14) - 77093643461234 [19:53:26]1041 (16) - 0000000000875083 [19:53:26]1040 (4) - 112062 [19:53:26]1012 (4) - 21.06.2024 12:26 [19:53:26]1206 (1) - 0 [19:53:26]OFD Sender: Remove packet 112062 [19:53:26]ProducePacketName [19:53:26]name=ofd_packets/00112062 [19:53:26]NVStorageDeleteData [19:53:26]Write to MH i2c: 01 00 00 2A 27 51 [19:53:26]Write i2c OK [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: 01 [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: 01 07 00 [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: 01 07 00 2A 27 00 00 00 00 00 D6 0C 3A [19:53:26]RasterBufferAndPrint [19:53:26]line [19:53:26]line [19:53:26]line [19:53:26]line [19:53:26]line [19:53:26]written 0, free lines is 3293 [19:53:26]MH_Cut [19:53:26]Write to MH i2c: D1 01 00 31 27 01 2A [19:53:26]Write i2c OK [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: D1 [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: D1 01 00 [19:53:26]MH_I2C_Read... [19:53:26]Read from MH i2c: D1 01 00 31 27 00 29 [19:53:26]Write to MH i2c: 01 00 00 32 27 59 [19:53:26]Write i2c OK [19:53:26]MH_I2C_Read... [19:53:26]OFD Sender: No OFD packet to send [19:53:27]*** Cut start [19:53:27]*** Partial cut [19:53:27]*** CUTSNS_PIN = 1 [19:53:27]*** CUTSNS_PIN = 0 [19:53:27]*** Brake cut motor [19:53:27]Read from MH i2c: 01 [19:53:27]MH_I2C_Read... [19:53:27]*** Stop cut motor [19:53:27]*** Cut end [19:53:27]Read from MH i2c: 01 07 00 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: 01 07 00 32 27 00 00 00 00 00 FF 0F 6E [19:53:27]process_action close_receipt done [19:53:27]requested_data is exist [19:53:27]produce_requested_data [19:53:27]requested_item fm.sn is exist - process it [19:53:27]wFMCommunicate request_size=4 [19:53:27]MH_SAM_APDU [19:53:27]CAPDU: 80 11 00 00 [19:53:27]Write to MH i2c: E2 08 00 33 27 80 11 00 00 00 00 00 00 D4 [19:53:27]Write i2c OK [19:53:27]MH_I2C_Read... [19:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:27]Read from MH i2c: E2 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: E2 17 00 [19:53:27]MH_I2C_Read... [19:53:27]Read from MH i2c: E2 17 00 33 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 26 [19:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:53:27]wFMCommunicate OK [19:53:27]requested_item fd.num is exist - process it [19:53:27]SAM_PROTO_GetFieldsCounters [19:53:27]wFMCommunicate request_size=4 [19:53:27]MH_SAM_APDU [19:53:27]CAPDU: 80 13 00 00 [19:53:27]Write to MH i2c: E2 08 00 34 27 80 13 00 00 00 00 00 00 D7 [19:53:27]Write i2c OK [19:53:27]MH_I2C_Read... [19:53:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:28]Read from MH i2c: E2 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: E2 62 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: E2 62 00 34 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [19:53:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:28]wFMCommunicate OK [19:53:28]SAM_PROTO_GetFieldsCounters done [19:53:28]requested_item shift.num is exist - process it [19:53:28]requested_item shift.opened is exist - process it [19:53:28]req_shift_opened [19:53:28]FM_GetShiftState [19:53:28]SAM_PROTO_GetShiftState [19:53:28]wFMCommunicate request_size=4 [19:53:28]MH_SAM_APDU [19:53:28]CAPDU: 80 13 01 00 [19:53:28]Write to MH i2c: E2 08 00 35 27 80 13 01 00 00 00 00 00 D9 [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:28]Read from MH i2c: E2 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: E2 0E 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: E2 0E 00 35 27 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 56 [19:53:28]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:53:28]wFMCommunicate OK [19:53:28]SAM_PROTO_GetShiftState done [19:53:28]FM_GetShiftState done [19:53:28]req_shift_opened done [19:53:28]requested_item shift.open_date is exist - process it [19:53:28]req_shift_open_date [19:53:28]req_shift_open_date done [19:53:28]produce_requested_data done [19:53:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112062,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:53:28]process_action_free close_receipt [19:53:28]json_value_free [19:53:28]json_value_free done [19:53:28]process_json_proto returns [19:53:28]Send response to host [19:53:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112062,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:53:28]free response buf [19:53:28]execute_script done [19:53:28]execute_script returns [19:53:28]free content buf [19:53:28]Sock 7.Close socket [19:53:28]Sock 7.Thread stoped [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]accept exits with 9 [19:53:56]New connection [19:53:56]New thread 3066875236 created [19:53:56]Thread 3066731876 joined [19:53:56]Waiting for new connection... [19:53:56] Sock 9.Parse request [19:53:56]Sock 9.Check first char [19:53:56]Sock 9.First char is OK [19:53:56]request: POST /json_proto HTTP/1.0 [19:53:56]Method: POST [19:53:56]URL: /json_proto [19:53:56]Method is POST - this is cgi request [19:53:56]url: /json_proto [19:53:56]query_string will be loaded in cgi processing [19:53:56]execute_cgi json_proto POST (null) [19:53:56]execute_cgi path=json_proto method=POST [19:53:56]POST find Content-Length [19:53:56]Host: 172.17.59.68:8080 [19:53:56]Content-Length: 677 [19:53:56]Content-Type: application/json [19:53:56] [19:53:56]POST finish read [19:53:56]Found Content-Length = 677 [19:53:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [19:53:56]execute_script... [19:53: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)320722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [19:53:56]POST & json_proto [19:53:56]process_json_proto [19:53:56]json parsed OK: [19:53:56]protocol is kg_v1.0 [19:53:56]action value=close_receipt [19:53:56]process_action close_receipt [19:53:56]cmd_close_receipt [19:53:56]MH_GetDate [19:53:56]Write to MH i2c: F0 00 00 36 27 4C [19:53:56]Write i2c OK [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: F0 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: F0 09 00 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: F0 09 00 36 27 00 5D DA 75 66 BC EC 60 65 D4 [19:53:56]GetLastDocTimeStamp 1718999613 [19:53:56]current date 1718999645 [19:53:56]FM_GetShiftState [19:53:56]SAM_PROTO_GetShiftState [19:53:56]wFMCommunicate request_size=4 [19:53:56]MH_SAM_APDU [19:53:56]CAPDU: 80 13 01 00 [19:53:56]Write to MH i2c: E2 08 00 37 27 80 13 01 00 00 00 00 00 DB [19:53:56]Write i2c OK [19:53:56]MH_I2C_Read... [19:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:56]Read from MH i2c: E2 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 0E 00 [19:53:56]MH_I2C_Read... [19:53:56]Read from MH i2c: E2 0E 00 37 27 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 58 [19:53:56]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:53:56]wFMCommunicate OK [19:53:56]SAM_PROTO_GetShiftState done [19:53:56]FM_GetShiftState done [19:53:56]opened in 1718933695 [19:53:56]opened+sec_in_day 1719020095 [19:53:56]quantity*price = 50065 [19:53:56]sum+1 = 50067 [19:53:56]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 231 21.06.2024 19:54 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112063 肖袩袛: 146686273456508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T195405&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112063&fm=146686273456508&tin=02508201610067®Number=0000000000092771&sum=50000 [19:53:57]StoreToDocumentArchive [19:53:57]shift 390 fd 112063 [19:53:57]save to /storage/0390/doc_00112063 [19:53:57]save last doc name /storage/0390/doc_00112063 to /storage/kkm_last_doc_name [19:53:57]save OK [19:53:57]Clear old archive folders... [19:53:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:53:57]tlvbuf is B6E955D0 [19:53:57]SAM_PROTO_ClearQueue [19:53:57]wFMCommunicate request_size=4 [19:53:57]MH_SAM_APDU [19:53:57]CAPDU: 80 09 00 00 [19:53:57]Write to MH i2c: E2 08 00 44 27 80 09 00 00 00 00 00 00 DD [19:53:57]Write i2c OK [19:53:57]MH_I2C_Read... [19:53:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:57]Read from MH i2c: E2 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 03 00 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 03 00 44 27 00 90 00 DF [19:53:57]RAPDU: 90 00 [19:53:57]wFMCommunicate OK [19:53:57]SAM_PROTO_ClearQueue done [19:53:57]KKMCreateOFDPacket [19:53:57]OFDProtocolAddRootSTLVToBuf [19:53:57]FM_MakeSignedData [19:53:57]FM_MakeSignedData [19:53:57]SAM_PROTO_SignData [19:53:57]wFMCommunicate request_size=4 [19:53:57]MH_SAM_APDU [19:53:57]CAPDU: 80 0D 01 02 [19:53:57]Write to MH i2c: E2 08 00 45 27 80 0D 01 02 00 00 00 00 E5 [19:53:57]Write i2c OK [19:53:57]MH_I2C_Read... [19:53:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:57]Read from MH i2c: E2 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 03 00 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 03 00 45 27 00 90 00 E0 [19:53:57]RAPDU: 90 00 [19:53:57]wFMCommunicate OK [19:53:57]wFMCommunicate request_size=255 [19:53:57]MH_SAM_APDU [19:53: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E7 00 00 00 F4 03 04 00 5D DA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B5 01 00 35 04 06 00 85 [19:53:57]Write to MH i2c: E2 02 01 46 27 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E7 00 00 00 F4 03 04 00 5D DA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B5 01 00 35 04 06 00 85 00 00 13 [19:53:57]Write i2c OK [19:53:57]MH_I2C_Read... [19:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:57]Read from MH i2c: E2 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 03 00 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 03 00 46 27 00 90 00 E1 [19:53:57]RAPDU: 90 00 [19:53:57]wFMCommunicate OK [19:53:57]wFMCommunicate request_size=10 [19:53:57]MH_SAM_APDU [19:53:57]CAPDU: 80 0D 02 02 05 69 0F 39 09 7C [19:53:57]Write to MH i2c: E2 0D 00 47 27 80 0D 02 02 05 00 69 0F 39 09 7C 00 00 28 [19:53:57]Write i2c OK [19:53:57]MH_I2C_Read... [19:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:57]Read from MH i2c: E2 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 03 00 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 03 00 47 27 00 90 00 E2 [19:53:57]RAPDU: 90 00 [19:53:57]wFMCommunicate OK [19:53:57]wFMCommunicate request_size=4 [19:53:57]MH_SAM_APDU [19:53:57]CAPDU: 80 0D 03 02 [19:53:57]Write to MH i2c: E2 08 00 48 27 80 0D 03 02 00 00 00 00 EA [19:53:57]Write i2c OK [19:53:57]MH_I2C_Read... [19:53:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:57]Read from MH i2c: E2 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 0B 00 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 0B 00 48 27 00 8F 62 03 82 ED 6A CB EF 90 00 72 [19:53:57]RAPDU: 8F 62 03 82 ED 6A CB EF 90 00 [19:53:57]wFMCommunicate OK [19:53:57]SAM_PROTO_SignData done [19:53:57]FM_MakeSignedData done [19:53:57]CreateOFDProtocolMessage [19:53:57]wFMCommunicate request_size=4 [19:53:57]MH_SAM_APDU [19:53:57]CAPDU: 80 11 00 00 [19:53:57]Write to MH i2c: E2 08 00 49 27 80 11 00 00 00 00 00 00 EA [19:53:57]Write i2c OK [19:53:57]MH_I2C_Read... [19:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:57]Read from MH i2c: E2 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 17 00 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: E2 17 00 49 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3C [19:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:53:57]wFMCommunicate OK [19:53:57]CreateOFDProtocolMessage done [19:53:57]OFDSenderStorePacket 112063 [19:53:57]StoreOFDPacket docnum=112063 [19:53:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 30 C7 07 01 DB 27 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E7 00 00 00 F4 03 04 00 5D DA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B5 01 00 35 04 06 00 85 69 0F 39 09 7C 8F 62 03 82 ED 6A CB EF [19:53:57]CheckFolder [19:53:57]dirname=/storage/ofd_packets [19:53:57]CheckFolder done [19:53:57]ProducePacketName [19:53:57]name=ofd_packets/00112063 [19:53:57]NVStorageSaveData ofd_packets/00112063 [19:53:57]File name is /storage/ofd_packets/00112063 [19:53:57]Write 301 bytes [19:53:57]NVStorageSaveData done [19:53:57]OFDSenderStorePacket done [19:53:57]KKMCreateOFDPacket done [19:53:57]NVStorageSaveData kkm_last_timestamp [19:53:57]File name is /storage/kkm_last_timestamp [19:53:57]Write 4 bytes [19:53:57]NVStorageSaveData done [19:53:57]ExternCall_PrintAddStr [19:53:57]wPrintStart [19:53:57]Write to MH i2c: 01 00 00 4A 27 71 [19:53:57]Write i2c OK [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: 01 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: 01 07 00 [19:53:57]MH_I2C_Read... [19:53:57]Read from MH i2c: 01 07 00 4A 27 00 00 00 00 00 FF 0F 86 [19:53:57]RasterBufferAndPrint [19:53:57]line 小褔械褌 N : (1)320722 [19:53:57]line 袠袧袧: 02508201610067 [19:53:57]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [19:53:57]line 袩袪袨袛袗袞袗 [19:53:57]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [19:53:57]line 孝芯胁邪褉: 2710124130 [19:53:57]line 袗懈-92-袣-5 [19:53:57]line 7.540 * 66.40 [19:53:57]line = 500.66 [19:53:57]line 袧袛小 12% 袧小袩 1% [19:53:57]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [19:53:57]line 袨袣袪校袚袥袝袧袠袝: -0.66 [19:53:57]line 袠孝袨袚袨: 500.00 [19:53:57]line 袙薪械褋械薪芯: 500.00 [19:53:57]line 小袛袗效袗: 0.00 [19:53:57]line 袧小袩 1% : 4.43 [19:53:57]line 袧袛小 12% : 53.17 [19:53:57]line 袧邪谢懈褔薪褘屑懈: 500.00 [19:53:57]line 袘械蟹薪邪谢.: 0.00 [19:53:57]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [19:53:57]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [19:53:57]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [19:53:57]line 效械泻 231 21.06.2024 19:54 [19:53:57]line 小屑械薪邪: 390 肖肖袛: 1.0 [19:53:57]line 袟袧袦: 0300000198 [19:53:57]line 袪袧袦: 0000000000092771 [19:53:57]line 袙械褉褋懈褟 袣袣袦: 001 [19:53:57]line 肖袦: 0000000000875083 [19:53:57]line 肖袛: 112063 [19:53:57]line 肖袩袛: 146686273456508 [19:53:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T195405&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112063&fm=146686273456508&tin=02508201610067®Number=0000000000092771&sum=50000 [19:53:58]OFD Sender: Processing packet 112063 [packets to send 38, broken 37] [19:53:58]ProducePacketName [19:53:58]name=ofd_packets/00112063 [19:53:58]OFD Sender: To server: 嚂鰌G, [19:53:58]CommunicateWithHost lk.salyk.kg:30040 [19:53:58]ConnectInit lk.salyk.kg [19:53:58]written 0, free lines is 4095 [19:53:58]Connected sock=10 [19:53:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 30 C7 07 01 DB 27 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E7 00 00 00 F4 03 04 00 5D DA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B5 01 00 35 04 06 00 85 69 0F 39 09 7C 8F 62 03 82 ED 6A CB EF [19:53:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B1 5D 47 00 6A 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B5 01 00 F4 03 04 00 7F 71 75 66 B6 04 01 00 00 A1 97 84 27 F0 57 24 C5 [19:53:58]CommunicateWithHost err = 0 [19:53:58]CheckOFDResponse [19:53:58]1017 (14) - 77093643461234 [19:53:58]1041 (16) - 0000000000875083 [19:53:58]1040 (4) - 112063 [19:53:58]1012 (4) - 21.06.2024 12:26 [19:53:58]1206 (1) - 0 [19:53:58]OFD Sender: Remove packet 112063 [19:53:58]ProducePacketName [19:53:58]name=ofd_packets/00112063 [19:53:58]NVStorageDeleteData [19:53:58]Write to MH i2c: 01 00 00 75 27 9C [19:53:58]Write i2c OK [19:53:58]MH_I2C_Read... [19:53:58]Read from MH i2c: 01 [19:53:58]MH_I2C_Read... [19:53:58]Read from MH i2c: 01 07 00 [19:53:58]MH_I2C_Read... [19:53:58]Read from MH i2c: 01 07 00 75 27 00 00 00 00 00 D4 0C 83 [19:53:58]RasterBufferAndPrint [19:53:58]line [19:53:58]line [19:53:58]line [19:53:58]line [19:53:58]line [19:53:58]written 0, free lines is 3292 [19:53:58]MH_Cut [19:53:58]Write to MH i2c: D1 01 00 7C 27 01 75 [19:53:58]Write i2c OK [19:53:58]MH_I2C_Read... [19:53:58]Read from MH i2c: D1 [19:53:58]MH_I2C_Read... [19:53:58]Read from MH i2c: D1 01 00 [19:53:58]MH_I2C_Read... [19:53:58]Read from MH i2c: D1 01 00 7C 27 00 74 [19:53:58]Write to MH i2c: 01 00 00 7D 27 A4 [19:53:58]Write i2c OK [19:53:58]MH_I2C_Read... [19:53:58]OFD Sender: No OFD packet to send [19:53:59]*** Cut start [19:53:59]*** Partial cut [19:53:59]*** CUTSNS_PIN = 1 [19:53:59]*** CUTSNS_PIN = 0 [19:53:59]*** Brake cut motor [19:53:59]Read from MH i2c: 01 [19:53:59]MH_I2C_Read... [19:53:59]*** Stop cut motor [19:53:59]*** Cut end [19:53:59]Read from MH i2c: 01 07 00 [19:53:59]MH_I2C_Read... [19:53:59]Read from MH i2c: 01 07 00 7D 27 00 00 00 00 00 FF 0F B9 [19:53:59]process_action close_receipt done [19:53:59]requested_data is exist [19:53:59]produce_requested_data [19:53:59]requested_item fm.sn is exist - process it [19:53:59]wFMCommunicate request_size=4 [19:53:59]MH_SAM_APDU [19:53:59]CAPDU: 80 11 00 00 [19:53:59]Write to MH i2c: E2 08 00 7E 27 80 11 00 00 00 00 00 00 1F [19:53:59]Write i2c OK [19:53:59]MH_I2C_Read... [19:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:00]Read from MH i2c: E2 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: E2 17 00 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: E2 17 00 7E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 71 [19:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:54:00]wFMCommunicate OK [19:54:00]requested_item fd.num is exist - process it [19:54:00]SAM_PROTO_GetFieldsCounters [19:54:00]wFMCommunicate request_size=4 [19:54:00]MH_SAM_APDU [19:54:00]CAPDU: 80 13 00 00 [19:54:00]Write to MH i2c: E2 08 00 7F 27 80 13 00 00 00 00 00 00 22 [19:54:00]Write i2c OK [19:54:00]MH_I2C_Read... [19:54:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:00]Read from MH i2c: E2 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: E2 62 00 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: E2 62 00 7F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [19:54:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:00]wFMCommunicate OK [19:54:00]SAM_PROTO_GetFieldsCounters done [19:54:00]requested_item shift.num is exist - process it [19:54:00]requested_item shift.opened is exist - process it [19:54:00]req_shift_opened [19:54:00]FM_GetShiftState [19:54:00]SAM_PROTO_GetShiftState [19:54:00]wFMCommunicate request_size=4 [19:54:00]MH_SAM_APDU [19:54:00]CAPDU: 80 13 01 00 [19:54:00]Write to MH i2c: E2 08 00 80 27 80 13 01 00 00 00 00 00 24 [19:54:00]Write i2c OK [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: E2 [19:54:00]MH_I2C_Read... [19:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:00]Read from MH i2c: E2 0E 00 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: E2 0E 00 80 27 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A1 [19:54:00]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:54:00]wFMCommunicate OK [19:54:00]SAM_PROTO_GetShiftState done [19:54:00]FM_GetShiftState done [19:54:00]req_shift_opened done [19:54:00]requested_item shift.open_date is exist - process it [19:54:00]req_shift_open_date [19:54:00]req_shift_open_date done [19:54:00]produce_requested_data done [19:54:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112063,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:54:00]process_action_free close_receipt [19:54:00]json_value_free [19:54:00]json_value_free done [19:54:00]process_json_proto returns [19:54:00]Send response to host [19:54:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112063,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:54:00]free response buf [19:54:00]execute_script done [19:54:00]execute_script returns [19:54:00]free content buf [19:54:00]Sock 9.Close socket [19:54:00]Sock 9.Thread stoped [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:48]accept exits with 7 [19:55:48]New connection [19:55:48]New thread 3066731876 created [19:55:48]Thread 3066875236 joined [19:55:48]Waiting for new connection... [19:55:48] Sock 7.Parse request [19:55:48]Sock 7.Check first char [19:55:48]Sock 7.First char is OK [19:55:48]request: POST /json_proto HTTP/1.0 [19:55:48]Method: POST [19:55:48]URL: /json_proto [19:55:48]Method is POST - this is cgi request [19:55:48]url: /json_proto [19:55:48]query_string will be loaded in cgi processing [19:55:48]execute_cgi json_proto POST (null) [19:55:48]execute_cgi path=json_proto method=POST [19:55:48]POST find Content-Length [19:55:48]Host: 172.17.59.68:8080 [19:55:48]Content-Length: 1200 [19:55:48]Content-Type: application/json [19:55:48] [19:55:48]POST finish read [19:55:48]Found Content-Length = 1200 [19:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320723\u000A21.06.2024 18:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81845\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:48]execute_script... [19:55:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320723\u000A21.06.2024 18:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81845\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:48]POST & json_proto [19:55:48]process_json_proto [19:55:48]json parsed OK: [19:55:48]protocol is kg_v1.0 [19:55:48]action value=print_text [19:55:48]process_action print_text [19:55:48]cmd_print_text [19:55:48]ExternCall_PrintAddStr [19:55:48]wPrintStart [19:55:48]Write to MH i2c: 01 00 00 81 27 A8 [19:55:48]Write i2c OK [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: 01 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: 01 07 00 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: 01 07 00 81 27 00 00 00 00 00 FF 0F BD [19:55:48]RasterBufferAndPrint [19:55:48]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [19:55:48]line 袗袟小 65 [19:55:48]line 袩邪褉褌薪械褉 薪械褎褌褜 [19:55:48]line 02508201610067 [19:55:48]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [19:55:48]line 小褔械褌 N : (1)320723 [19:55:48]line 21.06.2024 18:22 [19:55:48]line 袩袪袨袛袗袞袗 [19:55:48]line 孝袪袣 (袦袪袣, 袚袧袣): 11 [19:55:48]line 袙懈写 袚小袦 : 2710124130 [19:55:48]line 袗懈-92-袣-5 [19:55:48]line 15.000 x 66.40 [19:55:48]line 袠孝袨袚: 996.00 [19:55:48]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [19:55:48]line 81845 [19:55:48]line ______________________ [19:55:48]line (锌芯写锌懈褋褜) [19:55:48]written 0, free lines is 4095 [19:55:48]Write to MH i2c: 01 00 00 95 27 BC [19:55:48]Write i2c OK [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: 01 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: 01 07 00 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: 01 07 00 95 27 00 00 00 00 00 11 0E E2 [19:55:48]RasterBufferAndPrint [19:55:48]line [19:55:48]line [19:55:48]line [19:55:48]line [19:55:48]line [19:55:48]written 0, free lines is 3602 [19:55:48]MH_Cut [19:55:48]Write to MH i2c: D1 01 00 9C 27 01 95 [19:55:48]Write i2c OK [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: D1 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: D1 01 00 [19:55:48]MH_I2C_Read... [19:55:48]Read from MH i2c: D1 01 00 9C 27 00 94 [19:55:48]Write to MH i2c: 01 00 00 9D 27 C4 [19:55:48]Write i2c OK [19:55:48]MH_I2C_Read... [19:55:48]*** Cut start [19:55:48]*** Partial cut [19:55:48]*** CUTSNS_PIN = 1 [19:55:48]*** CUTSNS_PIN = 0 [19:55:49]*** Brake cut motor [19:55:49]OFD Sender: No OFD packet to send [19:55:49]Read from MH i2c: 01 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: 01 07 00 [19:55:49]MH_I2C_Read... [19:55:49]*** Stop cut motor [19:55:49]*** Cut end [19:55:49]Read from MH i2c: 01 07 00 9D 27 00 00 00 00 00 FF 0F D9 [19:55:49]process_action print_text done [19:55:49]requested_data is exist [19:55:49]produce_requested_data [19:55:49]requested_item fm.sn is exist - process it [19:55:49]wFMCommunicate request_size=4 [19:55:49]MH_SAM_APDU [19:55:49]CAPDU: 80 11 00 00 [19:55:49]Write to MH i2c: E2 08 00 9E 27 80 11 00 00 00 00 00 00 3F [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:49]Read from MH i2c: E2 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 17 00 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 17 00 9E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 91 [19:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:55:49]wFMCommunicate OK [19:55:49]requested_item fd.num is exist - process it [19:55:49]SAM_PROTO_GetFieldsCounters [19:55:49]wFMCommunicate request_size=4 [19:55:49]MH_SAM_APDU [19:55:49]CAPDU: 80 13 00 00 [19:55:49]Write to MH i2c: E2 08 00 9F 27 80 13 00 00 00 00 00 00 42 [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 62 00 [19:55:49]MH_I2C_Read... [19:55:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:49]Read from MH i2c: E2 62 00 9F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [19:55:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:55:49]wFMCommunicate OK [19:55:49]SAM_PROTO_GetFieldsCounters done [19:55:49]requested_item shift.num is exist - process it [19:55:49]requested_item shift.opened is exist - process it [19:55:49]req_shift_opened [19:55:49]FM_GetShiftState [19:55:49]SAM_PROTO_GetShiftState [19:55:49]wFMCommunicate request_size=4 [19:55:49]MH_SAM_APDU [19:55:49]CAPDU: 80 13 01 00 [19:55:49]Write to MH i2c: E2 08 00 A0 27 80 13 01 00 00 00 00 00 44 [19:55:49]Write i2c OK [19:55:49]MH_I2C_Read... [19:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:49]Read from MH i2c: E2 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 0E 00 [19:55:49]MH_I2C_Read... [19:55:49]Read from MH i2c: E2 0E 00 A0 27 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C1 [19:55:49]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [19:55:49]wFMCommunicate OK [19:55:49]SAM_PROTO_GetShiftState done [19:55:49]FM_GetShiftState done [19:55:49]req_shift_opened done [19:55:49]requested_item shift.open_date is exist - process it [19:55:49]req_shift_open_date [19:55:49]req_shift_open_date done [19:55:49]produce_requested_data done [19:55:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112063,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [19:55:49]process_action_free print_text [19:55:49]json_value_free [19:55:49]json_value_free done [19:55:49]process_json_proto returns [19:55:49]Send response to host [19:55:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112063,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [19:55:49]free response buf [19:55:49]execute_script done [19:55:49]execute_script returns [19:55:49]free content buf [19:55:49]Sock 7.Close socket [19:55:49]Sock 7.Thread stoped [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]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:01]accept exits with 9 [20:03:01]New connection [20:03:01]New thread 3066875236 created [20:03:01]Thread 3066731876 joined [20:03:01]Waiting for new connection... [20:03:01] Sock 9.Parse request [20:03:01]Sock 9.Check first char [20:03:01]Sock 9.First char is OK [20:03:01]request: POST /json_proto HTTP/1.0 [20:03:01]Method: POST [20:03:01]URL: /json_proto [20:03:01]Method is POST - this is cgi request [20:03:01]url: /json_proto [20:03:01]query_string will be loaded in cgi processing [20:03:01]execute_cgi json_proto POST (null) [20:03:01]execute_cgi path=json_proto method=POST [20:03:01]POST find Content-Length [20:03:01]Host: 172.17.59.68:8080 [20:03:01]Content-Length: 677 [20:03:01]Content-Type: application/json [20:03:01] [20:03:01]POST finish read [20:03:01]Found Content-Length = 677 [20:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [20:03:01]execute_script... [20:03:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [20:03:01]POST & json_proto [20:03:01]process_json_proto [20:03:01]json parsed OK: [20:03:01]protocol is kg_v1.0 [20:03:01]action value=close_receipt [20:03:01]process_action close_receipt [20:03:01]cmd_close_receipt [20:03:01]MH_GetDate [20:03:01]Write to MH i2c: F0 00 00 A1 27 B7 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: F0 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: F0 09 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: F0 09 00 A1 27 00 7E DC 75 66 BC EC 60 65 62 [20:03:01]GetLastDocTimeStamp 1718999645 [20:03:01]current date 1719000190 [20:03:01]FM_GetShiftState [20:03:01]SAM_PROTO_GetShiftState [20:03:01]wFMCommunicate request_size=4 [20:03:01]MH_SAM_APDU [20:03:01]CAPDU: 80 13 01 00 [20:03:01]Write to MH i2c: E2 08 00 A2 27 80 13 01 00 00 00 00 00 46 [20:03:01]Write i2c OK [20:03:01]MH_I2C_Read... [20:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:01]Read from MH i2c: E2 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 0E 00 [20:03:01]MH_I2C_Read... [20:03:01]Read from MH i2c: E2 0E 00 A2 27 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C3 [20:03:01]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:03:01]wFMCommunicate OK [20:03:01]SAM_PROTO_GetShiftState done [20:03:01]FM_GetShiftState done [20:03:01]opened in 1718933695 [20:03:01]opened+sec_in_day 1719020095 [20:03:01]quantity*price = 50065 [20:03:01]sum+1 = 50067 [20:03:01]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 232 21.06.2024 20:03 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112064 肖袩袛: 2109467437156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T200310&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112064&fm=2109467437156&tin=02508201610067®Number=0000000000092771&sum=50000 [20:03:02]StoreToDocumentArchive [20:03:02]shift 390 fd 112064 [20:03:02]save to /storage/0390/doc_00112064 [20:03:02]save last doc name /storage/0390/doc_00112064 to /storage/kkm_last_doc_name [20:03:02]save OK [20:03:02]Clear old archive folders... [20:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:02]tlvbuf is 0036BEE0 [20:03:02]SAM_PROTO_ClearQueue [20:03:02]wFMCommunicate request_size=4 [20:03:02]MH_SAM_APDU [20:03:02]CAPDU: 80 09 00 00 [20:03:02]Write to MH i2c: E2 08 00 AF 27 80 09 00 00 00 00 00 00 48 [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:02]Read from MH i2c: E2 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 AF 27 00 90 00 4A [20:03:02]RAPDU: 90 00 [20:03:02]wFMCommunicate OK [20:03:02]SAM_PROTO_ClearQueue done [20:03:02]KKMCreateOFDPacket [20:03:02]OFDProtocolAddRootSTLVToBuf [20:03:02]FM_MakeSignedData [20:03:02]FM_MakeSignedData [20:03:02]SAM_PROTO_SignData [20:03:02]wFMCommunicate request_size=4 [20:03:02]MH_SAM_APDU [20:03:02]CAPDU: 80 0D 01 02 [20:03:02]Write to MH i2c: E2 08 00 B0 27 80 0D 01 02 00 00 00 00 50 [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:02]Read from MH i2c: E2 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 B0 27 00 90 00 4B [20:03:02]RAPDU: 90 00 [20:03:02]wFMCommunicate OK [20:03:02]wFMCommunicate request_size=255 [20:03:02]MH_SAM_APDU [20:03:02]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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E8 00 00 00 F4 03 04 00 7E DC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B5 01 00 35 04 06 00 01 [20:03:02]Write to MH i2c: E2 02 01 B1 27 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E8 00 00 00 F4 03 04 00 7E DC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B5 01 00 35 04 06 00 01 00 00 1F [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:02]Read from MH i2c: E2 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 [20:03:02]MH_I2C_Read... [20:03:02]Read from MH i2c: E2 03 00 B1 27 00 90 00 4C [20:03:02]RAPDU: 90 00 [20:03:02]wFMCommunicate OK [20:03:02]wFMCommunicate request_size=10 [20:03:02]MH_SAM_APDU [20:03:02]CAPDU: 80 0D 02 02 05 EB 26 0E A8 64 [20:03:02]Write to MH i2c: E2 0D 00 B2 27 80 0D 02 02 05 00 EB 26 0E A8 64 00 00 88 [20:03:02]Write i2c OK [20:03:02]MH_I2C_Read... [20:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:03]Read from MH i2c: E2 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 03 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 03 00 B2 27 00 90 00 4D [20:03:03]RAPDU: 90 00 [20:03:03]wFMCommunicate OK [20:03:03]wFMCommunicate request_size=4 [20:03:03]MH_SAM_APDU [20:03:03]CAPDU: 80 0D 03 02 [20:03:03]Write to MH i2c: E2 08 00 B3 27 80 0D 03 02 00 00 00 00 55 [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:03]Read from MH i2c: E2 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 0B 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 0B 00 B3 27 00 04 1A 1E 6C 23 97 49 17 90 00 18 [20:03:03]RAPDU: 04 1A 1E 6C 23 97 49 17 90 00 [20:03:03]wFMCommunicate OK [20:03:03]SAM_PROTO_SignData done [20:03:03]FM_MakeSignedData done [20:03:03]CreateOFDProtocolMessage [20:03:03]wFMCommunicate request_size=4 [20:03:03]MH_SAM_APDU [20:03:03]CAPDU: 80 11 00 00 [20:03:03]Write to MH i2c: E2 08 00 B4 27 80 11 00 00 00 00 00 00 55 [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:03]Read from MH i2c: E2 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 17 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: E2 17 00 B4 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [20:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:03:03]wFMCommunicate OK [20:03:03]CreateOFDProtocolMessage done [20:03:03]OFDSenderStorePacket 112064 [20:03:03]StoreOFDPacket docnum=112064 [20:03:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 13 8B 07 01 64 C8 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E8 00 00 00 F4 03 04 00 7E DC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B5 01 00 35 04 06 00 01 EB 26 0E A8 64 04 1A 1E 6C 23 97 49 17 [20:03:03]CheckFolder [20:03:03]dirname=/storage/ofd_packets [20:03:03]CheckFolder done [20:03:03]ProducePacketName [20:03:03]name=ofd_packets/00112064 [20:03:03]NVStorageSaveData ofd_packets/00112064 [20:03:03]File name is /storage/ofd_packets/00112064 [20:03:03]Write 301 bytes [20:03:03]NVStorageSaveData done [20:03:03]OFDSenderStorePacket done [20:03:03]KKMCreateOFDPacket done [20:03:03]NVStorageSaveData kkm_last_timestamp [20:03:03]File name is /storage/kkm_last_timestamp [20:03:03]Write 4 bytes [20:03:03]NVStorageSaveData done [20:03:03]ExternCall_PrintAddStr [20:03:03]wPrintStart [20:03:03]Write to MH i2c: 01 00 00 B5 27 DC [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: 01 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: 01 07 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: 01 07 00 B5 27 00 00 00 00 00 FF 0F F1 [20:03:03]RasterBufferAndPrint [20:03:03]line 小褔械褌 N : (1)320724 [20:03:03]line 袠袧袧: 02508201610067 [20:03:03]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:03:03]line 袩袪袨袛袗袞袗 [20:03:03]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:03:03]line 孝芯胁邪褉: 2710124130 [20:03:03]line 袗懈-92-袣-5 [20:03:03]line 7.540 * 66.40 [20:03:03]line = 500.66 [20:03:03]line 袧袛小 12% 袧小袩 1% [20:03:03]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:03:03]line 袨袣袪校袚袥袝袧袠袝: -0.66 [20:03:03]line 袠孝袨袚袨: 500.00 [20:03:03]line 袙薪械褋械薪芯: 500.00 [20:03:03]line 小袛袗效袗: 0.00 [20:03:03]line 袧小袩 1% : 4.43 [20:03:03]line 袧袛小 12% : 53.17 [20:03:03]line 袧邪谢懈褔薪褘屑懈: 500.00 [20:03:03]line 袘械蟹薪邪谢.: 0.00 [20:03:03]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:03:03]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:03:03]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:03:03]line 效械泻 232 21.06.2024 20:03 [20:03:03]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:03:03]line 袟袧袦: 0300000198 [20:03:03]line 袪袧袦: 0000000000092771 [20:03:03]line 袙械褉褋懈褟 袣袣袦: 001 [20:03:03]line 肖袦: 0000000000875083 [20:03:03]line 肖袛: 112064 [20:03:03]line 肖袩袛: 2109467437156 [20:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T200310&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112064&fm=2109467437156&tin=02508201610067®Number=0000000000092771&sum=50000 [20:03:03]OFD Sender: Processing packet 112064 [packets to send 38, broken 37] [20:03:03]ProducePacketName [20:03:03]name=ofd_packets/00112064 [20:03:03]OFD Sender: To server: 嚂鰌G, [20:03:03]CommunicateWithHost lk.salyk.kg:30040 [20:03:03]ConnectInit lk.salyk.kg [20:03:03]written 0, free lines is 4095 [20:03:03]Connected sock=10 [20:03:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 13 8B 07 01 64 C8 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 E8 00 00 00 F4 03 04 00 7E DC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B5 01 00 35 04 06 00 01 EB 26 0E A8 64 04 1A 1E 6C 23 97 49 17 [20:03:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 76 06 47 00 4B 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 30 38 37 35 30 38 33 10 04 04 00 C0 B5 01 00 F4 03 04 00 A0 73 75 66 B6 04 01 00 00 C1 FF 7E 9F EC 3E A4 51 [20:03:03]CommunicateWithHost err = 0 [20:03:03]CheckOFDResponse [20:03:03]1017 (14) - 77093643461234 [20:03:03]1041 (16) - 0000000000875083 [20:03:03]1040 (4) - 112064 [20:03:03]1012 (4) - 21.06.2024 12:35 [20:03:03]1206 (1) - 0 [20:03:03]OFD Sender: Remove packet 112064 [20:03:03]ProducePacketName [20:03:03]name=ofd_packets/00112064 [20:03:03]NVStorageDeleteData [20:03:03]Write to MH i2c: 01 00 00 E0 27 07 [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: 01 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: 01 07 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: 01 07 00 E0 27 00 00 00 00 00 CD 0C E7 [20:03:03]RasterBufferAndPrint [20:03:03]line [20:03:03]line [20:03:03]line [20:03:03]line [20:03:03]line [20:03:03]written 0, free lines is 3283 [20:03:03]MH_Cut [20:03:03]Write to MH i2c: D1 01 00 E7 27 01 E0 [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: D1 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: D1 01 00 [20:03:03]MH_I2C_Read... [20:03:03]Read from MH i2c: D1 01 00 E7 27 00 DF [20:03:03]Write to MH i2c: 01 00 00 E8 27 0F [20:03:03]Write i2c OK [20:03:03]MH_I2C_Read... [20:03:04]OFD Sender: No OFD packet to send [20:03:04]*** Cut start [20:03:04]*** Partial cut [20:03:04]*** CUTSNS_PIN = 1 [20:03:04]*** CUTSNS_PIN = 0 [20:03:04]*** Brake cut motor [20:03:05]Read from MH i2c: 01 [20:03:05]MH_I2C_Read... [20:03:05]*** Stop cut motor [20:03:05]*** Cut end [20:03:05]Read from MH i2c: 01 07 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: 01 07 00 E8 27 00 00 00 00 00 FF 0F 24 [20:03:05]process_action close_receipt done [20:03:05]requested_data is exist [20:03:05]produce_requested_data [20:03:05]requested_item fm.sn is exist - process it [20:03:05]wFMCommunicate request_size=4 [20:03:05]MH_SAM_APDU [20:03:05]CAPDU: 80 11 00 00 [20:03:05]Write to MH i2c: E2 08 00 E9 27 80 11 00 00 00 00 00 00 8A [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:05]Read from MH i2c: E2 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 17 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 17 00 E9 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DC [20:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:03:05]wFMCommunicate OK [20:03:05]requested_item fd.num is exist - process it [20:03:05]SAM_PROTO_GetFieldsCounters [20:03:05]wFMCommunicate request_size=4 [20:03:05]MH_SAM_APDU [20:03:05]CAPDU: 80 13 00 00 [20:03:05]Write to MH i2c: E2 08 00 EA 27 80 13 00 00 00 00 00 00 8D [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:05]Read from MH i2c: E2 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 62 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 62 00 EA 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [20:03:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:03:05]wFMCommunicate OK [20:03:05]SAM_PROTO_GetFieldsCounters done [20:03:05]requested_item shift.num is exist - process it [20:03:05]requested_item shift.opened is exist - process it [20:03:05]req_shift_opened [20:03:05]FM_GetShiftState [20:03:05]SAM_PROTO_GetShiftState [20:03:05]wFMCommunicate request_size=4 [20:03:05]MH_SAM_APDU [20:03:05]CAPDU: 80 13 01 00 [20:03:05]Write to MH i2c: E2 08 00 EB 27 80 13 01 00 00 00 00 00 8F [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:05]Read from MH i2c: E2 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 0E 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 0E 00 EB 27 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0C [20:03:05]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:03:05]wFMCommunicate OK [20:03:05]SAM_PROTO_GetShiftState done [20:03:05]FM_GetShiftState done [20:03:05]req_shift_opened done [20:03:05]requested_item shift.open_date is exist - process it [20:03:05]req_shift_open_date [20:03:05]req_shift_open_date done [20:03:05]produce_requested_data done [20:03:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112064,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:03:05]process_action_free close_receipt [20:03:05]json_value_free [20:03:05]json_value_free done [20:03:05]process_json_proto returns [20:03:05]Send response to host [20:03:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112064,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:03:05]free response buf [20:03:05]execute_script done [20:03:05]execute_script returns [20:03:05]free content buf [20:03:05]Sock 9.Close socket [20:03:05]Sock 9.Thread stoped [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:03]accept exits with 7 [20:04:03]New connection [20:04:03]New thread 3066731876 created [20:04:03]Thread 3066875236 joined [20:04:03]Waiting for new connection... [20:04:03] Sock 7.Parse request [20:04:03]Sock 7.Check first char [20:04:03]Sock 7.First char is OK [20:04:03]request: POST /json_proto HTTP/1.0 [20:04:03]Method: POST [20:04:03]URL: /json_proto [20:04:03]Method is POST - this is cgi request [20:04:03]url: /json_proto [20:04:03]query_string will be loaded in cgi processing [20:04:03]execute_cgi json_proto POST (null) [20:04:03]execute_cgi path=json_proto method=POST [20:04:03]POST find Content-Length [20:04:03]Host: 172.17.59.68:8080 [20:04:03]Content-Length: 674 [20:04:03]Content-Type: application/json [20:04:03] [20:04:03]POST finish read [20:04:03]Found Content-Length = 674 [20:04:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 3.020, "sum" : 220.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:03]execute_script... [20:04: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)320725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 3.020, "sum" : 220.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:03]POST & json_proto [20:04:03]process_json_proto [20:04:03]json parsed OK: [20:04:03]protocol is kg_v1.0 [20:04:03]action value=close_receipt [20:04:03]process_action close_receipt [20:04:03]cmd_close_receipt [20:04:03]MH_GetDate [20:04:03]Write to MH i2c: F0 00 00 EC 27 02 [20:04:03]Write i2c OK [20:04:03]MH_I2C_Read... [20:04:03]Read from MH i2c: F0 [20:04:03]MH_I2C_Read... [20:04:03]Read from MH i2c: F0 09 00 [20:04:03]MH_I2C_Read... [20:04:03]Read from MH i2c: F0 09 00 EC 27 00 BC DC 75 66 BC EC 60 65 EB [20:04:03]GetLastDocTimeStamp 1719000190 [20:04:03]current date 1719000252 [20:04:03]FM_GetShiftState [20:04:03]SAM_PROTO_GetShiftState [20:04:03]wFMCommunicate request_size=4 [20:04:03]MH_SAM_APDU [20:04:03]CAPDU: 80 13 01 00 [20:04:03]Write to MH i2c: E2 08 00 ED 27 80 13 01 00 00 00 00 00 91 [20:04:03]Write i2c OK [20:04:03]MH_I2C_Read... [20:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:03]Read from MH i2c: E2 [20:04:03]MH_I2C_Read... [20:04:03]Read from MH i2c: E2 0E 00 [20:04:03]MH_I2C_Read... [20:04:03]Read from MH i2c: E2 0E 00 ED 27 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0E [20:04:03]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:04:03]wFMCommunicate OK [20:04:03]SAM_PROTO_GetShiftState done [20:04:03]FM_GetShiftState done [20:04:03]opened in 1718933695 [20:04:03]opened+sec_in_day 1719020095 [20:04:03]quantity*price = 22015 [20:04:03]sum+1 = 22017 [20:04:03]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.16 袠孝袨袚袨: 220.00 袙薪械褋械薪芯: 220.00 小袛袗效袗: 0.00 袧小袩 1% : 1.95 袧袛小 12% : 23.38 袧邪谢懈褔薪褘屑懈: 220.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 233 21.06.2024 20:04 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112065 肖袩袛: 248653179555447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T200413&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112065&fm=248653179555447&tin=02508201610067®Number=0000000000092771&sum=22000 [20:04:04]StoreToDocumentArchive [20:04:04]shift 390 fd 112065 [20:04:04]save to /storage/0390/doc_00112065 [20:04:04]save last doc name /storage/0390/doc_00112065 to /storage/kkm_last_doc_name [20:04:04]save OK [20:04:04]Clear old archive folders... [20:04:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:04:04]tlvbuf is B6E954E0 [20:04:04]SAM_PROTO_ClearQueue [20:04:04]wFMCommunicate request_size=4 [20:04:04]MH_SAM_APDU [20:04:04]CAPDU: 80 09 00 00 [20:04:04]Write to MH i2c: E2 08 00 FA 27 80 09 00 00 00 00 00 00 93 [20:04:04]Write i2c OK [20:04:04]MH_I2C_Read... [20:04:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:04]Read from MH i2c: E2 [20:04:04]MH_I2C_Read... [20:04:04]Read from MH i2c: E2 03 00 [20:04:04]MH_I2C_Read... [20:04:04]Read from MH i2c: E2 03 00 FA 27 00 90 00 95 [20:04:04]RAPDU: 90 00 [20:04:04]wFMCommunicate OK [20:04:04]SAM_PROTO_ClearQueue done [20:04:04]KKMCreateOFDPacket [20:04:04]OFDProtocolAddRootSTLVToBuf [20:04:04]FM_MakeSignedData [20:04:04]FM_MakeSignedData [20:04:04]SAM_PROTO_SignData [20:04:04]wFMCommunicate request_size=4 [20:04:04]MH_SAM_APDU [20:04:04]CAPDU: 80 0D 01 02 [20:04:04]Write to MH i2c: E2 08 00 FB 27 80 0D 01 02 00 00 00 00 9B [20:04:04]Write i2c OK [20:04:04]MH_I2C_Read... [20:04:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:04]Read from MH i2c: E2 [20:04:04]MH_I2C_Read... [20:04:04]Read from MH i2c: E2 03 00 [20:04:04]MH_I2C_Read... [20:04:04]Read from MH i2c: E2 03 00 FB 27 00 90 00 96 [20:04:04]RAPDU: 90 00 [20:04:04]wFMCommunicate OK [20:04:04]wFMCommunicate request_size=255 [20:04:04]MH_SAM_APDU [20:04:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 56 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 22 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 E9 00 00 00 F4 03 04 00 BD DC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B5 01 00 35 04 06 00 E2 26 14 70 [20:04:04]Write to MH i2c: E2 02 01 FC 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 56 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 22 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 E9 00 00 00 F4 03 04 00 BD DC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B5 01 00 35 04 06 00 E2 26 14 70 00 00 1A [20:04:04]Write i2c OK [20:04:04]MH_I2C_Read... [20:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:04]Read from MH i2c: E2 [20:04:04]MH_I2C_Read... [20:04:04]Read from MH i2c: E2 03 00 [20:04:04]MH_I2C_Read... [20:04:04]Read from MH i2c: E2 03 00 FC 27 00 90 00 97 [20:04:04]RAPDU: 90 00 [20:04:04]wFMCommunicate OK [20:04:04]wFMCommunicate request_size=7 [20:04:04]MH_SAM_APDU [20:04:04]CAPDU: 80 0D 02 02 02 8E 77 [20:04:04]Write to MH i2c: E2 0A 00 FD 27 80 0D 02 02 02 00 8E 77 00 00 A7 [20:04:04]Write i2c OK [20:04:04]MH_I2C_Read... [20:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:04]Read from MH i2c: E2 [20:04:04]MH_I2C_Read... [20:04:04]Read from MH i2c: E2 03 00 [20:04:04]MH_I2C_Read... [20:04:04]Read from MH i2c: E2 03 00 FD 27 00 90 00 98 [20:04:04]RAPDU: 90 00 [20:04:04]wFMCommunicate OK [20:04:04]wFMCommunicate request_size=4 [20:04:04]MH_SAM_APDU [20:04:04]CAPDU: 80 0D 03 02 [20:04:04]Write to MH i2c: E2 08 00 FE 27 80 0D 03 02 00 00 00 00 A0 [20:04:04]Write i2c OK [20:04:04]MH_I2C_Read... [20:04:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:04]Read from MH i2c: E2 [20:04:04]MH_I2C_Read... [20:04:04]Read from MH i2c: E2 0B 00 [20:04:04]MH_I2C_Read... [20:04:04]Read from MH i2c: E2 0B 00 FE 27 00 A3 F6 9C 7C A7 C1 E6 77 90 00 17 [20:04:04]RAPDU: A3 F6 9C 7C A7 C1 E6 77 90 00 [20:04:04]wFMCommunicate OK [20:04:04]SAM_PROTO_SignData done [20:04:04]FM_MakeSignedData done [20:04:04]CreateOFDProtocolMessage [20:04:04]wFMCommunicate request_size=4 [20:04:04]MH_SAM_APDU [20:04:04]CAPDU: 80 11 00 00 [20:04:04]Write to MH i2c: E2 08 00 FF 27 80 11 00 00 00 00 00 00 A0 [20:04:04]Write i2c OK [20:04:04]MH_I2C_Read... [20:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:05]Read from MH i2c: E2 [20:04:05]MH_I2C_Read... [20:04:05]Read from MH i2c: E2 17 00 [20:04:05]MH_I2C_Read... [20:04:05]Read from MH i2c: E2 17 00 FF 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [20:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:04:05]wFMCommunicate OK [20:04:05]CreateOFDProtocolMessage done [20:04:05]OFDSenderStorePacket 112065 [20:04:05]StoreOFDPacket docnum=112065 [20:04:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D8 D9 04 01 77 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 56 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 22 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 E9 00 00 00 F4 03 04 00 BD DC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B5 01 00 35 04 06 00 E2 26 14 70 8E 77 A3 F6 9C 7C A7 C1 E6 77 [20:04:05]CheckFolder [20:04:05]dirname=/storage/ofd_packets [20:04:05]CheckFolder done [20:04:05]ProducePacketName [20:04:05]name=ofd_packets/00112065 [20:04:05]NVStorageSaveData ofd_packets/00112065 [20:04:05]File name is /storage/ofd_packets/00112065 [20:04:05]Write 298 bytes [20:04:05]NVStorageSaveData done [20:04:05]OFDSenderStorePacket done [20:04:05]KKMCreateOFDPacket done [20:04:05]NVStorageSaveData kkm_last_timestamp [20:04:05]File name is /storage/kkm_last_timestamp [20:04:05]Write 4 bytes [20:04:05]NVStorageSaveData done [20:04:05]ExternCall_PrintAddStr [20:04:05]wPrintStart [20:04:05]Write to MH i2c: 01 00 00 00 28 28 [20:04:05]Write i2c OK [20:04:05]MH_I2C_Read... [20:04:05]Read from MH i2c: 01 [20:04:05]MH_I2C_Read... [20:04:05]Read from MH i2c: 01 07 00 [20:04:05]MH_I2C_Read... [20:04:05]Read from MH i2c: 01 07 00 00 28 00 00 00 00 00 FF 0F 3D [20:04:05]RasterBufferAndPrint [20:04:05]line 小褔械褌 N : (1)320725 [20:04:05]line 袠袧袧: 02508201610067 [20:04:05]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:04:05]line 袩袪袨袛袗袞袗 [20:04:05]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [20:04:05]line 孝芯胁邪褉: 2710194210 [20:04:05]line 袛孝-袣-5 [20:04:05]line 3.020 * 72.90 [20:04:05]line = 220.16 [20:04:05]line 袧袛小 12% 袧小袩 1% [20:04:05]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:04:05]line 袨袣袪校袚袥袝袧袠袝: -0.16 [20:04:05]line 袠孝袨袚袨: 220.00 [20:04:05]line 袙薪械褋械薪芯: 220.00 [20:04:05]line 小袛袗效袗: 0.00 [20:04:05]line 袧小袩 1% : 1.95 [20:04:05]line 袧袛小 12% : 23.38 [20:04:05]line 袧邪谢懈褔薪褘屑懈: 220.00 [20:04:05]line 袘械蟹薪邪谢.: 0.00 [20:04:05]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:04:05]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:04:05]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:04:05]line 效械泻 233 21.06.2024 20:04 [20:04:05]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:04:05]line 袟袧袦: 0300000198 [20:04:05]line 袪袧袦: 0000000000092771 [20:04:05]line 袙械褉褋懈褟 袣袣袦: 001 [20:04:05]line 肖袦: 0000000000875083 [20:04:05]line 肖袛: 112065 [20:04:05]line 肖袩袛: 248653179555447 [20:04:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T200413&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112065&fm=248653179555447&tin=02508201610067®Number=0000000000092771&sum=22000 [20:04:05]OFD Sender: Processing packet 112065 [packets to send 38, broken 37] [20:04:05]ProducePacketName [20:04:05]name=ofd_packets/00112065 [20:04:05]OFD Sender: To server: 嚂鰌G, [20:04:05]CommunicateWithHost lk.salyk.kg:30040 [20:04:05]ConnectInit lk.salyk.kg [20:04:05]written 0, free lines is 4095 [20:04:05]Connected sock=11 [20:04:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D8 D9 04 01 77 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 56 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 22 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 E9 00 00 00 F4 03 04 00 BD DC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B5 01 00 35 04 06 00 E2 26 14 70 8E 77 A3 F6 9C 7C A7 C1 E6 77 [20:04:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 95 94 47 00 BD 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 30 38 37 35 30 38 33 10 04 04 00 C1 B5 01 00 F4 03 04 00 DE 73 75 66 B6 04 01 00 00 66 E0 D5 E9 A4 4E AD E6 [20:04:05]CommunicateWithHost err = 0 [20:04:05]CheckOFDResponse [20:04:05]1017 (14) - 77093643461234 [20:04:05]1041 (16) - 0000000000875083 [20:04:05]1040 (4) - 112065 [20:04:05]1012 (4) - 21.06.2024 12:36 [20:04:05]1206 (1) - 0 [20:04:05]OFD Sender: Remove packet 112065 [20:04:05]ProducePacketName [20:04:05]name=ofd_packets/00112065 [20:04:05]NVStorageDeleteData [20:04:05]Write to MH i2c: 01 00 00 2B 28 53 [20:04:05]Write i2c OK [20:04:05]MH_I2C_Read... [20:04:05]Read from MH i2c: 01 [20:04:05]MH_I2C_Read... [20:04:05]Read from MH i2c: 01 07 00 [20:04:05]MH_I2C_Read... [20:04:05]Read from MH i2c: 01 07 00 2B 28 00 00 00 00 00 DA 0C 40 [20:04:05]RasterBufferAndPrint [20:04:05]line [20:04:05]line [20:04:05]line [20:04:05]line [20:04:05]line [20:04:05]written 0, free lines is 3298 [20:04:05]MH_Cut [20:04:05]Write to MH i2c: D1 01 00 32 28 01 2C [20:04:05]Write i2c OK [20:04:05]MH_I2C_Read... [20:04:05]Read from MH i2c: D1 [20:04:05]MH_I2C_Read... [20:04:05]Read from MH i2c: D1 01 00 [20:04:05]MH_I2C_Read... [20:04:05]Read from MH i2c: D1 01 00 32 28 00 2B [20:04:05]Write to MH i2c: 01 00 00 33 28 5B [20:04:05]Write i2c OK [20:04:05]MH_I2C_Read... [20:04:06]OFD Sender: No OFD packet to send [20:04:06]*** Cut start [20:04:06]*** Partial cut [20:04:06]*** CUTSNS_PIN = 1 [20:04:06]*** CUTSNS_PIN = 0 [20:04:06]*** Brake cut motor [20:04:07]Read from MH i2c: 01 [20:04:07]MH_I2C_Read... [20:04:07]*** Stop cut motor [20:04:07]*** Cut end [20:04:07]Read from MH i2c: 01 07 00 [20:04:07]MH_I2C_Read... [20:04:07]Read from MH i2c: 01 07 00 33 28 00 00 00 00 00 FF 0F 70 [20:04:07]process_action close_receipt done [20:04:07]requested_data is exist [20:04:07]produce_requested_data [20:04:07]requested_item fm.sn is exist - process it [20:04:07]wFMCommunicate request_size=4 [20:04:07]MH_SAM_APDU [20:04:07]CAPDU: 80 11 00 00 [20:04:07]Write to MH i2c: E2 08 00 34 28 80 11 00 00 00 00 00 00 D6 [20:04:07]Write i2c OK [20:04:07]MH_I2C_Read... [20:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:07]Read from MH i2c: E2 [20:04:07]MH_I2C_Read... [20:04:07]Read from MH i2c: E2 17 00 [20:04:07]MH_I2C_Read... [20:04:07]Read from MH i2c: E2 17 00 34 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 28 [20:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:04:07]wFMCommunicate OK [20:04:07]requested_item fd.num is exist - process it [20:04:07]SAM_PROTO_GetFieldsCounters [20:04:07]wFMCommunicate request_size=4 [20:04:07]MH_SAM_APDU [20:04:07]CAPDU: 80 13 00 00 [20:04:07]Write to MH i2c: E2 08 00 35 28 80 13 00 00 00 00 00 00 D9 [20:04:07]Write i2c OK [20:04:07]MH_I2C_Read... [20:04:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:07]Read from MH i2c: E2 [20:04:07]MH_I2C_Read... [20:04:07]Read from MH i2c: E2 62 00 [20:04:07]MH_I2C_Read... [20:04:07]Read from MH i2c: E2 62 00 35 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [20:04:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:04:07]wFMCommunicate OK [20:04:07]SAM_PROTO_GetFieldsCounters done [20:04:07]requested_item shift.num is exist - process it [20:04:07]requested_item shift.opened is exist - process it [20:04:07]req_shift_opened [20:04:07]FM_GetShiftState [20:04:07]SAM_PROTO_GetShiftState [20:04:07]wFMCommunicate request_size=4 [20:04:07]MH_SAM_APDU [20:04:07]CAPDU: 80 13 01 00 [20:04:07]Write to MH i2c: E2 08 00 36 28 80 13 01 00 00 00 00 00 DB [20:04:07]Write i2c OK [20:04:07]MH_I2C_Read... [20:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:07]Read from MH i2c: E2 [20:04:07]MH_I2C_Read... [20:04:07]Read from MH i2c: E2 0E 00 [20:04:07]MH_I2C_Read... [20:04:07]Read from MH i2c: E2 0E 00 36 28 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 58 [20:04:07]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:04:07]wFMCommunicate OK [20:04:07]SAM_PROTO_GetShiftState done [20:04:07]FM_GetShiftState done [20:04:07]req_shift_opened done [20:04:07]requested_item shift.open_date is exist - process it [20:04:07]req_shift_open_date [20:04:07]req_shift_open_date done [20:04:07]produce_requested_data done [20:04:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112065,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:04:07]process_action_free close_receipt [20:04:07]json_value_free [20:04:07]json_value_free done [20:04:07]process_json_proto returns [20:04:07]Send response to host [20:04:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112065,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:04:07]free response buf [20:04:07]execute_script done [20:04:07]execute_script returns [20:04:07]free content buf [20:04:07]Sock 7.Close socket [20:04:07]Sock 7.Thread stoped [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:31]accept exits with 9 [20:05:31]New connection [20:05:31]New thread 3066875236 created [20:05:31]Thread 3066731876 joined [20:05:31]Waiting for new connection... [20:05:31] Sock 9.Parse request [20:05:31]Sock 9.Check first char [20:05:31]Sock 9.First char is OK [20:05:31]request: POST /json_proto HTTP/1.0 [20:05:31]Method: POST [20:05:31]URL: /json_proto [20:05:31]Method is POST - this is cgi request [20:05:31]url: /json_proto [20:05:31]query_string will be loaded in cgi processing [20:05:31]execute_cgi json_proto POST (null) [20:05:31]execute_cgi path=json_proto method=POST [20:05:31]POST find Content-Length [20:05:31]Host: 172.17.59.68:8080 [20:05:31]Content-Length: 639 [20:05:31]Content-Type: application/json [20:05:31] [20:05:31]POST finish read [20:05:31]Found Content-Length = 639 [20:05:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:31]execute_script... [20:05: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)320726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:31]POST & json_proto [20:05:31]process_json_proto [20:05:31]json parsed OK: [20:05:31]protocol is kg_v1.0 [20:05:31]action value=close_receipt [20:05:31]process_action close_receipt [20:05:31]cmd_close_receipt [20:05:31]MH_GetDate [20:05:31]Write to MH i2c: F0 00 00 37 28 4E [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: F0 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: F0 09 00 [20:05:31]MH_I2C_Read... [20:05:31]Read from MH i2c: F0 09 00 37 28 00 15 DD 75 66 BC EC 60 65 91 [20:05:31]GetLastDocTimeStamp 1719000253 [20:05:31]current date 1719000341 [20:05:31]FM_GetShiftState [20:05:31]SAM_PROTO_GetShiftState [20:05:31]wFMCommunicate request_size=4 [20:05:31]MH_SAM_APDU [20:05:31]CAPDU: 80 13 01 00 [20:05:31]Write to MH i2c: E2 08 00 38 28 80 13 01 00 00 00 00 00 DD [20:05:31]Write i2c OK [20:05:31]MH_I2C_Read... [20:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:32]Read from MH i2c: E2 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: E2 0E 00 [20:05:32]MH_I2C_Read... [20:05:32]Read from MH i2c: E2 0E 00 38 28 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 5A [20:05:32]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:05:32]wFMCommunicate OK [20:05:32]SAM_PROTO_GetShiftState done [20:05:32]FM_GetShiftState done [20:05:32]opened in 1718933695 [20:05:32]opened+sec_in_day 1719020095 [20:05:32]quantity*price = 33200 [20:05:32]sum+1 = 33201 [20:05:32]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 332.00 袧小袩 1% : 2.94 袧袛小 12% : 35.26 袧邪谢懈褔薪褘屑懈: 332.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 234 21.06.2024 20:05 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112066 肖袩袛: 174129486373613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T200541&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112066&fm=174129486373613&tin=02508201610067®Number=0000000000092771&sum=33200 [20:05:33]StoreToDocumentArchive [20:05:33]shift 390 fd 112066 [20:05:33]save to /storage/0390/doc_00112066 [20:05:33]save last doc name /storage/0390/doc_00112066 to /storage/kkm_last_doc_name [20:05:33]save OK [20:05:33]Clear old archive folders... [20:05:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:33]tlvbuf is B6E959E0 [20:05:33]SAM_PROTO_ClearQueue [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 09 00 00 [20:05:33]Write to MH i2c: E2 08 00 45 28 80 09 00 00 00 00 00 00 DF [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 45 28 00 90 00 E1 [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]SAM_PROTO_ClearQueue done [20:05:33]KKMCreateOFDPacket [20:05:33]OFDProtocolAddRootSTLVToBuf [20:05:33]FM_MakeSignedData [20:05:33]FM_MakeSignedData [20:05:33]SAM_PROTO_SignData [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 0D 01 02 [20:05:33]Write to MH i2c: E2 08 00 46 28 80 0D 01 02 00 00 00 00 E7 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 46 28 00 90 00 E2 [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]wFMCommunicate request_size=255 [20:05:33]MH_SAM_APDU [20:05: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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 15 DD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B5 01 00 35 04 06 00 9E [20:05:33]Write to MH i2c: E2 02 01 47 28 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 15 DD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B5 01 00 35 04 06 00 9E 00 00 76 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 47 28 00 90 00 E3 [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]wFMCommunicate request_size=10 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 0D 02 02 05 5E AE 2E 22 ED [20:05:33]Write to MH i2c: E2 0D 00 48 28 80 0D 02 02 05 00 5E AE 2E 22 ED 00 00 3D [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 03 00 48 28 00 90 00 E4 [20:05:33]RAPDU: 90 00 [20:05:33]wFMCommunicate OK [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 0D 03 02 [20:05:33]Write to MH i2c: E2 08 00 49 28 80 0D 03 02 00 00 00 00 EC [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 0B 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 0B 00 49 28 00 58 FE 67 99 48 E5 31 BB 90 00 5C [20:05:33]RAPDU: 58 FE 67 99 48 E5 31 BB 90 00 [20:05:33]wFMCommunicate OK [20:05:33]SAM_PROTO_SignData done [20:05:33]FM_MakeSignedData done [20:05:33]CreateOFDProtocolMessage [20:05:33]wFMCommunicate request_size=4 [20:05:33]MH_SAM_APDU [20:05:33]CAPDU: 80 11 00 00 [20:05:33]Write to MH i2c: E2 08 00 4A 28 80 11 00 00 00 00 00 00 EC [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:33]Read from MH i2c: E2 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 17 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: E2 17 00 4A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3E [20:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:05:33]wFMCommunicate OK [20:05:33]CreateOFDProtocolMessage done [20:05:33]OFDSenderStorePacket 112066 [20:05:33]StoreOFDPacket docnum=112066 [20:05:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 1F 07 01 49 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 15 DD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B5 01 00 35 04 06 00 9E 5E AE 2E 22 ED 58 FE 67 99 48 E5 31 BB [20:05:33]CheckFolder [20:05:33]dirname=/storage/ofd_packets [20:05:33]CheckFolder done [20:05:33]ProducePacketName [20:05:33]name=ofd_packets/00112066 [20:05:33]NVStorageSaveData ofd_packets/00112066 [20:05:33]File name is /storage/ofd_packets/00112066 [20:05:33]Write 301 bytes [20:05:33]NVStorageSaveData done [20:05:33]OFDSenderStorePacket done [20:05:33]KKMCreateOFDPacket done [20:05:33]NVStorageSaveData kkm_last_timestamp [20:05:33]File name is /storage/kkm_last_timestamp [20:05:33]Write 4 bytes [20:05:33]NVStorageSaveData done [20:05:33]ExternCall_PrintAddStr [20:05:33]wPrintStart [20:05:33]Write to MH i2c: 01 00 00 4B 28 73 [20:05:33]Write i2c OK [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: 01 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: 01 07 00 [20:05:33]MH_I2C_Read... [20:05:33]Read from MH i2c: 01 07 00 4B 28 00 00 00 00 00 FF 0F 88 [20:05:33]RasterBufferAndPrint [20:05:33]line 小褔械褌 N : (1)320726 [20:05:33]line 袠袧袧: 02508201610067 [20:05:33]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:05:33]line 袩袪袨袛袗袞袗 [20:05:33]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:05:33]line 孝芯胁邪褉: 2710124130 [20:05:33]line 袗懈-92-袣-5 [20:05:33]line 5.000 * 66.40 [20:05:33]line = 332.00 [20:05:33]line 袧袛小 12% 袧小袩 1% [20:05:33]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:05:33]line 袠孝袨袚袨: 332.00 [20:05:33]line 袧小袩 1% : 2.94 [20:05:33]line 袧袛小 12% : 35.26 [20:05:33]line 袧邪谢懈褔薪褘屑懈: 332.00 [20:05:33]line 袘械蟹薪邪谢.: 0.00 [20:05:33]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:05:33]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:05:33]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:05:33]line 效械泻 234 21.06.2024 20:05 [20:05:33]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:05:33]line 袟袧袦: 0300000198 [20:05:33]line 袪袧袦: 0000000000092771 [20:05:33]line 袙械褉褋懈褟 袣袣袦: 001 [20:05:33]line 肖袦: 0000000000875083 [20:05:33]line 肖袛: 112066 [20:05:33]line 肖袩袛: 174129486373613 [20:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T200541&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112066&fm=174129486373613&tin=02508201610067®Number=0000000000092771&sum=33200 [20:05:34]OFD Sender: Processing packet 112066 [packets to send 38, broken 37] [20:05:34]ProducePacketName [20:05:34]name=ofd_packets/00112066 [20:05:34]OFD Sender: To server: 嚂鰌G, [20:05:34]CommunicateWithHost lk.salyk.kg:30040 [20:05:34]ConnectInit lk.salyk.kg [20:05:34]written 0, free lines is 4095 [20:05:34]Connected sock=10 [20:05:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 1F 07 01 49 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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 15 DD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B5 01 00 35 04 06 00 9E 5E AE 2E 22 ED 58 FE 67 99 48 E5 31 BB [20:05:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 82 38 47 00 77 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 30 38 37 35 30 38 33 10 04 04 00 C2 B5 01 00 F4 03 04 00 37 74 75 66 B6 04 01 00 00 F4 D5 A6 16 C7 66 E3 F2 [20:05:34]CommunicateWithHost err = 0 [20:05:34]CheckOFDResponse [20:05:34]1017 (14) - 77093643461234 [20:05:34]1041 (16) - 0000000000875083 [20:05:34]1040 (4) - 112066 [20:05:34]1012 (4) - 21.06.2024 12:38 [20:05:34]1206 (1) - 0 [20:05:34]OFD Sender: Remove packet 112066 [20:05:34]ProducePacketName [20:05:34]name=ofd_packets/00112066 [20:05:34]NVStorageDeleteData [20:05:34]Write to MH i2c: 01 00 00 73 28 9B [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: 01 [20:05:34]MH_I2C_Read... [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 73 28 00 00 00 00 00 19 0D C8 [20:05:34]RasterBufferAndPrint [20:05:34]line [20:05:34]line [20:05:34]line [20:05:34]line [20:05:34]line [20:05:34]written 0, free lines is 3360 [20:05:34]MH_Cut [20:05:34]Write to MH i2c: D1 01 00 7A 28 01 74 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: D1 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: D1 01 00 [20:05:34]MH_I2C_Read... [20:05:34]Read from MH i2c: D1 01 00 7A 28 00 73 [20:05:34]Write to MH i2c: 01 00 00 7B 28 A3 [20:05:34]Write i2c OK [20:05:34]MH_I2C_Read... [20:05:34]OFD Sender: No OFD packet to send [20:05:35]*** Cut start [20:05:35]*** Partial cut [20:05:35]*** CUTSNS_PIN = 1 [20:05:35]*** CUTSNS_PIN = 0 [20:05:35]*** Brake cut motor [20:05:35]Read from MH i2c: 01 [20:05:35]MH_I2C_Read... [20:05:35]*** Stop cut motor [20:05:35]*** Cut end [20:05:35]Read from MH i2c: 01 07 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: 01 07 00 7B 28 00 00 00 00 00 FF 0F B8 [20:05:35]process_action close_receipt done [20:05:35]requested_data is exist [20:05:35]produce_requested_data [20:05:35]requested_item fm.sn is exist - process it [20:05:35]wFMCommunicate request_size=4 [20:05:35]MH_SAM_APDU [20:05:35]CAPDU: 80 11 00 00 [20:05:35]Write to MH i2c: E2 08 00 7C 28 80 11 00 00 00 00 00 00 1E [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:35]Read from MH i2c: E2 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 17 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 17 00 7C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 70 [20:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:05:35]wFMCommunicate OK [20:05:35]requested_item fd.num is exist - process it [20:05:35]SAM_PROTO_GetFieldsCounters [20:05:35]wFMCommunicate request_size=4 [20:05:35]MH_SAM_APDU [20:05:35]CAPDU: 80 13 00 00 [20:05:35]Write to MH i2c: E2 08 00 7D 28 80 13 00 00 00 00 00 00 21 [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:35]Read from MH i2c: E2 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 62 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 62 00 7D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [20:05:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:35]wFMCommunicate OK [20:05:35]SAM_PROTO_GetFieldsCounters done [20:05:35]requested_item shift.num is exist - process it [20:05:35]requested_item shift.opened is exist - process it [20:05:35]req_shift_opened [20:05:35]FM_GetShiftState [20:05:35]SAM_PROTO_GetShiftState [20:05:35]wFMCommunicate request_size=4 [20:05:35]MH_SAM_APDU [20:05:35]CAPDU: 80 13 01 00 [20:05:35]Write to MH i2c: E2 08 00 7E 28 80 13 01 00 00 00 00 00 23 [20:05:35]Write i2c OK [20:05:35]MH_I2C_Read... [20:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:35]Read from MH i2c: E2 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 0E 00 [20:05:35]MH_I2C_Read... [20:05:35]Read from MH i2c: E2 0E 00 7E 28 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A0 [20:05:35]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:05:35]wFMCommunicate OK [20:05:35]SAM_PROTO_GetShiftState done [20:05:35]FM_GetShiftState done [20:05:35]req_shift_opened done [20:05:35]requested_item shift.open_date is exist - process it [20:05:35]req_shift_open_date [20:05:35]req_shift_open_date done [20:05:35]produce_requested_data done [20:05:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112066,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:05:35]process_action_free close_receipt [20:05:35]json_value_free [20:05:35]json_value_free done [20:05:35]process_json_proto returns [20:05:35]Send response to host [20:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112066,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:05:35]free response buf [20:05:35]execute_script done [20:05:35]execute_script returns [20:05:35]free content buf [20:05:35]Sock 9.Close socket [20:05:35]Sock 9.Thread stoped [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11: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:48]int [20:16:48]Write to MH i2c: 01 00 00 7F 28 A7 [20:16:48]*** FLAG_PRN_PAP1 set [20:16:48]Write i2c OK [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: 01 [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: 01 07 00 [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: 01 07 00 7F 28 00 01 00 00 00 FF 0F BD [20:16:48]state=0 [20:16:48]No paper [20:16:48]int [20:16:48]Write to MH i2c: 01 00 00 80 28 A8 [20:16:48]*** FLAG_PRN_PAP2 set [20:16:48]Write i2c OK [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: 01 [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: 01 07 00 [20:16:48]MH_I2C_Read... [20:16:48]Read from MH i2c: 01 07 00 80 28 00 03 00 00 00 FF 0F C0 [20:16:48]state=0 [20:16:48]No paper [20:16:48]Cover opened [20:16:50]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 E4 [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]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [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]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 540000000057253F (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: 18150172+1700850876=1719001048 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [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 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 E5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [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 D9 DF 75 66 BC EC 60 65 FF [20:17:29]Current date/time: 21.06.2024 20:17 [20:17:29]FM_Init [20:17:29]wFMConnect [20:17:29]MH_SAM_On [20:17:29]Write to MH i2c: E0 00 00 08 00 E7 [20:17:29]Write i2c OK [20:17:29]MH_I2C_Read... [20:17:29]*** iso7816_init finished! [20:17:29]*** atr: [20:17:29]*** 0F 3B D5 18 FF 81 91 FE [20:17:29]*** 1F C3 80 73 C8 21 10 0A [20:17:29]*** 00 00 00 00 00 00 00 00 [20:17:29]*** 00 00 00 00 00 00 00 00 [20:17:29]*** 00 00 00 00 00 00 00 00 [20:17:29]*** 00 00 00 00 00 00 00 00 [20:17:29]*** 00 00 00 00 00 00 00 00 [20:17:29]*** 00 00 00 00 00 00 00 00 [20:17:29]Read from MH i2c: E0 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E0 10 00 [20:17:29]MH_I2C_Read... [20:17:29]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 [20:17:29]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [20:17:29]wFMCommunicate request_size=10 [20:17:29]MH_SAM_APDU [20:17:29]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [20:17:29]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [20:17:29]Write i2c OK [20:17:29]MH_I2C_Read... [20:17:29]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [20:17:29]Read from MH i2c: E2 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E2 03 00 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [20:17:29]RAPDU: 90 00 [20:17:29]wFMCommunicate OK [20:17:29]wFMCommunicate request_size=4 [20:17:29]MH_SAM_APDU [20:17:29]CAPDU: 80 11 00 00 [20:17:29]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [20:17:29]Write i2c OK [20:17:29]MH_I2C_Read... [20:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:29]Read from MH i2c: E2 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E2 17 00 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [20:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:17:29]wFMCommunicate OK [20:17:29]Detected FM SN is 0000000000875083 [20:17:29]Stored FM SN is 0000000000875083 [20:17:29]wFMCommunicate request_size=9 [20:17:29]MH_SAM_APDU [20:17:29]CAPDU: 80 16 00 00 04 46 5F 00 00 [20:17:29]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 46 5F 00 00 00 00 37 [20:17:29]Write i2c OK [20:17:29]MH_I2C_Read... [20:17:29]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [20:17:29]Read from MH i2c: E2 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E2 03 00 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [20:17:29]RAPDU: 90 00 [20:17:29]wFMCommunicate OK [20:17:29]FM PIN OK [20:17:29]wFMCommunicate request_size=8 [20:17:29]MH_SAM_APDU [20:17:29]CAPDU: 80 14 04 00 03 02 00 01 [20:17:29]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [20:17:29]Write i2c OK [20:17:29]MH_I2C_Read... [20:17:29]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [20:17:29]Read from MH i2c: E2 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E2 03 00 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [20:17:29]RAPDU: 90 00 [20:17:29]wFMCommunicate OK [20:17:29]wFMCommunicate request_size=13 [20:17:29]MH_SAM_APDU [20:17:29]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [20:17:29]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 [20:17:29]Write i2c OK [20:17:29]MH_I2C_Read... [20:17:29]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [20:17:29]Read from MH i2c: E2 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E2 03 00 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [20:17:29]RAPDU: 90 00 [20:17:29]wFMCommunicate OK [20:17:29]wFMCommunicate request_size=4 [20:17:29]MH_SAM_APDU [20:17:29]CAPDU: 80 11 00 00 [20:17:29]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [20:17:29]Write i2c OK [20:17:29]MH_I2C_Read... [20:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:29]Read from MH i2c: E2 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E2 17 00 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [20:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:17:29]wFMCommunicate OK [20:17:29]DocumentArchiveInit [20:17:29]Start Httpd... [20:17:29]Httpd thread 3067243876 created [20:17:29]Write to MH i2c: 01 00 00 0F 00 0F [20:17:29]Write i2c OK [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: 01 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: 01 07 00 [20:17:29]MH_I2C_Read... [20:17:29]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [20:17:29]MH Int Process started [20:17:29]Allocated Socket 8 [20:17:29]Bind OK [20:17:29]Listen OK [20:17:29]httpd running on port 8080 [20:17:29]Waiting for new connection... [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:38]accept exits with 9 [20:18:38]New connection [20:18:38]New thread 3066957156 created [20:18:38]Waiting for new connection... [20:18:38] Sock 9.Parse request [20:18:38]Sock 9.Check first char [20:18:38]Sock 9.First char is OK [20:18:38]request: POST /json_proto HTTP/1.0 [20:18:38]Method: POST [20:18:38]URL: /json_proto [20:18:38]Method is POST - this is cgi request [20:18:38]url: /json_proto [20:18:38]query_string will be loaded in cgi processing [20:18:38]execute_cgi json_proto POST (null) [20:18:38]execute_cgi path=json_proto method=POST [20:18:38]POST find Content-Length [20:18:38]Host: 172.17.59.68:8080 [20:18:38]Content-Length: 682 [20:18:38]Content-Type: application/json [20:18:38] [20:18:38]POST finish read [20:18:38]Found Content-Length = 682 [20:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:18:38]execute_script... [20:18: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 : (1)320727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:18:38]POST & json_proto [20:18:38]process_json_proto [20:18:38]json parsed OK: [20:18:38]protocol is kg_v1.0 [20:18:38]action value=close_receipt [20:18:38]process_action close_receipt [20:18:38]cmd_close_receipt [20:18:38]MH_GetDate [20:18:38]Write to MH i2c: F0 00 00 10 00 FF [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: F0 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: F0 09 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: F0 09 00 10 00 00 1E E0 75 66 BC EC 60 65 4E [20:18:38]GetLastDocTimeStamp 1719000341 [20:18:38]current date 1719001118 [20:18:38]FM_GetShiftState [20:18:38]SAM_PROTO_GetShiftState [20:18:38]wFMCommunicate request_size=4 [20:18:38]MH_SAM_APDU [20:18:38]CAPDU: 80 13 01 00 [20:18:38]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:38]Read from MH i2c: E2 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 0E 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0B [20:18:38]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:18:38]wFMCommunicate OK [20:18:38]SAM_PROTO_GetShiftState done [20:18:38]FM_GetShiftState done [20:18:38]opened in 1718933695 [20:18:38]opened+sec_in_day 1719020095 [20:18:38]quantity*price = 100064 [20:18:38]sum+1 = 100066 [20:18:38]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 235 21.06.2024 20:18 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112067 肖袩袛: 20775068400337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T201838&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112067&fm=20775068400337&tin=02508201610067®Number=0000000000092771&sum=100000 [20:18:39]StoreToDocumentArchive [20:18:39]shift 390 fd 112067 [20:18:39]save to /storage/0390/doc_00112067 [20:18:39]save last doc name /storage/0390/doc_00112067 to /storage/kkm_last_doc_name [20:18:39]save OK [20:18:39]Clear old archive folders... [20:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:39]tlvbuf is 01134BF0 [20:18:39]SAM_PROTO_ClearQueue [20:18:39]wFMCommunicate request_size=4 [20:18:39]MH_SAM_APDU [20:18:39]CAPDU: 80 09 00 00 [20:18:39]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:39]Read from MH i2c: E2 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 03 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [20:18:39]RAPDU: 90 00 [20:18:39]wFMCommunicate OK [20:18:39]SAM_PROTO_ClearQueue done [20:18:39]KKMCreateOFDPacket [20:18:39]OFDProtocolAddRootSTLVToBuf [20:18:39]FM_MakeSignedData [20:18:39]FM_MakeSignedData [20:18:39]SAM_PROTO_SignData [20:18:39]wFMCommunicate request_size=4 [20:18:39]MH_SAM_APDU [20:18:39]CAPDU: 80 0D 01 02 [20:18:39]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:39]Read from MH i2c: E2 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 03 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [20:18:39]RAPDU: 90 00 [20:18:39]wFMCommunicate OK [20:18:39]wFMCommunicate request_size=255 [20:18:39]MH_SAM_APDU [20:18:39]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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 EB 00 00 00 F4 03 04 00 1E E0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B5 01 00 35 04 06 00 12 [20:18:39]Write to MH i2c: E2 02 01 20 00 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 EB 00 00 00 F4 03 04 00 1E E0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B5 01 00 35 04 06 00 12 00 00 72 [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:40]Read from MH i2c: E2 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 03 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [20:18:40]RAPDU: 90 00 [20:18:40]wFMCommunicate OK [20:18:40]wFMCommunicate request_size=10 [20:18:40]MH_SAM_APDU [20:18:40]CAPDU: 80 0D 02 02 05 E5 12 92 7A D1 [20:18:40]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 E5 12 92 7A D1 00 00 79 [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:40]Read from MH i2c: E2 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 03 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [20:18:40]RAPDU: 90 00 [20:18:40]wFMCommunicate OK [20:18:40]wFMCommunicate request_size=4 [20:18:40]MH_SAM_APDU [20:18:40]CAPDU: 80 0D 03 02 [20:18:40]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:40]Read from MH i2c: E2 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 0B 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 0B 00 22 00 00 CC 71 5D 03 1D 61 20 2F 90 00 08 [20:18:40]RAPDU: CC 71 5D 03 1D 61 20 2F 90 00 [20:18:40]wFMCommunicate OK [20:18:40]SAM_PROTO_SignData done [20:18:40]FM_MakeSignedData done [20:18:40]CreateOFDProtocolMessage [20:18:40]wFMCommunicate request_size=4 [20:18:40]MH_SAM_APDU [20:18:40]CAPDU: 80 11 00 00 [20:18:40]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:40]Read from MH i2c: E2 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 17 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EF [20:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:18:40]wFMCommunicate OK [20:18:40]CreateOFDProtocolMessage done [20:18:40]OFDSenderStorePacket 112067 [20:18:40]StoreOFDPacket docnum=112067 [20:18:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DA 87 07 01 18 38 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 EB 00 00 00 F4 03 04 00 1E E0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B5 01 00 35 04 06 00 12 E5 12 92 7A D1 CC 71 5D 03 1D 61 20 2F [20:18:40]CheckFolder [20:18:40]dirname=/storage/ofd_packets [20:18:40]CheckFolder done [20:18:40]ProducePacketName [20:18:40]name=ofd_packets/00112067 [20:18:40]NVStorageSaveData ofd_packets/00112067 [20:18:40]File name is /storage/ofd_packets/00112067 [20:18:40]Write 301 bytes [20:18:40]NVStorageSaveData done [20:18:40]OFDSenderStorePacket done [20:18:40]KKMCreateOFDPacket done [20:18:40]NVStorageSaveData kkm_last_timestamp [20:18:40]File name is /storage/kkm_last_timestamp [20:18:40]Write 4 bytes [20:18:40]NVStorageSaveData done [20:18:40]ExternCall_PrintAddStr [20:18:40]wPrintStart [20:18:40]Write to MH i2c: 01 00 00 24 00 24 [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: 01 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: 01 07 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [20:18:40]RasterBufferAndPrint [20:18:40]line 小褔械褌 N : (1)320727 [20:18:40]line 袠袧袧: 02508201610067 [20:18:40]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:18:40]line 袩袪袨袛袗袞袗 [20:18:40]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:18:40]line 孝芯胁邪褉: 2710124130 [20:18:40]line 袗懈-92-袣-5 [20:18:40]line 15.070 * 66.40 [20:18:40]line = 1000.65 [20:18:40]line 袧袛小 12% 袧小袩 1% [20:18:40]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:18:40]line 袨袣袪校袚袥袝袧袠袝: -0.65 [20:18:40]line 袠孝袨袚袨: 1000.00 [20:18:40]line 袙薪械褋械薪芯: 1000.00 [20:18:40]line 小袛袗效袗: 0.00 [20:18:40]line 袧小袩 1% : 8.85 [20:18:40]line 袧袛小 12% : 106.26 [20:18:40]line 袧邪谢懈褔薪褘屑懈: 1000.00 [20:18:40]line 袘械蟹薪邪谢.: 0.00 [20:18:40]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:18:40]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:18:40]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:18:40]line 效械泻 235 21.06.2024 20:18 [20:18:40]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:18:40]line 袟袧袦: 0300000198 [20:18:40]line 袪袧袦: 0000000000092771 [20:18:40]line 袙械褉褋懈褟 袣袣袦: 001 [20:18:40]line 肖袦: 0000000000875083 [20:18:40]line 肖袛: 112067 [20:18:40]line 肖袩袛: 20775068400337 [20:18:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T201838&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112067&fm=20775068400337&tin=02508201610067®Number=0000000000092771&sum=100000 [20:18:40]written 0, free lines is 4095 [20:18:40]OFD Sender: Processing packet 112067 [packets to send 38, broken 37] [20:18:40]ProducePacketName [20:18:40]name=ofd_packets/00112067 [20:18:40]OFD Sender: To server: 嚂鰌G, [20:18:40]CommunicateWithHost lk.salyk.kg:30040 [20:18:40]ConnectInit lk.salyk.kg [20:18:40]Connected sock=10 [20:18:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DA 87 07 01 18 38 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 EB 00 00 00 F4 03 04 00 1E E0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B5 01 00 35 04 06 00 12 E5 12 92 7A D1 CC 71 5D 03 1D 61 20 2F [20:18:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 94 E1 47 00 3E 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 30 38 37 35 30 38 33 10 04 04 00 C3 B5 01 00 F4 03 04 00 40 77 75 66 B6 04 01 00 00 C5 5C B2 D9 88 D4 D0 10 [20:18:40]CommunicateWithHost err = 0 [20:18:40]CheckOFDResponse [20:18:40]1017 (14) - 77093643461234 [20:18:40]1041 (16) - 0000000000875083 [20:18:40]1040 (4) - 112067 [20:18:40]1012 (4) - 21.06.2024 12:51 [20:18:40]1206 (1) - 0 [20:18:40]OFD Sender: Remove packet 112067 [20:18:40]ProducePacketName [20:18:40]name=ofd_packets/00112067 [20:18:40]NVStorageDeleteData [20:18:40]Write to MH i2c: 01 00 00 4F 00 4F [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: 01 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: 01 07 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 EC 0C 4E [20:18:40]RasterBufferAndPrint [20:18:40]line [20:18:40]line [20:18:40]line [20:18:40]line [20:18:40]line [20:18:40]written 0, free lines is 3314 [20:18:40]MH_Cut [20:18:40]Write to MH i2c: D1 01 00 56 00 01 28 [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: D1 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: D1 01 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: D1 01 00 56 00 00 27 [20:18:40]Write to MH i2c: 01 00 00 57 00 57 [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:41]OFD Sender: No OFD packet to send [20:18:41]*** Cut start [20:18:41]*** Partial cut [20:18:41]*** CUTSNS_PIN = 1 [20:18:41]*** CUTSNS_PIN = 0 [20:18:41]*** Brake cut motor [20:18:41]Read from MH i2c: 01 [20:18:41]MH_I2C_Read... [20:18:41]*** Stop cut motor [20:18:41]*** Cut end [20:18:41]Read from MH i2c: 01 07 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [20:18:41]process_action close_receipt done [20:18:41]requested_data is exist [20:18:41]produce_requested_data [20:18:41]requested_item fm.sn is exist - process it [20:18:41]wFMCommunicate request_size=4 [20:18:41]MH_SAM_APDU [20:18:41]CAPDU: 80 11 00 00 [20:18:41]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [20:18:41]Write i2c OK [20:18:41]MH_I2C_Read... [20:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:42]Read from MH i2c: E2 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 17 00 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 24 [20:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:18:42]wFMCommunicate OK [20:18:42]requested_item fd.num is exist - process it [20:18:42]SAM_PROTO_GetFieldsCounters [20:18:42]wFMCommunicate request_size=4 [20:18:42]MH_SAM_APDU [20:18:42]CAPDU: 80 13 00 00 [20:18:42]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [20:18:42]Write i2c OK [20:18:42]MH_I2C_Read... [20:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:42]Read from MH i2c: E2 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 62 00 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [20:18:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:42]wFMCommunicate OK [20:18:42]SAM_PROTO_GetFieldsCounters done [20:18:42]requested_item shift.num is exist - process it [20:18:42]requested_item shift.opened is exist - process it [20:18:42]req_shift_opened [20:18:42]FM_GetShiftState [20:18:42]SAM_PROTO_GetShiftState [20:18:42]wFMCommunicate request_size=4 [20:18:42]MH_SAM_APDU [20:18:42]CAPDU: 80 13 01 00 [20:18:42]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [20:18:42]Write i2c OK [20:18:42]MH_I2C_Read... [20:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:42]Read from MH i2c: E2 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 0E 00 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 54 [20:18:42]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:18:42]wFMCommunicate OK [20:18:42]SAM_PROTO_GetShiftState done [20:18:42]FM_GetShiftState done [20:18:42]req_shift_opened done [20:18:42]requested_item shift.open_date is exist - process it [20:18:42]req_shift_open_date [20:18:42]req_shift_open_date done [20:18:42]produce_requested_data done [20:18:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112067,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:18:42]process_action_free close_receipt [20:18:42]json_value_free [20:18:42]json_value_free done [20:18:42]process_json_proto returns [20:18:42]Send response to host [20:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112067,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:18:42]free response buf [20:18:42]execute_script done [20:18:42]execute_script returns [20:18:42]free content buf [20:18:42]Sock 9.Close socket [20:18:42]Sock 9.Thread stoped [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:42]accept exits with 7 [20:19:42]New connection [20:19:42]New thread 3066813796 created [20:19:42]Thread 3066957156 joined [20:19:42]Waiting for new connection... [20:19:42] Sock 7.Parse request [20:19:42]Sock 7.Check first char [20:19:42]Sock 7.First char is OK [20:19:42]request: POST /json_proto HTTP/1.0 [20:19:42]Method: POST [20:19:42]URL: /json_proto [20:19:42]Method is POST - this is cgi request [20:19:42]url: /json_proto [20:19:42]query_string will be loaded in cgi processing [20:19:42]execute_cgi json_proto POST (null) [20:19:42]execute_cgi path=json_proto method=POST [20:19:42]POST find Content-Length [20:19:42]Host: 172.17.59.68:8080 [20:19:42]Content-Length: 674 [20:19:42]Content-Type: application/json [20:19:42] [20:19:42]POST finish read [20:19:42]Found Content-Length = 674 [20:19:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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:19:42]execute_script... [20:19: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 : (1)320728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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:19:42]POST & json_proto [20:19:42]process_json_proto [20:19:42]json parsed OK: [20:19:42]protocol is kg_v1.0 [20:19:42]action value=close_receipt [20:19:42]process_action close_receipt [20:19:42]cmd_close_receipt [20:19:42]MH_GetDate [20:19:42]Write to MH i2c: F0 00 00 5B 00 4A [20:19:42]Write i2c OK [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: F0 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: F0 09 00 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: F0 09 00 5B 00 00 5E E0 75 66 BC EC 60 65 D9 [20:19:42]GetLastDocTimeStamp 1719001118 [20:19:42]current date 1719001182 [20:19:42]FM_GetShiftState [20:19:42]SAM_PROTO_GetShiftState [20:19:42]wFMCommunicate request_size=4 [20:19:42]MH_SAM_APDU [20:19:42]CAPDU: 80 13 01 00 [20:19:42]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [20:19:42]Write i2c OK [20:19:42]MH_I2C_Read... [20:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:42]Read from MH i2c: E2 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: E2 0E 00 [20:19:42]MH_I2C_Read... [20:19:42]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 56 [20:19:42]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:19:42]wFMCommunicate OK [20:19:42]SAM_PROTO_GetShiftState done [20:19:42]FM_GetShiftState done [20:19:42]opened in 1718933695 [20:19:42]opened+sec_in_day 1719020095 [20:19:42]quantity*price = 70056 [20:19:42]sum+1 = 70058 [20:19:42]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.57 袠孝袨袚袨: 700.00 袙薪械褋械薪芯: 700.00 小袛袗效袗: 0.00 袧小袩 1% : 6.20 袧袛小 12% : 74.40 袧邪谢懈褔薪褘屑懈: 700.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 236 21.06.2024 20:19 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112068 肖袩袛: 20109524174334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T201942&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112068&fm=20109524174334&tin=02508201610067®Number=0000000000092771&sum=70000 [20:19:43]StoreToDocumentArchive [20:19:43]shift 390 fd 112068 [20:19:43]save to /storage/0390/doc_00112068 [20:19:43]save last doc name /storage/0390/doc_00112068 to /storage/kkm_last_doc_name [20:19:43]save OK [20:19:43]Clear old archive folders... [20:19:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:19:43]tlvbuf is 0111DBA0 [20:19:43]SAM_PROTO_ClearQueue [20:19:43]wFMCommunicate request_size=4 [20:19:43]MH_SAM_APDU [20:19:43]CAPDU: 80 09 00 00 [20:19:43]Write to MH i2c: E2 08 00 69 00 80 09 00 00 00 00 00 00 DB [20:19:43]Write i2c OK [20:19:43]MH_I2C_Read... [20:19:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:43]Read from MH i2c: E2 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 03 00 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [20:19:43]RAPDU: 90 00 [20:19:43]wFMCommunicate OK [20:19:43]SAM_PROTO_ClearQueue done [20:19:43]KKMCreateOFDPacket [20:19:43]OFDProtocolAddRootSTLVToBuf [20:19:43]FM_MakeSignedData [20:19:43]FM_MakeSignedData [20:19:43]SAM_PROTO_SignData [20:19:43]wFMCommunicate request_size=4 [20:19:43]MH_SAM_APDU [20:19:43]CAPDU: 80 0D 01 02 [20:19:43]Write to MH i2c: E2 08 00 6A 00 80 0D 01 02 00 00 00 00 E3 [20:19:43]Write i2c OK [20:19:43]MH_I2C_Read... [20:19:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:43]Read from MH i2c: E2 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 03 00 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [20:19:43]RAPDU: 90 00 [20:19:43]wFMCommunicate OK [20:19:43]wFMCommunicate request_size=255 [20:19:43]MH_SAM_APDU [20:19:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 EC 00 00 00 F4 03 04 00 5E E0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B5 01 00 35 04 06 00 12 4A 1D 0B [20:19:43]Write to MH i2c: E2 02 01 6B 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 EC 00 00 00 F4 03 04 00 5E E0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B5 01 00 35 04 06 00 12 4A 1D 0B 00 00 69 [20:19:43]Write i2c OK [20:19:43]MH_I2C_Read... [20:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:43]Read from MH i2c: E2 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 03 00 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [20:19:43]RAPDU: 90 00 [20:19:43]wFMCommunicate OK [20:19:43]wFMCommunicate request_size=7 [20:19:43]MH_SAM_APDU [20:19:43]CAPDU: 80 0D 02 02 02 85 FE [20:19:43]Write to MH i2c: E2 0A 00 6C 00 80 0D 02 02 02 00 85 FE 00 00 6D [20:19:43]Write i2c OK [20:19:43]MH_I2C_Read... [20:19:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:43]Read from MH i2c: E2 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 03 00 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [20:19:43]RAPDU: 90 00 [20:19:43]wFMCommunicate OK [20:19:43]wFMCommunicate request_size=4 [20:19:43]MH_SAM_APDU [20:19:43]CAPDU: 80 0D 03 02 [20:19:43]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [20:19:43]Write i2c OK [20:19:43]MH_I2C_Read... [20:19:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:43]Read from MH i2c: E2 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 0B 00 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 0B 00 6D 00 00 1A FF 45 3F AB B2 3F 9D 90 00 BF [20:19:43]RAPDU: 1A FF 45 3F AB B2 3F 9D 90 00 [20:19:43]wFMCommunicate OK [20:19:43]SAM_PROTO_SignData done [20:19:43]FM_MakeSignedData done [20:19:43]CreateOFDProtocolMessage [20:19:43]wFMCommunicate request_size=4 [20:19:43]MH_SAM_APDU [20:19:43]CAPDU: 80 11 00 00 [20:19:43]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [20:19:43]Write i2c OK [20:19:43]MH_I2C_Read... [20:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:43]Read from MH i2c: E2 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 17 00 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3A [20:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:19:43]wFMCommunicate OK [20:19:43]CreateOFDProtocolMessage done [20:19:43]OFDSenderStorePacket 112068 [20:19:43]StoreOFDPacket docnum=112068 [20:19:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BB 1C 04 01 7A CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 EC 00 00 00 F4 03 04 00 5E E0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B5 01 00 35 04 06 00 12 4A 1D 0B 85 FE 1A FF 45 3F AB B2 3F 9D [20:19:43]CheckFolder [20:19:43]dirname=/storage/ofd_packets [20:19:43]CheckFolder done [20:19:43]ProducePacketName [20:19:43]name=ofd_packets/00112068 [20:19:43]NVStorageSaveData ofd_packets/00112068 [20:19:43]File name is /storage/ofd_packets/00112068 [20:19:43]Write 298 bytes [20:19:43]NVStorageSaveData done [20:19:43]OFDSenderStorePacket done [20:19:43]KKMCreateOFDPacket done [20:19:43]NVStorageSaveData kkm_last_timestamp [20:19:43]File name is /storage/kkm_last_timestamp [20:19:43]Write 4 bytes [20:19:43]NVStorageSaveData done [20:19:43]ExternCall_PrintAddStr [20:19:43]wPrintStart [20:19:43]Write to MH i2c: 01 00 00 6F 00 6F [20:19:43]Write i2c OK [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: 01 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: 01 07 00 [20:19:43]MH_I2C_Read... [20:19:43]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [20:19:43]RasterBufferAndPrint [20:19:43]line 小褔械褌 N : (1)320728 [20:19:43]line 袠袧袧: 02508201610067 [20:19:43]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:19:43]line 袩袪袨袛袗袞袗 [20:19:43]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [20:19:43]line 孝芯胁邪褉: 2710194210 [20:19:43]line 袛孝-袣-5 [20:19:43]line 9.610 * 72.90 [20:19:43]line = 700.57 [20:19:43]line 袧袛小 12% 袧小袩 1% [20:19:43]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:19:43]line 袨袣袪校袚袥袝袧袠袝: -0.57 [20:19:43]line 袠孝袨袚袨: 700.00 [20:19:43]line 袙薪械褋械薪芯: 700.00 [20:19:43]line 小袛袗效袗: 0.00 [20:19:43]line 袧小袩 1% : 6.20 [20:19:43]line 袧袛小 12% : 74.40 [20:19:43]line 袧邪谢懈褔薪褘屑懈: 700.00 [20:19:43]line 袘械蟹薪邪谢.: 0.00 [20:19:43]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:19:43]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:19:43]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:19:43]line 效械泻 236 21.06.2024 20:19 [20:19:43]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:19:43]line 袟袧袦: 0300000198 [20:19:43]line 袪袧袦: 0000000000092771 [20:19:43]line 袙械褉褋懈褟 袣袣袦: 001 [20:19:43]line 肖袦: 0000000000875083 [20:19:43]line 肖袛: 112068 [20:19:43]line 肖袩袛: 20109524174334 [20:19:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T201942&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112068&fm=20109524174334&tin=02508201610067®Number=0000000000092771&sum=70000 [20:19:44]OFD Sender: Processing packet 112068 [packets to send 38, broken 37] [20:19:44]ProducePacketName [20:19:44]name=ofd_packets/00112068 [20:19:44]OFD Sender: To server: 嚂鰌G, [20:19:44]CommunicateWithHost lk.salyk.kg:30040 [20:19:44]ConnectInit lk.salyk.kg [20:19:44]written 0, free lines is 4095 [20:19:44]Connected sock=10 [20:19:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BB 1C 04 01 7A CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 EC 00 00 00 F4 03 04 00 5E E0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B5 01 00 35 04 06 00 12 4A 1D 0B 85 FE 1A FF 45 3F AB B2 3F 9D [20:19:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3E C0 47 00 19 3C 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 30 38 37 35 30 38 33 10 04 04 00 C4 B5 01 00 F4 03 04 00 7F 77 75 66 B6 04 01 00 00 C3 D8 12 A5 7C 2D 56 71 [20:19:44]CommunicateWithHost err = 0 [20:19:44]CheckOFDResponse [20:19:44]1017 (14) - 77093643461234 [20:19:44]1041 (16) - 0000000000875083 [20:19:44]1040 (4) - 112068 [20:19:44]1012 (4) - 21.06.2024 12:52 [20:19:44]1206 (1) - 0 [20:19:44]OFD Sender: Remove packet 112068 [20:19:44]ProducePacketName [20:19:44]name=ofd_packets/00112068 [20:19:44]NVStorageDeleteData [20:19:44]Write to MH i2c: 01 00 00 9A 00 9A [20:19:44]Write i2c OK [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: 01 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: 01 07 00 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 DF 0C 8C [20:19:44]RasterBufferAndPrint [20:19:44]line [20:19:44]line [20:19:44]line [20:19:44]line [20:19:44]line [20:19:44]written 0, free lines is 3301 [20:19:44]MH_Cut [20:19:44]Write to MH i2c: D1 01 00 A1 00 01 73 [20:19:44]Write i2c OK [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: D1 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: D1 01 00 [20:19:44]MH_I2C_Read... [20:19:44]Read from MH i2c: D1 01 00 A1 00 00 72 [20:19:44]Write to MH i2c: 01 00 00 A2 00 A2 [20:19:44]Write i2c OK [20:19:44]MH_I2C_Read... [20:19:44]OFD Sender: No OFD packet to send [20:19:45]*** Cut start [20:19:45]*** Partial cut [20:19:45]*** CUTSNS_PIN = 1 [20:19:45]*** CUTSNS_PIN = 0 [20:19:45]*** Brake cut motor [20:19:45]Read from MH i2c: 01 [20:19:45]MH_I2C_Read... [20:19:45]*** Stop cut motor [20:19:45]*** Cut end [20:19:45]Read from MH i2c: 01 07 00 [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [20:19:45]process_action close_receipt done [20:19:45]requested_data is exist [20:19:45]produce_requested_data [20:19:45]requested_item fm.sn is exist - process it [20:19:45]wFMCommunicate request_size=4 [20:19:45]MH_SAM_APDU [20:19:45]CAPDU: 80 11 00 00 [20:19:45]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [20:19:45]Write i2c OK [20:19:45]MH_I2C_Read... [20:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:45]Read from MH i2c: E2 [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: E2 17 00 [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6F [20:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:19:45]wFMCommunicate OK [20:19:45]requested_item fd.num is exist - process it [20:19:45]SAM_PROTO_GetFieldsCounters [20:19:45]wFMCommunicate request_size=4 [20:19:45]MH_SAM_APDU [20:19:45]CAPDU: 80 13 00 00 [20:19:45]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [20:19:45]Write i2c OK [20:19:45]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 62 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 62 00 A4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C4 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [20:19:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C4 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:19:46]wFMCommunicate OK [20:19:46]SAM_PROTO_GetFieldsCounters done [20:19:46]requested_item shift.num is exist - process it [20:19:46]requested_item shift.opened is exist - process it [20:19:46]req_shift_opened [20:19:46]FM_GetShiftState [20:19:46]SAM_PROTO_GetShiftState [20:19:46]wFMCommunicate request_size=4 [20:19:46]MH_SAM_APDU [20:19:46]CAPDU: 80 13 01 00 [20:19:46]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [20:19:46]Write i2c OK [20:19:46]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 0E 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 9F [20:19:46]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:19:46]wFMCommunicate OK [20:19:46]SAM_PROTO_GetShiftState done [20:19:46]FM_GetShiftState done [20:19:46]req_shift_opened done [20:19:46]requested_item shift.open_date is exist - process it [20:19:46]req_shift_open_date [20:19:46]req_shift_open_date done [20:19:46]produce_requested_data done [20:19:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112068,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:19:46]process_action_free close_receipt [20:19:46]json_value_free [20:19:46]json_value_free done [20:19:46]process_json_proto returns [20:19:46]Send response to host [20:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112068,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:19:46]free response buf [20:19:46]execute_script done [20:19:46]execute_script returns [20:19:46]free content buf [20:19:46]Sock 7.Close socket [20:19:46]Sock 7.Thread stoped [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:43]accept exits with 9 [20:21:43]New connection [20:21:43]New thread 3066957156 created [20:21:43]Thread 3066813796 joined [20:21:43]Waiting for new connection... [20:21:43] Sock 9.Parse request [20:21:43]Sock 9.Check first char [20:21:43]Sock 9.First char is OK [20:21:43]request: POST /json_proto HTTP/1.0 [20:21:43]Method: POST [20:21:43]URL: /json_proto [20:21:43]Method is POST - this is cgi request [20:21:43]url: /json_proto [20:21:43]query_string will be loaded in cgi processing [20:21:43]execute_cgi json_proto POST (null) [20:21:43]execute_cgi path=json_proto method=POST [20:21:43]POST find Content-Length [20:21:43]Host: 172.17.59.68:8080 [20:21:43]Content-Length: 677 [20:21:43]Content-Type: application/json [20:21:43] [20:21:43]POST finish read [20:21:43]Found Content-Length = 677 [20:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:43]execute_script... [20:21: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)320729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:43]POST & json_proto [20:21:43]process_json_proto [20:21:43]json parsed OK: [20:21:43]protocol is kg_v1.0 [20:21:43]action value=close_receipt [20:21:43]process_action close_receipt [20:21:43]cmd_close_receipt [20:21:43]MH_GetDate [20:21:43]Write to MH i2c: F0 00 00 A6 00 95 [20:21:43]Write i2c OK [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: F0 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: F0 09 00 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: F0 09 00 A6 00 00 D7 E0 75 66 BC EC 60 65 9D [20:21:43]GetLastDocTimeStamp 1719001182 [20:21:43]current date 1719001303 [20:21:43]FM_GetShiftState [20:21:43]SAM_PROTO_GetShiftState [20:21:43]wFMCommunicate request_size=4 [20:21:43]MH_SAM_APDU [20:21:43]CAPDU: 80 13 01 00 [20:21:43]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [20:21:43]Write i2c OK [20:21:43]MH_I2C_Read... [20:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:43]Read from MH i2c: E2 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: E2 0E 00 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A1 [20:21:43]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:21:43]wFMCommunicate OK [20:21:43]SAM_PROTO_GetShiftState done [20:21:43]FM_GetShiftState done [20:21:43]opened in 1718933695 [20:21:43]opened+sec_in_day 1719020095 [20:21:43]quantity*price = 30012 [20:21:43]sum+1 = 30014 [20:21:43]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 237 21.06.2024 20:21 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112069 肖袩袛: 125454618957770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202143&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112069&fm=125454618957770&tin=02508201610067®Number=0000000000092771&sum=30000 [20:21:44]StoreToDocumentArchive [20:21:44]shift 390 fd 112069 [20:21:44]save to /storage/0390/doc_00112069 [20:21:44]save last doc name /storage/0390/doc_00112069 to /storage/kkm_last_doc_name [20:21:44]save OK [20:21:44]Clear old archive folders... [20:21:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:44]tlvbuf is 0111A340 [20:21:44]SAM_PROTO_ClearQueue [20:21:44]wFMCommunicate request_size=4 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 09 00 00 [20:21:44]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [20:21:44]RAPDU: 90 00 [20:21:44]wFMCommunicate OK [20:21:44]SAM_PROTO_ClearQueue done [20:21:44]KKMCreateOFDPacket [20:21:44]OFDProtocolAddRootSTLVToBuf [20:21:44]FM_MakeSignedData [20:21:44]FM_MakeSignedData [20:21:44]SAM_PROTO_SignData [20:21:44]wFMCommunicate request_size=4 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 0D 01 02 [20:21:44]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [20:21:44]RAPDU: 90 00 [20:21:44]wFMCommunicate OK [20:21:44]wFMCommunicate request_size=255 [20:21:44]MH_SAM_APDU [20:21: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 ED 00 00 00 F4 03 04 00 D7 E0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B5 01 00 35 04 06 00 72 [20:21:44]Write to MH i2c: E2 02 01 B6 00 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 ED 00 00 00 F4 03 04 00 D7 E0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B5 01 00 35 04 06 00 72 00 00 73 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [20:21:44]RAPDU: 90 00 [20:21:44]wFMCommunicate OK [20:21:44]wFMCommunicate request_size=10 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 0D 02 02 05 19 AD FF 97 CA [20:21:44]Write to MH i2c: E2 0D 00 B7 00 80 0D 02 02 05 00 19 AD FF 97 CA 00 00 61 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:45]Read from MH i2c: E2 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: E2 03 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [20:21:45]RAPDU: 90 00 [20:21:45]wFMCommunicate OK [20:21:45]wFMCommunicate request_size=4 [20:21:45]MH_SAM_APDU [20:21:45]CAPDU: 80 0D 03 02 [20:21:45]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]OFD Sender: No OFD packet to send [20:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:45]Read from MH i2c: E2 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: E2 0B 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: E2 0B 00 B8 00 00 96 0C 44 CE 2B E9 34 8B 90 00 BB [20:21:45]RAPDU: 96 0C 44 CE 2B E9 34 8B 90 00 [20:21:45]wFMCommunicate OK [20:21:45]SAM_PROTO_SignData done [20:21:45]FM_MakeSignedData done [20:21:45]CreateOFDProtocolMessage [20:21:45]wFMCommunicate request_size=4 [20:21:45]MH_SAM_APDU [20:21:45]CAPDU: 80 11 00 00 [20:21:45]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:45]Read from MH i2c: E2 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: E2 17 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 85 [20:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:21:45]wFMCommunicate OK [20:21:45]CreateOFDProtocolMessage done [20:21:45]OFDSenderStorePacket 112069 [20:21:45]StoreOFDPacket docnum=112069 [20:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 78 10 07 01 96 07 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 ED 00 00 00 F4 03 04 00 D7 E0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B5 01 00 35 04 06 00 72 19 AD FF 97 CA 96 0C 44 CE 2B E9 34 8B [20:21:45]CheckFolder [20:21:45]dirname=/storage/ofd_packets [20:21:45]CheckFolder done [20:21:45]ProducePacketName [20:21:45]name=ofd_packets/00112069 [20:21:45]NVStorageSaveData ofd_packets/00112069 [20:21:45]File name is /storage/ofd_packets/00112069 [20:21:45]Write 301 bytes [20:21:45]NVStorageSaveData done [20:21:45]OFDSenderStorePacket done [20:21:45]KKMCreateOFDPacket done [20:21:45]NVStorageSaveData kkm_last_timestamp [20:21:45]File name is /storage/kkm_last_timestamp [20:21:45]Write 4 bytes [20:21:45]NVStorageSaveData done [20:21:45]ExternCall_PrintAddStr [20:21:45]wPrintStart [20:21:45]Write to MH i2c: 01 00 00 BA 00 BA [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 07 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [20:21:45]RasterBufferAndPrint [20:21:45]line 小褔械褌 N : (1)320729 [20:21:45]line 袠袧袧: 02508201610067 [20:21:45]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:21:45]line 袩袪袨袛袗袞袗 [20:21:45]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:21:45]line 孝芯胁邪褉: 2710124130 [20:21:45]line 袗懈-92-袣-5 [20:21:45]line 4.520 * 66.40 [20:21:45]line = 300.13 [20:21:45]line 袧袛小 12% 袧小袩 1% [20:21:45]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:21:45]line 袨袣袪校袚袥袝袧袠袝: -0.13 [20:21:45]line 袠孝袨袚袨: 300.00 [20:21:45]line 袙薪械褋械薪芯: 300.00 [20:21:45]line 小袛袗效袗: 0.00 [20:21:45]line 袧小袩 1% : 2.66 [20:21:45]line 袧袛小 12% : 31.87 [20:21:45]line 袧邪谢懈褔薪褘屑懈: 300.00 [20:21:45]line 袘械蟹薪邪谢.: 0.00 [20:21:45]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:21:45]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:21:45]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:21:45]line 效械泻 237 21.06.2024 20:21 [20:21:45]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:21:45]line 袟袧袦: 0300000198 [20:21:45]line 袪袧袦: 0000000000092771 [20:21:45]line 袙械褉褋懈褟 袣袣袦: 001 [20:21:45]line 肖袦: 0000000000875083 [20:21:45]line 肖袛: 112069 [20:21:45]line 肖袩袛: 125454618957770 [20:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202143&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112069&fm=125454618957770&tin=02508201610067®Number=0000000000092771&sum=30000 [20:21:45]OFD Sender: Processing packet 112069 [packets to send 38, broken 37] [20:21:45]ProducePacketName [20:21:45]name=ofd_packets/00112069 [20:21:45]OFD Sender: To server: 嚂鰌G, [20:21:45]CommunicateWithHost lk.salyk.kg:30040 [20:21:45]ConnectInit lk.salyk.kg [20:21:45]written 0, free lines is 4095 [20:21:45]Write to MH i2c: 01 00 00 E5 00 E5 [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 07 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: 01 07 00 E5 00 00 00 00 00 00 DC 0C D4 [20:21:45]RasterBufferAndPrint [20:21:45]line [20:21:45]line [20:21:45]line [20:21:45]line [20:21:45]line [20:21:45]written 0, free lines is 3296 [20:21:45]MH_Cut [20:21:45]Write to MH i2c: D1 01 00 EC 00 01 BE [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: D1 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: D1 01 00 [20:21:45]MH_I2C_Read... [20:21:45]Read from MH i2c: D1 01 00 EC 00 00 BD [20:21:45]Write to MH i2c: 01 00 00 ED 00 ED [20:21:45]Write i2c OK [20:21:45]MH_I2C_Read... [20:21:46]*** Cut start [20:21:46]*** Partial cut [20:21:46]*** CUTSNS_PIN = 1 [20:21:46]*** CUTSNS_PIN = 0 [20:21:46]*** Brake cut motor [20:21:47]Read from MH i2c: 01 [20:21:47]MH_I2C_Read... [20:21:47]*** Stop cut motor [20:21:47]*** Cut end [20:21:47]Read from MH i2c: 01 07 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 FF 0F 02 [20:21:47]process_action close_receipt done [20:21:47]requested_data is exist [20:21:47]produce_requested_data [20:21:47]requested_item fm.sn is exist - process it [20:21:47]wFMCommunicate request_size=4 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 11 00 00 [20:21:47]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:47]Read from MH i2c: E2 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 17 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BA [20:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:21:47]wFMCommunicate OK [20:21:47]requested_item fd.num is exist - process it [20:21:47]SAM_PROTO_GetFieldsCounters [20:21:47]wFMCommunicate request_size=4 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 13 00 00 [20:21:47]Write to MH i2c: E2 08 00 EF 00 80 13 00 00 00 00 00 00 6B [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:47]Read from MH i2c: E2 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 62 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 62 00 EF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C5 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [20:21:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C5 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:47]wFMCommunicate OK [20:21:47]SAM_PROTO_GetFieldsCounters done [20:21:47]requested_item shift.num is exist - process it [20:21:47]requested_item shift.opened is exist - process it [20:21:47]req_shift_opened [20:21:47]FM_GetShiftState [20:21:47]SAM_PROTO_GetShiftState [20:21:47]wFMCommunicate request_size=4 [20:21:47]MH_SAM_APDU [20:21:47]CAPDU: 80 13 01 00 [20:21:47]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [20:21:47]Write i2c OK [20:21:47]MH_I2C_Read... [20:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:47]Read from MH i2c: E2 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 0E 00 [20:21:47]MH_I2C_Read... [20:21:47]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 EA [20:21:47]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:21:47]wFMCommunicate OK [20:21:47]SAM_PROTO_GetShiftState done [20:21:47]FM_GetShiftState done [20:21:47]req_shift_opened done [20:21:47]requested_item shift.open_date is exist - process it [20:21:47]req_shift_open_date [20:21:47]req_shift_open_date done [20:21:47]produce_requested_data done [20:21:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112069,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:21:47]process_action_free close_receipt [20:21:47]json_value_free [20:21:47]json_value_free done [20:21:47]process_json_proto returns [20:21:47]Send response to host [20:21:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112069,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:21:47]free response buf [20:21:47]execute_script done [20:21:47]execute_script returns [20:21:47]free content buf [20:21:47]Sock 9.Close socket [20:21:47]Sock 9.Thread stoped [20:23:57]ConnectInit Can't connect to host [20:23:57]CommunicateWithHost connect error [20:23:57]CommunicateWithHost err = -1 [20:23:57]OFD Sender: Server communicate error [20:24:02]OFD Sender: Processing packet 112069 [packets to send 38, broken 37] [20:24:02]ProducePacketName [20:24:02]name=ofd_packets/00112069 [20:24:02]OFD Sender: To server: 嚂鰌G, [20:24:02]CommunicateWithHost lk.salyk.kg:30040 [20:24:02]ConnectInit lk.salyk.kg [20:24:02]Connected sock=9 [20:24:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 78 10 07 01 96 07 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 ED 00 00 00 F4 03 04 00 D7 E0 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B5 01 00 35 04 06 00 72 19 AD FF 97 CA 96 0C 44 CE 2B E9 34 8B [20:24:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6D D4 47 00 73 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 30 38 37 35 30 38 33 10 04 04 00 C5 B5 01 00 F4 03 04 00 82 78 75 66 B6 04 01 00 00 78 6D ED BC 60 B0 B5 CF [20:24:02]CommunicateWithHost err = 0 [20:24:02]CheckOFDResponse [20:24:02]1017 (14) - 77093643461234 [20:24:02]1041 (16) - 0000000000875083 [20:24:02]1040 (4) - 112069 [20:24:02]1012 (4) - 21.06.2024 12:56 [20:24:02]1206 (1) - 0 [20:24:02]OFD Sender: Remove packet 112069 [20:24:02]ProducePacketName [20:24:02]name=ofd_packets/00112069 [20:24:02]NVStorageDeleteData [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:10]accept exits with 7 [20:25:10]New connection [20:25:10]New thread 3066813796 created [20:25:10]Thread 3066957156 joined [20:25:10]Waiting for new connection... [20:25:10] Sock 7.Parse request [20:25:10]Sock 7.Check first char [20:25:10]Sock 7.First char is OK [20:25:10]request: POST /json_proto HTTP/1.0 [20:25:10]Method: POST [20:25:10]URL: /json_proto [20:25:10]Method is POST - this is cgi request [20:25:10]url: /json_proto [20:25:10]query_string will be loaded in cgi processing [20:25:10]execute_cgi json_proto POST (null) [20:25:10]execute_cgi path=json_proto method=POST [20:25:10]POST find Content-Length [20:25:10]Host: 172.17.59.68:8080 [20:25:10]Content-Length: 677 [20:25:10]Content-Type: application/json [20:25:10] [20:25:10]POST finish read [20:25:10]Found Content-Length = 677 [20:25:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:10]execute_script... [20:25: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)320730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:10]POST & json_proto [20:25:10]process_json_proto [20:25:10]json parsed OK: [20:25:10]protocol is kg_v1.0 [20:25:10]action value=close_receipt [20:25:10]process_action close_receipt [20:25:10]cmd_close_receipt [20:25:10]MH_GetDate [20:25:10]Write to MH i2c: F0 00 00 F1 00 E0 [20:25:10]Write i2c OK [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: F0 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: F0 09 00 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: F0 09 00 F1 00 00 A6 E1 75 66 BC EC 60 65 B8 [20:25:10]GetLastDocTimeStamp 1719001303 [20:25:10]current date 1719001510 [20:25:10]FM_GetShiftState [20:25:10]SAM_PROTO_GetShiftState [20:25:10]wFMCommunicate request_size=4 [20:25:10]MH_SAM_APDU [20:25:10]CAPDU: 80 13 01 00 [20:25:10]Write to MH i2c: E2 08 00 F2 00 80 13 01 00 00 00 00 00 6F [20:25:10]Write i2c OK [20:25:10]MH_I2C_Read... [20:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:10]Read from MH i2c: E2 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 0E 00 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 0E 00 F2 00 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 EC [20:25:10]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:25:10]wFMCommunicate OK [20:25:10]SAM_PROTO_GetShiftState done [20:25:10]FM_GetShiftState done [20:25:10]opened in 1718933695 [20:25:10]opened+sec_in_day 1719020095 [20:25:10]quantity*price = 20052 [20:25:10]sum+1 = 20054 [20:25:10]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.53 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 238 21.06.2024 20:25 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112070 肖袩袛: 78087705687444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202510&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112070&fm=78087705687444&tin=02508201610067®Number=0000000000092771&sum=20000 [20:25:11]StoreToDocumentArchive [20:25:11]shift 390 fd 112070 [20:25:11]save to /storage/0390/doc_00112070 [20:25:11]save last doc name /storage/0390/doc_00112070 to /storage/kkm_last_doc_name [20:25:11]save OK [20:25:11]Clear old archive folders... [20:25:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:11]tlvbuf is 0111CF00 [20:25:11]SAM_PROTO_ClearQueue [20:25:11]wFMCommunicate request_size=4 [20:25:11]MH_SAM_APDU [20:25:11]CAPDU: 80 09 00 00 [20:25:11]Write to MH i2c: E2 08 00 FF 00 80 09 00 00 00 00 00 00 71 [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:11]Read from MH i2c: E2 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 03 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [20:25:11]RAPDU: 90 00 [20:25:11]wFMCommunicate OK [20:25:11]SAM_PROTO_ClearQueue done [20:25:11]KKMCreateOFDPacket [20:25:11]OFDProtocolAddRootSTLVToBuf [20:25:11]FM_MakeSignedData [20:25:11]FM_MakeSignedData [20:25:11]SAM_PROTO_SignData [20:25:11]wFMCommunicate request_size=4 [20:25:11]MH_SAM_APDU [20:25:11]CAPDU: 80 0D 01 02 [20:25:11]Write to MH i2c: E2 08 00 00 01 80 0D 01 02 00 00 00 00 7A [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:11]Read from MH i2c: E2 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 03 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [20:25:11]RAPDU: 90 00 [20:25:11]wFMCommunicate OK [20:25:11]wFMCommunicate request_size=255 [20:25:11]MH_SAM_APDU [20:25:11]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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A6 E1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B5 01 00 35 04 06 00 47 [20:25:11]Write to MH i2c: E2 02 01 01 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A6 E1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B5 01 00 35 04 06 00 47 00 00 87 [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:11]Read from MH i2c: E2 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 03 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [20:25:11]RAPDU: 90 00 [20:25:11]wFMCommunicate OK [20:25:11]wFMCommunicate request_size=10 [20:25:11]MH_SAM_APDU [20:25:11]CAPDU: 80 0D 02 02 05 05 35 F5 75 94 [20:25:11]Write to MH i2c: E2 0D 00 02 01 80 0D 02 02 05 00 05 35 F5 75 94 00 00 BF [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:11]Read from MH i2c: E2 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 03 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [20:25:11]RAPDU: 90 00 [20:25:11]wFMCommunicate OK [20:25:11]wFMCommunicate request_size=4 [20:25:11]MH_SAM_APDU [20:25:11]CAPDU: 80 0D 03 02 [20:25:11]Write to MH i2c: E2 08 00 03 01 80 0D 03 02 00 00 00 00 7F [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:11]Read from MH i2c: E2 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 0B 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 0B 00 03 01 00 7A 58 87 AD 67 0F A3 FB 90 00 9A [20:25:11]RAPDU: 7A 58 87 AD 67 0F A3 FB 90 00 [20:25:11]wFMCommunicate OK [20:25:11]SAM_PROTO_SignData done [20:25:11]FM_MakeSignedData done [20:25:11]CreateOFDProtocolMessage [20:25:11]wFMCommunicate request_size=4 [20:25:11]MH_SAM_APDU [20:25:11]CAPDU: 80 11 00 00 [20:25:11]Write to MH i2c: E2 08 00 04 01 80 11 00 00 00 00 00 00 7F [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:11]Read from MH i2c: E2 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 17 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: E2 17 00 04 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D1 [20:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:25:11]wFMCommunicate OK [20:25:11]CreateOFDProtocolMessage done [20:25:11]OFDSenderStorePacket 112070 [20:25:11]StoreOFDPacket docnum=112070 [20:25:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AF 23 07 01 5F 97 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A6 E1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B5 01 00 35 04 06 00 47 05 35 F5 75 94 7A 58 87 AD 67 0F A3 FB [20:25:11]CheckFolder [20:25:11]dirname=/storage/ofd_packets [20:25:11]CheckFolder done [20:25:11]ProducePacketName [20:25:11]name=ofd_packets/00112070 [20:25:11]NVStorageSaveData ofd_packets/00112070 [20:25:11]File name is /storage/ofd_packets/00112070 [20:25:11]Write 301 bytes [20:25:11]NVStorageSaveData done [20:25:11]OFDSenderStorePacket done [20:25:11]KKMCreateOFDPacket done [20:25:11]NVStorageSaveData kkm_last_timestamp [20:25:11]File name is /storage/kkm_last_timestamp [20:25:11]Write 4 bytes [20:25:11]NVStorageSaveData done [20:25:11]ExternCall_PrintAddStr [20:25:11]wPrintStart [20:25:11]Write to MH i2c: 01 00 00 05 01 06 [20:25:11]Write i2c OK [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: 01 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: 01 07 00 [20:25:11]MH_I2C_Read... [20:25:11]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 FF 0F 1B [20:25:11]RasterBufferAndPrint [20:25:11]line 小褔械褌 N : (1)320730 [20:25:11]line 袠袧袧: 02508201610067 [20:25:11]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:25:11]line 袩袪袨袛袗袞袗 [20:25:11]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:25:11]line 孝芯胁邪褉: 2710124130 [20:25:11]line 袗懈-92-袣-5 [20:25:11]line 3.020 * 66.40 [20:25:11]line = 200.53 [20:25:11]line 袧袛小 12% 袧小袩 1% [20:25:11]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:25:11]line 袨袣袪校袚袥袝袧袠袝: -0.53 [20:25:11]line 袠孝袨袚袨: 200.00 [20:25:11]line 袙薪械褋械薪芯: 200.00 [20:25:11]line 小袛袗效袗: 0.00 [20:25:11]line 袧小袩 1% : 1.77 [20:25:11]line 袧袛小 12% : 21.29 [20:25:11]line 袧邪谢懈褔薪褘屑懈: 200.00 [20:25:11]line 袘械蟹薪邪谢.: 0.00 [20:25:11]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:25:11]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:25:11]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:25:11]line 效械泻 238 21.06.2024 20:25 [20:25:11]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:25:11]line 袟袧袦: 0300000198 [20:25:11]line 袪袧袦: 0000000000092771 [20:25:11]line 袙械褉褋懈褟 袣袣袦: 001 [20:25:11]line 肖袦: 0000000000875083 [20:25:11]line 肖袛: 112070 [20:25:11]line 肖袩袛: 78087705687444 [20:25:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202510&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112070&fm=78087705687444&tin=02508201610067®Number=0000000000092771&sum=20000 [20:25:12]OFD Sender: Processing packet 112070 [packets to send 38, broken 37] [20:25:12]ProducePacketName [20:25:12]name=ofd_packets/00112070 [20:25:12]OFD Sender: To server: 嚂鰌G, [20:25:12]CommunicateWithHost lk.salyk.kg:30040 [20:25:12]ConnectInit lk.salyk.kg [20:25:12]written 0, free lines is 4095 [20:25:12]Connected sock=10 [20:25:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AF 23 07 01 5F 97 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A6 E1 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B5 01 00 35 04 06 00 47 05 35 F5 75 94 7A 58 87 AD 67 0F A3 FB [20:25:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F7 56 47 00 96 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 30 38 37 35 30 38 33 10 04 04 00 C6 B5 01 00 F4 03 04 00 C7 78 75 66 B6 04 01 00 00 69 67 67 B8 C5 3E 82 FC [20:25:12]CommunicateWithHost err = 0 [20:25:12]CheckOFDResponse [20:25:12]1017 (14) - 77093643461234 [20:25:12]1041 (16) - 0000000000875083 [20:25:12]1040 (4) - 112070 [20:25:12]1012 (4) - 21.06.2024 12:57 [20:25:12]1206 (1) - 0 [20:25:12]OFD Sender: Remove packet 112070 [20:25:12]ProducePacketName [20:25:12]name=ofd_packets/00112070 [20:25:12]NVStorageDeleteData [20:25:12]Write to MH i2c: 01 00 00 30 01 31 [20:25:12]Write i2c OK [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: 01 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: 01 07 00 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: 01 07 00 30 01 00 00 00 00 00 DD 0C 21 [20:25:12]RasterBufferAndPrint [20:25:12]line [20:25:12]line [20:25:12]line [20:25:12]line [20:25:12]line [20:25:12]written 0, free lines is 3299 [20:25:12]MH_Cut [20:25:12]Write to MH i2c: D1 01 00 37 01 01 0A [20:25:12]Write i2c OK [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: D1 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: D1 01 00 [20:25:12]MH_I2C_Read... [20:25:12]Read from MH i2c: D1 01 00 37 01 00 09 [20:25:12]Write to MH i2c: 01 00 00 38 01 39 [20:25:12]Write i2c OK [20:25:12]MH_I2C_Read... [20:25:12]OFD Sender: No OFD packet to send [20:25:13]*** Cut start [20:25:13]*** Partial cut [20:25:13]*** CUTSNS_PIN = 1 [20:25:13]*** CUTSNS_PIN = 0 [20:25:13]*** Brake cut motor [20:25:13]Read from MH i2c: 01 [20:25:13]MH_I2C_Read... [20:25:13]*** Stop cut motor [20:25:13]*** Cut end [20:25:13]Read from MH i2c: 01 07 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 FF 0F 4E [20:25:13]process_action close_receipt done [20:25:13]requested_data is exist [20:25:13]produce_requested_data [20:25:13]requested_item fm.sn is exist - process it [20:25:13]wFMCommunicate request_size=4 [20:25:13]MH_SAM_APDU [20:25:13]CAPDU: 80 11 00 00 [20:25:13]Write to MH i2c: E2 08 00 39 01 80 11 00 00 00 00 00 00 B4 [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:13]Read from MH i2c: E2 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 17 00 [20:25:13]MH_I2C_Read... [20:25:13]Read from MH i2c: E2 17 00 39 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 06 [20:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:25:13]wFMCommunicate OK [20:25:13]requested_item fd.num is exist - process it [20:25:13]SAM_PROTO_GetFieldsCounters [20:25:13]wFMCommunicate request_size=4 [20:25:13]MH_SAM_APDU [20:25:13]CAPDU: 80 13 00 00 [20:25:13]Write to MH i2c: E2 08 00 3A 01 80 13 00 00 00 00 00 00 B7 [20:25:13]Write i2c OK [20:25:13]MH_I2C_Read... [20:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:14]Read from MH i2c: E2 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: E2 62 00 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: E2 62 00 3A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C6 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [20:25:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C6 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:14]wFMCommunicate OK [20:25:14]SAM_PROTO_GetFieldsCounters done [20:25:14]requested_item shift.num is exist - process it [20:25:14]requested_item shift.opened is exist - process it [20:25:14]req_shift_opened [20:25:14]FM_GetShiftState [20:25:14]SAM_PROTO_GetShiftState [20:25:14]wFMCommunicate request_size=4 [20:25:14]MH_SAM_APDU [20:25:14]CAPDU: 80 13 01 00 [20:25:14]Write to MH i2c: E2 08 00 3B 01 80 13 01 00 00 00 00 00 B9 [20:25:14]Write i2c OK [20:25:14]MH_I2C_Read... [20:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:14]Read from MH i2c: E2 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: E2 0E 00 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: E2 0E 00 3B 01 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 36 [20:25:14]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:25:14]wFMCommunicate OK [20:25:14]SAM_PROTO_GetShiftState done [20:25:14]FM_GetShiftState done [20:25:14]req_shift_opened done [20:25:14]requested_item shift.open_date is exist - process it [20:25:14]req_shift_open_date [20:25:14]req_shift_open_date done [20:25:14]produce_requested_data done [20:25:14]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112070,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:25:14]process_action_free close_receipt [20:25:14]json_value_free [20:25:14]json_value_free done [20:25:14]process_json_proto returns [20:25:14]Send response to host [20:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112070,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:25:14]free response buf [20:25:14]execute_script done [20:25:14]execute_script returns [20:25:14]free content buf [20:25:14]Sock 7.Close socket [20:25:14]Sock 7.Thread stoped [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:12]accept exits with 9 [20:29:12]New connection [20:29:12]New thread 3066957156 created [20:29:12]Thread 3066813796 joined [20:29:12]Waiting for new connection... [20:29:12] Sock 9.Parse request [20:29:12]Sock 9.Check first char [20:29:12]Sock 9.First char is OK [20:29:12]request: POST /json_proto HTTP/1.0 [20:29:12]Method: POST [20:29:12]URL: /json_proto [20:29:12]Method is POST - this is cgi request [20:29:12]url: /json_proto [20:29:12]query_string will be loaded in cgi processing [20:29:12]execute_cgi json_proto POST (null) [20:29:12]execute_cgi path=json_proto method=POST [20:29:12]POST find Content-Length [20:29:12]Host: 172.17.59.68:8080 [20:29:12]Content-Length: 677 [20:29:12]Content-Type: application/json [20:29:12] [20:29:12]POST finish read [20:29:12]Found Content-Length = 677 [20:29:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [20:29:12]execute_script... [20:29: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)320731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [20:29:12]POST & json_proto [20:29:12]process_json_proto [20:29:12]json parsed OK: [20:29:12]protocol is kg_v1.0 [20:29:12]action value=close_receipt [20:29:12]process_action close_receipt [20:29:12]cmd_close_receipt [20:29:12]MH_GetDate [20:29:12]Write to MH i2c: F0 00 00 3C 01 2C [20:29:12]Write i2c OK [20:29:12]MH_I2C_Read... [20:29:12]Read from MH i2c: F0 [20:29:12]MH_I2C_Read... [20:29:12]Read from MH i2c: F0 09 00 [20:29:12]MH_I2C_Read... [20:29:12]Read from MH i2c: F0 09 00 3C 01 00 98 E2 75 66 BC EC 60 65 F7 [20:29:12]GetLastDocTimeStamp 1719001510 [20:29:12]current date 1719001752 [20:29:12]FM_GetShiftState [20:29:12]SAM_PROTO_GetShiftState [20:29:12]wFMCommunicate request_size=4 [20:29:12]MH_SAM_APDU [20:29:12]CAPDU: 80 13 01 00 [20:29:12]Write to MH i2c: E2 08 00 3D 01 80 13 01 00 00 00 00 00 BB [20:29:12]Write i2c OK [20:29:12]MH_I2C_Read... [20:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:12]Read from MH i2c: E2 [20:29:12]MH_I2C_Read... [20:29:12]Read from MH i2c: E2 0E 00 [20:29:12]MH_I2C_Read... [20:29:12]Read from MH i2c: E2 0E 00 3D 01 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 38 [20:29:12]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:29:12]wFMCommunicate OK [20:29:12]SAM_PROTO_GetShiftState done [20:29:12]FM_GetShiftState done [20:29:12]opened in 1718933695 [20:29:12]opened+sec_in_day 1719020095 [20:29:12]quantity*price = 40039 [20:29:12]sum+1 = 40040 [20:29:12]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.39 袠孝袨袚袨: 400.00 袙薪械褋械薪芯: 400.00 小袛袗效袗: 0.00 袧小袩 1% : 3.54 袧袛小 12% : 42.52 袧邪谢懈褔薪褘屑懈: 400.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 239 21.06.2024 20:29 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112071 肖袩袛: 90202007292909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202912&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112071&fm=90202007292909&tin=02508201610067®Number=0000000000092771&sum=40000 [20:29:13]StoreToDocumentArchive [20:29:13]shift 390 fd 112071 [20:29:13]save to /storage/0390/doc_00112071 [20:29:13]save last doc name /storage/0390/doc_00112071 to /storage/kkm_last_doc_name [20:29:13]save OK [20:29:13]Clear old archive folders... [20:29:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:29:13]tlvbuf is 011222B0 [20:29:13]SAM_PROTO_ClearQueue [20:29:13]wFMCommunicate request_size=4 [20:29:13]MH_SAM_APDU [20:29:13]CAPDU: 80 09 00 00 [20:29:13]Write to MH i2c: E2 08 00 4A 01 80 09 00 00 00 00 00 00 BD [20:29:13]Write i2c OK [20:29:13]MH_I2C_Read... [20:29:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:13]Read from MH i2c: E2 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: E2 03 00 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [20:29:13]RAPDU: 90 00 [20:29:13]wFMCommunicate OK [20:29:13]SAM_PROTO_ClearQueue done [20:29:13]KKMCreateOFDPacket [20:29:13]OFDProtocolAddRootSTLVToBuf [20:29:13]FM_MakeSignedData [20:29:13]FM_MakeSignedData [20:29:13]SAM_PROTO_SignData [20:29:13]wFMCommunicate request_size=4 [20:29:13]MH_SAM_APDU [20:29:13]CAPDU: 80 0D 01 02 [20:29:13]Write to MH i2c: E2 08 00 4B 01 80 0D 01 02 00 00 00 00 C5 [20:29:13]Write i2c OK [20:29:13]MH_I2C_Read... [20:29:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:13]Read from MH i2c: E2 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: E2 03 00 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [20:29:13]RAPDU: 90 00 [20:29:13]wFMCommunicate OK [20:29:13]wFMCommunicate request_size=255 [20:29:13]MH_SAM_APDU [20:29: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 EF 00 00 00 F4 03 04 00 98 E2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B5 01 00 35 04 06 00 52 [20:29:13]Write to MH i2c: E2 02 01 4C 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 EF 00 00 00 F4 03 04 00 98 E2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B5 01 00 35 04 06 00 52 00 00 E1 [20:29:13]Write i2c OK [20:29:13]MH_I2C_Read... [20:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:13]Read from MH i2c: E2 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: E2 03 00 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [20:29:13]RAPDU: 90 00 [20:29:13]wFMCommunicate OK [20:29:13]wFMCommunicate request_size=10 [20:29:13]MH_SAM_APDU [20:29:13]CAPDU: 80 0D 02 02 05 09 CA 9A 4B ED [20:29:13]Write to MH i2c: E2 0D 00 4D 01 80 0D 02 02 05 00 09 CA 9A 4B ED 00 00 77 [20:29:13]Write i2c OK [20:29:13]MH_I2C_Read... [20:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:13]Read from MH i2c: E2 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: E2 03 00 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [20:29:13]RAPDU: 90 00 [20:29:13]wFMCommunicate OK [20:29:13]wFMCommunicate request_size=4 [20:29:13]MH_SAM_APDU [20:29:13]CAPDU: 80 0D 03 02 [20:29:13]Write to MH i2c: E2 08 00 4E 01 80 0D 03 02 00 00 00 00 CA [20:29:13]Write i2c OK [20:29:13]MH_I2C_Read... [20:29:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:13]Read from MH i2c: E2 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: E2 0B 00 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: E2 0B 00 4E 01 00 96 1E B2 D7 F1 27 7E AD 90 00 4B [20:29:13]RAPDU: 96 1E B2 D7 F1 27 7E AD 90 00 [20:29:13]wFMCommunicate OK [20:29:13]SAM_PROTO_SignData done [20:29:13]FM_MakeSignedData done [20:29:13]CreateOFDProtocolMessage [20:29:13]wFMCommunicate request_size=4 [20:29:13]MH_SAM_APDU [20:29:13]CAPDU: 80 11 00 00 [20:29:13]Write to MH i2c: E2 08 00 4F 01 80 11 00 00 00 00 00 00 CA [20:29:13]Write i2c OK [20:29:13]MH_I2C_Read... [20:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:13]Read from MH i2c: E2 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: E2 17 00 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: E2 17 00 4F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1C [20:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:29:13]wFMCommunicate OK [20:29:13]CreateOFDProtocolMessage done [20:29:13]OFDSenderStorePacket 112071 [20:29:13]StoreOFDPacket docnum=112071 [20:29:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E0 33 07 01 5E 50 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 EF 00 00 00 F4 03 04 00 98 E2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B5 01 00 35 04 06 00 52 09 CA 9A 4B ED 96 1E B2 D7 F1 27 7E AD [20:29:13]CheckFolder [20:29:13]dirname=/storage/ofd_packets [20:29:13]CheckFolder done [20:29:13]ProducePacketName [20:29:13]name=ofd_packets/00112071 [20:29:13]NVStorageSaveData ofd_packets/00112071 [20:29:13]File name is /storage/ofd_packets/00112071 [20:29:13]Write 301 bytes [20:29:13]NVStorageSaveData done [20:29:13]OFDSenderStorePacket done [20:29:13]KKMCreateOFDPacket done [20:29:13]NVStorageSaveData kkm_last_timestamp [20:29:13]File name is /storage/kkm_last_timestamp [20:29:13]Write 4 bytes [20:29:13]NVStorageSaveData done [20:29:13]ExternCall_PrintAddStr [20:29:13]wPrintStart [20:29:13]Write to MH i2c: 01 00 00 50 01 51 [20:29:13]Write i2c OK [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: 01 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: 01 07 00 [20:29:13]MH_I2C_Read... [20:29:13]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 FF 0F 66 [20:29:13]RasterBufferAndPrint [20:29:13]line 小褔械褌 N : (1)320731 [20:29:13]line 袠袧袧: 02508201610067 [20:29:13]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:29:13]line 袩袪袨袛袗袞袗 [20:29:13]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:29:13]line 孝芯胁邪褉: 2710124130 [20:29:13]line 袗懈-92-袣-5 [20:29:13]line 6.030 * 66.40 [20:29:13]line = 400.39 [20:29:13]line 袧袛小 12% 袧小袩 1% [20:29:13]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:29:13]line 袨袣袪校袚袥袝袧袠袝: -0.39 [20:29:13]line 袠孝袨袚袨: 400.00 [20:29:13]line 袙薪械褋械薪芯: 400.00 [20:29:13]line 小袛袗效袗: 0.00 [20:29:13]line 袧小袩 1% : 3.54 [20:29:13]line 袧袛小 12% : 42.52 [20:29:13]line 袧邪谢懈褔薪褘屑懈: 400.00 [20:29:13]line 袘械蟹薪邪谢.: 0.00 [20:29:13]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:29:13]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:29:13]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:29:13]line 效械泻 239 21.06.2024 20:29 [20:29:13]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:29:13]line 袟袧袦: 0300000198 [20:29:13]line 袪袧袦: 0000000000092771 [20:29:13]line 袙械褉褋懈褟 袣袣袦: 001 [20:29:13]line 肖袦: 0000000000875083 [20:29:13]line 肖袛: 112071 [20:29:13]line 肖袩袛: 90202007292909 [20:29:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202912&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112071&fm=90202007292909&tin=02508201610067®Number=0000000000092771&sum=40000 [20:29:14]OFD Sender: Processing packet 112071 [packets to send 38, broken 37] [20:29:14]ProducePacketName [20:29:14]name=ofd_packets/00112071 [20:29:14]OFD Sender: To server: 嚂鰌G, [20:29:14]CommunicateWithHost lk.salyk.kg:30040 [20:29:14]ConnectInit lk.salyk.kg [20:29:14]written 0, free lines is 4095 [20:29:14]Connected sock=10 [20:29:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E0 33 07 01 5E 50 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 EF 00 00 00 F4 03 04 00 98 E2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B5 01 00 35 04 06 00 52 09 CA 9A 4B ED 96 1E B2 D7 F1 27 7E AD [20:29:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BC 90 47 00 26 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 30 38 37 35 30 38 33 10 04 04 00 C7 B5 01 00 F4 03 04 00 BA 79 75 66 B6 04 01 00 00 D4 AC 74 DF 66 3A 7D BF [20:29:14]CommunicateWithHost err = 0 [20:29:14]CheckOFDResponse [20:29:14]1017 (14) - 77093643461234 [20:29:14]1041 (16) - 0000000000875083 [20:29:14]1040 (4) - 112071 [20:29:14]1012 (4) - 21.06.2024 13:01 [20:29:14]1206 (1) - 0 [20:29:14]OFD Sender: Remove packet 112071 [20:29:14]ProducePacketName [20:29:14]name=ofd_packets/00112071 [20:29:14]NVStorageDeleteData [20:29:14]Write to MH i2c: 01 00 00 7B 01 7C [20:29:14]Write i2c OK [20:29:14]MH_I2C_Read... [20:29:14]Read from MH i2c: 01 [20:29:14]MH_I2C_Read... [20:29:14]Read from MH i2c: 01 07 00 [20:29:14]MH_I2C_Read... [20:29:14]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 E1 0C 70 [20:29:14]RasterBufferAndPrint [20:29:14]line [20:29:14]line [20:29:14]line [20:29:14]line [20:29:14]line [20:29:14]written 0, free lines is 3303 [20:29:14]MH_Cut [20:29:14]Write to MH i2c: D1 01 00 82 01 01 55 [20:29:14]Write i2c OK [20:29:14]MH_I2C_Read... [20:29:14]Read from MH i2c: D1 [20:29:14]MH_I2C_Read... [20:29:14]Read from MH i2c: D1 01 00 [20:29:14]MH_I2C_Read... [20:29:14]Read from MH i2c: D1 01 00 82 01 00 54 [20:29:14]Write to MH i2c: 01 00 00 83 01 84 [20:29:14]Write i2c OK [20:29:14]MH_I2C_Read... [20:29:14]OFD Sender: No OFD packet to send [20:29:15]*** Cut start [20:29:15]*** Partial cut [20:29:15]*** CUTSNS_PIN = 1 [20:29:15]*** CUTSNS_PIN = 0 [20:29:15]*** Brake cut motor [20:29:15]Read from MH i2c: 01 [20:29:15]MH_I2C_Read... [20:29:15]*** Stop cut motor [20:29:15]*** Cut end [20:29:15]Read from MH i2c: 01 07 00 [20:29:15]MH_I2C_Read... [20:29:15]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 FF 0F 99 [20:29:15]process_action close_receipt done [20:29:15]requested_data is exist [20:29:15]produce_requested_data [20:29:15]requested_item fm.sn is exist - process it [20:29:15]wFMCommunicate request_size=4 [20:29:15]MH_SAM_APDU [20:29:15]CAPDU: 80 11 00 00 [20:29:15]Write to MH i2c: E2 08 00 84 01 80 11 00 00 00 00 00 00 FF [20:29:15]Write i2c OK [20:29:15]MH_I2C_Read... [20:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:16]Read from MH i2c: E2 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: E2 17 00 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: E2 17 00 84 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 51 [20:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:29:16]wFMCommunicate OK [20:29:16]requested_item fd.num is exist - process it [20:29:16]SAM_PROTO_GetFieldsCounters [20:29:16]wFMCommunicate request_size=4 [20:29:16]MH_SAM_APDU [20:29:16]CAPDU: 80 13 00 00 [20:29:16]Write to MH i2c: E2 08 00 85 01 80 13 00 00 00 00 00 00 02 [20:29:16]Write i2c OK [20:29:16]MH_I2C_Read... [20:29:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:16]Read from MH i2c: E2 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: E2 62 00 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: E2 62 00 85 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C7 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [20:29:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C7 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:16]wFMCommunicate OK [20:29:16]SAM_PROTO_GetFieldsCounters done [20:29:16]requested_item shift.num is exist - process it [20:29:16]requested_item shift.opened is exist - process it [20:29:16]req_shift_opened [20:29:16]FM_GetShiftState [20:29:16]SAM_PROTO_GetShiftState [20:29:16]wFMCommunicate request_size=4 [20:29:16]MH_SAM_APDU [20:29:16]CAPDU: 80 13 01 00 [20:29:16]Write to MH i2c: E2 08 00 86 01 80 13 01 00 00 00 00 00 04 [20:29:16]Write i2c OK [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: E2 [20:29:16]MH_I2C_Read... [20:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:16]Read from MH i2c: E2 0E 00 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: E2 0E 00 86 01 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 81 [20:29:16]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:29:16]wFMCommunicate OK [20:29:16]SAM_PROTO_GetShiftState done [20:29:16]FM_GetShiftState done [20:29:16]req_shift_opened done [20:29:16]requested_item shift.open_date is exist - process it [20:29:16]req_shift_open_date [20:29:16]req_shift_open_date done [20:29:16]produce_requested_data done [20:29:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112071,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:29:16]process_action_free close_receipt [20:29:16]json_value_free [20:29:16]json_value_free done [20:29:16]process_json_proto returns [20:29:16]Send response to host [20:29:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112071,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:29:16]free response buf [20:29:16]execute_script done [20:29:16]execute_script returns [20:29:16]free content buf [20:29:16]Sock 9.Close socket [20:29:16]Sock 9.Thread stoped [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]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:41]accept exits with 7 [20:29:41]New connection [20:29:41]New thread 3066813796 created [20:29:41]Thread 3066957156 joined [20:29:41]Waiting for new connection... [20:29:41] Sock 7.Parse request [20:29:41]Sock 7.Check first char [20:29:41]Sock 7.First char is OK [20:29:41]request: POST /json_proto HTTP/1.0 [20:29:41]Method: POST [20:29:41]URL: /json_proto [20:29:41]Method is POST - this is cgi request [20:29:41]url: /json_proto [20:29:41]query_string will be loaded in cgi processing [20:29:41]execute_cgi json_proto POST (null) [20:29:41]execute_cgi path=json_proto method=POST [20:29:41]POST find Content-Length [20:29:41]Host: 172.17.59.68:8080 [20:29:41]Content-Length: 677 [20:29:41]Content-Type: application/json [20:29:41] [20:29:41]POST finish read [20:29:41]Found Content-Length = 677 [20:29:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [20:29:41]execute_script... [20:29: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)320732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [20:29:41]POST & json_proto [20:29:41]process_json_proto [20:29:41]json parsed OK: [20:29:41]protocol is kg_v1.0 [20:29:41]action value=close_receipt [20:29:41]process_action close_receipt [20:29:41]cmd_close_receipt [20:29:41]MH_GetDate [20:29:41]Write to MH i2c: F0 00 00 87 01 77 [20:29:41]Write i2c OK [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: F0 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: F0 09 00 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: F0 09 00 87 01 00 B6 E2 75 66 BC EC 60 65 60 [20:29:41]GetLastDocTimeStamp 1719001752 [20:29:41]current date 1719001782 [20:29:41]FM_GetShiftState [20:29:41]SAM_PROTO_GetShiftState [20:29:41]wFMCommunicate request_size=4 [20:29:41]MH_SAM_APDU [20:29:41]CAPDU: 80 13 01 00 [20:29:41]Write to MH i2c: E2 08 00 88 01 80 13 01 00 00 00 00 00 06 [20:29:41]Write i2c OK [20:29:41]MH_I2C_Read... [20:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:41]Read from MH i2c: E2 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: E2 0E 00 [20:29:41]MH_I2C_Read... [20:29:41]Read from MH i2c: E2 0E 00 88 01 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 83 [20:29:41]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:29:41]wFMCommunicate OK [20:29:41]SAM_PROTO_GetShiftState done [20:29:41]FM_GetShiftState done [20:29:41]opened in 1718933695 [20:29:41]opened+sec_in_day 1719020095 [20:29:41]quantity*price = 50065 [20:29:41]sum+1 = 50067 [20:29:41]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 240 21.06.2024 20:29 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112072 肖袩袛: 140856117555847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202942&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112072&fm=140856117555847&tin=02508201610067®Number=0000000000092771&sum=50000 [20:29:42]StoreToDocumentArchive [20:29:42]shift 390 fd 112072 [20:29:42]save to /storage/0390/doc_00112072 [20:29:42]save last doc name /storage/0390/doc_00112072 to /storage/kkm_last_doc_name [20:29:42]save OK [20:29:42]Clear old archive folders... [20:29:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:29:42]tlvbuf is 01123C30 [20:29:42]SAM_PROTO_ClearQueue [20:29:42]wFMCommunicate request_size=4 [20:29:42]MH_SAM_APDU [20:29:42]CAPDU: 80 09 00 00 [20:29:42]Write to MH i2c: E2 08 00 95 01 80 09 00 00 00 00 00 00 08 [20:29:42]Write i2c OK [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: E2 [20:29:42]MH_I2C_Read... [20:29:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:42]Read from MH i2c: E2 03 00 [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [20:29:42]RAPDU: 90 00 [20:29:42]wFMCommunicate OK [20:29:42]SAM_PROTO_ClearQueue done [20:29:42]KKMCreateOFDPacket [20:29:42]OFDProtocolAddRootSTLVToBuf [20:29:42]FM_MakeSignedData [20:29:42]FM_MakeSignedData [20:29:42]SAM_PROTO_SignData [20:29:42]wFMCommunicate request_size=4 [20:29:42]MH_SAM_APDU [20:29:42]CAPDU: 80 0D 01 02 [20:29:42]Write to MH i2c: E2 08 00 96 01 80 0D 01 02 00 00 00 00 10 [20:29:42]Write i2c OK [20:29:42]MH_I2C_Read... [20:29:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:42]Read from MH i2c: E2 [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: E2 03 00 [20:29:42]MH_I2C_Read... [20:29:42]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [20:29:42]RAPDU: 90 00 [20:29:42]wFMCommunicate OK [20:29:42]wFMCommunicate request_size=255 [20:29:42]MH_SAM_APDU [20:29: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 F0 00 00 00 F4 03 04 00 B6 E2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B5 01 00 35 04 06 00 80 [20:29:42]Write to MH i2c: E2 02 01 97 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 F0 00 00 00 F4 03 04 00 B6 E2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B5 01 00 35 04 06 00 80 00 00 AC [20:29:42]Write i2c OK [20:29:42]MH_I2C_Read... [20:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:43]Read from MH i2c: E2 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 03 00 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [20:29:43]RAPDU: 90 00 [20:29:43]wFMCommunicate OK [20:29:43]wFMCommunicate request_size=10 [20:29:43]MH_SAM_APDU [20:29:43]CAPDU: 80 0D 02 02 05 1B 9E D9 F2 87 [20:29:43]Write to MH i2c: E2 0D 00 98 01 80 0D 02 02 05 00 1B 9E D9 F2 87 00 00 28 [20:29:43]Write i2c OK [20:29:43]MH_I2C_Read... [20:29:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:43]Read from MH i2c: E2 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 03 00 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [20:29:43]RAPDU: 90 00 [20:29:43]wFMCommunicate OK [20:29:43]wFMCommunicate request_size=4 [20:29:43]MH_SAM_APDU [20:29:43]CAPDU: 80 0D 03 02 [20:29:43]Write to MH i2c: E2 08 00 99 01 80 0D 03 02 00 00 00 00 15 [20:29:43]Write i2c OK [20:29:43]MH_I2C_Read... [20:29:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:43]Read from MH i2c: E2 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 0B 00 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 0B 00 99 01 00 8B D6 22 D8 14 01 3D 50 90 00 13 [20:29:43]RAPDU: 8B D6 22 D8 14 01 3D 50 90 00 [20:29:43]wFMCommunicate OK [20:29:43]SAM_PROTO_SignData done [20:29:43]FM_MakeSignedData done [20:29:43]CreateOFDProtocolMessage [20:29:43]wFMCommunicate request_size=4 [20:29:43]MH_SAM_APDU [20:29:43]CAPDU: 80 11 00 00 [20:29:43]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [20:29:43]Write i2c OK [20:29:43]MH_I2C_Read... [20:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:43]Read from MH i2c: E2 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 17 00 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 67 [20:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:29:43]wFMCommunicate OK [20:29:43]CreateOFDProtocolMessage done [20:29:43]OFDSenderStorePacket 112072 [20:29:43]StoreOFDPacket docnum=112072 [20:29:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 F8 07 01 BA 3B 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 F0 00 00 00 F4 03 04 00 B6 E2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B5 01 00 35 04 06 00 80 1B 9E D9 F2 87 8B D6 22 D8 14 01 3D 50 [20:29:43]CheckFolder [20:29:43]dirname=/storage/ofd_packets [20:29:43]CheckFolder done [20:29:43]ProducePacketName [20:29:43]name=ofd_packets/00112072 [20:29:43]NVStorageSaveData ofd_packets/00112072 [20:29:43]File name is /storage/ofd_packets/00112072 [20:29:43]Write 301 bytes [20:29:43]NVStorageSaveData done [20:29:43]OFDSenderStorePacket done [20:29:43]KKMCreateOFDPacket done [20:29:43]NVStorageSaveData kkm_last_timestamp [20:29:43]File name is /storage/kkm_last_timestamp [20:29:43]Write 4 bytes [20:29:43]NVStorageSaveData done [20:29:43]ExternCall_PrintAddStr [20:29:43]wPrintStart [20:29:43]Write to MH i2c: 01 00 00 9B 01 9C [20:29:43]Write i2c OK [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: 01 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: 01 07 00 [20:29:43]MH_I2C_Read... [20:29:43]Read from MH i2c: 01 07 00 9B 01 00 00 00 00 00 FF 0F B1 [20:29:43]RasterBufferAndPrint [20:29:43]line 小褔械褌 N : (1)320732 [20:29:43]line 袠袧袧: 02508201610067 [20:29:43]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:29:43]line 袩袪袨袛袗袞袗 [20:29:43]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:29:43]line 孝芯胁邪褉: 2710124130 [20:29:43]line 袗懈-92-袣-5 [20:29:43]line 7.540 * 66.40 [20:29:43]line = 500.66 [20:29:43]line 袧袛小 12% 袧小袩 1% [20:29:43]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:29:43]line 袨袣袪校袚袥袝袧袠袝: -0.66 [20:29:43]line 袠孝袨袚袨: 500.00 [20:29:43]line 袙薪械褋械薪芯: 500.00 [20:29:43]line 小袛袗效袗: 0.00 [20:29:43]line 袧小袩 1% : 4.43 [20:29:43]line 袧袛小 12% : 53.17 [20:29:43]line 袧邪谢懈褔薪褘屑懈: 500.00 [20:29:43]line 袘械蟹薪邪谢.: 0.00 [20:29:43]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:29:43]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:29:43]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:29:43]line 效械泻 240 21.06.2024 20:29 [20:29:43]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:29:43]line 袟袧袦: 0300000198 [20:29:43]line 袪袧袦: 0000000000092771 [20:29:43]line 袙械褉褋懈褟 袣袣袦: 001 [20:29:43]line 肖袦: 0000000000875083 [20:29:43]line 肖袛: 112072 [20:29:43]line 肖袩袛: 140856117555847 [20:29:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T202942&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112072&fm=140856117555847&tin=02508201610067®Number=0000000000092771&sum=50000 [20:29:43]OFD Sender: Processing packet 112072 [packets to send 38, broken 37] [20:29:43]ProducePacketName [20:29:43]name=ofd_packets/00112072 [20:29:43]OFD Sender: To server: 嚂鰌G, [20:29:43]CommunicateWithHost lk.salyk.kg:30040 [20:29:43]ConnectInit lk.salyk.kg [20:29:43]written 0, free lines is 4095 [20:29:43]Connected sock=11 [20:29:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 F8 07 01 BA 3B 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 F0 00 00 00 F4 03 04 00 B6 E2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B5 01 00 35 04 06 00 80 1B 9E D9 F2 87 8B D6 22 D8 14 01 3D 50 [20:29:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 09 43 47 00 B8 15 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 30 38 37 35 30 38 33 10 04 04 00 C8 B5 01 00 F4 03 04 00 D7 79 75 66 B6 04 01 00 00 90 E2 B7 55 E7 1F 5E 45 [20:29:43]CommunicateWithHost err = 0 [20:29:43]CheckOFDResponse [20:29:43]1017 (14) - 77093643461234 [20:29:43]1041 (16) - 0000000000875083 [20:29:43]1040 (4) - 112072 [20:29:43]1012 (4) - 21.06.2024 13:02 [20:29:43]1206 (1) - 0 [20:29:43]OFD Sender: Remove packet 112072 [20:29:43]ProducePacketName [20:29:43]name=ofd_packets/00112072 [20:29:43]NVStorageDeleteData [20:29:44]Write to MH i2c: 01 00 00 C6 01 C7 [20:29:44]Write i2c OK [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: 01 [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: 01 07 00 [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: 01 07 00 C6 01 00 00 00 00 00 DE 0C B8 [20:29:44]RasterBufferAndPrint [20:29:44]line [20:29:44]line [20:29:44]line [20:29:44]line [20:29:44]line [20:29:44]written 0, free lines is 3300 [20:29:44]MH_Cut [20:29:44]Write to MH i2c: D1 01 00 CD 01 01 A0 [20:29:44]Write i2c OK [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: D1 [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: D1 01 00 [20:29:44]MH_I2C_Read... [20:29:44]Read from MH i2c: D1 01 00 CD 01 00 9F [20:29:44]Write to MH i2c: 01 00 00 CE 01 CF [20:29:44]Write i2c OK [20:29:44]MH_I2C_Read... [20:29:44]OFD Sender: No OFD packet to send [20:29:44]*** Cut start [20:29:44]*** Partial cut [20:29:44]*** CUTSNS_PIN = 1 [20:29:44]*** CUTSNS_PIN = 0 [20:29:44]*** Brake cut motor [20:29:45]Read from MH i2c: 01 [20:29:45]MH_I2C_Read... [20:29:45]*** Stop cut motor [20:29:45]*** Cut end [20:29:45]Read from MH i2c: 01 07 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 FF 0F E4 [20:29:45]process_action close_receipt done [20:29:45]requested_data is exist [20:29:45]produce_requested_data [20:29:45]requested_item fm.sn is exist - process it [20:29:45]wFMCommunicate request_size=4 [20:29:45]MH_SAM_APDU [20:29:45]CAPDU: 80 11 00 00 [20:29:45]Write to MH i2c: E2 08 00 CF 01 80 11 00 00 00 00 00 00 4A [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:45]Read from MH i2c: E2 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 17 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 17 00 CF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9C [20:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:29:45]wFMCommunicate OK [20:29:45]requested_item fd.num is exist - process it [20:29:45]SAM_PROTO_GetFieldsCounters [20:29:45]wFMCommunicate request_size=4 [20:29:45]MH_SAM_APDU [20:29:45]CAPDU: 80 13 00 00 [20:29:45]Write to MH i2c: E2 08 00 D0 01 80 13 00 00 00 00 00 00 4D [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:45]Read from MH i2c: E2 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 62 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 62 00 D0 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C8 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [20:29:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C8 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:45]wFMCommunicate OK [20:29:45]SAM_PROTO_GetFieldsCounters done [20:29:45]requested_item shift.num is exist - process it [20:29:45]requested_item shift.opened is exist - process it [20:29:45]req_shift_opened [20:29:45]FM_GetShiftState [20:29:45]SAM_PROTO_GetShiftState [20:29:45]wFMCommunicate request_size=4 [20:29:45]MH_SAM_APDU [20:29:45]CAPDU: 80 13 01 00 [20:29:45]Write to MH i2c: E2 08 00 D1 01 80 13 01 00 00 00 00 00 4F [20:29:45]Write i2c OK [20:29:45]MH_I2C_Read... [20:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:45]Read from MH i2c: E2 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 0E 00 [20:29:45]MH_I2C_Read... [20:29:45]Read from MH i2c: E2 0E 00 D1 01 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 CC [20:29:45]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:29:45]wFMCommunicate OK [20:29:45]SAM_PROTO_GetShiftState done [20:29:45]FM_GetShiftState done [20:29:45]req_shift_opened done [20:29:45]requested_item shift.open_date is exist - process it [20:29:45]req_shift_open_date [20:29:45]req_shift_open_date done [20:29:45]produce_requested_data done [20:29:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112072,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:29:45]process_action_free close_receipt [20:29:45]json_value_free [20:29:45]json_value_free done [20:29:45]process_json_proto returns [20:29:45]Send response to host [20:29:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112072,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:29:45]free response buf [20:29:45]execute_script done [20:29:45]execute_script returns [20:29:45]free content buf [20:29:45]Sock 7.Close socket [20:29:45]Sock 7.Thread stoped [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:19]accept exits with 9 [20:31:19]New connection [20:31:19]New thread 3066957156 created [20:31:19]Thread 3066813796 joined [20:31:19]Waiting for new connection... [20:31:19] Sock 9.Parse request [20:31:19]Sock 9.Check first char [20:31:19]Sock 9.First char is OK [20:31:19]request: POST /json_proto HTTP/1.0 [20:31:19]Method: POST [20:31:19]URL: /json_proto [20:31:19]Method is POST - this is cgi request [20:31:19]url: /json_proto [20:31:19]query_string will be loaded in cgi processing [20:31:19]execute_cgi json_proto POST (null) [20:31:19]execute_cgi path=json_proto method=POST [20:31:19]POST find Content-Length [20:31:19]Host: 172.17.59.68:8080 [20:31:19]Content-Length: 674 [20:31:19]Content-Type: application/json [20:31:19] [20:31:19]POST finish read [20:31:19]Found Content-Length = 674 [20:31:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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" ] } } [20:31:19]execute_script... [20:31: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)320733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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" ] } } [20:31:19]POST & json_proto [20:31:19]process_json_proto [20:31:19]json parsed OK: [20:31:19]protocol is kg_v1.0 [20:31:19]action value=close_receipt [20:31:19]process_action close_receipt [20:31:19]cmd_close_receipt [20:31:19]MH_GetDate [20:31:19]Write to MH i2c: F0 00 00 D2 01 C2 [20:31:19]Write i2c OK [20:31:19]MH_I2C_Read... [20:31:19]Read from MH i2c: F0 [20:31:19]MH_I2C_Read... [20:31:19]Read from MH i2c: F0 09 00 [20:31:19]MH_I2C_Read... [20:31:19]Read from MH i2c: F0 09 00 D2 01 00 18 E3 75 66 BC EC 60 65 0E [20:31:19]GetLastDocTimeStamp 1719001782 [20:31:19]current date 1719001880 [20:31:19]FM_GetShiftState [20:31:19]SAM_PROTO_GetShiftState [20:31:19]wFMCommunicate request_size=4 [20:31:19]MH_SAM_APDU [20:31:19]CAPDU: 80 13 01 00 [20:31:19]Write to MH i2c: E2 08 00 D3 01 80 13 01 00 00 00 00 00 51 [20:31:19]Write i2c OK [20:31:19]MH_I2C_Read... [20:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:19]Read from MH i2c: E2 [20:31:19]MH_I2C_Read... [20:31:19]Read from MH i2c: E2 0E 00 [20:31:19]MH_I2C_Read... [20:31:19]Read from MH i2c: E2 0E 00 D3 01 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 CE [20:31:19]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:31:19]wFMCommunicate OK [20:31:19]SAM_PROTO_GetShiftState done [20:31:19]FM_GetShiftState done [20:31:19]opened in 1718933695 [20:31:19]opened+sec_in_day 1719020095 [20:31:19]quantity*price = 50009 [20:31:19]sum+1 = 50010 [20:31:19]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.09 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.11 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 241 21.06.2024 20:31 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112073 肖袩袛: 172764272699544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203120&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112073&fm=172764272699544&tin=02508201610067®Number=0000000000092771&sum=50000 [20:31:20]StoreToDocumentArchive [20:31:20]shift 390 fd 112073 [20:31:20]save to /storage/0390/doc_00112073 [20:31:20]save last doc name /storage/0390/doc_00112073 to /storage/kkm_last_doc_name [20:31:20]save OK [20:31:20]Clear old archive folders... [20:31:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:31:20]tlvbuf is 01115EF0 [20:31:20]SAM_PROTO_ClearQueue [20:31:20]wFMCommunicate request_size=4 [20:31:20]MH_SAM_APDU [20:31:20]CAPDU: 80 09 00 00 [20:31:20]Write to MH i2c: E2 08 00 E0 01 80 09 00 00 00 00 00 00 53 [20:31:20]Write i2c OK [20:31:20]MH_I2C_Read... [20:31:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:21]Read from MH i2c: E2 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: E2 03 00 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [20:31:21]RAPDU: 90 00 [20:31:21]wFMCommunicate OK [20:31:21]SAM_PROTO_ClearQueue done [20:31:21]KKMCreateOFDPacket [20:31:21]OFDProtocolAddRootSTLVToBuf [20:31:21]FM_MakeSignedData [20:31:21]FM_MakeSignedData [20:31:21]SAM_PROTO_SignData [20:31:21]wFMCommunicate request_size=4 [20:31:21]MH_SAM_APDU [20:31:21]CAPDU: 80 0D 01 02 [20:31:21]Write to MH i2c: E2 08 00 E1 01 80 0D 01 02 00 00 00 00 5B [20:31:21]Write i2c OK [20:31:21]MH_I2C_Read... [20:31:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:21]Read from MH i2c: E2 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: E2 03 00 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [20:31:21]RAPDU: 90 00 [20:31:21]wFMCommunicate OK [20:31:21]wFMCommunicate request_size=255 [20:31:21]MH_SAM_APDU [20:31:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 F1 00 00 00 F4 03 04 00 18 E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B5 01 00 35 04 06 00 9D 20 D1 1A [20:31:21]Write to MH i2c: E2 02 01 E2 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 F1 00 00 00 F4 03 04 00 18 E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B5 01 00 35 04 06 00 9D 20 D1 1A 00 00 7A [20:31:21]Write i2c OK [20:31:21]MH_I2C_Read... [20:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:21]Read from MH i2c: E2 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: E2 03 00 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [20:31:21]RAPDU: 90 00 [20:31:21]wFMCommunicate OK [20:31:21]wFMCommunicate request_size=7 [20:31:21]MH_SAM_APDU [20:31:21]CAPDU: 80 0D 02 02 02 A8 98 [20:31:21]Write to MH i2c: E2 0A 00 E3 01 80 0D 02 02 02 00 A8 98 00 00 A2 [20:31:21]Write i2c OK [20:31:21]MH_I2C_Read... [20:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:21]Read from MH i2c: E2 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: E2 03 00 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [20:31:21]RAPDU: 90 00 [20:31:21]wFMCommunicate OK [20:31:21]wFMCommunicate request_size=4 [20:31:21]MH_SAM_APDU [20:31:21]CAPDU: 80 0D 03 02 [20:31:21]Write to MH i2c: E2 08 00 E4 01 80 0D 03 02 00 00 00 00 60 [20:31:21]Write i2c OK [20:31:21]MH_I2C_Read... [20:31:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:21]Read from MH i2c: E2 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: E2 0B 00 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: E2 0B 00 E4 01 00 EC 65 D3 1F EE 2C F9 51 90 00 08 [20:31:21]RAPDU: EC 65 D3 1F EE 2C F9 51 90 00 [20:31:21]wFMCommunicate OK [20:31:21]SAM_PROTO_SignData done [20:31:21]FM_MakeSignedData done [20:31:21]CreateOFDProtocolMessage [20:31:21]wFMCommunicate request_size=4 [20:31:21]MH_SAM_APDU [20:31:21]CAPDU: 80 11 00 00 [20:31:21]Write to MH i2c: E2 08 00 E5 01 80 11 00 00 00 00 00 00 60 [20:31:21]Write i2c OK [20:31:21]MH_I2C_Read... [20:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:21]Read from MH i2c: E2 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: E2 17 00 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: E2 17 00 E5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B2 [20:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:31:21]wFMCommunicate OK [20:31:21]CreateOFDProtocolMessage done [20:31:21]OFDSenderStorePacket 112073 [20:31:21]StoreOFDPacket docnum=112073 [20:31:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 67 60 04 01 DA 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 F1 00 00 00 F4 03 04 00 18 E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B5 01 00 35 04 06 00 9D 20 D1 1A A8 98 EC 65 D3 1F EE 2C F9 51 [20:31:21]CheckFolder [20:31:21]dirname=/storage/ofd_packets [20:31:21]CheckFolder done [20:31:21]ProducePacketName [20:31:21]name=ofd_packets/00112073 [20:31:21]NVStorageSaveData ofd_packets/00112073 [20:31:21]File name is /storage/ofd_packets/00112073 [20:31:21]Write 298 bytes [20:31:21]NVStorageSaveData done [20:31:21]OFDSenderStorePacket done [20:31:21]KKMCreateOFDPacket done [20:31:21]NVStorageSaveData kkm_last_timestamp [20:31:21]File name is /storage/kkm_last_timestamp [20:31:21]Write 4 bytes [20:31:21]NVStorageSaveData done [20:31:21]ExternCall_PrintAddStr [20:31:21]wPrintStart [20:31:21]Write to MH i2c: 01 00 00 E6 01 E7 [20:31:21]Write i2c OK [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: 01 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: 01 07 00 [20:31:21]MH_I2C_Read... [20:31:21]Read from MH i2c: 01 07 00 E6 01 00 00 00 00 00 FF 0F FC [20:31:21]RasterBufferAndPrint [20:31:21]line 小褔械褌 N : (1)320733 [20:31:21]line 袠袧袧: 02508201610067 [20:31:21]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:31:21]line 袩袪袨袛袗袞袗 [20:31:21]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [20:31:21]line 孝芯胁邪褉: 2710194210 [20:31:21]line 袛孝-袣-5 [20:31:21]line 6.860 * 72.90 [20:31:21]line = 500.09 [20:31:21]line 袧袛小 12% 袧小袩 1% [20:31:21]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:31:21]line 袨袣袪校袚袥袝袧袠袝: -0.09 [20:31:21]line 袠孝袨袚袨: 500.00 [20:31:21]line 袙薪械褋械薪芯: 500.00 [20:31:21]line 小袛袗效袗: 0.00 [20:31:21]line 袧小袩 1% : 4.43 [20:31:21]line 袧袛小 12% : 53.11 [20:31:21]line 袧邪谢懈褔薪褘屑懈: 500.00 [20:31:21]line 袘械蟹薪邪谢.: 0.00 [20:31:21]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:31:21]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:31:21]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:31:21]line 效械泻 241 21.06.2024 20:31 [20:31:21]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:31:21]line 袟袧袦: 0300000198 [20:31:21]line 袪袧袦: 0000000000092771 [20:31:21]line 袙械褉褋懈褟 袣袣袦: 001 [20:31:21]line 肖袦: 0000000000875083 [20:31:21]line 肖袛: 112073 [20:31:21]line 肖袩袛: 172764272699544 [20:31:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203120&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112073&fm=172764272699544&tin=02508201610067®Number=0000000000092771&sum=50000 [20:31:21]OFD Sender: Processing packet 112073 [packets to send 38, broken 37] [20:31:21]ProducePacketName [20:31:21]name=ofd_packets/00112073 [20:31:21]OFD Sender: To server: 嚂鰌G, [20:31:21]CommunicateWithHost lk.salyk.kg:30040 [20:31:21]ConnectInit lk.salyk.kg [20:31:21]written 0, free lines is 4095 [20:31:21]Connected sock=10 [20:31:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 67 60 04 01 DA 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 F1 00 00 00 F4 03 04 00 18 E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B5 01 00 35 04 06 00 9D 20 D1 1A A8 98 EC 65 D3 1F EE 2C F9 51 [20:31:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0D 8D 47 00 18 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B5 01 00 F4 03 04 00 39 7A 75 66 B6 04 01 00 00 72 6B D6 EA B2 87 96 26 [20:31:22]CommunicateWithHost err = 0 [20:31:22]CheckOFDResponse [20:31:22]1017 (14) - 77093643461234 [20:31:22]1041 (16) - 0000000000875083 [20:31:22]1040 (4) - 112073 [20:31:22]1012 (4) - 21.06.2024 13:03 [20:31:22]1206 (1) - 0 [20:31:22]OFD Sender: Remove packet 112073 [20:31:22]ProducePacketName [20:31:22]name=ofd_packets/00112073 [20:31:22]NVStorageDeleteData [20:31:22]Write to MH i2c: 01 00 00 11 02 13 [20:31:22]Write i2c OK [20:31:22]MH_I2C_Read... [20:31:22]Read from MH i2c: 01 [20:31:22]MH_I2C_Read... [20:31:22]Read from MH i2c: 01 07 00 [20:31:22]MH_I2C_Read... [20:31:22]Read from MH i2c: 01 07 00 11 02 00 00 00 00 00 DC 0C 02 [20:31:22]RasterBufferAndPrint [20:31:22]line [20:31:22]line [20:31:22]line [20:31:22]line [20:31:22]line [20:31:22]written 0, free lines is 3298 [20:31:22]MH_Cut [20:31:22]Write to MH i2c: D1 01 00 18 02 01 EC [20:31:22]Write i2c OK [20:31:22]MH_I2C_Read... [20:31:22]Read from MH i2c: D1 [20:31:22]MH_I2C_Read... [20:31:22]Read from MH i2c: D1 01 00 [20:31:22]MH_I2C_Read... [20:31:22]Read from MH i2c: D1 01 00 18 02 00 EB [20:31:22]Write to MH i2c: 01 00 00 19 02 1B [20:31:22]Write i2c OK [20:31:22]MH_I2C_Read... [20:31:22]OFD Sender: No OFD packet to send [20:31:23]*** Cut start [20:31:23]*** Partial cut [20:31:23]*** CUTSNS_PIN = 1 [20:31:23]*** CUTSNS_PIN = 0 [20:31:23]*** Brake cut motor [20:31:23]Read from MH i2c: 01 [20:31:23]MH_I2C_Read... [20:31:23]*** Stop cut motor [20:31:23]*** Cut end [20:31:23]Read from MH i2c: 01 07 00 [20:31:23]MH_I2C_Read... [20:31:23]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 FF 0F 30 [20:31:23]process_action close_receipt done [20:31:23]requested_data is exist [20:31:23]produce_requested_data [20:31:23]requested_item fm.sn is exist - process it [20:31:23]wFMCommunicate request_size=4 [20:31:23]MH_SAM_APDU [20:31:23]CAPDU: 80 11 00 00 [20:31:23]Write to MH i2c: E2 08 00 1A 02 80 11 00 00 00 00 00 00 96 [20:31:23]Write i2c OK [20:31:23]MH_I2C_Read... [20:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:23]Read from MH i2c: E2 [20:31:23]MH_I2C_Read... [20:31:23]Read from MH i2c: E2 17 00 [20:31:23]MH_I2C_Read... [20:31:23]Read from MH i2c: E2 17 00 1A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E8 [20:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:31:23]wFMCommunicate OK [20:31:23]requested_item fd.num is exist - process it [20:31:23]SAM_PROTO_GetFieldsCounters [20:31:23]wFMCommunicate request_size=4 [20:31:23]MH_SAM_APDU [20:31:23]CAPDU: 80 13 00 00 [20:31:23]Write to MH i2c: E2 08 00 1B 02 80 13 00 00 00 00 00 00 99 [20:31:23]Write i2c OK [20:31:23]MH_I2C_Read... [20:31:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:23]Read from MH i2c: E2 [20:31:23]MH_I2C_Read... [20:31:23]Read from MH i2c: E2 62 00 [20:31:23]MH_I2C_Read... [20:31:23]Read from MH i2c: E2 62 00 1B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C9 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [20:31:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C9 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:23]wFMCommunicate OK [20:31:23]SAM_PROTO_GetFieldsCounters done [20:31:23]requested_item shift.num is exist - process it [20:31:23]requested_item shift.opened is exist - process it [20:31:23]req_shift_opened [20:31:23]FM_GetShiftState [20:31:23]SAM_PROTO_GetShiftState [20:31:23]wFMCommunicate request_size=4 [20:31:23]MH_SAM_APDU [20:31:23]CAPDU: 80 13 01 00 [20:31:23]Write to MH i2c: E2 08 00 1C 02 80 13 01 00 00 00 00 00 9B [20:31:23]Write i2c OK [20:31:23]MH_I2C_Read... [20:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:23]Read from MH i2c: E2 [20:31:23]MH_I2C_Read... [20:31:23]Read from MH i2c: E2 0E 00 [20:31:23]MH_I2C_Read... [20:31:23]Read from MH i2c: E2 0E 00 1C 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 18 [20:31:23]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:31:23]wFMCommunicate OK [20:31:23]SAM_PROTO_GetShiftState done [20:31:23]FM_GetShiftState done [20:31:23]req_shift_opened done [20:31:23]requested_item shift.open_date is exist - process it [20:31:23]req_shift_open_date [20:31:23]req_shift_open_date done [20:31:23]produce_requested_data done [20:31:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112073,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:31:23]process_action_free close_receipt [20:31:23]json_value_free [20:31:23]json_value_free done [20:31:23]process_json_proto returns [20:31:23]Send response to host [20:31:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112073,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:31:23]free response buf [20:31:23]execute_script done [20:31:23]execute_script returns [20:31:23]free content buf [20:31:23]Sock 9.Close socket [20:31:23]Sock 9.Thread stoped [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:15]accept exits with 7 [20:32:15]New connection [20:32:15]New thread 3066813796 created [20:32:15]Thread 3066957156 joined [20:32:15]Waiting for new connection... [20:32:15] Sock 7.Parse request [20:32:15]Sock 7.Check first char [20:32:15]Sock 7.First char is OK [20:32:15]request: POST /json_proto HTTP/1.0 [20:32:15]Method: POST [20:32:15]URL: /json_proto [20:32:15]Method is POST - this is cgi request [20:32:15]url: /json_proto [20:32:15]query_string will be loaded in cgi processing [20:32:15]execute_cgi json_proto POST (null) [20:32:15]execute_cgi path=json_proto method=POST [20:32:15]POST find Content-Length [20:32:15]Host: 172.17.59.68:8080 [20:32:15]Content-Length: 682 [20:32:15]Content-Type: application/json [20:32:15] [20:32:15]POST finish read [20:32:15]Found Content-Length = 682 [20:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:32:15]execute_script... [20:32: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)320734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:32:15]POST & json_proto [20:32:15]process_json_proto [20:32:15]json parsed OK: [20:32:15]protocol is kg_v1.0 [20:32:15]action value=close_receipt [20:32:15]process_action close_receipt [20:32:15]cmd_close_receipt [20:32:15]MH_GetDate [20:32:15]Write to MH i2c: F0 00 00 1D 02 0E [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: F0 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: F0 09 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: F0 09 00 1D 02 00 50 E3 75 66 BC EC 60 65 92 [20:32:15]GetLastDocTimeStamp 1719001880 [20:32:15]current date 1719001936 [20:32:15]FM_GetShiftState [20:32:15]SAM_PROTO_GetShiftState [20:32:15]wFMCommunicate request_size=4 [20:32:15]MH_SAM_APDU [20:32:15]CAPDU: 80 13 01 00 [20:32:15]Write to MH i2c: E2 08 00 1E 02 80 13 01 00 00 00 00 00 9D [20:32:15]Write i2c OK [20:32:15]MH_I2C_Read... [20:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:15]Read from MH i2c: E2 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 0E 00 [20:32:15]MH_I2C_Read... [20:32:15]Read from MH i2c: E2 0E 00 1E 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1A [20:32:15]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:32:15]wFMCommunicate OK [20:32:15]SAM_PROTO_GetShiftState done [20:32:15]FM_GetShiftState done [20:32:15]opened in 1718933695 [20:32:15]opened+sec_in_day 1719020095 [20:32:15]quantity*price = 100064 [20:32:15]sum+1 = 100066 [20:32:15]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 242 21.06.2024 20:32 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112074 肖袩袛: 73274541677343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203216&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112074&fm=73274541677343&tin=02508201610067®Number=0000000000092771&sum=100000 [20:32:16]StoreToDocumentArchive [20:32:16]shift 390 fd 112074 [20:32:16]save to /storage/0390/doc_00112074 [20:32:16]save last doc name /storage/0390/doc_00112074 to /storage/kkm_last_doc_name [20:32:16]save OK [20:32:16]Clear old archive folders... [20:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:16]tlvbuf is 011278A0 [20:32:16]SAM_PROTO_ClearQueue [20:32:16]wFMCommunicate request_size=4 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 09 00 00 [20:32:16]Write to MH i2c: E2 08 00 2B 02 80 09 00 00 00 00 00 00 9F [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 2B 02 00 90 00 A1 [20:32:16]RAPDU: 90 00 [20:32:16]wFMCommunicate OK [20:32:16]SAM_PROTO_ClearQueue done [20:32:16]KKMCreateOFDPacket [20:32:16]OFDProtocolAddRootSTLVToBuf [20:32:16]FM_MakeSignedData [20:32:16]FM_MakeSignedData [20:32:16]SAM_PROTO_SignData [20:32:16]wFMCommunicate request_size=4 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 0D 01 02 [20:32:16]Write to MH i2c: E2 08 00 2C 02 80 0D 01 02 00 00 00 00 A7 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [20:32:16]RAPDU: 90 00 [20:32:16]wFMCommunicate OK [20:32:16]wFMCommunicate request_size=255 [20:32:16]MH_SAM_APDU [20:32: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 F2 00 00 00 F4 03 04 00 50 E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B5 01 00 35 04 06 00 42 [20:32:16]Write to MH i2c: E2 02 01 2D 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 F2 00 00 00 F4 03 04 00 50 E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B5 01 00 35 04 06 00 42 00 00 F4 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:16]Read from MH i2c: E2 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 [20:32:16]MH_I2C_Read... [20:32:16]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [20:32:16]RAPDU: 90 00 [20:32:16]wFMCommunicate OK [20:32:16]wFMCommunicate request_size=10 [20:32:16]MH_SAM_APDU [20:32:16]CAPDU: 80 0D 02 02 05 A4 8F 07 1B 1F [20:32:16]Write to MH i2c: E2 0D 00 2E 02 80 0D 02 02 05 00 A4 8F 07 1B 1F 00 00 28 [20:32:16]Write i2c OK [20:32:16]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 03 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [20:32:17]RAPDU: 90 00 [20:32:17]wFMCommunicate OK [20:32:17]wFMCommunicate request_size=4 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 0D 03 02 [20:32:17]Write to MH i2c: E2 08 00 2F 02 80 0D 03 02 00 00 00 00 AC [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 0B 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 0B 00 2F 02 00 8D B1 1E A4 6E 48 6D DC 90 00 AC [20:32:17]RAPDU: 8D B1 1E A4 6E 48 6D DC 90 00 [20:32:17]wFMCommunicate OK [20:32:17]SAM_PROTO_SignData done [20:32:17]FM_MakeSignedData done [20:32:17]CreateOFDProtocolMessage [20:32:17]wFMCommunicate request_size=4 [20:32:17]MH_SAM_APDU [20:32:17]CAPDU: 80 11 00 00 [20:32:17]Write to MH i2c: E2 08 00 30 02 80 11 00 00 00 00 00 00 AC [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:17]Read from MH i2c: E2 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 17 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: E2 17 00 30 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FE [20:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:32:17]wFMCommunicate OK [20:32:17]CreateOFDProtocolMessage done [20:32:17]OFDSenderStorePacket 112074 [20:32:17]StoreOFDPacket docnum=112074 [20:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AB 87 07 01 3E B4 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 F2 00 00 00 F4 03 04 00 50 E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B5 01 00 35 04 06 00 42 A4 8F 07 1B 1F 8D B1 1E A4 6E 48 6D DC [20:32:17]CheckFolder [20:32:17]dirname=/storage/ofd_packets [20:32:17]CheckFolder done [20:32:17]ProducePacketName [20:32:17]name=ofd_packets/00112074 [20:32:17]NVStorageSaveData ofd_packets/00112074 [20:32:17]File name is /storage/ofd_packets/00112074 [20:32:17]Write 301 bytes [20:32:17]NVStorageSaveData done [20:32:17]OFDSenderStorePacket done [20:32:17]KKMCreateOFDPacket done [20:32:17]NVStorageSaveData kkm_last_timestamp [20:32:17]File name is /storage/kkm_last_timestamp [20:32:17]Write 4 bytes [20:32:17]NVStorageSaveData done [20:32:17]ExternCall_PrintAddStr [20:32:17]wPrintStart [20:32:17]Write to MH i2c: 01 00 00 31 02 33 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 07 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 07 00 31 02 00 00 00 00 00 FF 0F 48 [20:32:17]RasterBufferAndPrint [20:32:17]line 小褔械褌 N : (1)320734 [20:32:17]line 袠袧袧: 02508201610067 [20:32:17]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:32:17]line 袩袪袨袛袗袞袗 [20:32:17]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:32:17]line 孝芯胁邪褉: 2710124130 [20:32:17]line 袗懈-92-袣-5 [20:32:17]line 15.070 * 66.40 [20:32:17]line = 1000.65 [20:32:17]line 袧袛小 12% 袧小袩 1% [20:32:17]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:32:17]line 袨袣袪校袚袥袝袧袠袝: -0.65 [20:32:17]line 袠孝袨袚袨: 1000.00 [20:32:17]line 袙薪械褋械薪芯: 1000.00 [20:32:17]line 小袛袗效袗: 0.00 [20:32:17]line 袧小袩 1% : 8.85 [20:32:17]line 袧袛小 12% : 106.26 [20:32:17]line 袧邪谢懈褔薪褘屑懈: 1000.00 [20:32:17]line 袘械蟹薪邪谢.: 0.00 [20:32:17]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:32:17]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:32:17]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:32:17]line 效械泻 242 21.06.2024 20:32 [20:32:17]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:32:17]line 袟袧袦: 0300000198 [20:32:17]line 袪袧袦: 0000000000092771 [20:32:17]line 袙械褉褋懈褟 袣袣袦: 001 [20:32:17]line 肖袦: 0000000000875083 [20:32:17]line 肖袛: 112074 [20:32:17]line 肖袩袛: 73274541677343 [20:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203216&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112074&fm=73274541677343&tin=02508201610067®Number=0000000000092771&sum=100000 [20:32:17]OFD Sender: Processing packet 112074 [packets to send 38, broken 37] [20:32:17]ProducePacketName [20:32:17]name=ofd_packets/00112074 [20:32:17]OFD Sender: To server: 嚂鰌G, [20:32:17]CommunicateWithHost lk.salyk.kg:30040 [20:32:17]ConnectInit lk.salyk.kg [20:32:17]written 0, free lines is 4095 [20:32:17]Connected sock=10 [20:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AB 87 07 01 3E B4 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 F2 00 00 00 F4 03 04 00 50 E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B5 01 00 35 04 06 00 42 A4 8F 07 1B 1F 8D B1 1E A4 6E 48 6D DC [20:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CF 83 47 00 5E 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 30 38 37 35 30 38 33 10 04 04 00 CA B5 01 00 F4 03 04 00 71 7A 75 66 B6 04 01 00 00 56 8B F0 F7 2F 92 1A 39 [20:32:17]CommunicateWithHost err = 0 [20:32:17]CheckOFDResponse [20:32:17]1017 (14) - 77093643461234 [20:32:17]1041 (16) - 0000000000875083 [20:32:17]1040 (4) - 112074 [20:32:17]1012 (4) - 21.06.2024 13:04 [20:32:17]1206 (1) - 0 [20:32:17]OFD Sender: Remove packet 112074 [20:32:17]ProducePacketName [20:32:17]name=ofd_packets/00112074 [20:32:17]NVStorageDeleteData [20:32:17]Write to MH i2c: 01 00 00 5C 02 5E [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 07 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: 01 07 00 5C 02 00 00 00 00 00 ED 0C 5E [20:32:17]RasterBufferAndPrint [20:32:17]line [20:32:17]line [20:32:17]line [20:32:17]line [20:32:17]line [20:32:17]written 0, free lines is 3315 [20:32:17]MH_Cut [20:32:17]Write to MH i2c: D1 01 00 63 02 01 37 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: D1 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: D1 01 00 [20:32:17]MH_I2C_Read... [20:32:17]Read from MH i2c: D1 01 00 63 02 00 36 [20:32:17]Write to MH i2c: 01 00 00 64 02 66 [20:32:17]Write i2c OK [20:32:17]MH_I2C_Read... [20:32:18]OFD Sender: No OFD packet to send [20:32:18]*** Cut start [20:32:18]*** Partial cut [20:32:18]*** CUTSNS_PIN = 1 [20:32:18]*** CUTSNS_PIN = 0 [20:32:18]*** Brake cut motor [20:32:19]Read from MH i2c: 01 [20:32:19]MH_I2C_Read... [20:32:19]*** Stop cut motor [20:32:19]*** Cut end [20:32:19]Read from MH i2c: 01 07 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 FF 0F 7B [20:32:19]process_action close_receipt done [20:32:19]requested_data is exist [20:32:19]produce_requested_data [20:32:19]requested_item fm.sn is exist - process it [20:32:19]wFMCommunicate request_size=4 [20:32:19]MH_SAM_APDU [20:32:19]CAPDU: 80 11 00 00 [20:32:19]Write to MH i2c: E2 08 00 65 02 80 11 00 00 00 00 00 00 E1 [20:32:19]Write i2c OK [20:32:19]MH_I2C_Read... [20:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:19]Read from MH i2c: E2 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 17 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 17 00 65 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 33 [20:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:32:19]wFMCommunicate OK [20:32:19]requested_item fd.num is exist - process it [20:32:19]SAM_PROTO_GetFieldsCounters [20:32:19]wFMCommunicate request_size=4 [20:32:19]MH_SAM_APDU [20:32:19]CAPDU: 80 13 00 00 [20:32:19]Write to MH i2c: E2 08 00 66 02 80 13 00 00 00 00 00 00 E4 [20:32:19]Write i2c OK [20:32:19]MH_I2C_Read... [20:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:19]Read from MH i2c: E2 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 62 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 62 00 66 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [20:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:19]wFMCommunicate OK [20:32:19]SAM_PROTO_GetFieldsCounters done [20:32:19]requested_item shift.num is exist - process it [20:32:19]requested_item shift.opened is exist - process it [20:32:19]req_shift_opened [20:32:19]FM_GetShiftState [20:32:19]SAM_PROTO_GetShiftState [20:32:19]wFMCommunicate request_size=4 [20:32:19]MH_SAM_APDU [20:32:19]CAPDU: 80 13 01 00 [20:32:19]Write to MH i2c: E2 08 00 67 02 80 13 01 00 00 00 00 00 E6 [20:32:19]Write i2c OK [20:32:19]MH_I2C_Read... [20:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:19]Read from MH i2c: E2 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 0E 00 [20:32:19]MH_I2C_Read... [20:32:19]Read from MH i2c: E2 0E 00 67 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 63 [20:32:19]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:32:19]wFMCommunicate OK [20:32:19]SAM_PROTO_GetShiftState done [20:32:19]FM_GetShiftState done [20:32:19]req_shift_opened done [20:32:19]requested_item shift.open_date is exist - process it [20:32:19]req_shift_open_date [20:32:19]req_shift_open_date done [20:32:19]produce_requested_data done [20:32:19]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112074,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:32:19]process_action_free close_receipt [20:32:19]json_value_free [20:32:19]json_value_free done [20:32:19]process_json_proto returns [20:32:19]Send response to host [20:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112074,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:32:19]free response buf [20:32:19]execute_script done [20:32:19]execute_script returns [20:32:19]free content buf [20:32:19]Sock 7.Close socket [20:32:19]Sock 7.Thread stoped [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]accept exits with 9 [20:34:03]New connection [20:34:03]New thread 3066957156 created [20:34:03]Thread 3066813796 joined [20:34:03]Waiting for new connection... [20:34:03] Sock 9.Parse request [20:34:03]Sock 9.Check first char [20:34:03]Sock 9.First char is OK [20:34:03]request: POST /json_proto HTTP/1.0 [20:34:03]Method: POST [20:34:03]URL: /json_proto [20:34:03]Method is POST - this is cgi request [20:34:03]url: /json_proto [20:34:03]query_string will be loaded in cgi processing [20:34:03]execute_cgi json_proto POST (null) [20:34:03]execute_cgi path=json_proto method=POST [20:34:03]POST find Content-Length [20:34:03]Host: 172.17.59.68:8080 [20:34:03]Content-Length: 642 [20:34:03]Content-Type: application/json [20:34:03] [20:34:03]POST finish read [20:34:03]Found Content-Length = 642 [20:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.000, "sum" : 1992.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1992.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:03]execute_script... [20:34: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)320735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.000, "sum" : 1992.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1992.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:03]POST & json_proto [20:34:03]process_json_proto [20:34:03]json parsed OK: [20:34:03]protocol is kg_v1.0 [20:34:03]action value=close_receipt [20:34:03]process_action close_receipt [20:34:03]cmd_close_receipt [20:34:03]MH_GetDate [20:34:03]Write to MH i2c: F0 00 00 68 02 59 [20:34:03]Write i2c OK [20:34:03]MH_I2C_Read... [20:34:03]Read from MH i2c: F0 [20:34:03]MH_I2C_Read... [20:34:03]Read from MH i2c: F0 09 00 [20:34:03]MH_I2C_Read... [20:34:03]Read from MH i2c: F0 09 00 68 02 00 BB E3 75 66 BC EC 60 65 48 [20:34:03]GetLastDocTimeStamp 1719001936 [20:34:03]current date 1719002043 [20:34:03]FM_GetShiftState [20:34:03]SAM_PROTO_GetShiftState [20:34:03]wFMCommunicate request_size=4 [20:34:03]MH_SAM_APDU [20:34:03]CAPDU: 80 13 01 00 [20:34:03]Write to MH i2c: E2 08 00 69 02 80 13 01 00 00 00 00 00 E8 [20:34:03]Write i2c OK [20:34:03]MH_I2C_Read... [20:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:03]Read from MH i2c: E2 [20:34:03]MH_I2C_Read... [20:34:03]Read from MH i2c: E2 0E 00 [20:34:03]MH_I2C_Read... [20:34:03]Read from MH i2c: E2 0E 00 69 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 65 [20:34:03]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:34:03]wFMCommunicate OK [20:34:03]SAM_PROTO_GetShiftState done [20:34:03]FM_GetShiftState done [20:34:03]opened in 1718933695 [20:34:03]opened+sec_in_day 1719020095 [20:34:03]quantity*price = 199200 [20:34:03]sum+1 = 199201 [20:34:03]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 1992.00 袧小袩 1% : 17.63 袧袛小 12% : 211.54 袧邪谢懈褔薪褘屑懈: 1992.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 243 21.06.2024 20:34 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112075 肖袩袛: 138524950265281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203403&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112075&fm=138524950265281&tin=02508201610067®Number=0000000000092771&sum=199200 [20:34:04]StoreToDocumentArchive [20:34:04]shift 390 fd 112075 [20:34:04]save to /storage/0390/doc_00112075 [20:34:04]save last doc name /storage/0390/doc_00112075 to /storage/kkm_last_doc_name [20:34:04]save OK [20:34:04]Clear old archive folders... [20:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:04]tlvbuf is 0111B050 [20:34:04]SAM_PROTO_ClearQueue [20:34:04]wFMCommunicate request_size=4 [20:34:04]MH_SAM_APDU [20:34:04]CAPDU: 80 09 00 00 [20:34:04]Write to MH i2c: E2 08 00 76 02 80 09 00 00 00 00 00 00 EA [20:34:04]Write i2c OK [20:34:04]MH_I2C_Read... [20:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:04]Read from MH i2c: E2 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 03 00 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [20:34:04]RAPDU: 90 00 [20:34:04]wFMCommunicate OK [20:34:04]SAM_PROTO_ClearQueue done [20:34:04]KKMCreateOFDPacket [20:34:04]OFDProtocolAddRootSTLVToBuf [20:34:04]FM_MakeSignedData [20:34:04]FM_MakeSignedData [20:34:04]SAM_PROTO_SignData [20:34:04]wFMCommunicate request_size=4 [20:34:04]MH_SAM_APDU [20:34:04]CAPDU: 80 0D 01 02 [20:34:04]Write to MH i2c: E2 08 00 77 02 80 0D 01 02 00 00 00 00 F2 [20:34:04]Write i2c OK [20:34:04]MH_I2C_Read... [20:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:04]Read from MH i2c: E2 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 03 00 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [20:34:04]RAPDU: 90 00 [20:34:04]wFMCommunicate OK [20:34:04]wFMCommunicate request_size=255 [20:34:04]MH_SAM_APDU [20:34: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 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 20 0A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 BB E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B5 01 00 35 04 06 00 7D [20:34:04]Write to MH i2c: E2 02 01 78 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 20 0A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 BB E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B5 01 00 35 04 06 00 7D 00 00 FF [20:34:04]Write i2c OK [20:34:04]MH_I2C_Read... [20:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:04]Read from MH i2c: E2 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 03 00 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [20:34:04]RAPDU: 90 00 [20:34:04]wFMCommunicate OK [20:34:04]wFMCommunicate request_size=10 [20:34:04]MH_SAM_APDU [20:34:04]CAPDU: 80 0D 02 02 05 FC DA 73 FD C1 [20:34:04]Write to MH i2c: E2 0D 00 79 02 80 0D 02 02 05 00 FC DA 73 FD C1 00 00 06 [20:34:04]Write i2c OK [20:34:04]MH_I2C_Read... [20:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:04]Read from MH i2c: E2 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 03 00 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [20:34:04]RAPDU: 90 00 [20:34:04]wFMCommunicate OK [20:34:04]wFMCommunicate request_size=4 [20:34:04]MH_SAM_APDU [20:34:04]CAPDU: 80 0D 03 02 [20:34:04]Write to MH i2c: E2 08 00 7A 02 80 0D 03 02 00 00 00 00 F7 [20:34:04]Write i2c OK [20:34:04]MH_I2C_Read... [20:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:04]Read from MH i2c: E2 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 0B 00 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 0B 00 7A 02 00 AB C2 90 FD 6D 60 9B F9 90 00 53 [20:34:04]RAPDU: AB C2 90 FD 6D 60 9B F9 90 00 [20:34:04]wFMCommunicate OK [20:34:04]SAM_PROTO_SignData done [20:34:04]FM_MakeSignedData done [20:34:04]CreateOFDProtocolMessage [20:34:04]wFMCommunicate request_size=4 [20:34:04]MH_SAM_APDU [20:34:04]CAPDU: 80 11 00 00 [20:34:04]Write to MH i2c: E2 08 00 7B 02 80 11 00 00 00 00 00 00 F7 [20:34:04]Write i2c OK [20:34:04]MH_I2C_Read... [20:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:04]Read from MH i2c: E2 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 17 00 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: E2 17 00 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 49 [20:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:34:04]wFMCommunicate OK [20:34:04]CreateOFDProtocolMessage done [20:34:04]OFDSenderStorePacket 112075 [20:34:04]StoreOFDPacket docnum=112075 [20:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2A AC 07 01 48 52 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 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 20 0A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 BB E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B5 01 00 35 04 06 00 7D FC DA 73 FD C1 AB C2 90 FD 6D 60 9B F9 [20:34:04]CheckFolder [20:34:04]dirname=/storage/ofd_packets [20:34:04]CheckFolder done [20:34:04]ProducePacketName [20:34:04]name=ofd_packets/00112075 [20:34:04]NVStorageSaveData ofd_packets/00112075 [20:34:04]File name is /storage/ofd_packets/00112075 [20:34:04]Write 301 bytes [20:34:04]NVStorageSaveData done [20:34:04]OFDSenderStorePacket done [20:34:04]KKMCreateOFDPacket done [20:34:04]NVStorageSaveData kkm_last_timestamp [20:34:04]File name is /storage/kkm_last_timestamp [20:34:04]Write 4 bytes [20:34:04]NVStorageSaveData done [20:34:04]ExternCall_PrintAddStr [20:34:04]wPrintStart [20:34:04]Write to MH i2c: 01 00 00 7C 02 7E [20:34:04]Write i2c OK [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: 01 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: 01 07 00 [20:34:04]MH_I2C_Read... [20:34:04]Read from MH i2c: 01 07 00 7C 02 00 00 00 00 00 FF 0F 93 [20:34:04]RasterBufferAndPrint [20:34:04]line 小褔械褌 N : (1)320735 [20:34:04]line 袠袧袧: 02508201610067 [20:34:04]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:34:04]line 袩袪袨袛袗袞袗 [20:34:04]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:34:04]line 孝芯胁邪褉: 2710124130 [20:34:04]line 袗懈-92-袣-5 [20:34:04]line 30.000 * 66.40 [20:34:04]line = 1992.00 [20:34:04]line 袧袛小 12% 袧小袩 1% [20:34:04]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:34:04]line 袠孝袨袚袨: 1992.00 [20:34:04]line 袧小袩 1% : 17.63 [20:34:04]line 袧袛小 12% : 211.54 [20:34:04]line 袧邪谢懈褔薪褘屑懈: 1992.00 [20:34:04]line 袘械蟹薪邪谢.: 0.00 [20:34:04]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:34:04]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:34:04]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:34:04]line 效械泻 243 21.06.2024 20:34 [20:34:04]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:34:04]line 袟袧袦: 0300000198 [20:34:04]line 袪袧袦: 0000000000092771 [20:34:04]line 袙械褉褋懈褟 袣袣袦: 001 [20:34:04]line 肖袦: 0000000000875083 [20:34:04]line 肖袛: 112075 [20:34:04]line 肖袩袛: 138524950265281 [20:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203403&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112075&fm=138524950265281&tin=02508201610067®Number=0000000000092771&sum=199200 [20:34:05]OFD Sender: Processing packet 112075 [packets to send 38, broken 37] [20:34:05]ProducePacketName [20:34:05]name=ofd_packets/00112075 [20:34:05]OFD Sender: To server: 嚂鰌G, [20:34:05]CommunicateWithHost lk.salyk.kg:30040 [20:34:05]ConnectInit lk.salyk.kg [20:34:05]written 0, free lines is 4095 [20:34:05]Connected sock=10 [20:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2A AC 07 01 48 52 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 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 20 0A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 BB E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B5 01 00 35 04 06 00 7D FC DA 73 FD C1 AB C2 90 FD 6D 60 9B F9 [20:34:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 94 B2 47 00 38 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 30 38 37 35 30 38 33 10 04 04 00 CB B5 01 00 F4 03 04 00 DD 7A 75 66 B6 04 01 00 00 B6 63 28 91 B2 EC A0 BF [20:34:05]CommunicateWithHost err = 0 [20:34:05]CheckOFDResponse [20:34:05]1017 (14) - 77093643461234 [20:34:05]1041 (16) - 0000000000875083 [20:34:05]1040 (4) - 112075 [20:34:05]1012 (4) - 21.06.2024 13:06 [20:34:05]1206 (1) - 0 [20:34:05]OFD Sender: Remove packet 112075 [20:34:05]ProducePacketName [20:34:05]name=ofd_packets/00112075 [20:34:05]NVStorageDeleteData [20:34:05]Write to MH i2c: 01 00 00 A4 02 A6 [20:34:05]Write i2c OK [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: 01 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: 01 07 00 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 1D 0D D7 [20:34:05]RasterBufferAndPrint [20:34:05]line [20:34:05]line [20:34:05]line [20:34:05]line [20:34:05]line [20:34:05]written 0, free lines is 3363 [20:34:05]MH_Cut [20:34:05]Write to MH i2c: D1 01 00 AB 02 01 7F [20:34:05]Write i2c OK [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: D1 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: D1 01 00 [20:34:05]MH_I2C_Read... [20:34:05]Read from MH i2c: D1 01 00 AB 02 00 7E [20:34:05]Write to MH i2c: 01 00 00 AC 02 AE [20:34:05]Write i2c OK [20:34:05]MH_I2C_Read... [20:34:05]OFD Sender: No OFD packet to send [20:34:06]*** Cut start [20:34:06]*** Partial cut [20:34:06]*** CUTSNS_PIN = 1 [20:34:06]*** CUTSNS_PIN = 0 [20:34:06]*** Brake cut motor [20:34:06]Read from MH i2c: 01 [20:34:06]MH_I2C_Read... [20:34:06]*** Stop cut motor [20:34:06]*** Cut end [20:34:06]Read from MH i2c: 01 07 00 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: 01 07 00 AC 02 00 00 00 00 00 FF 0F C3 [20:34:06]process_action close_receipt done [20:34:06]requested_data is exist [20:34:06]produce_requested_data [20:34:06]requested_item fm.sn is exist - process it [20:34:06]wFMCommunicate request_size=4 [20:34:06]MH_SAM_APDU [20:34:06]CAPDU: 80 11 00 00 [20:34:06]Write to MH i2c: E2 08 00 AD 02 80 11 00 00 00 00 00 00 29 [20:34:06]Write i2c OK [20:34:06]MH_I2C_Read... [20:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:06]Read from MH i2c: E2 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: E2 17 00 [20:34:06]MH_I2C_Read... [20:34:06]Read from MH i2c: E2 17 00 AD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [20:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:34:06]wFMCommunicate OK [20:34:06]requested_item fd.num is exist - process it [20:34:06]SAM_PROTO_GetFieldsCounters [20:34:06]wFMCommunicate request_size=4 [20:34:06]MH_SAM_APDU [20:34:06]CAPDU: 80 13 00 00 [20:34:06]Write to MH i2c: E2 08 00 AE 02 80 13 00 00 00 00 00 00 2C [20:34:06]Write i2c OK [20:34:06]MH_I2C_Read... [20:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:07]Read from MH i2c: E2 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: E2 62 00 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: E2 62 00 AE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [20:34:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:34:07]wFMCommunicate OK [20:34:07]SAM_PROTO_GetFieldsCounters done [20:34:07]requested_item shift.num is exist - process it [20:34:07]requested_item shift.opened is exist - process it [20:34:07]req_shift_opened [20:34:07]FM_GetShiftState [20:34:07]SAM_PROTO_GetShiftState [20:34:07]wFMCommunicate request_size=4 [20:34:07]MH_SAM_APDU [20:34:07]CAPDU: 80 13 01 00 [20:34:07]Write to MH i2c: E2 08 00 AF 02 80 13 01 00 00 00 00 00 2E [20:34:07]Write i2c OK [20:34:07]MH_I2C_Read... [20:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:07]Read from MH i2c: E2 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: E2 0E 00 [20:34:07]MH_I2C_Read... [20:34:07]Read from MH i2c: E2 0E 00 AF 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 AB [20:34:07]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:34:07]wFMCommunicate OK [20:34:07]SAM_PROTO_GetShiftState done [20:34:07]FM_GetShiftState done [20:34:07]req_shift_opened done [20:34:07]requested_item shift.open_date is exist - process it [20:34:07]req_shift_open_date [20:34:07]req_shift_open_date done [20:34:07]produce_requested_data done [20:34:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112075,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:34:07]process_action_free close_receipt [20:34:07]json_value_free [20:34:07]json_value_free done [20:34:07]process_json_proto returns [20:34:07]Send response to host [20:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112075,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:34:07]free response buf [20:34:07]execute_script done [20:34:07]execute_script returns [20:34:07]free content buf [20:34:07]Sock 9.Close socket [20:34:07]Sock 9.Thread stoped [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:18]accept exits with 7 [20:34:18]New connection [20:34:18]New thread 3066813796 created [20:34:18]Thread 3066957156 joined [20:34:18]Waiting for new connection... [20:34:18] Sock 7.Parse request [20:34:18]Sock 7.Check first char [20:34:18]Sock 7.First char is OK [20:34:18]request: POST /json_proto HTTP/1.0 [20:34:18]Method: POST [20:34:18]URL: /json_proto [20:34:18]Method is POST - this is cgi request [20:34:18]url: /json_proto [20:34:18]query_string will be loaded in cgi processing [20:34:18]execute_cgi json_proto POST (null) [20:34:18]execute_cgi path=json_proto method=POST [20:34:18]POST find Content-Length [20:34:18]Host: 172.17.59.68:8080 [20:34:18]Content-Length: 677 [20:34:18]Content-Type: application/json [20:34:18] [20:34:18]POST finish read [20:34:18]Found Content-Length = 677 [20:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.110, "sum" : 140.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:18]execute_script... [20:34: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)320736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.110, "sum" : 140.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:18]POST & json_proto [20:34:18]process_json_proto [20:34:18]json parsed OK: [20:34:18]protocol is kg_v1.0 [20:34:18]action value=close_receipt [20:34:18]process_action close_receipt [20:34:18]cmd_close_receipt [20:34:18]MH_GetDate [20:34:18]Write to MH i2c: F0 00 00 B0 02 A1 [20:34:18]Write i2c OK [20:34:18]MH_I2C_Read... [20:34:18]Read from MH i2c: F0 [20:34:18]MH_I2C_Read... [20:34:18]Read from MH i2c: F0 09 00 [20:34:18]MH_I2C_Read... [20:34:18]Read from MH i2c: F0 09 00 B0 02 00 CB E3 75 66 BC EC 60 65 A0 [20:34:18]GetLastDocTimeStamp 1719002043 [20:34:18]current date 1719002059 [20:34:18]FM_GetShiftState [20:34:18]SAM_PROTO_GetShiftState [20:34:18]wFMCommunicate request_size=4 [20:34:18]MH_SAM_APDU [20:34:18]CAPDU: 80 13 01 00 [20:34:18]Write to MH i2c: E2 08 00 B1 02 80 13 01 00 00 00 00 00 30 [20:34:18]Write i2c OK [20:34:18]MH_I2C_Read... [20:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:18]Read from MH i2c: E2 [20:34:18]MH_I2C_Read... [20:34:18]Read from MH i2c: E2 0E 00 [20:34:18]MH_I2C_Read... [20:34:18]Read from MH i2c: E2 0E 00 B1 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 AD [20:34:18]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:34:18]wFMCommunicate OK [20:34:18]SAM_PROTO_GetShiftState done [20:34:18]FM_GetShiftState done [20:34:18]opened in 1718933695 [20:34:18]opened+sec_in_day 1719020095 [20:34:18]quantity*price = 14010 [20:34:18]sum+1 = 14011 [20:34:18]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.10 袠孝袨袚袨: 140.00 袙薪械褋械薪芯: 140.00 小袛袗效袗: 0.00 袧小袩 1% : 1.24 袧袛小 12% : 14.88 袧邪谢懈褔薪褘屑懈: 140.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 244 21.06.2024 20:34 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112076 肖袩袛: 266635710209273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203419&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112076&fm=266635710209273&tin=02508201610067®Number=0000000000092771&sum=14000 [20:34:19]StoreToDocumentArchive [20:34:19]shift 390 fd 112076 [20:34:19]save to /storage/0390/doc_00112076 [20:34:19]save last doc name /storage/0390/doc_00112076 to /storage/kkm_last_doc_name [20:34:19]save OK [20:34:19]Clear old archive folders... [20:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:19]tlvbuf is 01135490 [20:34:19]SAM_PROTO_ClearQueue [20:34:19]wFMCommunicate request_size=4 [20:34:19]MH_SAM_APDU [20:34:19]CAPDU: 80 09 00 00 [20:34:19]Write to MH i2c: E2 08 00 BE 02 80 09 00 00 00 00 00 00 32 [20:34:19]Write i2c OK [20:34:19]MH_I2C_Read... [20:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:19]Read from MH i2c: E2 [20:34:19]MH_I2C_Read... [20:34:19]Read from MH i2c: E2 03 00 [20:34:19]MH_I2C_Read... [20:34:19]Read from MH i2c: E2 03 00 BE 02 00 90 00 34 [20:34:19]RAPDU: 90 00 [20:34:19]wFMCommunicate OK [20:34:19]SAM_PROTO_ClearQueue done [20:34:19]KKMCreateOFDPacket [20:34:19]OFDProtocolAddRootSTLVToBuf [20:34:19]FM_MakeSignedData [20:34:19]FM_MakeSignedData [20:34:19]SAM_PROTO_SignData [20:34:19]wFMCommunicate request_size=4 [20:34:19]MH_SAM_APDU [20:34:19]CAPDU: 80 0D 01 02 [20:34:19]Write to MH i2c: E2 08 00 BF 02 80 0D 01 02 00 00 00 00 3A [20:34:19]Write i2c OK [20:34:19]MH_I2C_Read... [20:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:19]Read from MH i2c: E2 [20:34:19]MH_I2C_Read... [20:34:19]Read from MH i2c: E2 03 00 [20:34:19]MH_I2C_Read... [20:34:19]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [20:34:19]RAPDU: 90 00 [20:34:19]wFMCommunicate OK [20:34:19]wFMCommunicate request_size=255 [20:34:19]MH_SAM_APDU [20:34:19]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 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 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 D0 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 F4 00 00 00 F4 03 04 00 CB E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B5 01 00 35 04 06 00 F2 [20:34:19]Write to MH i2c: E2 02 01 C0 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 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 D0 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 F4 00 00 00 F4 03 04 00 CB E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B5 01 00 35 04 06 00 F2 00 00 18 [20:34:19]Write i2c OK [20:34:19]MH_I2C_Read... [20:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:20]Read from MH i2c: E2 [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: E2 03 00 [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [20:34:20]RAPDU: 90 00 [20:34:20]wFMCommunicate OK [20:34:20]wFMCommunicate request_size=10 [20:34:20]MH_SAM_APDU [20:34:20]CAPDU: 80 0D 02 02 05 80 F6 CA 9C F9 [20:34:20]Write to MH i2c: E2 0D 00 C1 02 80 0D 02 02 05 00 80 F6 CA 9C F9 00 00 1C [20:34:20]Write i2c OK [20:34:20]MH_I2C_Read... [20:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:20]Read from MH i2c: E2 [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: E2 03 00 [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [20:34:20]RAPDU: 90 00 [20:34:20]wFMCommunicate OK [20:34:20]wFMCommunicate request_size=4 [20:34:20]MH_SAM_APDU [20:34:20]CAPDU: 80 0D 03 02 [20:34:20]Write to MH i2c: E2 08 00 C2 02 80 0D 03 02 00 00 00 00 3F [20:34:20]Write i2c OK [20:34:20]MH_I2C_Read... [20:34:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:20]Read from MH i2c: E2 [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: E2 0B 00 [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: E2 0B 00 C2 02 00 F5 2F 14 7D BD F1 F0 90 90 00 23 [20:34:20]RAPDU: F5 2F 14 7D BD F1 F0 90 90 00 [20:34:20]wFMCommunicate OK [20:34:20]SAM_PROTO_SignData done [20:34:20]FM_MakeSignedData done [20:34:20]CreateOFDProtocolMessage [20:34:20]wFMCommunicate request_size=4 [20:34:20]MH_SAM_APDU [20:34:20]CAPDU: 80 11 00 00 [20:34:20]Write to MH i2c: E2 08 00 C3 02 80 11 00 00 00 00 00 00 3F [20:34:20]Write i2c OK [20:34:20]MH_I2C_Read... [20:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:20]Read from MH i2c: E2 [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: E2 17 00 [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: E2 17 00 C3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 91 [20:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:34:20]wFMCommunicate OK [20:34:20]CreateOFDProtocolMessage done [20:34:20]OFDSenderStorePacket 112076 [20:34:20]StoreOFDPacket docnum=112076 [20:34:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D2 5B 07 01 60 52 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 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 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 D0 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 F4 00 00 00 F4 03 04 00 CB E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B5 01 00 35 04 06 00 F2 80 F6 CA 9C F9 F5 2F 14 7D BD F1 F0 90 [20:34:20]CheckFolder [20:34:20]dirname=/storage/ofd_packets [20:34:20]CheckFolder done [20:34:20]ProducePacketName [20:34:20]name=ofd_packets/00112076 [20:34:20]NVStorageSaveData ofd_packets/00112076 [20:34:20]File name is /storage/ofd_packets/00112076 [20:34:20]Write 301 bytes [20:34:20]NVStorageSaveData done [20:34:20]OFDSenderStorePacket done [20:34:20]KKMCreateOFDPacket done [20:34:20]NVStorageSaveData kkm_last_timestamp [20:34:20]File name is /storage/kkm_last_timestamp [20:34:20]Write 4 bytes [20:34:20]NVStorageSaveData done [20:34:20]ExternCall_PrintAddStr [20:34:20]wPrintStart [20:34:20]Write to MH i2c: 01 00 00 C4 02 C6 [20:34:20]Write i2c OK [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: 01 [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: 01 07 00 [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: 01 07 00 C4 02 00 00 00 00 00 FF 0F DB [20:34:20]RasterBufferAndPrint [20:34:20]line 小褔械褌 N : (1)320736 [20:34:20]line 袠袧袧: 02508201610067 [20:34:20]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:34:20]line 袩袪袨袛袗袞袗 [20:34:20]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:34:20]line 孝芯胁邪褉: 2710124130 [20:34:20]line 袗懈-92-袣-5 [20:34:20]line 2.110 * 66.40 [20:34:20]line = 140.10 [20:34:20]line 袧袛小 12% 袧小袩 1% [20:34:20]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:34:20]line 袨袣袪校袚袥袝袧袠袝: -0.10 [20:34:20]line 袠孝袨袚袨: 140.00 [20:34:20]line 袙薪械褋械薪芯: 140.00 [20:34:20]line 小袛袗效袗: 0.00 [20:34:20]line 袧小袩 1% : 1.24 [20:34:20]line 袧袛小 12% : 14.88 [20:34:20]line 袧邪谢懈褔薪褘屑懈: 140.00 [20:34:20]line 袘械蟹薪邪谢.: 0.00 [20:34:20]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:34:20]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:34:20]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:34:20]line 效械泻 244 21.06.2024 20:34 [20:34:20]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:34:20]line 袟袧袦: 0300000198 [20:34:20]line 袪袧袦: 0000000000092771 [20:34:20]line 袙械褉褋懈褟 袣袣袦: 001 [20:34:20]line 肖袦: 0000000000875083 [20:34:20]line 肖袛: 112076 [20:34:20]line 肖袩袛: 266635710209273 [20:34:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203419&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112076&fm=266635710209273&tin=02508201610067®Number=0000000000092771&sum=14000 [20:34:20]OFD Sender: Processing packet 112076 [packets to send 38, broken 37] [20:34:20]ProducePacketName [20:34:20]name=ofd_packets/00112076 [20:34:20]OFD Sender: To server: 嚂鰌G, [20:34:20]CommunicateWithHost lk.salyk.kg:30040 [20:34:20]ConnectInit lk.salyk.kg [20:34:20]written 0, free lines is 4095 [20:34:20]Connected sock=10 [20:34:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D2 5B 07 01 60 52 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 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 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 D0 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 F4 00 00 00 F4 03 04 00 CB E3 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B5 01 00 35 04 06 00 F2 80 F6 CA 9C F9 F5 2F 14 7D BD F1 F0 90 [20:34:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B5 C0 47 00 CC 9B 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 30 38 37 35 30 38 33 10 04 04 00 CC B5 01 00 F4 03 04 00 EC 7A 75 66 B6 04 01 00 00 0F 24 DD B7 79 E2 92 10 [20:34:20]CommunicateWithHost err = 0 [20:34:20]CheckOFDResponse [20:34:20]1017 (14) - 77093643461234 [20:34:20]1041 (16) - 0000000000875083 [20:34:20]1040 (4) - 112076 [20:34:20]1012 (4) - 21.06.2024 13:06 [20:34:20]1206 (1) - 0 [20:34:20]OFD Sender: Remove packet 112076 [20:34:20]ProducePacketName [20:34:20]name=ofd_packets/00112076 [20:34:20]NVStorageDeleteData [20:34:20]Write to MH i2c: 01 00 00 EF 02 F1 [20:34:20]Write i2c OK [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: 01 [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: 01 07 00 [20:34:20]MH_I2C_Read... [20:34:20]Read from MH i2c: 01 07 00 EF 02 00 00 00 00 00 E4 0C E8 [20:34:20]RasterBufferAndPrint [20:34:20]line [20:34:20]line [20:34:20]line [20:34:20]line [20:34:20]line [20:34:20]written 0, free lines is 3306 [20:34:21]MH_Cut [20:34:21]Write to MH i2c: D1 01 00 F6 02 01 CA [20:34:21]Write i2c OK [20:34:21]MH_I2C_Read... [20:34:21]Read from MH i2c: D1 [20:34:21]MH_I2C_Read... [20:34:21]Read from MH i2c: D1 01 00 [20:34:21]MH_I2C_Read... [20:34:21]Read from MH i2c: D1 01 00 F6 02 00 C9 [20:34:21]Write to MH i2c: 01 00 00 F7 02 F9 [20:34:21]Write i2c OK [20:34:21]MH_I2C_Read... [20:34:21]OFD Sender: No OFD packet to send [20:34:21]*** Cut start [20:34:21]*** Partial cut [20:34:21]*** CUTSNS_PIN = 1 [20:34:21]*** CUTSNS_PIN = 0 [20:34:21]*** Brake cut motor [20:34:22]Read from MH i2c: 01 [20:34:22]MH_I2C_Read... [20:34:22]*** Stop cut motor [20:34:22]*** Cut end [20:34:22]Read from MH i2c: 01 07 00 [20:34:22]MH_I2C_Read... [20:34:22]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 FF 0F 0E [20:34:22]process_action close_receipt done [20:34:22]requested_data is exist [20:34:22]produce_requested_data [20:34:22]requested_item fm.sn is exist - process it [20:34:22]wFMCommunicate request_size=4 [20:34:22]MH_SAM_APDU [20:34:22]CAPDU: 80 11 00 00 [20:34:22]Write to MH i2c: E2 08 00 F8 02 80 11 00 00 00 00 00 00 74 [20:34:22]Write i2c OK [20:34:22]MH_I2C_Read... [20:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:22]Read from MH i2c: E2 [20:34:22]MH_I2C_Read... [20:34:22]Read from MH i2c: E2 17 00 [20:34:22]MH_I2C_Read... [20:34:22]Read from MH i2c: E2 17 00 F8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [20:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:34:22]wFMCommunicate OK [20:34:22]requested_item fd.num is exist - process it [20:34:22]SAM_PROTO_GetFieldsCounters [20:34:22]wFMCommunicate request_size=4 [20:34:22]MH_SAM_APDU [20:34:22]CAPDU: 80 13 00 00 [20:34:22]Write to MH i2c: E2 08 00 F9 02 80 13 00 00 00 00 00 00 77 [20:34:22]Write i2c OK [20:34:22]MH_I2C_Read... [20:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:22]Read from MH i2c: E2 [20:34:22]MH_I2C_Read... [20:34:22]Read from MH i2c: E2 62 00 [20:34:22]MH_I2C_Read... [20:34:22]Read from MH i2c: E2 62 00 F9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [20:34:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:34:22]wFMCommunicate OK [20:34:22]SAM_PROTO_GetFieldsCounters done [20:34:22]requested_item shift.num is exist - process it [20:34:22]requested_item shift.opened is exist - process it [20:34:22]req_shift_opened [20:34:22]FM_GetShiftState [20:34:22]SAM_PROTO_GetShiftState [20:34:22]wFMCommunicate request_size=4 [20:34:22]MH_SAM_APDU [20:34:22]CAPDU: 80 13 01 00 [20:34:22]Write to MH i2c: E2 08 00 FA 02 80 13 01 00 00 00 00 00 79 [20:34:22]Write i2c OK [20:34:22]MH_I2C_Read... [20:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:22]Read from MH i2c: E2 [20:34:22]MH_I2C_Read... [20:34:22]Read from MH i2c: E2 0E 00 [20:34:22]MH_I2C_Read... [20:34:22]Read from MH i2c: E2 0E 00 FA 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F6 [20:34:22]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:34:22]wFMCommunicate OK [20:34:22]SAM_PROTO_GetShiftState done [20:34:22]FM_GetShiftState done [20:34:22]req_shift_opened done [20:34:22]requested_item shift.open_date is exist - process it [20:34:22]req_shift_open_date [20:34:22]req_shift_open_date done [20:34:22]produce_requested_data done [20:34:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112076,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:34:22]process_action_free close_receipt [20:34:22]json_value_free [20:34:22]json_value_free done [20:34:22]process_json_proto returns [20:34:22]Send response to host [20:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112076,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:34:22]free response buf [20:34:22]execute_script done [20:34:22]execute_script returns [20:34:22]free content buf [20:34:22]Sock 7.Close socket [20:34:22]Sock 7.Thread stoped [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:49]accept exits with 9 [20:35:49]New connection [20:35:49]New thread 3066957156 created [20:35:49]Thread 3066813796 joined [20:35:49]Waiting for new connection... [20:35:49] Sock 9.Parse request [20:35:49]Sock 9.Check first char [20:35:49]Sock 9.First char is OK [20:35:49]request: POST /json_proto HTTP/1.0 [20:35:49]Method: POST [20:35:49]URL: /json_proto [20:35:49]Method is POST - this is cgi request [20:35:49]url: /json_proto [20:35:49]query_string will be loaded in cgi processing [20:35:49]execute_cgi json_proto POST (null) [20:35:49]execute_cgi path=json_proto method=POST [20:35:49]POST find Content-Length [20:35:49]Host: 172.17.59.68:8080 [20:35:49]Content-Length: 677 [20:35:49]Content-Type: application/json [20:35:49] [20:35:49]POST finish read [20:35:49]Found Content-Length = 677 [20:35:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:49]execute_script... [20:35: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)320737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:49]POST & json_proto [20:35:49]process_json_proto [20:35:49]json parsed OK: [20:35:49]protocol is kg_v1.0 [20:35:49]action value=close_receipt [20:35:49]process_action close_receipt [20:35:49]cmd_close_receipt [20:35:49]MH_GetDate [20:35:49]Write to MH i2c: F0 00 00 FB 02 EC [20:35:49]Write i2c OK [20:35:49]MH_I2C_Read... [20:35:49]Read from MH i2c: F0 [20:35:49]MH_I2C_Read... [20:35:49]Read from MH i2c: F0 09 00 [20:35:49]MH_I2C_Read... [20:35:49]Read from MH i2c: F0 09 00 FB 02 00 25 E4 75 66 BC EC 60 65 46 [20:35:49]GetLastDocTimeStamp 1719002059 [20:35:49]current date 1719002149 [20:35:49]FM_GetShiftState [20:35:49]SAM_PROTO_GetShiftState [20:35:49]wFMCommunicate request_size=4 [20:35:49]MH_SAM_APDU [20:35:49]CAPDU: 80 13 01 00 [20:35:49]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [20:35:49]Write i2c OK [20:35:49]MH_I2C_Read... [20:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:49]Read from MH i2c: E2 [20:35:49]MH_I2C_Read... [20:35:49]Read from MH i2c: E2 0E 00 [20:35:49]MH_I2C_Read... [20:35:49]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F8 [20:35:49]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:35:49]wFMCommunicate OK [20:35:49]SAM_PROTO_GetShiftState done [20:35:49]FM_GetShiftState done [20:35:49]opened in 1718933695 [20:35:49]opened+sec_in_day 1719020095 [20:35:49]quantity*price = 32004 [20:35:49]sum+1 = 32006 [20:35:49]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.05 袠孝袨袚袨: 320.00 袙薪械褋械薪芯: 320.00 小袛袗效袗: 0.00 袧小袩 1% : 2.83 袧袛小 12% : 33.99 袧邪谢懈褔薪褘屑懈: 320.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 245 21.06.2024 20:35 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112077 肖袩袛: 139738002876806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203550&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112077&fm=139738002876806&tin=02508201610067®Number=0000000000092771&sum=32000 [20:35:50]StoreToDocumentArchive [20:35:50]shift 390 fd 112077 [20:35:50]save to /storage/0390/doc_00112077 [20:35:50]save last doc name /storage/0390/doc_00112077 to /storage/kkm_last_doc_name [20:35:50]save OK [20:35:50]Clear old archive folders... [20:35:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:35:50]tlvbuf is 01137000 [20:35:50]SAM_PROTO_ClearQueue [20:35:50]wFMCommunicate request_size=4 [20:35:50]MH_SAM_APDU [20:35:50]CAPDU: 80 09 00 00 [20:35:50]Write to MH i2c: E2 08 00 09 03 80 09 00 00 00 00 00 00 7E [20:35:50]Write i2c OK [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: E2 [20:35:50]MH_I2C_Read... [20:35:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:50]Read from MH i2c: E2 03 00 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [20:35:50]RAPDU: 90 00 [20:35:50]wFMCommunicate OK [20:35:50]SAM_PROTO_ClearQueue done [20:35:50]KKMCreateOFDPacket [20:35:50]OFDProtocolAddRootSTLVToBuf [20:35:50]FM_MakeSignedData [20:35:50]FM_MakeSignedData [20:35:50]SAM_PROTO_SignData [20:35:50]wFMCommunicate request_size=4 [20:35:50]MH_SAM_APDU [20:35:50]CAPDU: 80 0D 01 02 [20:35:50]Write to MH i2c: E2 08 00 0A 03 80 0D 01 02 00 00 00 00 86 [20:35:50]Write i2c OK [20:35:50]MH_I2C_Read... [20:35:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:50]Read from MH i2c: E2 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: E2 03 00 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [20:35:50]RAPDU: 90 00 [20:35:50]wFMCommunicate OK [20:35:50]wFMCommunicate request_size=255 [20:35:50]MH_SAM_APDU [20:35:50]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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 26 E4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B5 01 00 35 04 06 00 7F [20:35:50]Write to MH i2c: E2 02 01 0B 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 26 E4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B5 01 00 35 04 06 00 7F 00 00 CE [20:35:50]Write i2c OK [20:35:50]MH_I2C_Read... [20:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:50]Read from MH i2c: E2 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: E2 03 00 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [20:35:50]RAPDU: 90 00 [20:35:50]wFMCommunicate OK [20:35:50]wFMCommunicate request_size=10 [20:35:50]MH_SAM_APDU [20:35:50]CAPDU: 80 0D 02 02 05 17 4A 05 E9 86 [20:35:50]Write to MH i2c: E2 0D 00 0C 03 80 0D 02 02 05 00 17 4A 05 E9 86 00 00 68 [20:35:50]Write i2c OK [20:35:50]MH_I2C_Read... [20:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:50]Read from MH i2c: E2 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: E2 03 00 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [20:35:50]RAPDU: 90 00 [20:35:50]wFMCommunicate OK [20:35:50]wFMCommunicate request_size=4 [20:35:50]MH_SAM_APDU [20:35:50]CAPDU: 80 0D 03 02 [20:35:50]Write to MH i2c: E2 08 00 0D 03 80 0D 03 02 00 00 00 00 8B [20:35:50]Write i2c OK [20:35:50]MH_I2C_Read... [20:35:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:50]Read from MH i2c: E2 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: E2 0B 00 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: E2 0B 00 0D 03 00 AD 36 28 AE 3A 86 BB 13 90 00 D3 [20:35:50]RAPDU: AD 36 28 AE 3A 86 BB 13 90 00 [20:35:50]wFMCommunicate OK [20:35:50]SAM_PROTO_SignData done [20:35:50]FM_MakeSignedData done [20:35:50]CreateOFDProtocolMessage [20:35:50]wFMCommunicate request_size=4 [20:35:50]MH_SAM_APDU [20:35:50]CAPDU: 80 11 00 00 [20:35:50]Write to MH i2c: E2 08 00 0E 03 80 11 00 00 00 00 00 00 8B [20:35:50]Write i2c OK [20:35:50]MH_I2C_Read... [20:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:50]Read from MH i2c: E2 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: E2 17 00 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: E2 17 00 0E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [20:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:35:50]wFMCommunicate OK [20:35:50]CreateOFDProtocolMessage done [20:35:50]OFDSenderStorePacket 112077 [20:35:50]StoreOFDPacket docnum=112077 [20:35:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1B 2C 07 01 E5 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 26 E4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B5 01 00 35 04 06 00 7F 17 4A 05 E9 86 AD 36 28 AE 3A 86 BB 13 [20:35:50]CheckFolder [20:35:50]dirname=/storage/ofd_packets [20:35:50]CheckFolder done [20:35:50]ProducePacketName [20:35:50]name=ofd_packets/00112077 [20:35:50]NVStorageSaveData ofd_packets/00112077 [20:35:50]File name is /storage/ofd_packets/00112077 [20:35:50]Write 301 bytes [20:35:50]NVStorageSaveData done [20:35:50]OFDSenderStorePacket done [20:35:50]KKMCreateOFDPacket done [20:35:50]NVStorageSaveData kkm_last_timestamp [20:35:50]File name is /storage/kkm_last_timestamp [20:35:50]Write 4 bytes [20:35:50]NVStorageSaveData done [20:35:50]ExternCall_PrintAddStr [20:35:50]wPrintStart [20:35:50]Write to MH i2c: 01 00 00 0F 03 12 [20:35:50]Write i2c OK [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: 01 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: 01 07 00 [20:35:50]MH_I2C_Read... [20:35:50]Read from MH i2c: 01 07 00 0F 03 00 00 00 00 00 FF 0F 27 [20:35:50]RasterBufferAndPrint [20:35:50]line 小褔械褌 N : (1)320737 [20:35:50]line 袠袧袧: 02508201610067 [20:35:50]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:35:50]line 袩袪袨袛袗袞袗 [20:35:50]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:35:50]line 孝芯胁邪褉: 2710124130 [20:35:50]line 袗懈-92-袣-5 [20:35:50]line 4.820 * 66.40 [20:35:50]line = 320.05 [20:35:50]line 袧袛小 12% 袧小袩 1% [20:35:50]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:35:50]line 袨袣袪校袚袥袝袧袠袝: -0.05 [20:35:50]line 袠孝袨袚袨: 320.00 [20:35:50]line 袙薪械褋械薪芯: 320.00 [20:35:50]line 小袛袗效袗: 0.00 [20:35:50]line 袧小袩 1% : 2.83 [20:35:50]line 袧袛小 12% : 33.99 [20:35:50]line 袧邪谢懈褔薪褘屑懈: 320.00 [20:35:50]line 袘械蟹薪邪谢.: 0.00 [20:35:50]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:35:50]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:35:50]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:35:50]line 效械泻 245 21.06.2024 20:35 [20:35:50]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:35:50]line 袟袧袦: 0300000198 [20:35:50]line 袪袧袦: 0000000000092771 [20:35:50]line 袙械褉褋懈褟 袣袣袦: 001 [20:35:50]line 肖袦: 0000000000875083 [20:35:50]line 肖袛: 112077 [20:35:50]line 肖袩袛: 139738002876806 [20:35:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203550&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112077&fm=139738002876806&tin=02508201610067®Number=0000000000092771&sum=32000 [20:35:51]OFD Sender: Processing packet 112077 [packets to send 38, broken 37] [20:35:51]ProducePacketName [20:35:51]name=ofd_packets/00112077 [20:35:51]OFD Sender: To server: 嚂鰌G, [20:35:51]CommunicateWithHost lk.salyk.kg:30040 [20:35:51]ConnectInit lk.salyk.kg [20:35:51]written 0, free lines is 4095 [20:35:51]Connected sock=10 [20:35:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1B 2C 07 01 E5 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 26 E4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B5 01 00 35 04 06 00 7F 17 4A 05 E9 86 AD 36 28 AE 3A 86 BB 13 [20:35:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 76 D4 47 00 5B 45 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 30 38 37 35 30 38 33 10 04 04 00 CD B5 01 00 F4 03 04 00 47 7B 75 66 B6 04 01 00 00 F8 35 D3 73 D3 3B 2C 02 [20:35:51]CommunicateWithHost err = 0 [20:35:51]CheckOFDResponse [20:35:51]1017 (14) - 77093643461234 [20:35:51]1041 (16) - 0000000000875083 [20:35:51]1040 (4) - 112077 [20:35:51]1012 (4) - 21.06.2024 13:08 [20:35:51]1206 (1) - 0 [20:35:51]OFD Sender: Remove packet 112077 [20:35:51]ProducePacketName [20:35:51]name=ofd_packets/00112077 [20:35:51]NVStorageDeleteData [20:35:51]Write to MH i2c: 01 00 00 3A 03 3D [20:35:51]Write i2c OK [20:35:51]MH_I2C_Read... [20:35:51]Read from MH i2c: 01 [20:35:51]MH_I2C_Read... [20:35:51]Read from MH i2c: 01 07 00 [20:35:51]MH_I2C_Read... [20:35:51]Read from MH i2c: 01 07 00 3A 03 00 00 00 00 00 EC 0C 3C [20:35:51]RasterBufferAndPrint [20:35:51]line [20:35:51]line [20:35:51]line [20:35:51]line [20:35:51]line [20:35:51]written 0, free lines is 3314 [20:35:51]MH_Cut [20:35:51]Write to MH i2c: D1 01 00 41 03 01 16 [20:35:51]Write i2c OK [20:35:51]MH_I2C_Read... [20:35:51]Read from MH i2c: D1 [20:35:51]MH_I2C_Read... [20:35:51]Read from MH i2c: D1 01 00 [20:35:51]MH_I2C_Read... [20:35:51]Read from MH i2c: D1 01 00 41 03 00 15 [20:35:51]Write to MH i2c: 01 00 00 42 03 45 [20:35:51]Write i2c OK [20:35:51]MH_I2C_Read... [20:35:52]OFD Sender: No OFD packet to send [20:35:52]*** Cut start [20:35:52]*** Partial cut [20:35:52]*** CUTSNS_PIN = 1 [20:35:52]*** CUTSNS_PIN = 0 [20:35:52]*** Brake cut motor [20:35:52]Read from MH i2c: 01 [20:35:53]MH_I2C_Read... [20:35:53]*** Stop cut motor [20:35:53]*** Cut end [20:35:53]Read from MH i2c: 01 07 00 [20:35:53]MH_I2C_Read... [20:35:53]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 FF 0F 5A [20:35:53]process_action close_receipt done [20:35:53]requested_data is exist [20:35:53]produce_requested_data [20:35:53]requested_item fm.sn is exist - process it [20:35:53]wFMCommunicate request_size=4 [20:35:53]MH_SAM_APDU [20:35:53]CAPDU: 80 11 00 00 [20:35:53]Write to MH i2c: E2 08 00 43 03 80 11 00 00 00 00 00 00 C0 [20:35:53]Write i2c OK [20:35:53]MH_I2C_Read... [20:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:53]Read from MH i2c: E2 [20:35:53]MH_I2C_Read... [20:35:53]Read from MH i2c: E2 17 00 [20:35:53]MH_I2C_Read... [20:35:53]Read from MH i2c: E2 17 00 43 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 12 [20:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:35:53]wFMCommunicate OK [20:35:53]requested_item fd.num is exist - process it [20:35:53]SAM_PROTO_GetFieldsCounters [20:35:53]wFMCommunicate request_size=4 [20:35:53]MH_SAM_APDU [20:35:53]CAPDU: 80 13 00 00 [20:35:53]Write to MH i2c: E2 08 00 44 03 80 13 00 00 00 00 00 00 C3 [20:35:53]Write i2c OK [20:35:53]MH_I2C_Read... [20:35:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:53]Read from MH i2c: E2 [20:35:53]MH_I2C_Read... [20:35:53]Read from MH i2c: E2 62 00 [20:35:53]MH_I2C_Read... [20:35:53]Read from MH i2c: E2 62 00 44 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CD B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [20:35:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CD B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:35:53]wFMCommunicate OK [20:35:53]SAM_PROTO_GetFieldsCounters done [20:35:53]requested_item shift.num is exist - process it [20:35:53]requested_item shift.opened is exist - process it [20:35:53]req_shift_opened [20:35:53]FM_GetShiftState [20:35:53]SAM_PROTO_GetShiftState [20:35:53]wFMCommunicate request_size=4 [20:35:53]MH_SAM_APDU [20:35:53]CAPDU: 80 13 01 00 [20:35:53]Write to MH i2c: E2 08 00 45 03 80 13 01 00 00 00 00 00 C5 [20:35:53]Write i2c OK [20:35:53]MH_I2C_Read... [20:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:53]Read from MH i2c: E2 [20:35:53]MH_I2C_Read... [20:35:53]Read from MH i2c: E2 0E 00 [20:35:53]MH_I2C_Read... [20:35:53]Read from MH i2c: E2 0E 00 45 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 42 [20:35:53]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:35:53]wFMCommunicate OK [20:35:53]SAM_PROTO_GetShiftState done [20:35:53]FM_GetShiftState done [20:35:53]req_shift_opened done [20:35:53]requested_item shift.open_date is exist - process it [20:35:53]req_shift_open_date [20:35:53]req_shift_open_date done [20:35:53]produce_requested_data done [20:35:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112077,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:35:53]process_action_free close_receipt [20:35:53]json_value_free [20:35:53]json_value_free done [20:35:53]process_json_proto returns [20:35:53]Send response to host [20:35:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112077,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:35:53]free response buf [20:35:53]execute_script done [20:35:53]execute_script returns [20:35:53]free content buf [20:35:53]Sock 9.Close socket [20:35:53]Sock 9.Thread stoped [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:38]accept exits with 7 [20:38:38]New connection [20:38:38]New thread 3066813796 created [20:38:38]Thread 3066957156 joined [20:38:38]Waiting for new connection... [20:38:38] Sock 7.Parse request [20:38:38]Sock 7.Check first char [20:38:38]Sock 7.First char is OK [20:38:38]request: POST /json_proto HTTP/1.0 [20:38:38]Method: POST [20:38:38]URL: /json_proto [20:38:38]Method is POST - this is cgi request [20:38:38]url: /json_proto [20:38:38]query_string will be loaded in cgi processing [20:38:38]execute_cgi json_proto POST (null) [20:38:38]execute_cgi path=json_proto method=POST [20:38:38]POST find Content-Length [20:38:38]Host: 172.17.59.68:8080 [20:38:38]Content-Length: 682 [20:38:38]Content-Type: application/json [20:38:38] [20:38:38]POST finish read [20:38:38]Found Content-Length = 682 [20:38:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:38:38]execute_script... [20:38: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 : (1)320738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:38:38]POST & json_proto [20:38:38]process_json_proto [20:38:38]json parsed OK: [20:38:38]protocol is kg_v1.0 [20:38:38]action value=close_receipt [20:38:38]process_action close_receipt [20:38:38]cmd_close_receipt [20:38:38]MH_GetDate [20:38:38]Write to MH i2c: F0 00 00 46 03 38 [20:38:38]Write i2c OK [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: F0 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: F0 09 00 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: F0 09 00 46 03 00 CF E4 75 66 BC EC 60 65 3C [20:38:38]GetLastDocTimeStamp 1719002150 [20:38:38]current date 1719002319 [20:38:38]FM_GetShiftState [20:38:38]SAM_PROTO_GetShiftState [20:38:38]wFMCommunicate request_size=4 [20:38:38]MH_SAM_APDU [20:38:38]CAPDU: 80 13 01 00 [20:38:38]Write to MH i2c: E2 08 00 47 03 80 13 01 00 00 00 00 00 C7 [20:38:38]Write i2c OK [20:38:38]MH_I2C_Read... [20:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:38]Read from MH i2c: E2 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: E2 0E 00 [20:38:38]MH_I2C_Read... [20:38:38]Read from MH i2c: E2 0E 00 47 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 44 [20:38:38]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:38:38]wFMCommunicate OK [20:38:38]SAM_PROTO_GetShiftState done [20:38:38]FM_GetShiftState done [20:38:38]opened in 1718933695 [20:38:38]opened+sec_in_day 1719020095 [20:38:38]quantity*price = 100064 [20:38:38]sum+1 = 100066 [20:38:38]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 246 21.06.2024 20:38 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112078 肖袩袛: 241783779100136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203839&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112078&fm=241783779100136&tin=02508201610067®Number=0000000000092771&sum=100000 [20:38:39]StoreToDocumentArchive [20:38:39]shift 390 fd 112078 [20:38:39]save to /storage/0390/doc_00112078 [20:38:39]save last doc name /storage/0390/doc_00112078 to /storage/kkm_last_doc_name [20:38:39]save OK [20:38:39]Clear old archive folders... [20:38:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:38:39]tlvbuf is 011350D0 [20:38:39]SAM_PROTO_ClearQueue [20:38:39]wFMCommunicate request_size=4 [20:38:39]MH_SAM_APDU [20:38:39]CAPDU: 80 09 00 00 [20:38:39]Write to MH i2c: E2 08 00 54 03 80 09 00 00 00 00 00 00 C9 [20:38:39]Write i2c OK [20:38:39]MH_I2C_Read... [20:38:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:39]Read from MH i2c: E2 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: E2 03 00 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [20:38:39]RAPDU: 90 00 [20:38:39]wFMCommunicate OK [20:38:39]SAM_PROTO_ClearQueue done [20:38:39]KKMCreateOFDPacket [20:38:39]OFDProtocolAddRootSTLVToBuf [20:38:39]FM_MakeSignedData [20:38:39]FM_MakeSignedData [20:38:39]SAM_PROTO_SignData [20:38:39]wFMCommunicate request_size=4 [20:38:39]MH_SAM_APDU [20:38:39]CAPDU: 80 0D 01 02 [20:38:39]Write to MH i2c: E2 08 00 55 03 80 0D 01 02 00 00 00 00 D1 [20:38:39]Write i2c OK [20:38:39]MH_I2C_Read... [20:38:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:39]Read from MH i2c: E2 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: E2 03 00 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [20:38:39]RAPDU: 90 00 [20:38:39]wFMCommunicate OK [20:38:39]wFMCommunicate request_size=255 [20:38:39]MH_SAM_APDU [20:38:39]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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 F6 00 00 00 F4 03 04 00 CF E4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B5 01 00 35 04 06 00 DB [20:38:39]Write to MH i2c: E2 02 01 56 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 F6 00 00 00 F4 03 04 00 CF E4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B5 01 00 35 04 06 00 DB 00 00 3F [20:38:39]Write i2c OK [20:38:39]MH_I2C_Read... [20:38:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:39]Read from MH i2c: E2 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: E2 03 00 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: E2 03 00 56 03 00 90 00 CD [20:38:39]RAPDU: 90 00 [20:38:39]wFMCommunicate OK [20:38:39]wFMCommunicate request_size=10 [20:38:39]MH_SAM_APDU [20:38:39]CAPDU: 80 0D 02 02 05 E6 AC 44 05 E8 [20:38:39]Write to MH i2c: E2 0D 00 57 03 80 0D 02 02 05 00 E6 AC 44 05 E8 00 00 A1 [20:38:39]Write i2c OK [20:38:39]MH_I2C_Read... [20:38:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:39]Read from MH i2c: E2 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: E2 03 00 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [20:38:39]RAPDU: 90 00 [20:38:39]wFMCommunicate OK [20:38:39]wFMCommunicate request_size=4 [20:38:39]MH_SAM_APDU [20:38:39]CAPDU: 80 0D 03 02 [20:38:39]Write to MH i2c: E2 08 00 58 03 80 0D 03 02 00 00 00 00 D6 [20:38:39]Write i2c OK [20:38:39]MH_I2C_Read... [20:38:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:39]Read from MH i2c: E2 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: E2 0B 00 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: E2 0B 00 58 03 00 84 66 8E 15 6E 09 CE D7 90 00 80 [20:38:39]RAPDU: 84 66 8E 15 6E 09 CE D7 90 00 [20:38:39]wFMCommunicate OK [20:38:39]SAM_PROTO_SignData done [20:38:39]FM_MakeSignedData done [20:38:39]CreateOFDProtocolMessage [20:38:39]wFMCommunicate request_size=4 [20:38:39]MH_SAM_APDU [20:38:39]CAPDU: 80 11 00 00 [20:38:39]Write to MH i2c: E2 08 00 59 03 80 11 00 00 00 00 00 00 D6 [20:38:39]Write i2c OK [20:38:39]MH_I2C_Read... [20:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:39]Read from MH i2c: E2 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: E2 17 00 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: E2 17 00 59 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 28 [20:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:38:39]wFMCommunicate OK [20:38:39]CreateOFDProtocolMessage done [20:38:39]OFDSenderStorePacket 112078 [20:38:39]StoreOFDPacket docnum=112078 [20:38:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9F D6 07 01 7B E2 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 F6 00 00 00 F4 03 04 00 CF E4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B5 01 00 35 04 06 00 DB E6 AC 44 05 E8 84 66 8E 15 6E 09 CE D7 [20:38:39]CheckFolder [20:38:39]dirname=/storage/ofd_packets [20:38:39]CheckFolder done [20:38:39]ProducePacketName [20:38:39]name=ofd_packets/00112078 [20:38:39]NVStorageSaveData ofd_packets/00112078 [20:38:39]File name is /storage/ofd_packets/00112078 [20:38:39]Write 301 bytes [20:38:39]NVStorageSaveData done [20:38:39]OFDSenderStorePacket done [20:38:39]KKMCreateOFDPacket done [20:38:39]NVStorageSaveData kkm_last_timestamp [20:38:39]File name is /storage/kkm_last_timestamp [20:38:39]Write 4 bytes [20:38:39]NVStorageSaveData done [20:38:39]ExternCall_PrintAddStr [20:38:39]wPrintStart [20:38:39]Write to MH i2c: 01 00 00 5A 03 5D [20:38:39]Write i2c OK [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: 01 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: 01 07 00 [20:38:39]MH_I2C_Read... [20:38:39]Read from MH i2c: 01 07 00 5A 03 00 00 00 00 00 FF 0F 72 [20:38:39]RasterBufferAndPrint [20:38:39]line 小褔械褌 N : (1)320738 [20:38:39]line 袠袧袧: 02508201610067 [20:38:39]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:38:39]line 袩袪袨袛袗袞袗 [20:38:39]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:38:39]line 孝芯胁邪褉: 2710124130 [20:38:39]line 袗懈-92-袣-5 [20:38:39]line 15.070 * 66.40 [20:38:39]line = 1000.65 [20:38:39]line 袧袛小 12% 袧小袩 1% [20:38:39]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:38:39]line 袨袣袪校袚袥袝袧袠袝: -0.65 [20:38:39]line 袠孝袨袚袨: 1000.00 [20:38:39]line 袙薪械褋械薪芯: 1000.00 [20:38:39]line 小袛袗效袗: 0.00 [20:38:39]line 袧小袩 1% : 8.85 [20:38:39]line 袧袛小 12% : 106.26 [20:38:39]line 袧邪谢懈褔薪褘屑懈: 1000.00 [20:38:39]line 袘械蟹薪邪谢.: 0.00 [20:38:39]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:38:39]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:38:39]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:38:39]line 效械泻 246 21.06.2024 20:38 [20:38:39]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:38:39]line 袟袧袦: 0300000198 [20:38:39]line 袪袧袦: 0000000000092771 [20:38:39]line 袙械褉褋懈褟 袣袣袦: 001 [20:38:39]line 肖袦: 0000000000875083 [20:38:39]line 肖袛: 112078 [20:38:39]line 肖袩袛: 241783779100136 [20:38:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203839&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112078&fm=241783779100136&tin=02508201610067®Number=0000000000092771&sum=100000 [20:38:40]OFD Sender: Processing packet 112078 [packets to send 38, broken 37] [20:38:40]ProducePacketName [20:38:40]name=ofd_packets/00112078 [20:38:40]OFD Sender: To server: 嚂鰌G, [20:38:40]CommunicateWithHost lk.salyk.kg:30040 [20:38:40]ConnectInit lk.salyk.kg [20:38:40]written 0, free lines is 4095 [20:38:40]Connected sock=10 [20:38:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9F D6 07 01 7B E2 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 F6 00 00 00 F4 03 04 00 CF E4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B5 01 00 35 04 06 00 DB E6 AC 44 05 E8 84 66 8E 15 6E 09 CE D7 [20:38:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 08 12 47 00 59 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 30 38 37 35 30 38 33 10 04 04 00 CE B5 01 00 F4 03 04 00 F0 7B 75 66 B6 04 01 00 00 0D 68 66 3A E6 90 53 80 [20:38:40]CommunicateWithHost err = 0 [20:38:40]CheckOFDResponse [20:38:40]1017 (14) - 77093643461234 [20:38:40]1041 (16) - 0000000000875083 [20:38:40]1040 (4) - 112078 [20:38:40]1012 (4) - 21.06.2024 13:11 [20:38:40]1206 (1) - 0 [20:38:40]OFD Sender: Remove packet 112078 [20:38:40]ProducePacketName [20:38:40]name=ofd_packets/00112078 [20:38:40]NVStorageDeleteData [20:38:40]Write to MH i2c: 01 00 00 85 03 88 [20:38:40]Write i2c OK [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: 01 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: 01 07 00 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: 01 07 00 85 03 00 00 00 00 00 DD 0C 78 [20:38:40]RasterBufferAndPrint [20:38:40]line [20:38:40]line [20:38:40]line [20:38:40]line [20:38:40]line [20:38:40]written 0, free lines is 3300 [20:38:40]MH_Cut [20:38:40]Write to MH i2c: D1 01 00 8C 03 01 61 [20:38:40]Write i2c OK [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: D1 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: D1 01 00 [20:38:40]MH_I2C_Read... [20:38:40]Read from MH i2c: D1 01 00 8C 03 00 60 [20:38:40]Write to MH i2c: 01 00 00 8D 03 90 [20:38:40]Write i2c OK [20:38:40]MH_I2C_Read... [20:38:41]OFD Sender: No OFD packet to send [20:38:41]*** Cut start [20:38:41]*** Partial cut [20:38:41]*** CUTSNS_PIN = 1 [20:38:41]*** CUTSNS_PIN = 0 [20:38:41]*** Brake cut motor [20:38:42]Read from MH i2c: 01 [20:38:42]MH_I2C_Read... [20:38:42]*** Stop cut motor [20:38:42]*** Cut end [20:38:42]Read from MH i2c: 01 07 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 FF 0F A5 [20:38:42]process_action close_receipt done [20:38:42]requested_data is exist [20:38:42]produce_requested_data [20:38:42]requested_item fm.sn is exist - process it [20:38:42]wFMCommunicate request_size=4 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 11 00 00 [20:38:42]Write to MH i2c: E2 08 00 8E 03 80 11 00 00 00 00 00 00 0B [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 17 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 17 00 8E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [20:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:38:42]wFMCommunicate OK [20:38:42]requested_item fd.num is exist - process it [20:38:42]SAM_PROTO_GetFieldsCounters [20:38:42]wFMCommunicate request_size=4 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 13 00 00 [20:38:42]Write to MH i2c: E2 08 00 8F 03 80 13 00 00 00 00 00 00 0E [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 62 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 62 00 8F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CE B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [20:38:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CE B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:42]wFMCommunicate OK [20:38:42]SAM_PROTO_GetFieldsCounters done [20:38:42]requested_item shift.num is exist - process it [20:38:42]requested_item shift.opened is exist - process it [20:38:42]req_shift_opened [20:38:42]FM_GetShiftState [20:38:42]SAM_PROTO_GetShiftState [20:38:42]wFMCommunicate request_size=4 [20:38:42]MH_SAM_APDU [20:38:42]CAPDU: 80 13 01 00 [20:38:42]Write to MH i2c: E2 08 00 90 03 80 13 01 00 00 00 00 00 10 [20:38:42]Write i2c OK [20:38:42]MH_I2C_Read... [20:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:42]Read from MH i2c: E2 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 0E 00 [20:38:42]MH_I2C_Read... [20:38:42]Read from MH i2c: E2 0E 00 90 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 8D [20:38:42]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:38:42]wFMCommunicate OK [20:38:42]SAM_PROTO_GetShiftState done [20:38:42]FM_GetShiftState done [20:38:42]req_shift_opened done [20:38:42]requested_item shift.open_date is exist - process it [20:38:42]req_shift_open_date [20:38:42]req_shift_open_date done [20:38:42]produce_requested_data done [20:38:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112078,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:38:42]process_action_free close_receipt [20:38:42]json_value_free [20:38:42]json_value_free done [20:38:42]process_json_proto returns [20:38:42]Send response to host [20:38:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112078,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:38:42]free response buf [20:38:42]execute_script done [20:38:42]execute_script returns [20:38:42]free content buf [20:38:42]Sock 7.Close socket [20:38:42]Sock 7.Thread stoped [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:06]accept exits with 9 [20:39:06]New connection [20:39:06]New thread 3066957156 created [20:39:06]Thread 3066813796 joined [20:39:06]Waiting for new connection... [20:39:06] Sock 9.Parse request [20:39:06]Sock 9.Check first char [20:39:06]Sock 9.First char is OK [20:39:06]request: POST /json_proto HTTP/1.0 [20:39:06]Method: POST [20:39:06]URL: /json_proto [20:39:06]Method is POST - this is cgi request [20:39:06]url: /json_proto [20:39:06]query_string will be loaded in cgi processing [20:39:06]execute_cgi json_proto POST (null) [20:39:06]execute_cgi path=json_proto method=POST [20:39:06]POST find Content-Length [20:39:06]Host: 172.17.59.68:8080 [20:39:06]Content-Length: 805 [20:39:06]Content-Type: application/json [20:39:06] [20:39:06]POST finish read [20:39:06]Found Content-Length = 805 [20:39:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.570, "sum" : 170.65, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 170.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:06]execute_script... [20:39: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)320739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.570, "sum" : 170.65, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 170.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:06]POST & json_proto [20:39:06]process_json_proto [20:39:06]json parsed OK: [20:39:06]protocol is kg_v1.0 [20:39:06]action value=close_receipt [20:39:06]process_action close_receipt [20:39:06]cmd_close_receipt [20:39:06]MH_GetDate [20:39:06]Write to MH i2c: F0 00 00 91 03 83 [20:39:06]Write i2c OK [20:39:06]MH_I2C_Read... [20:39:06]Read from MH i2c: F0 [20:39:06]MH_I2C_Read... [20:39:06]Read from MH i2c: F0 09 00 [20:39:06]MH_I2C_Read... [20:39:06]Read from MH i2c: F0 09 00 91 03 00 EB E4 75 66 BC EC 60 65 A3 [20:39:06]GetLastDocTimeStamp 1719002319 [20:39:06]current date 1719002347 [20:39:06]FM_GetShiftState [20:39:06]SAM_PROTO_GetShiftState [20:39:06]wFMCommunicate request_size=4 [20:39:06]MH_SAM_APDU [20:39:06]CAPDU: 80 13 01 00 [20:39:06]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [20:39:06]Write i2c OK [20:39:06]MH_I2C_Read... [20:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:06]Read from MH i2c: E2 [20:39:06]MH_I2C_Read... [20:39:06]Read from MH i2c: E2 0E 00 [20:39:06]MH_I2C_Read... [20:39:06]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 8F [20:39:06]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:39:06]wFMCommunicate OK [20:39:06]SAM_PROTO_GetShiftState done [20:39:06]FM_GetShiftState done [20:39:06]opened in 1718933695 [20:39:06]opened+sec_in_day 1719020095 [20:39:06]quantity*price = 17064 [20:39:06]sum+1 = 17066 [20:39:06]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 170.65 袧小袩 1% : 1.51 袧袛小 12% : 18.12 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 170.65 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 247 21.06.2024 20:39 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112079 肖袩袛: 10123773751183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203907&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112079&fm=10123773751183&tin=02508201610067®Number=0000000000092771&sum=17065 [20:39:07]StoreToDocumentArchive [20:39:07]shift 390 fd 112079 [20:39:07]save to /storage/0390/doc_00112079 [20:39:07]save last doc name /storage/0390/doc_00112079 to /storage/kkm_last_doc_name [20:39:07]save OK [20:39:07]Clear old archive folders... [20:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:39:07]tlvbuf is 01135F80 [20:39:07]SAM_PROTO_ClearQueue [20:39:07]wFMCommunicate request_size=4 [20:39:07]MH_SAM_APDU [20:39:07]CAPDU: 80 09 00 00 [20:39:07]Write to MH i2c: E2 08 00 9F 03 80 09 00 00 00 00 00 00 14 [20:39:07]Write i2c OK [20:39:07]MH_I2C_Read... [20:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:07]Read from MH i2c: E2 [20:39:07]MH_I2C_Read... [20:39:07]Read from MH i2c: E2 03 00 [20:39:07]MH_I2C_Read... [20:39:07]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [20:39:07]RAPDU: 90 00 [20:39:07]wFMCommunicate OK [20:39:07]SAM_PROTO_ClearQueue done [20:39:07]KKMCreateOFDPacket [20:39:07]OFDProtocolAddRootSTLVToBuf [20:39:07]FM_MakeSignedData [20:39:07]FM_MakeSignedData [20:39:07]SAM_PROTO_SignData [20:39:07]wFMCommunicate request_size=4 [20:39:07]MH_SAM_APDU [20:39:07]CAPDU: 80 0D 01 02 [20:39:08]Write to MH i2c: E2 08 00 A0 03 80 0D 01 02 00 00 00 00 1C [20:39:08]Write i2c OK [20:39:08]MH_I2C_Read... [20:39:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:08]Read from MH i2c: E2 [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: E2 03 00 [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [20:39:08]RAPDU: 90 00 [20:39:08]wFMCommunicate OK [20:39:08]wFMCommunicate request_size=255 [20:39:08]MH_SAM_APDU [20:39: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 0A 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A9 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 EB E4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B5 01 00 35 04 06 00 09 [20:39:08]Write to MH i2c: E2 02 01 A1 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 0A 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A9 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 EB E4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B5 01 00 35 04 06 00 09 00 00 6C [20:39:08]Write i2c OK [20:39:08]MH_I2C_Read... [20:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:08]Read from MH i2c: E2 [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: E2 03 00 [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [20:39:08]RAPDU: 90 00 [20:39:08]wFMCommunicate OK [20:39:08]wFMCommunicate request_size=10 [20:39:08]MH_SAM_APDU [20:39:08]CAPDU: 80 0D 02 02 05 35 1F F0 2F 8F [20:39:08]Write to MH i2c: E2 0D 00 A2 03 80 0D 02 02 05 00 35 1F F0 2F 8F 00 00 2B [20:39:08]Write i2c OK [20:39:08]MH_I2C_Read... [20:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:08]Read from MH i2c: E2 [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: E2 03 00 [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [20:39:08]RAPDU: 90 00 [20:39:08]wFMCommunicate OK [20:39:08]wFMCommunicate request_size=4 [20:39:08]MH_SAM_APDU [20:39:08]CAPDU: 80 0D 03 02 [20:39:08]Write to MH i2c: E2 08 00 A3 03 80 0D 03 02 00 00 00 00 21 [20:39:08]Write i2c OK [20:39:08]MH_I2C_Read... [20:39:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:08]Read from MH i2c: E2 [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: E2 0B 00 [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: E2 0B 00 A3 03 00 93 AA A4 34 95 E1 D5 13 90 00 95 [20:39:08]RAPDU: 93 AA A4 34 95 E1 D5 13 90 00 [20:39:08]wFMCommunicate OK [20:39:08]SAM_PROTO_SignData done [20:39:08]FM_MakeSignedData done [20:39:08]CreateOFDProtocolMessage [20:39:08]wFMCommunicate request_size=4 [20:39:08]MH_SAM_APDU [20:39:08]CAPDU: 80 11 00 00 [20:39:08]Write to MH i2c: E2 08 00 A4 03 80 11 00 00 00 00 00 00 21 [20:39:08]Write i2c OK [20:39:08]MH_I2C_Read... [20:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:08]Read from MH i2c: E2 [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: E2 17 00 [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: E2 17 00 A4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 73 [20:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:39:08]wFMCommunicate OK [20:39:08]CreateOFDProtocolMessage done [20:39:08]OFDSenderStorePacket 112079 [20:39:08]StoreOFDPacket docnum=112079 [20:39:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 99 07 01 4F F6 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 0A 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A9 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 EB E4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B5 01 00 35 04 06 00 09 35 1F F0 2F 8F 93 AA A4 34 95 E1 D5 13 [20:39:08]CheckFolder [20:39:08]dirname=/storage/ofd_packets [20:39:08]CheckFolder done [20:39:08]ProducePacketName [20:39:08]name=ofd_packets/00112079 [20:39:08]NVStorageSaveData ofd_packets/00112079 [20:39:08]File name is /storage/ofd_packets/00112079 [20:39:08]Write 301 bytes [20:39:08]NVStorageSaveData done [20:39:08]OFDSenderStorePacket done [20:39:08]KKMCreateOFDPacket done [20:39:08]NVStorageSaveData kkm_last_timestamp [20:39:08]File name is /storage/kkm_last_timestamp [20:39:08]Write 4 bytes [20:39:08]NVStorageSaveData done [20:39:08]ExternCall_PrintAddStr [20:39:08]wPrintStart [20:39:08]Write to MH i2c: 01 00 00 A5 03 A8 [20:39:08]Write i2c OK [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: 01 [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: 01 07 00 [20:39:08]MH_I2C_Read... [20:39:08]Read from MH i2c: 01 07 00 A5 03 00 00 00 00 00 FF 0F BD [20:39:08]RasterBufferAndPrint [20:39:08]line 小褔械褌 N : (1)320739 [20:39:08]line 袠袧袧: 02508201610067 [20:39:08]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:39:08]line 袩袪袨袛袗袞袗 [20:39:08]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:39:08]line 孝芯胁邪褉: 2710124130 [20:39:08]line 袗懈-92-袣-5 [20:39:08]line 2.570 * 66.40 [20:39:08]line = 170.65 [20:39:08]line 袧袛小 12% 袧小袩 1% [20:39:08]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:39:08]line 袠孝袨袚袨: 170.65 [20:39:08]line 袧小袩 1% : 1.51 [20:39:08]line 袧袛小 12% : 18.12 [20:39:08]line 袧邪谢懈褔薪褘屑懈: 0.00 [20:39:08]line 袘械蟹薪邪谢.: 170.65 [20:39:08]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:39:08]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:39:08]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:39:08]line 效械泻 247 21.06.2024 20:39 [20:39:08]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:39:08]line 袟袧袦: 0300000198 [20:39:08]line 袪袧袦: 0000000000092771 [20:39:08]line 袙械褉褋懈褟 袣袣袦: 001 [20:39:08]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [20:39:08]line 肖袦: 0000000000875083 [20:39:08]line 肖袛: 112079 [20:39:08]line 肖袩袛: 10123773751183 [20:39:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T203907&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112079&fm=10123773751183&tin=02508201610067®Number=0000000000092771&sum=17065 [20:39:08]written 0, free lines is 4095 [20:39:08]OFD Sender: Processing packet 112079 [packets to send 38, broken 37] [20:39:08]ProducePacketName [20:39:08]name=ofd_packets/00112079 [20:39:08]OFD Sender: To server: 嚂鰌G, [20:39:08]CommunicateWithHost lk.salyk.kg:30040 [20:39:08]ConnectInit lk.salyk.kg [20:39:08]Connected sock=10 [20:39:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 99 07 01 4F F6 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 0A 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A9 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A9 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 EB E4 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B5 01 00 35 04 06 00 09 35 1F F0 2F 8F 93 AA A4 34 95 E1 D5 13 [20:39:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D4 29 47 00 CE 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 30 38 37 35 30 38 33 10 04 04 00 CF B5 01 00 F4 03 04 00 0C 7C 75 66 B6 04 01 00 00 4D D9 C7 92 4C 0B C4 0E [20:39:09]CommunicateWithHost err = 0 [20:39:09]CheckOFDResponse [20:39:09]1017 (14) - 77093643461234 [20:39:09]1041 (16) - 0000000000875083 [20:39:09]1040 (4) - 112079 [20:39:09]1012 (4) - 21.06.2024 13:11 [20:39:09]1206 (1) - 0 [20:39:09]OFD Sender: Remove packet 112079 [20:39:09]ProducePacketName [20:39:09]name=ofd_packets/00112079 [20:39:09]NVStorageDeleteData [20:39:09]Write to MH i2c: 01 00 00 CF 03 D2 [20:39:09]Write i2c OK [20:39:09]MH_I2C_Read... [20:39:09]Read from MH i2c: 01 [20:39:09]MH_I2C_Read... [20:39:09]Read from MH i2c: 01 07 00 [20:39:09]MH_I2C_Read... [20:39:09]Read from MH i2c: 01 07 00 CF 03 00 00 00 00 00 08 0D EE [20:39:09]RasterBufferAndPrint [20:39:09]line [20:39:09]line [20:39:09]line [20:39:09]line [20:39:09]line [20:39:09]written 0, free lines is 3342 [20:39:09]MH_Cut [20:39:09]Write to MH i2c: D1 01 00 D6 03 01 AB [20:39:09]Write i2c OK [20:39:09]MH_I2C_Read... [20:39:09]Read from MH i2c: D1 [20:39:09]MH_I2C_Read... [20:39:09]Read from MH i2c: D1 01 00 [20:39:09]MH_I2C_Read... [20:39:09]Read from MH i2c: D1 01 00 D6 03 00 AA [20:39:09]Write to MH i2c: 01 00 00 D7 03 DA [20:39:09]Write i2c OK [20:39:09]MH_I2C_Read... [20:39:09]OFD Sender: No OFD packet to send [20:39:10]*** Cut start [20:39:10]*** Partial cut [20:39:10]*** CUTSNS_PIN = 1 [20:39:10]*** CUTSNS_PIN = 0 [20:39:10]*** Brake cut motor [20:39:10]Read from MH i2c: 01 [20:39:10]MH_I2C_Read... [20:39:10]*** Stop cut motor [20:39:10]*** Cut end [20:39:10]Read from MH i2c: 01 07 00 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: 01 07 00 D7 03 00 00 00 00 00 FF 0F EF [20:39:10]process_action close_receipt done [20:39:10]requested_data is exist [20:39:10]produce_requested_data [20:39:10]requested_item fm.sn is exist - process it [20:39:10]wFMCommunicate request_size=4 [20:39:10]MH_SAM_APDU [20:39:10]CAPDU: 80 11 00 00 [20:39:10]Write to MH i2c: E2 08 00 D8 03 80 11 00 00 00 00 00 00 55 [20:39:10]Write i2c OK [20:39:10]MH_I2C_Read... [20:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:10]Read from MH i2c: E2 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 17 00 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 17 00 D8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [20:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:39:10]wFMCommunicate OK [20:39:10]requested_item fd.num is exist - process it [20:39:10]SAM_PROTO_GetFieldsCounters [20:39:10]wFMCommunicate request_size=4 [20:39:10]MH_SAM_APDU [20:39:10]CAPDU: 80 13 00 00 [20:39:10]Write to MH i2c: E2 08 00 D9 03 80 13 00 00 00 00 00 00 58 [20:39:10]Write i2c OK [20:39:10]MH_I2C_Read... [20:39:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:10]Read from MH i2c: E2 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 62 00 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 62 00 D9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [20:39:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:10]wFMCommunicate OK [20:39:10]SAM_PROTO_GetFieldsCounters done [20:39:10]requested_item shift.num is exist - process it [20:39:10]requested_item shift.opened is exist - process it [20:39:10]req_shift_opened [20:39:10]FM_GetShiftState [20:39:10]SAM_PROTO_GetShiftState [20:39:10]wFMCommunicate request_size=4 [20:39:10]MH_SAM_APDU [20:39:10]CAPDU: 80 13 01 00 [20:39:10]Write to MH i2c: E2 08 00 DA 03 80 13 01 00 00 00 00 00 5A [20:39:10]Write i2c OK [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 [20:39:10]MH_I2C_Read... [20:39:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:10]Read from MH i2c: E2 0E 00 [20:39:10]MH_I2C_Read... [20:39:10]Read from MH i2c: E2 0E 00 DA 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D7 [20:39:10]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:39:10]wFMCommunicate OK [20:39:10]SAM_PROTO_GetShiftState done [20:39:10]FM_GetShiftState done [20:39:10]req_shift_opened done [20:39:10]requested_item shift.open_date is exist - process it [20:39:10]req_shift_open_date [20:39:10]req_shift_open_date done [20:39:10]produce_requested_data done [20:39:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112079,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:39:10]process_action_free close_receipt [20:39:10]json_value_free [20:39:10]json_value_free done [20:39:10]process_json_proto returns [20:39:10]Send response to host [20:39:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112079,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:39:10]free response buf [20:39:10]execute_script done [20:39:10]execute_script returns [20:39:10]free content buf [20:39:10]Sock 9.Close socket [20:39:10]Sock 9.Thread stoped [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:25]accept exits with 7 [20:40:25]New connection [20:40:25]New thread 3066813796 created [20:40:25]Thread 3066957156 joined [20:40:25]Waiting for new connection... [20:40:25] Sock 7.Parse request [20:40:25]Sock 7.Check first char [20:40:25]Sock 7.First char is OK [20:40:25]request: POST /json_proto HTTP/1.0 [20:40:25]Method: POST [20:40:25]URL: /json_proto [20:40:25]Method is POST - this is cgi request [20:40:25]url: /json_proto [20:40:25]query_string will be loaded in cgi processing [20:40:25]execute_cgi json_proto POST (null) [20:40:25]execute_cgi path=json_proto method=POST [20:40:25]POST find Content-Length [20:40:25]Host: 172.17.59.68:8080 [20:40:25]Content-Length: 677 [20:40:25]Content-Type: application/json [20:40:25] [20:40:25]POST finish read [20:40:25]Found Content-Length = 677 [20:40:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:25]execute_script... [20:40: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)320740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:25]POST & json_proto [20:40:25]process_json_proto [20:40:25]json parsed OK: [20:40:25]protocol is kg_v1.0 [20:40:25]action value=close_receipt [20:40:25]process_action close_receipt [20:40:25]cmd_close_receipt [20:40:25]MH_GetDate [20:40:25]Write to MH i2c: F0 00 00 DB 03 CD [20:40:25]Write i2c OK [20:40:25]MH_I2C_Read... [20:40:25]Read from MH i2c: F0 [20:40:25]MH_I2C_Read... [20:40:25]Read from MH i2c: F0 09 00 [20:40:25]MH_I2C_Read... [20:40:25]Read from MH i2c: F0 09 00 DB 03 00 3A E5 75 66 BC EC 60 65 3D [20:40:25]GetLastDocTimeStamp 1719002347 [20:40:25]current date 1719002426 [20:40:25]FM_GetShiftState [20:40:25]SAM_PROTO_GetShiftState [20:40:25]wFMCommunicate request_size=4 [20:40:25]MH_SAM_APDU [20:40:25]CAPDU: 80 13 01 00 [20:40:25]Write to MH i2c: E2 08 00 DC 03 80 13 01 00 00 00 00 00 5C [20:40:25]Write i2c OK [20:40:25]MH_I2C_Read... [20:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:25]Read from MH i2c: E2 [20:40:25]MH_I2C_Read... [20:40:25]Read from MH i2c: E2 0E 00 [20:40:25]MH_I2C_Read... [20:40:25]Read from MH i2c: E2 0E 00 DC 03 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D9 [20:40:25]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:40:25]wFMCommunicate OK [20:40:25]SAM_PROTO_GetShiftState done [20:40:25]FM_GetShiftState done [20:40:25]opened in 1718933695 [20:40:25]opened+sec_in_day 1719020095 [20:40:25]quantity*price = 32004 [20:40:25]sum+1 = 32006 [20:40:25]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.05 袠孝袨袚袨: 320.00 袙薪械褋械薪芯: 320.00 小袛袗效袗: 0.00 袧小袩 1% : 2.83 袧袛小 12% : 33.99 袧邪谢懈褔薪褘屑懈: 320.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 248 21.06.2024 20:40 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112080 肖袩袛: 89365586616897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T204026&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112080&fm=89365586616897&tin=02508201610067®Number=0000000000092771&sum=32000 [20:40:27]StoreToDocumentArchive [20:40:27]shift 390 fd 112080 [20:40:27]save to /storage/0390/doc_00112080 [20:40:27]save last doc name /storage/0390/doc_00112080 to /storage/kkm_last_doc_name [20:40:27]save OK [20:40:27]Clear old archive folders... [20:40:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:40:27]tlvbuf is 0114C660 [20:40:27]SAM_PROTO_ClearQueue [20:40:27]wFMCommunicate request_size=4 [20:40:27]MH_SAM_APDU [20:40:27]CAPDU: 80 09 00 00 [20:40:27]Write to MH i2c: E2 08 00 E9 03 80 09 00 00 00 00 00 00 5E [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:27]Read from MH i2c: E2 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 03 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 03 00 E9 03 00 90 00 60 [20:40:27]RAPDU: 90 00 [20:40:27]wFMCommunicate OK [20:40:27]SAM_PROTO_ClearQueue done [20:40:27]KKMCreateOFDPacket [20:40:27]OFDProtocolAddRootSTLVToBuf [20:40:27]FM_MakeSignedData [20:40:27]FM_MakeSignedData [20:40:27]SAM_PROTO_SignData [20:40:27]wFMCommunicate request_size=4 [20:40:27]MH_SAM_APDU [20:40:27]CAPDU: 80 0D 01 02 [20:40:27]Write to MH i2c: E2 08 00 EA 03 80 0D 01 02 00 00 00 00 66 [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:27]Read from MH i2c: E2 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 03 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [20:40:27]RAPDU: 90 00 [20:40:27]wFMCommunicate OK [20:40:27]wFMCommunicate request_size=255 [20:40:27]MH_SAM_APDU [20:40: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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3A E5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B5 01 00 35 04 06 00 51 [20:40:27]Write to MH i2c: E2 02 01 EB 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3A E5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B5 01 00 35 04 06 00 51 00 00 9B [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:27]Read from MH i2c: E2 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 03 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [20:40:27]RAPDU: 90 00 [20:40:27]wFMCommunicate OK [20:40:27]wFMCommunicate request_size=10 [20:40:27]MH_SAM_APDU [20:40:27]CAPDU: 80 0D 02 02 05 47 0C 0B A2 41 [20:40:27]Write to MH i2c: E2 0D 00 EC 03 80 0D 02 02 05 00 47 0C 0B A2 41 00 00 B4 [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:27]Read from MH i2c: E2 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 03 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [20:40:27]RAPDU: 90 00 [20:40:27]wFMCommunicate OK [20:40:27]wFMCommunicate request_size=4 [20:40:27]MH_SAM_APDU [20:40:27]CAPDU: 80 0D 03 02 [20:40:27]Write to MH i2c: E2 08 00 ED 03 80 0D 03 02 00 00 00 00 6B [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:27]Read from MH i2c: E2 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 0B 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 0B 00 ED 03 00 38 1C F6 41 12 AF 35 2D 90 00 1A [20:40:27]RAPDU: 38 1C F6 41 12 AF 35 2D 90 00 [20:40:27]wFMCommunicate OK [20:40:27]SAM_PROTO_SignData done [20:40:27]FM_MakeSignedData done [20:40:27]CreateOFDProtocolMessage [20:40:27]wFMCommunicate request_size=4 [20:40:27]MH_SAM_APDU [20:40:27]CAPDU: 80 11 00 00 [20:40:27]Write to MH i2c: E2 08 00 EE 03 80 11 00 00 00 00 00 00 6B [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:27]Read from MH i2c: E2 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 17 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 17 00 EE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BD [20:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:40:27]wFMCommunicate OK [20:40:27]CreateOFDProtocolMessage done [20:40:27]OFDSenderStorePacket 112080 [20:40:27]StoreOFDPacket docnum=112080 [20:40:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 77 DC 07 01 75 D8 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3A E5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B5 01 00 35 04 06 00 51 47 0C 0B A2 41 38 1C F6 41 12 AF 35 2D [20:40:27]CheckFolder [20:40:27]dirname=/storage/ofd_packets [20:40:27]CheckFolder done [20:40:27]ProducePacketName [20:40:27]name=ofd_packets/00112080 [20:40:27]NVStorageSaveData ofd_packets/00112080 [20:40:27]File name is /storage/ofd_packets/00112080 [20:40:27]Write 301 bytes [20:40:27]NVStorageSaveData done [20:40:27]OFDSenderStorePacket done [20:40:27]KKMCreateOFDPacket done [20:40:27]NVStorageSaveData kkm_last_timestamp [20:40:27]File name is /storage/kkm_last_timestamp [20:40:27]Write 4 bytes [20:40:27]NVStorageSaveData done [20:40:27]ExternCall_PrintAddStr [20:40:27]wPrintStart [20:40:27]Write to MH i2c: 01 00 00 EF 03 F2 [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: 01 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: 01 07 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 FF 0F 07 [20:40:27]RasterBufferAndPrint [20:40:27]line 小褔械褌 N : (1)320740 [20:40:27]line 袠袧袧: 02508201610067 [20:40:27]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:40:27]line 袩袪袨袛袗袞袗 [20:40:27]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:40:27]line 孝芯胁邪褉: 2710124130 [20:40:27]line 袗懈-92-袣-5 [20:40:27]line 4.820 * 66.40 [20:40:27]line = 320.05 [20:40:27]line 袧袛小 12% 袧小袩 1% [20:40:27]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:40:27]line 袨袣袪校袚袥袝袧袠袝: -0.05 [20:40:27]line 袠孝袨袚袨: 320.00 [20:40:27]line 袙薪械褋械薪芯: 320.00 [20:40:27]line 小袛袗效袗: 0.00 [20:40:27]line 袧小袩 1% : 2.83 [20:40:27]line 袧袛小 12% : 33.99 [20:40:27]line 袧邪谢懈褔薪褘屑懈: 320.00 [20:40:27]line 袘械蟹薪邪谢.: 0.00 [20:40:27]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:40:27]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:40:27]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:40:27]line 效械泻 248 21.06.2024 20:40 [20:40:27]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:40:27]line 袟袧袦: 0300000198 [20:40:27]line 袪袧袦: 0000000000092771 [20:40:27]line 袙械褉褋懈褟 袣袣袦: 001 [20:40:27]line 肖袦: 0000000000875083 [20:40:27]line 肖袛: 112080 [20:40:27]line 肖袩袛: 89365586616897 [20:40:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T204026&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112080&fm=89365586616897&tin=02508201610067®Number=0000000000092771&sum=32000 [20:40:27]written 0, free lines is 4095 [20:40:27]OFD Sender: Processing packet 112080 [packets to send 38, broken 37] [20:40:27]ProducePacketName [20:40:27]name=ofd_packets/00112080 [20:40:27]OFD Sender: To server: 嚂鰌G, [20:40:27]CommunicateWithHost lk.salyk.kg:30040 [20:40:27]ConnectInit lk.salyk.kg [20:40:27]Connected sock=10 [20:40:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 77 DC 07 01 75 D8 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3A E5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B5 01 00 35 04 06 00 51 47 0C 0B A2 41 38 1C F6 41 12 AF 35 2D [20:40:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A4 66 47 00 D8 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 30 38 37 35 30 38 33 10 04 04 00 D0 B5 01 00 F4 03 04 00 5B 7C 75 66 B6 04 01 00 00 4C 5A 22 2A E5 4F 8A FA [20:40:28]CommunicateWithHost err = 0 [20:40:28]CheckOFDResponse [20:40:28]1017 (14) - 77093643461234 [20:40:28]1041 (16) - 0000000000875083 [20:40:28]1040 (4) - 112080 [20:40:28]1012 (4) - 21.06.2024 13:12 [20:40:28]1206 (1) - 0 [20:40:28]OFD Sender: Remove packet 112080 [20:40:28]ProducePacketName [20:40:28]name=ofd_packets/00112080 [20:40:28]NVStorageDeleteData [20:40:28]Write to MH i2c: 01 00 00 1A 04 1E [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: 01 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: 01 07 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 E3 0C 14 [20:40:28]RasterBufferAndPrint [20:40:28]line [20:40:28]line [20:40:28]line [20:40:28]line [20:40:28]line [20:40:28]written 0, free lines is 3305 [20:40:28]MH_Cut [20:40:28]Write to MH i2c: D1 01 00 21 04 01 F7 [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: D1 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: D1 01 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: D1 01 00 21 04 00 F6 [20:40:28]Write to MH i2c: 01 00 00 22 04 26 [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]OFD Sender: No OFD packet to send [20:40:28]*** Cut start [20:40:28]*** Partial cut [20:40:28]*** CUTSNS_PIN = 1 [20:40:28]*** CUTSNS_PIN = 0 [20:40:29]*** Brake cut motor [20:40:29]Read from MH i2c: 01 [20:40:29]MH_I2C_Read... [20:40:29]*** Stop cut motor [20:40:29]*** Cut end [20:40:29]Read from MH i2c: 01 07 00 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 FF 0F 3B [20:40:29]process_action close_receipt done [20:40:29]requested_data is exist [20:40:29]produce_requested_data [20:40:29]requested_item fm.sn is exist - process it [20:40:29]wFMCommunicate request_size=4 [20:40:29]MH_SAM_APDU [20:40:29]CAPDU: 80 11 00 00 [20:40:29]Write to MH i2c: E2 08 00 23 04 80 11 00 00 00 00 00 00 A1 [20:40:29]Write i2c OK [20:40:29]MH_I2C_Read... [20:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:29]Read from MH i2c: E2 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: E2 17 00 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: E2 17 00 23 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F3 [20:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:40:29]wFMCommunicate OK [20:40:29]requested_item fd.num is exist - process it [20:40:29]SAM_PROTO_GetFieldsCounters [20:40:29]wFMCommunicate request_size=4 [20:40:29]MH_SAM_APDU [20:40:29]CAPDU: 80 13 00 00 [20:40:29]Write to MH i2c: E2 08 00 24 04 80 13 00 00 00 00 00 00 A4 [20:40:29]Write i2c OK [20:40:29]MH_I2C_Read... [20:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:29]Read from MH i2c: E2 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: E2 62 00 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: E2 62 00 24 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [20:40:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:29]wFMCommunicate OK [20:40:29]SAM_PROTO_GetFieldsCounters done [20:40:29]requested_item shift.num is exist - process it [20:40:29]requested_item shift.opened is exist - process it [20:40:29]req_shift_opened [20:40:29]FM_GetShiftState [20:40:29]SAM_PROTO_GetShiftState [20:40:29]wFMCommunicate request_size=4 [20:40:29]MH_SAM_APDU [20:40:29]CAPDU: 80 13 01 00 [20:40:29]Write to MH i2c: E2 08 00 25 04 80 13 01 00 00 00 00 00 A6 [20:40:29]Write i2c OK [20:40:29]MH_I2C_Read... [20:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:29]Read from MH i2c: E2 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: E2 0E 00 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: E2 0E 00 25 04 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 23 [20:40:29]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:40:29]wFMCommunicate OK [20:40:29]SAM_PROTO_GetShiftState done [20:40:29]FM_GetShiftState done [20:40:29]req_shift_opened done [20:40:29]requested_item shift.open_date is exist - process it [20:40:29]req_shift_open_date [20:40:29]req_shift_open_date done [20:40:29]produce_requested_data done [20:40:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112080,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:40:29]process_action_free close_receipt [20:40:29]json_value_free [20:40:29]json_value_free done [20:40:29]process_json_proto returns [20:40:29]Send response to host [20:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112080,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:40:29]free response buf [20:40:29]execute_script done [20:40:29]execute_script returns [20:40:29]free content buf [20:40:29]Sock 7.Close socket [20:40:29]Sock 7.Thread stoped [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:45]accept exits with 9 [20:41:45]New connection [20:41:45]New thread 3066957156 created [20:41:45]Thread 3066813796 joined [20:41:45]Waiting for new connection... [20:41:45] Sock 9.Parse request [20:41:45]Sock 9.Check first char [20:41:45]Sock 9.First char is OK [20:41:45]request: POST /json_proto HTTP/1.0 [20:41:45]Method: POST [20:41:45]URL: /json_proto [20:41:45]Method is POST - this is cgi request [20:41:45]url: /json_proto [20:41:45]query_string will be loaded in cgi processing [20:41:45]execute_cgi json_proto POST (null) [20:41:45]execute_cgi path=json_proto method=POST [20:41:45]POST find Content-Length [20:41:45]Host: 172.17.59.68:8080 [20:41:45]Content-Length: 640 [20:41:45]Content-Type: application/json [20:41:45] [20:41:45]POST finish read [20:41:45]Found Content-Length = 640 [20:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:45]execute_script... [20:41: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)320741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:45]POST & json_proto [20:41:45]process_json_proto [20:41:45]json parsed OK: [20:41:45]protocol is kg_v1.0 [20:41:45]action value=close_receipt [20:41:45]process_action close_receipt [20:41:45]cmd_close_receipt [20:41:45]MH_GetDate [20:41:45]Write to MH i2c: F0 00 00 26 04 19 [20:41:45]Write i2c OK [20:41:45]MH_I2C_Read... [20:41:45]Read from MH i2c: F0 [20:41:45]MH_I2C_Read... [20:41:45]Read from MH i2c: F0 09 00 [20:41:45]MH_I2C_Read... [20:41:45]Read from MH i2c: F0 09 00 26 04 00 8A E5 75 66 BC EC 60 65 D9 [20:41:45]GetLastDocTimeStamp 1719002426 [20:41:45]current date 1719002506 [20:41:45]FM_GetShiftState [20:41:45]SAM_PROTO_GetShiftState [20:41:45]wFMCommunicate request_size=4 [20:41:45]MH_SAM_APDU [20:41:45]CAPDU: 80 13 01 00 [20:41:45]Write to MH i2c: E2 08 00 27 04 80 13 01 00 00 00 00 00 A8 [20:41:45]Write i2c OK [20:41:45]MH_I2C_Read... [20:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:45]Read from MH i2c: E2 [20:41:45]MH_I2C_Read... [20:41:45]Read from MH i2c: E2 0E 00 [20:41:45]MH_I2C_Read... [20:41:45]Read from MH i2c: E2 0E 00 27 04 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 25 [20:41:45]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:41:45]wFMCommunicate OK [20:41:45]SAM_PROTO_GetShiftState done [20:41:45]FM_GetShiftState done [20:41:45]opened in 1718933695 [20:41:45]opened+sec_in_day 1719020095 [20:41:45]quantity*price = 66400 [20:41:45]sum+1 = 66401 [20:41:45]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 664.00 袧小袩 1% : 5.88 袧袛小 12% : 70.51 袧邪谢懈褔薪褘屑懈: 664.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 249 21.06.2024 20:41 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112081 肖袩袛: 42813836882669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T204146&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112081&fm=42813836882669&tin=02508201610067®Number=0000000000092771&sum=66400 [20:41:46]StoreToDocumentArchive [20:41:46]shift 390 fd 112081 [20:41:46]save to /storage/0390/doc_00112081 [20:41:46]save last doc name /storage/0390/doc_00112081 to /storage/kkm_last_doc_name [20:41:46]save OK [20:41:46]Clear old archive folders... [20:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:46]tlvbuf is 01119350 [20:41:46]SAM_PROTO_ClearQueue [20:41:46]wFMCommunicate request_size=4 [20:41:46]MH_SAM_APDU [20:41:46]CAPDU: 80 09 00 00 [20:41:46]Write to MH i2c: E2 08 00 34 04 80 09 00 00 00 00 00 00 AA [20:41:46]Write i2c OK [20:41:46]MH_I2C_Read... [20:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:46]Read from MH i2c: E2 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 03 00 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [20:41:46]RAPDU: 90 00 [20:41:46]wFMCommunicate OK [20:41:46]SAM_PROTO_ClearQueue done [20:41:46]KKMCreateOFDPacket [20:41:46]OFDProtocolAddRootSTLVToBuf [20:41:46]FM_MakeSignedData [20:41:46]FM_MakeSignedData [20:41:46]SAM_PROTO_SignData [20:41:46]wFMCommunicate request_size=4 [20:41:46]MH_SAM_APDU [20:41:46]CAPDU: 80 0D 01 02 [20:41:46]Write to MH i2c: E2 08 00 35 04 80 0D 01 02 00 00 00 00 B2 [20:41:46]Write i2c OK [20:41:46]MH_I2C_Read... [20:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:46]Read from MH i2c: E2 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 03 00 [20:41:46]MH_I2C_Read... [20:41:46]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [20:41:46]RAPDU: 90 00 [20:41:46]wFMCommunicate OK [20:41:46]wFMCommunicate request_size=255 [20:41:46]MH_SAM_APDU [20:41: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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 F9 00 00 00 F4 03 04 00 8A E5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B5 01 00 35 04 06 00 26 [20:41:46]Write to MH i2c: E2 02 01 36 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 F9 00 00 00 F4 03 04 00 8A E5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B5 01 00 35 04 06 00 26 00 00 93 [20:41:46]Write i2c OK [20:41:46]MH_I2C_Read... [20:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:47]Read from MH i2c: E2 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: E2 03 00 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [20:41:47]RAPDU: 90 00 [20:41:47]wFMCommunicate OK [20:41:47]wFMCommunicate request_size=10 [20:41:47]MH_SAM_APDU [20:41:47]CAPDU: 80 0D 02 02 05 F0 5F 89 F2 ED [20:41:47]Write to MH i2c: E2 0D 00 37 04 80 0D 02 02 05 00 F0 5F 89 F2 ED 00 00 76 [20:41:47]Write i2c OK [20:41:47]MH_I2C_Read... [20:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:47]Read from MH i2c: E2 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: E2 03 00 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [20:41:47]RAPDU: 90 00 [20:41:47]wFMCommunicate OK [20:41:47]wFMCommunicate request_size=4 [20:41:47]MH_SAM_APDU [20:41:47]CAPDU: 80 0D 03 02 [20:41:47]Write to MH i2c: E2 08 00 38 04 80 0D 03 02 00 00 00 00 B7 [20:41:47]Write i2c OK [20:41:47]MH_I2C_Read... [20:41:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:47]Read from MH i2c: E2 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: E2 0B 00 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: E2 0B 00 38 04 00 32 23 96 81 C6 CF BF 7C 90 00 F4 [20:41:47]RAPDU: 32 23 96 81 C6 CF BF 7C 90 00 [20:41:47]wFMCommunicate OK [20:41:47]SAM_PROTO_SignData done [20:41:47]FM_MakeSignedData done [20:41:47]CreateOFDProtocolMessage [20:41:47]wFMCommunicate request_size=4 [20:41:47]MH_SAM_APDU [20:41:47]CAPDU: 80 11 00 00 [20:41:47]Write to MH i2c: E2 08 00 39 04 80 11 00 00 00 00 00 00 B7 [20:41:47]Write i2c OK [20:41:47]MH_I2C_Read... [20:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:47]Read from MH i2c: E2 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: E2 17 00 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: E2 17 00 39 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 09 [20:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:41:47]wFMCommunicate OK [20:41:47]CreateOFDProtocolMessage done [20:41:47]OFDSenderStorePacket 112081 [20:41:47]StoreOFDPacket docnum=112081 [20:41:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2F 1D 07 01 68 20 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 F9 00 00 00 F4 03 04 00 8A E5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B5 01 00 35 04 06 00 26 F0 5F 89 F2 ED 32 23 96 81 C6 CF BF 7C [20:41:47]CheckFolder [20:41:47]dirname=/storage/ofd_packets [20:41:47]CheckFolder done [20:41:47]ProducePacketName [20:41:47]name=ofd_packets/00112081 [20:41:47]NVStorageSaveData ofd_packets/00112081 [20:41:47]File name is /storage/ofd_packets/00112081 [20:41:47]Write 301 bytes [20:41:47]NVStorageSaveData done [20:41:47]OFDSenderStorePacket done [20:41:47]KKMCreateOFDPacket done [20:41:47]NVStorageSaveData kkm_last_timestamp [20:41:47]File name is /storage/kkm_last_timestamp [20:41:47]Write 4 bytes [20:41:47]NVStorageSaveData done [20:41:47]ExternCall_PrintAddStr [20:41:47]wPrintStart [20:41:47]Write to MH i2c: 01 00 00 3A 04 3E [20:41:47]OFD Sender: Processing packet 112081 [packets to send 38, broken 37] [20:41:47]ProducePacketName [20:41:47]name=ofd_packets/00112081 [20:41:47]OFD Sender: To server: 嚂鰌G, [20:41:47]CommunicateWithHost lk.salyk.kg:30040 [20:41:47]ConnectInit lk.salyk.kg [20:41:47]Write i2c OK [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: 01 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: 01 07 00 [20:41:47]MH_I2C_Read... [20:41:47]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 FF 0F 53 [20:41:47]RasterBufferAndPrint [20:41:47]line 小褔械褌 N : (1)320741 [20:41:47]line 袠袧袧: 02508201610067 [20:41:47]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:41:47]line 袩袪袨袛袗袞袗 [20:41:47]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:41:47]line 孝芯胁邪褉: 2710124130 [20:41:47]line 袗懈-92-袣-5 [20:41:47]line 10.000 * 66.40 [20:41:47]line = 664.00 [20:41:47]line 袧袛小 12% 袧小袩 1% [20:41:47]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:41:47]line 袠孝袨袚袨: 664.00 [20:41:47]line 袧小袩 1% : 5.88 [20:41:47]line 袧袛小 12% : 70.51 [20:41:47]line 袧邪谢懈褔薪褘屑懈: 664.00 [20:41:47]line 袘械蟹薪邪谢.: 0.00 [20:41:47]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:41:47]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:41:47]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:41:47]line 效械泻 249 21.06.2024 20:41 [20:41:47]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:41:47]line 袟袧袦: 0300000198 [20:41:47]line 袪袧袦: 0000000000092771 [20:41:47]line 袙械褉褋懈褟 袣袣袦: 001 [20:41:47]line 肖袦: 0000000000875083 [20:41:47]line 肖袛: 112081 [20:41:47]line 肖袩袛: 42813836882669 [20:41:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T204146&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112081&fm=42813836882669&tin=02508201610067®Number=0000000000092771&sum=66400 [20:41:47]Connected sock=10 [20:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2F 1D 07 01 68 20 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 F9 00 00 00 F4 03 04 00 8A E5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B5 01 00 35 04 06 00 26 F0 5F 89 F2 ED 32 23 96 81 C6 CF BF 7C [20:41:47]written 0, free lines is 4095 [20:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4F 8E 47 00 79 8C 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 30 38 37 35 30 38 33 10 04 04 00 D1 B5 01 00 F4 03 04 00 AB 7C 75 66 B6 04 01 00 00 73 1B 53 2D 73 78 C3 30 [20:41:47]CommunicateWithHost err = 0 [20:41:47]CheckOFDResponse [20:41:47]1017 (14) - 77093643461234 [20:41:47]1041 (16) - 0000000000875083 [20:41:47]1040 (4) - 112081 [20:41:47]1012 (4) - 21.06.2024 13:14 [20:41:47]1206 (1) - 0 [20:41:47]OFD Sender: Remove packet 112081 [20:41:47]ProducePacketName [20:41:47]name=ofd_packets/00112081 [20:41:47]NVStorageDeleteData [20:41:48]Write to MH i2c: 01 00 00 62 04 66 [20:41:48]Write i2c OK [20:41:48]MH_I2C_Read... [20:41:48]Read from MH i2c: 01 [20:41:48]MH_I2C_Read... [20:41:48]Read from MH i2c: 01 07 00 [20:41:48]MH_I2C_Read... [20:41:48]Read from MH i2c: 01 07 00 62 04 00 00 00 00 00 14 0D 8E [20:41:48]RasterBufferAndPrint [20:41:48]line [20:41:48]line [20:41:48]line [20:41:48]line [20:41:48]line [20:41:48]written 0, free lines is 3354 [20:41:48]MH_Cut [20:41:48]Write to MH i2c: D1 01 00 69 04 01 3F [20:41:48]Write i2c OK [20:41:48]MH_I2C_Read... [20:41:48]Read from MH i2c: D1 [20:41:48]MH_I2C_Read... [20:41:48]Read from MH i2c: D1 01 00 [20:41:48]MH_I2C_Read... [20:41:48]Read from MH i2c: D1 01 00 69 04 00 3E [20:41:48]Write to MH i2c: 01 00 00 6A 04 6E [20:41:48]Write i2c OK [20:41:48]MH_I2C_Read... [20:41:48]OFD Sender: No OFD packet to send [20:41:48]*** Cut start [20:41:48]*** Partial cut [20:41:48]*** CUTSNS_PIN = 1 [20:41:48]*** CUTSNS_PIN = 0 [20:41:49]*** Brake cut motor [20:41:49]Read from MH i2c: 01 [20:41:49]MH_I2C_Read... [20:41:49]*** Stop cut motor [20:41:49]*** Cut end [20:41:49]Read from MH i2c: 01 07 00 [20:41:49]MH_I2C_Read... [20:41:49]Read from MH i2c: 01 07 00 6A 04 00 00 00 00 00 FF 0F 83 [20:41:49]process_action close_receipt done [20:41:49]requested_data is exist [20:41:49]produce_requested_data [20:41:49]requested_item fm.sn is exist - process it [20:41:49]wFMCommunicate request_size=4 [20:41:49]MH_SAM_APDU [20:41:49]CAPDU: 80 11 00 00 [20:41:49]Write to MH i2c: E2 08 00 6B 04 80 11 00 00 00 00 00 00 E9 [20:41:49]Write i2c OK [20:41:49]MH_I2C_Read... [20:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:49]Read from MH i2c: E2 [20:41:49]MH_I2C_Read... [20:41:49]Read from MH i2c: E2 17 00 [20:41:49]MH_I2C_Read... [20:41:49]Read from MH i2c: E2 17 00 6B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3B [20:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:41:49]wFMCommunicate OK [20:41:49]requested_item fd.num is exist - process it [20:41:49]SAM_PROTO_GetFieldsCounters [20:41:49]wFMCommunicate request_size=4 [20:41:49]MH_SAM_APDU [20:41:49]CAPDU: 80 13 00 00 [20:41:49]Write to MH i2c: E2 08 00 6C 04 80 13 00 00 00 00 00 00 EC [20:41:49]Write i2c OK [20:41:49]MH_I2C_Read... [20:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:49]Read from MH i2c: E2 [20:41:49]MH_I2C_Read... [20:41:49]Read from MH i2c: E2 62 00 [20:41:49]MH_I2C_Read... [20:41:49]Read from MH i2c: E2 62 00 6C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D1 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [20:41:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D1 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:49]wFMCommunicate OK [20:41:49]SAM_PROTO_GetFieldsCounters done [20:41:49]requested_item shift.num is exist - process it [20:41:49]requested_item shift.opened is exist - process it [20:41:49]req_shift_opened [20:41:49]FM_GetShiftState [20:41:49]SAM_PROTO_GetShiftState [20:41:49]wFMCommunicate request_size=4 [20:41:49]MH_SAM_APDU [20:41:49]CAPDU: 80 13 01 00 [20:41:49]Write to MH i2c: E2 08 00 6D 04 80 13 01 00 00 00 00 00 EE [20:41:49]Write i2c OK [20:41:49]MH_I2C_Read... [20:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:49]Read from MH i2c: E2 [20:41:49]MH_I2C_Read... [20:41:49]Read from MH i2c: E2 0E 00 [20:41:49]MH_I2C_Read... [20:41:49]Read from MH i2c: E2 0E 00 6D 04 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 6B [20:41:49]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:41:49]wFMCommunicate OK [20:41:49]SAM_PROTO_GetShiftState done [20:41:49]FM_GetShiftState done [20:41:49]req_shift_opened done [20:41:49]requested_item shift.open_date is exist - process it [20:41:49]req_shift_open_date [20:41:49]req_shift_open_date done [20:41:49]produce_requested_data done [20:41:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112081,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:41:49]process_action_free close_receipt [20:41:49]json_value_free [20:41:49]json_value_free done [20:41:49]process_json_proto returns [20:41:49]Send response to host [20:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112081,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:41:49]free response buf [20:41:49]execute_script done [20:41:49]execute_script returns [20:41:49]free content buf [20:41:49]Sock 9.Close socket [20:41:49]Sock 9.Thread stoped [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:19]accept exits with 7 [20:46:19]New connection [20:46:19]New thread 3066813796 created [20:46:19]Thread 3066957156 joined [20:46:19]Waiting for new connection... [20:46:19] Sock 7.Parse request [20:46:19]Sock 7.Check first char [20:46:19]Sock 7.First char is OK [20:46:19]request: POST /json_proto HTTP/1.0 [20:46:19]Method: POST [20:46:19]URL: /json_proto [20:46:19]Method is POST - this is cgi request [20:46:19]url: /json_proto [20:46:19]query_string will be loaded in cgi processing [20:46:19]execute_cgi json_proto POST (null) [20:46:19]execute_cgi path=json_proto method=POST [20:46:19]POST find Content-Length [20:46:19]Host: 172.17.59.68:8080 [20:46:19]Content-Length: 677 [20:46:19]Content-Type: application/json [20:46:19] [20:46:19]POST finish read [20:46:19]Found Content-Length = 677 [20:46:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:19]execute_script... [20:46: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)320742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:19]POST & json_proto [20:46:19]process_json_proto [20:46:19]json parsed OK: [20:46:19]protocol is kg_v1.0 [20:46:19]action value=close_receipt [20:46:19]process_action close_receipt [20:46:19]cmd_close_receipt [20:46:19]MH_GetDate [20:46:19]Write to MH i2c: F0 00 00 6E 04 61 [20:46:19]Write i2c OK [20:46:19]MH_I2C_Read... [20:46:19]Read from MH i2c: F0 [20:46:19]MH_I2C_Read... [20:46:19]Read from MH i2c: F0 09 00 [20:46:19]MH_I2C_Read... [20:46:19]Read from MH i2c: F0 09 00 6E 04 00 9C E6 75 66 BC EC 60 65 34 [20:46:19]GetLastDocTimeStamp 1719002506 [20:46:19]current date 1719002780 [20:46:19]FM_GetShiftState [20:46:19]SAM_PROTO_GetShiftState [20:46:19]wFMCommunicate request_size=4 [20:46:19]MH_SAM_APDU [20:46:19]CAPDU: 80 13 01 00 [20:46:19]Write to MH i2c: E2 08 00 6F 04 80 13 01 00 00 00 00 00 F0 [20:46:19]Write i2c OK [20:46:19]MH_I2C_Read... [20:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:19]Read from MH i2c: E2 [20:46:19]MH_I2C_Read... [20:46:19]Read from MH i2c: E2 0E 00 [20:46:19]MH_I2C_Read... [20:46:19]Read from MH i2c: E2 0E 00 6F 04 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 6D [20:46:19]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:46:19]wFMCommunicate OK [20:46:19]SAM_PROTO_GetShiftState done [20:46:19]FM_GetShiftState done [20:46:19]opened in 1718933695 [20:46:19]opened+sec_in_day 1719020095 [20:46:19]quantity*price = 25032 [20:46:19]sum+1 = 25034 [20:46:19]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.33 袠孝袨袚袨: 250.00 袙薪械褋械薪芯: 250.00 小袛袗效袗: 0.00 袧小袩 1% : 2.21 袧袛小 12% : 26.58 袧邪谢懈褔薪褘屑懈: 250.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 250 21.06.2024 20:46 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112082 肖袩袛: 53379813720880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T204620&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112082&fm=53379813720880&tin=02508201610067®Number=0000000000092771&sum=25000 [20:46:20]StoreToDocumentArchive [20:46:20]shift 390 fd 112082 [20:46:20]save to /storage/0390/doc_00112082 [20:46:20]save last doc name /storage/0390/doc_00112082 to /storage/kkm_last_doc_name [20:46:20]save OK [20:46:20]Clear old archive folders... [20:46:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:20]tlvbuf is 0111C5F0 [20:46:20]SAM_PROTO_ClearQueue [20:46:20]wFMCommunicate request_size=4 [20:46:20]MH_SAM_APDU [20:46:20]CAPDU: 80 09 00 00 [20:46:20]Write to MH i2c: E2 08 00 7C 04 80 09 00 00 00 00 00 00 F2 [20:46:20]Write i2c OK [20:46:20]MH_I2C_Read... [20:46:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:20]Read from MH i2c: E2 [20:46:20]MH_I2C_Read... [20:46:20]Read from MH i2c: E2 03 00 [20:46:20]MH_I2C_Read... [20:46:20]Read from MH i2c: E2 03 00 7C 04 00 90 00 F4 [20:46:20]RAPDU: 90 00 [20:46:20]wFMCommunicate OK [20:46:20]SAM_PROTO_ClearQueue done [20:46:20]KKMCreateOFDPacket [20:46:20]OFDProtocolAddRootSTLVToBuf [20:46:20]FM_MakeSignedData [20:46:20]FM_MakeSignedData [20:46:20]SAM_PROTO_SignData [20:46:20]wFMCommunicate request_size=4 [20:46:20]MH_SAM_APDU [20:46:20]CAPDU: 80 0D 01 02 [20:46:20]Write to MH i2c: E2 08 00 7D 04 80 0D 01 02 00 00 00 00 FA [20:46:20]Write i2c OK [20:46:20]MH_I2C_Read... [20:46:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:21]Read from MH i2c: E2 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [20:46:21]RAPDU: 90 00 [20:46:21]wFMCommunicate OK [20:46:21]wFMCommunicate request_size=255 [20:46:21]MH_SAM_APDU [20:46: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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 9C E6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B5 01 00 35 04 06 00 30 [20:46:21]Write to MH i2c: E2 02 01 7E 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 9C E6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B5 01 00 35 04 06 00 30 00 00 F0 [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:21]Read from MH i2c: E2 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [20:46:21]RAPDU: 90 00 [20:46:21]wFMCommunicate OK [20:46:21]wFMCommunicate request_size=10 [20:46:21]MH_SAM_APDU [20:46:21]CAPDU: 80 0D 02 02 05 8C 74 D5 C3 30 [20:46:21]Write to MH i2c: E2 0D 00 7F 04 80 0D 02 02 05 00 8C 74 D5 C3 30 00 00 CF [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:21]Read from MH i2c: E2 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [20:46:21]RAPDU: 90 00 [20:46:21]wFMCommunicate OK [20:46:21]wFMCommunicate request_size=4 [20:46:21]MH_SAM_APDU [20:46:21]CAPDU: 80 0D 03 02 [20:46:21]Write to MH i2c: E2 08 00 80 04 80 0D 03 02 00 00 00 00 FF [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:21]Read from MH i2c: E2 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 0B 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 0B 00 80 04 00 30 B8 54 33 92 40 26 3B 90 00 A2 [20:46:21]RAPDU: 30 B8 54 33 92 40 26 3B 90 00 [20:46:21]wFMCommunicate OK [20:46:21]SAM_PROTO_SignData done [20:46:21]FM_MakeSignedData done [20:46:21]CreateOFDProtocolMessage [20:46:21]wFMCommunicate request_size=4 [20:46:21]MH_SAM_APDU [20:46:21]CAPDU: 80 11 00 00 [20:46:21]Write to MH i2c: E2 08 00 81 04 80 11 00 00 00 00 00 00 FF [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:21]Read from MH i2c: E2 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 17 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 17 00 81 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 51 [20:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:46:21]wFMCommunicate OK [20:46:21]CreateOFDProtocolMessage done [20:46:21]OFDSenderStorePacket 112082 [20:46:21]StoreOFDPacket docnum=112082 [20:46:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 93 07 01 8A 47 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 9C E6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B5 01 00 35 04 06 00 30 8C 74 D5 C3 30 30 B8 54 33 92 40 26 3B [20:46:21]CheckFolder [20:46:21]dirname=/storage/ofd_packets [20:46:21]CheckFolder done [20:46:21]ProducePacketName [20:46:21]name=ofd_packets/00112082 [20:46:21]NVStorageSaveData ofd_packets/00112082 [20:46:21]File name is /storage/ofd_packets/00112082 [20:46:21]Write 301 bytes [20:46:21]NVStorageSaveData done [20:46:21]OFDSenderStorePacket done [20:46:21]KKMCreateOFDPacket done [20:46:21]NVStorageSaveData kkm_last_timestamp [20:46:21]File name is /storage/kkm_last_timestamp [20:46:21]Write 4 bytes [20:46:21]NVStorageSaveData done [20:46:21]ExternCall_PrintAddStr [20:46:21]wPrintStart [20:46:21]Write to MH i2c: 01 00 00 82 04 86 [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: 01 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: 01 07 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: 01 07 00 82 04 00 00 00 00 00 FF 0F 9B [20:46:21]RasterBufferAndPrint [20:46:21]line 小褔械褌 N : (1)320742 [20:46:21]line 袠袧袧: 02508201610067 [20:46:21]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:46:21]line 袩袪袨袛袗袞袗 [20:46:21]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:46:21]line 孝芯胁邪褉: 2710124130 [20:46:21]line 袗懈-92-袣-5 [20:46:21]line 3.770 * 66.40 [20:46:21]line = 250.33 [20:46:21]line 袧袛小 12% 袧小袩 1% [20:46:21]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:46:21]line 袨袣袪校袚袥袝袧袠袝: -0.33 [20:46:21]line 袠孝袨袚袨: 250.00 [20:46:21]line 袙薪械褋械薪芯: 250.00 [20:46:21]line 小袛袗效袗: 0.00 [20:46:21]line 袧小袩 1% : 2.21 [20:46:21]line 袧袛小 12% : 26.58 [20:46:21]line 袧邪谢懈褔薪褘屑懈: 250.00 [20:46:21]line 袘械蟹薪邪谢.: 0.00 [20:46:21]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:46:21]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:46:21]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:46:21]line 效械泻 250 21.06.2024 20:46 [20:46:21]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:46:21]line 袟袧袦: 0300000198 [20:46:21]line 袪袧袦: 0000000000092771 [20:46:21]line 袙械褉褋懈褟 袣袣袦: 001 [20:46:21]line 肖袦: 0000000000875083 [20:46:21]line 肖袛: 112082 [20:46:21]line 肖袩袛: 53379813720880 [20:46:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T204620&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112082&fm=53379813720880&tin=02508201610067®Number=0000000000092771&sum=25000 [20:46:21]OFD Sender: Processing packet 112082 [packets to send 38, broken 37] [20:46:21]ProducePacketName [20:46:21]name=ofd_packets/00112082 [20:46:21]OFD Sender: To server: 嚂鰌G, [20:46:21]CommunicateWithHost lk.salyk.kg:30040 [20:46:21]ConnectInit lk.salyk.kg [20:46:21]written 0, free lines is 4095 [20:46:21]Connected sock=10 [20:46:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 93 07 01 8A 47 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 9C E6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B5 01 00 35 04 06 00 30 8C 74 D5 C3 30 30 B8 54 33 92 40 26 3B [20:46:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 65 9D 47 00 FA 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 30 38 37 35 30 38 33 10 04 04 00 D2 B5 01 00 F4 03 04 00 BD 7D 75 66 B6 04 01 00 00 ED 14 64 80 80 A0 09 44 [20:46:22]CommunicateWithHost err = 0 [20:46:22]CheckOFDResponse [20:46:22]1017 (14) - 77093643461234 [20:46:22]1041 (16) - 0000000000875083 [20:46:22]1040 (4) - 112082 [20:46:22]1012 (4) - 21.06.2024 13:18 [20:46:22]1206 (1) - 0 [20:46:22]OFD Sender: Remove packet 112082 [20:46:22]ProducePacketName [20:46:22]name=ofd_packets/00112082 [20:46:22]NVStorageDeleteData [20:46:22]Write to MH i2c: 01 00 00 AD 04 B1 [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: 01 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: 01 07 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: 01 07 00 AD 04 00 00 00 00 00 EF 0C B3 [20:46:22]RasterBufferAndPrint [20:46:22]line [20:46:22]line [20:46:22]line [20:46:22]line [20:46:22]line [20:46:22]written 0, free lines is 3317 [20:46:22]MH_Cut [20:46:22]Write to MH i2c: D1 01 00 B4 04 01 8A [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: D1 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: D1 01 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: D1 01 00 B4 04 00 89 [20:46:22]Write to MH i2c: 01 00 00 B5 04 B9 [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]OFD Sender: No OFD packet to send [20:46:22]*** Cut start [20:46:22]*** Partial cut [20:46:22]*** CUTSNS_PIN = 1 [20:46:23]*** CUTSNS_PIN = 0 [20:46:23]*** Brake cut motor [20:46:23]Read from MH i2c: 01 [20:46:23]MH_I2C_Read... [20:46:23]*** Stop cut motor [20:46:23]*** Cut end [20:46:23]Read from MH i2c: 01 07 00 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: 01 07 00 B5 04 00 00 00 00 00 FF 0F CE [20:46:23]process_action close_receipt done [20:46:23]requested_data is exist [20:46:23]produce_requested_data [20:46:23]requested_item fm.sn is exist - process it [20:46:23]wFMCommunicate request_size=4 [20:46:23]MH_SAM_APDU [20:46:23]CAPDU: 80 11 00 00 [20:46:23]Write to MH i2c: E2 08 00 B6 04 80 11 00 00 00 00 00 00 34 [20:46:23]Write i2c OK [20:46:23]MH_I2C_Read... [20:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:23]Read from MH i2c: E2 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: E2 17 00 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: E2 17 00 B6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 86 [20:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:46:23]wFMCommunicate OK [20:46:23]requested_item fd.num is exist - process it [20:46:23]SAM_PROTO_GetFieldsCounters [20:46:23]wFMCommunicate request_size=4 [20:46:23]MH_SAM_APDU [20:46:23]CAPDU: 80 13 00 00 [20:46:23]Write to MH i2c: E2 08 00 B7 04 80 13 00 00 00 00 00 00 37 [20:46:23]Write i2c OK [20:46:23]MH_I2C_Read... [20:46:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:23]Read from MH i2c: E2 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: E2 62 00 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: E2 62 00 B7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [20:46:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:23]wFMCommunicate OK [20:46:23]SAM_PROTO_GetFieldsCounters done [20:46:23]requested_item shift.num is exist - process it [20:46:23]requested_item shift.opened is exist - process it [20:46:23]req_shift_opened [20:46:23]FM_GetShiftState [20:46:23]SAM_PROTO_GetShiftState [20:46:23]wFMCommunicate request_size=4 [20:46:23]MH_SAM_APDU [20:46:23]CAPDU: 80 13 01 00 [20:46:23]Write to MH i2c: E2 08 00 B8 04 80 13 01 00 00 00 00 00 39 [20:46:23]Write i2c OK [20:46:23]MH_I2C_Read... [20:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:23]Read from MH i2c: E2 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: E2 0E 00 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: E2 0E 00 B8 04 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B6 [20:46:23]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:46:23]wFMCommunicate OK [20:46:23]SAM_PROTO_GetShiftState done [20:46:23]FM_GetShiftState done [20:46:23]req_shift_opened done [20:46:23]requested_item shift.open_date is exist - process it [20:46:23]req_shift_open_date [20:46:23]req_shift_open_date done [20:46:23]produce_requested_data done [20:46:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112082,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:46:23]process_action_free close_receipt [20:46:23]json_value_free [20:46:23]json_value_free done [20:46:23]process_json_proto returns [20:46:23]Send response to host [20:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112082,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:46:23]free response buf [20:46:23]execute_script done [20:46:23]execute_script returns [20:46:23]free content buf [20:46:23]Sock 7.Close socket [20:46:23]Sock 7.Thread stoped [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]accept exits with 9 [20:53:37]New connection [20:53:37]New thread 3066957156 created [20:53:37]Thread 3066813796 joined [20:53:37]Waiting for new connection... [20:53:37] Sock 9.Parse request [20:53:37]Sock 9.Check first char [20:53:37]Sock 9.First char is OK [20:53:37]request: POST /json_proto HTTP/1.0 [20:53:37]Method: POST [20:53:37]URL: /json_proto [20:53:37]Method is POST - this is cgi request [20:53:37]url: /json_proto [20:53:37]query_string will be loaded in cgi processing [20:53:37]execute_cgi json_proto POST (null) [20:53:37]execute_cgi path=json_proto method=POST [20:53:37]POST find Content-Length [20:53:37]Host: 172.17.59.68:8080 [20:53:37]Content-Length: 678 [20:53:37]Content-Type: application/json [20:53:37] [20:53:37]POST finish read [20:53:37]Found Content-Length = 678 [20:53:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:37]execute_script... [20:53: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)320743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:37]POST & json_proto [20:53:37]process_json_proto [20:53:37]json parsed OK: [20:53:37]protocol is kg_v1.0 [20:53:37]action value=close_receipt [20:53:37]process_action close_receipt [20:53:37]cmd_close_receipt [20:53:37]MH_GetDate [20:53:37]Write to MH i2c: F0 00 00 B9 04 AC [20:53:37]Write i2c OK [20:53:37]MH_I2C_Read... [20:53:37]Read from MH i2c: F0 [20:53:37]MH_I2C_Read... [20:53:37]Read from MH i2c: F0 09 00 [20:53:37]MH_I2C_Read... [20:53:37]Read from MH i2c: F0 09 00 B9 04 00 52 E8 75 66 BC EC 60 65 37 [20:53:37]GetLastDocTimeStamp 1719002780 [20:53:37]current date 1719003218 [20:53:37]FM_GetShiftState [20:53:37]SAM_PROTO_GetShiftState [20:53:37]wFMCommunicate request_size=4 [20:53:37]MH_SAM_APDU [20:53:37]CAPDU: 80 13 01 00 [20:53:37]Write to MH i2c: E2 08 00 BA 04 80 13 01 00 00 00 00 00 3B [20:53:37]Write i2c OK [20:53:37]MH_I2C_Read... [20:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:37]Read from MH i2c: E2 [20:53:37]MH_I2C_Read... [20:53:37]Read from MH i2c: E2 0E 00 [20:53:37]MH_I2C_Read... [20:53:37]Read from MH i2c: E2 0E 00 BA 04 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B8 [20:53:37]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:53:37]wFMCommunicate OK [20:53:37]SAM_PROTO_GetShiftState done [20:53:37]FM_GetShiftState done [20:53:37]opened in 1718933695 [20:53:37]opened+sec_in_day 1719020095 [20:53:37]quantity*price = 67064 [20:53:37]sum+1 = 67065 [20:53:37]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.64 袠孝袨袚袨: 670.00 袙薪械褋械薪芯: 670.00 小袛袗效袗: 0.00 袧小袩 1% : 5.93 袧袛小 12% : 71.22 袧邪谢懈褔薪褘屑懈: 670.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 251 21.06.2024 20:53 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112083 肖袩袛: 168002040614825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T205338&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112083&fm=168002040614825&tin=02508201610067®Number=0000000000092771&sum=67000 [20:53:38]StoreToDocumentArchive [20:53:38]shift 390 fd 112083 [20:53:38]save to /storage/0390/doc_00112083 [20:53:38]save last doc name /storage/0390/doc_00112083 to /storage/kkm_last_doc_name [20:53:38]save OK [20:53:38]Clear old archive folders... [20:53:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:38]tlvbuf is 011225C0 [20:53:38]SAM_PROTO_ClearQueue [20:53:38]wFMCommunicate request_size=4 [20:53:38]MH_SAM_APDU [20:53:38]CAPDU: 80 09 00 00 [20:53:38]Write to MH i2c: E2 08 00 C7 04 80 09 00 00 00 00 00 00 3D [20:53:38]Write i2c OK [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: E2 [20:53:38]MH_I2C_Read... [20:53:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:38]Read from MH i2c: E2 03 00 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: E2 03 00 C7 04 00 90 00 3F [20:53:38]RAPDU: 90 00 [20:53:38]wFMCommunicate OK [20:53:38]SAM_PROTO_ClearQueue done [20:53:38]KKMCreateOFDPacket [20:53:38]OFDProtocolAddRootSTLVToBuf [20:53:38]FM_MakeSignedData [20:53:38]FM_MakeSignedData [20:53:38]SAM_PROTO_SignData [20:53:38]wFMCommunicate request_size=4 [20:53:38]MH_SAM_APDU [20:53:38]CAPDU: 80 0D 01 02 [20:53:38]Write to MH i2c: E2 08 00 C8 04 80 0D 01 02 00 00 00 00 45 [20:53:38]Write i2c OK [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: E2 [20:53:38]MH_I2C_Read... [20:53:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:38]Read from MH i2c: E2 03 00 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [20:53:38]RAPDU: 90 00 [20:53:38]wFMCommunicate OK [20:53:38]wFMCommunicate request_size=255 [20:53:38]MH_SAM_APDU [20:53:38]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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 52 E8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B5 01 00 35 04 06 00 98 [20:53:38]Write to MH i2c: E2 02 01 C9 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 52 E8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B5 01 00 35 04 06 00 98 00 00 65 [20:53:38]Write i2c OK [20:53:38]MH_I2C_Read... [20:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:38]Read from MH i2c: E2 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: E2 03 00 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [20:53:38]RAPDU: 90 00 [20:53:38]wFMCommunicate OK [20:53:38]wFMCommunicate request_size=10 [20:53:38]MH_SAM_APDU [20:53:38]CAPDU: 80 0D 02 02 05 CC 05 F3 CF A9 [20:53:38]Write to MH i2c: E2 0D 00 CA 04 80 0D 02 02 05 00 CC 05 F3 CF A9 00 00 8E [20:53:38]Write i2c OK [20:53:38]MH_I2C_Read... [20:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:38]Read from MH i2c: E2 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: E2 03 00 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [20:53:38]RAPDU: 90 00 [20:53:38]wFMCommunicate OK [20:53:38]wFMCommunicate request_size=4 [20:53:38]MH_SAM_APDU [20:53:38]CAPDU: 80 0D 03 02 [20:53:38]Write to MH i2c: E2 08 00 CB 04 80 0D 03 02 00 00 00 00 4A [20:53:38]Write i2c OK [20:53:38]MH_I2C_Read... [20:53:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:38]Read from MH i2c: E2 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: E2 0B 00 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: E2 0B 00 CB 04 00 6C 81 3D B0 AE 69 17 9F 90 00 F2 [20:53:38]RAPDU: 6C 81 3D B0 AE 69 17 9F 90 00 [20:53:38]wFMCommunicate OK [20:53:38]SAM_PROTO_SignData done [20:53:38]FM_MakeSignedData done [20:53:38]CreateOFDProtocolMessage [20:53:38]wFMCommunicate request_size=4 [20:53:38]MH_SAM_APDU [20:53:38]CAPDU: 80 11 00 00 [20:53:38]Write to MH i2c: E2 08 00 CC 04 80 11 00 00 00 00 00 00 4A [20:53:38]Write i2c OK [20:53:38]MH_I2C_Read... [20:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:38]Read from MH i2c: E2 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: E2 17 00 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: E2 17 00 CC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9C [20:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:53:38]wFMCommunicate OK [20:53:38]CreateOFDProtocolMessage done [20:53:38]OFDSenderStorePacket 112083 [20:53:38]StoreOFDPacket docnum=112083 [20:53:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 42 07 01 F2 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 52 E8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B5 01 00 35 04 06 00 98 CC 05 F3 CF A9 6C 81 3D B0 AE 69 17 9F [20:53:38]CheckFolder [20:53:38]dirname=/storage/ofd_packets [20:53:38]CheckFolder done [20:53:38]ProducePacketName [20:53:38]name=ofd_packets/00112083 [20:53:38]NVStorageSaveData ofd_packets/00112083 [20:53:38]File name is /storage/ofd_packets/00112083 [20:53:38]Write 301 bytes [20:53:38]NVStorageSaveData done [20:53:38]OFDSenderStorePacket done [20:53:38]KKMCreateOFDPacket done [20:53:38]NVStorageSaveData kkm_last_timestamp [20:53:38]File name is /storage/kkm_last_timestamp [20:53:38]Write 4 bytes [20:53:38]NVStorageSaveData done [20:53:38]ExternCall_PrintAddStr [20:53:38]wPrintStart [20:53:38]Write to MH i2c: 01 00 00 CD 04 D1 [20:53:38]Write i2c OK [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: 01 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: 01 07 00 [20:53:38]MH_I2C_Read... [20:53:38]Read from MH i2c: 01 07 00 CD 04 00 00 00 00 00 FF 0F E6 [20:53:38]RasterBufferAndPrint [20:53:38]line 小褔械褌 N : (1)320743 [20:53:38]line 袠袧袧: 02508201610067 [20:53:38]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:53:38]line 袩袪袨袛袗袞袗 [20:53:38]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:53:38]line 孝芯胁邪褉: 2710124130 [20:53:38]line 袗懈-92-袣-5 [20:53:38]line 10.100 * 66.40 [20:53:38]line = 670.64 [20:53:38]line 袧袛小 12% 袧小袩 1% [20:53:38]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:53:38]line 袨袣袪校袚袥袝袧袠袝: -0.64 [20:53:38]line 袠孝袨袚袨: 670.00 [20:53:38]line 袙薪械褋械薪芯: 670.00 [20:53:38]line 小袛袗效袗: 0.00 [20:53:38]line 袧小袩 1% : 5.93 [20:53:38]line 袧袛小 12% : 71.22 [20:53:38]line 袧邪谢懈褔薪褘屑懈: 670.00 [20:53:38]line 袘械蟹薪邪谢.: 0.00 [20:53:38]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:53:38]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:53:38]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:53:38]line 效械泻 251 21.06.2024 20:53 [20:53:38]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:53:38]line 袟袧袦: 0300000198 [20:53:38]line 袪袧袦: 0000000000092771 [20:53:38]line 袙械褉褋懈褟 袣袣袦: 001 [20:53:38]line 肖袦: 0000000000875083 [20:53:38]line 肖袛: 112083 [20:53:38]line 肖袩袛: 168002040614825 [20:53:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T205338&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112083&fm=168002040614825&tin=02508201610067®Number=0000000000092771&sum=67000 [20:53:39]OFD Sender: Processing packet 112083 [packets to send 38, broken 37] [20:53:39]ProducePacketName [20:53:39]name=ofd_packets/00112083 [20:53:39]OFD Sender: To server: 嚂鰌G, [20:53:39]CommunicateWithHost lk.salyk.kg:30040 [20:53:39]ConnectInit lk.salyk.kg [20:53:39]written 0, free lines is 4095 [20:53:39]Write to MH i2c: 01 00 00 F8 04 FC [20:53:39]Write i2c OK [20:53:39]MH_I2C_Read... [20:53:39]Read from MH i2c: 01 [20:53:39]MH_I2C_Read... [20:53:39]Read from MH i2c: 01 07 00 [20:53:39]MH_I2C_Read... [20:53:39]Read from MH i2c: 01 07 00 F8 04 00 00 00 00 00 D0 0C DF [20:53:39]RasterBufferAndPrint [20:53:39]line [20:53:39]line [20:53:39]line [20:53:39]line [20:53:39]line [20:53:39]written 0, free lines is 3283 [20:53:39]MH_Cut [20:53:39]Write to MH i2c: D1 01 00 FF 04 01 D5 [20:53:39]Write i2c OK [20:53:39]MH_I2C_Read... [20:53:39]Read from MH i2c: D1 [20:53:39]MH_I2C_Read... [20:53:39]Read from MH i2c: D1 01 00 [20:53:39]MH_I2C_Read... [20:53:39]Read from MH i2c: D1 01 00 FF 04 00 D4 [20:53:39]Write to MH i2c: 01 00 00 00 05 05 [20:53:39]Write i2c OK [20:53:39]MH_I2C_Read... [20:53:40]*** Cut start [20:53:40]*** Partial cut [20:53:40]*** CUTSNS_PIN = 1 [20:53:40]*** CUTSNS_PIN = 0 [20:53:40]*** Brake cut motor [20:53:41]Read from MH i2c: 01 [20:53:41]MH_I2C_Read... [20:53:41]*** Stop cut motor [20:53:41]*** Cut end [20:53:41]Read from MH i2c: 01 07 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: 01 07 00 00 05 00 00 00 00 00 FF 0F 1A [20:53:41]process_action close_receipt done [20:53:41]requested_data is exist [20:53:41]produce_requested_data [20:53:41]requested_item fm.sn is exist - process it [20:53:41]wFMCommunicate request_size=4 [20:53:41]MH_SAM_APDU [20:53:41]CAPDU: 80 11 00 00 [20:53:41]Write to MH i2c: E2 08 00 01 05 80 11 00 00 00 00 00 00 80 [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:41]Read from MH i2c: E2 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 17 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 17 00 01 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D2 [20:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:53:41]wFMCommunicate OK [20:53:41]requested_item fd.num is exist - process it [20:53:41]SAM_PROTO_GetFieldsCounters [20:53:41]wFMCommunicate request_size=4 [20:53:41]MH_SAM_APDU [20:53:41]CAPDU: 80 13 00 00 [20:53:41]Write to MH i2c: E2 08 00 02 05 80 13 00 00 00 00 00 00 83 [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:41]Read from MH i2c: E2 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 62 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 62 00 02 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [20:53:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:41]wFMCommunicate OK [20:53:41]SAM_PROTO_GetFieldsCounters done [20:53:41]requested_item shift.num is exist - process it [20:53:41]requested_item shift.opened is exist - process it [20:53:41]req_shift_opened [20:53:41]FM_GetShiftState [20:53:41]SAM_PROTO_GetShiftState [20:53:41]wFMCommunicate request_size=4 [20:53:41]MH_SAM_APDU [20:53:41]CAPDU: 80 13 01 00 [20:53:41]Write to MH i2c: E2 08 00 03 05 80 13 01 00 00 00 00 00 85 [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:41]Read from MH i2c: E2 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 0E 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 0E 00 03 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 02 [20:53:41]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:53:41]wFMCommunicate OK [20:53:41]SAM_PROTO_GetShiftState done [20:53:41]FM_GetShiftState done [20:53:41]req_shift_opened done [20:53:41]requested_item shift.open_date is exist - process it [20:53:41]req_shift_open_date [20:53:41]req_shift_open_date done [20:53:41]produce_requested_data done [20:53:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112083,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:53:41]process_action_free close_receipt [20:53:41]json_value_free [20:53:41]json_value_free done [20:53:41]process_json_proto returns [20:53:41]Send response to host [20:53:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112083,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:53:41]free response buf [20:53:41]execute_script done [20:53:41]execute_script returns [20:53:41]free content buf [20:53:41]Sock 9.Close socket [20:53:41]Sock 9.Thread stoped [20:55:16]accept exits with 7 [20:55:16]New connection [20:55:16]New thread 3066813796 created [20:55:16]Thread 3066957156 joined [20:55:16]Waiting for new connection... [20:55:16] Sock 7.Parse request [20:55:16]Sock 7.Check first char [20:55:16]Sock 7.First char is OK [20:55:16]request: POST /json_proto HTTP/1.0 [20:55:16]Method: POST [20:55:16]URL: /json_proto [20:55:16]Method is POST - this is cgi request [20:55:16]url: /json_proto [20:55:16]query_string will be loaded in cgi processing [20:55:16]execute_cgi json_proto POST (null) [20:55:16]execute_cgi path=json_proto method=POST [20:55:16]POST find Content-Length [20:55:16]Host: 172.17.59.68:8080 [20:55:16]Content-Length: 677 [20:55:16]Content-Type: application/json [20:55:16] [20:55:16]POST finish read [20:55:16]Found Content-Length = 677 [20:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:16]execute_script... [20:55:16]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)320744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:16]POST & json_proto [20:55:16]process_json_proto [20:55:16]json parsed OK: [20:55:16]protocol is kg_v1.0 [20:55:16]action value=close_receipt [20:55:16]process_action close_receipt [20:55:16]cmd_close_receipt [20:55:16]MH_GetDate [20:55:16]Write to MH i2c: F0 00 00 04 05 F8 [20:55:16]Write i2c OK [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: F0 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: F0 09 00 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: F0 09 00 04 05 00 B5 E8 75 66 BC EC 60 65 E6 [20:55:16]GetLastDocTimeStamp 1719003218 [20:55:16]current date 1719003317 [20:55:16]FM_GetShiftState [20:55:16]SAM_PROTO_GetShiftState [20:55:16]wFMCommunicate request_size=4 [20:55:16]MH_SAM_APDU [20:55:16]CAPDU: 80 13 01 00 [20:55:16]Write to MH i2c: E2 08 00 05 05 80 13 01 00 00 00 00 00 87 [20:55:16]Write i2c OK [20:55:16]MH_I2C_Read... [20:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:16]Read from MH i2c: E2 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: E2 0E 00 [20:55:16]MH_I2C_Read... [20:55:16]Read from MH i2c: E2 0E 00 05 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 04 [20:55:16]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:55:16]wFMCommunicate OK [20:55:16]SAM_PROTO_GetShiftState done [20:55:16]FM_GetShiftState done [20:55:16]opened in 1718933695 [20:55:16]opened+sec_in_day 1719020095 [20:55:16]quantity*price = 30012 [20:55:16]sum+1 = 30014 [20:55:16]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 252 21.06.2024 20:55 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112084 肖袩袛: 211878411229080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T205517&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112084&fm=211878411229080&tin=02508201610067®Number=0000000000092771&sum=30000 [20:55:17]StoreToDocumentArchive [20:55:17]shift 390 fd 112084 [20:55:17]save to /storage/0390/doc_00112084 [20:55:17]save last doc name /storage/0390/doc_00112084 to /storage/kkm_last_doc_name [20:55:17]save OK [20:55:17]Clear old archive folders... [20:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:17]tlvbuf is 01127AE0 [20:55:17]SAM_PROTO_ClearQueue [20:55:17]wFMCommunicate request_size=4 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 09 00 00 [20:55:17]Write to MH i2c: E2 08 00 12 05 80 09 00 00 00 00 00 00 89 [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [20:55:17]RAPDU: 90 00 [20:55:17]wFMCommunicate OK [20:55:17]SAM_PROTO_ClearQueue done [20:55:17]KKMCreateOFDPacket [20:55:17]OFDProtocolAddRootSTLVToBuf [20:55:17]FM_MakeSignedData [20:55:17]FM_MakeSignedData [20:55:17]SAM_PROTO_SignData [20:55:17]wFMCommunicate request_size=4 [20:55:17]MH_SAM_APDU [20:55:17]CAPDU: 80 0D 01 02 [20:55:17]Write to MH i2c: E2 08 00 13 05 80 0D 01 02 00 00 00 00 91 [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:17]Read from MH i2c: E2 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 [20:55:17]MH_I2C_Read... [20:55:17]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [20:55:17]RAPDU: 90 00 [20:55:17]wFMCommunicate OK [20:55:17]wFMCommunicate request_size=255 [20:55:17]MH_SAM_APDU [20:55:17]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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 FC 00 00 00 F4 03 04 00 B5 E8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B5 01 00 35 04 06 00 C0 [20:55:17]Write to MH i2c: E2 02 01 14 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 FC 00 00 00 F4 03 04 00 B5 E8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B5 01 00 35 04 06 00 C0 00 00 28 [20:55:17]Write i2c OK [20:55:17]MH_I2C_Read... [20:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:18]Read from MH i2c: E2 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: E2 03 00 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [20:55:18]RAPDU: 90 00 [20:55:18]wFMCommunicate OK [20:55:18]wFMCommunicate request_size=10 [20:55:18]MH_SAM_APDU [20:55:18]CAPDU: 80 0D 02 02 05 B3 C9 6F D7 98 [20:55:18]Write to MH i2c: E2 0D 00 15 05 80 0D 02 02 05 00 B3 C9 6F D7 98 00 00 F8 [20:55:18]Write i2c OK [20:55:18]MH_I2C_Read... [20:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:18]Read from MH i2c: E2 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: E2 03 00 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [20:55:18]RAPDU: 90 00 [20:55:18]wFMCommunicate OK [20:55:18]wFMCommunicate request_size=4 [20:55:18]MH_SAM_APDU [20:55:18]CAPDU: 80 0D 03 02 [20:55:18]Write to MH i2c: E2 08 00 16 05 80 0D 03 02 00 00 00 00 96 [20:55:18]Write i2c OK [20:55:18]MH_I2C_Read... [20:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:18]Read from MH i2c: E2 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: E2 0B 00 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: E2 0B 00 16 05 00 AC E4 53 AA 96 29 CD 02 90 00 B2 [20:55:18]RAPDU: AC E4 53 AA 96 29 CD 02 90 00 [20:55:18]wFMCommunicate OK [20:55:18]SAM_PROTO_SignData done [20:55:18]FM_MakeSignedData done [20:55:18]CreateOFDProtocolMessage [20:55:18]wFMCommunicate request_size=4 [20:55:18]MH_SAM_APDU [20:55:18]CAPDU: 80 11 00 00 [20:55:18]Write to MH i2c: E2 08 00 17 05 80 11 00 00 00 00 00 00 96 [20:55:18]Write i2c OK [20:55:18]MH_I2C_Read... [20:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:18]Read from MH i2c: E2 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: E2 17 00 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: E2 17 00 17 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E8 [20:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:55:18]wFMCommunicate OK [20:55:18]CreateOFDProtocolMessage done [20:55:18]OFDSenderStorePacket 112084 [20:55:18]StoreOFDPacket docnum=112084 [20:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5E 2E 07 01 A5 0F 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 FC 00 00 00 F4 03 04 00 B5 E8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B5 01 00 35 04 06 00 C0 B3 C9 6F D7 98 AC E4 53 AA 96 29 CD 02 [20:55:18]CheckFolder [20:55:18]dirname=/storage/ofd_packets [20:55:18]CheckFolder done [20:55:18]ProducePacketName [20:55:18]name=ofd_packets/00112084 [20:55:18]NVStorageSaveData ofd_packets/00112084 [20:55:18]File name is /storage/ofd_packets/00112084 [20:55:18]Write 301 bytes [20:55:18]NVStorageSaveData done [20:55:18]OFDSenderStorePacket done [20:55:18]KKMCreateOFDPacket done [20:55:18]NVStorageSaveData kkm_last_timestamp [20:55:18]File name is /storage/kkm_last_timestamp [20:55:18]Write 4 bytes [20:55:18]NVStorageSaveData done [20:55:18]ExternCall_PrintAddStr [20:55:18]wPrintStart [20:55:18]Write to MH i2c: 01 00 00 18 05 1D [20:55:18]Write i2c OK [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: 01 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: 01 07 00 [20:55:18]MH_I2C_Read... [20:55:18]Read from MH i2c: 01 07 00 18 05 00 00 00 00 00 FF 0F 32 [20:55:18]RasterBufferAndPrint [20:55:18]line 小褔械褌 N : (1)320744 [20:55:18]line 袠袧袧: 02508201610067 [20:55:18]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [20:55:18]line 袩袪袨袛袗袞袗 [20:55:18]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [20:55:18]line 孝芯胁邪褉: 2710124130 [20:55:18]line 袗懈-92-袣-5 [20:55:18]line 4.520 * 66.40 [20:55:18]line = 300.13 [20:55:18]line 袧袛小 12% 袧小袩 1% [20:55:18]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [20:55:18]line 袨袣袪校袚袥袝袧袠袝: -0.13 [20:55:18]line 袠孝袨袚袨: 300.00 [20:55:18]line 袙薪械褋械薪芯: 300.00 [20:55:18]line 小袛袗效袗: 0.00 [20:55:18]line 袧小袩 1% : 2.66 [20:55:18]line 袧袛小 12% : 31.87 [20:55:18]line 袧邪谢懈褔薪褘屑懈: 300.00 [20:55:18]line 袘械蟹薪邪谢.: 0.00 [20:55:18]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [20:55:18]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [20:55:18]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [20:55:18]line 效械泻 252 21.06.2024 20:55 [20:55:18]line 小屑械薪邪: 390 肖肖袛: 1.0 [20:55:18]line 袟袧袦: 0300000198 [20:55:18]line 袪袧袦: 0000000000092771 [20:55:18]line 袙械褉褋懈褟 袣袣袦: 001 [20:55:18]line 肖袦: 0000000000875083 [20:55:18]line 肖袛: 112084 [20:55:18]line 肖袩袛: 211878411229080 [20:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T205517&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112084&fm=211878411229080&tin=02508201610067®Number=0000000000092771&sum=30000 [20:55:18]written 0, free lines is 4095 [20:55:19]Write to MH i2c: 01 00 00 43 05 48 [20:55:19]Write i2c OK [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: 01 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: 01 07 00 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: 01 07 00 43 05 00 00 00 00 00 CF 0C 2A [20:55:19]RasterBufferAndPrint [20:55:19]line [20:55:19]line [20:55:19]line [20:55:19]line [20:55:19]line [20:55:19]written 0, free lines is 3286 [20:55:19]MH_Cut [20:55:19]Write to MH i2c: D1 01 00 4A 05 01 21 [20:55:19]Write i2c OK [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: D1 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: D1 01 00 [20:55:19]MH_I2C_Read... [20:55:19]Read from MH i2c: D1 01 00 4A 05 00 20 [20:55:19]Write to MH i2c: 01 00 00 4B 05 50 [20:55:19]Write i2c OK [20:55:19]MH_I2C_Read... [20:55:19]*** Cut start [20:55:19]*** Partial cut [20:55:19]*** CUTSNS_PIN = 1 [20:55:19]*** CUTSNS_PIN = 0 [20:55:20]*** Brake cut motor [20:55:20]Read from MH i2c: 01 [20:55:20]MH_I2C_Read... [20:55:20]*** Stop cut motor [20:55:20]Read from MH i2c: 01 07 00 [20:55:20]MH_I2C_Read... [20:55:20]*** Cut end [20:55:20]Read from MH i2c: 01 07 00 4B 05 00 00 00 00 00 FF 0F 65 [20:55:20]process_action close_receipt done [20:55:20]requested_data is exist [20:55:20]produce_requested_data [20:55:20]requested_item fm.sn is exist - process it [20:55:20]wFMCommunicate request_size=4 [20:55:20]MH_SAM_APDU [20:55:20]CAPDU: 80 11 00 00 [20:55:20]Write to MH i2c: E2 08 00 4C 05 80 11 00 00 00 00 00 00 CB [20:55:20]Write i2c OK [20:55:20]MH_I2C_Read... [20:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:20]Read from MH i2c: E2 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 17 00 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 17 00 4C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1D [20:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:55:20]wFMCommunicate OK [20:55:20]requested_item fd.num is exist - process it [20:55:20]SAM_PROTO_GetFieldsCounters [20:55:20]wFMCommunicate request_size=4 [20:55:20]MH_SAM_APDU [20:55:20]CAPDU: 80 13 00 00 [20:55:20]Write to MH i2c: E2 08 00 4D 05 80 13 00 00 00 00 00 00 CE [20:55:20]Write i2c OK [20:55:20]MH_I2C_Read... [20:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:20]Read from MH i2c: E2 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 62 00 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 62 00 4D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D4 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [20:55:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D4 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:20]wFMCommunicate OK [20:55:20]SAM_PROTO_GetFieldsCounters done [20:55:20]requested_item shift.num is exist - process it [20:55:20]requested_item shift.opened is exist - process it [20:55:20]req_shift_opened [20:55:20]FM_GetShiftState [20:55:20]SAM_PROTO_GetShiftState [20:55:20]wFMCommunicate request_size=4 [20:55:20]MH_SAM_APDU [20:55:20]CAPDU: 80 13 01 00 [20:55:20]Write to MH i2c: E2 08 00 4E 05 80 13 01 00 00 00 00 00 D0 [20:55:20]Write i2c OK [20:55:20]MH_I2C_Read... [20:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:20]Read from MH i2c: E2 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 0E 00 [20:55:20]MH_I2C_Read... [20:55:20]Read from MH i2c: E2 0E 00 4E 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 4D [20:55:20]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [20:55:20]wFMCommunicate OK [20:55:20]SAM_PROTO_GetShiftState done [20:55:20]FM_GetShiftState done [20:55:20]req_shift_opened done [20:55:20]requested_item shift.open_date is exist - process it [20:55:20]req_shift_open_date [20:55:20]req_shift_open_date done [20:55:20]produce_requested_data done [20:55:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112084,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [20:55:20]process_action_free close_receipt [20:55:20]json_value_free [20:55:20]json_value_free done [20:55:20]process_json_proto returns [20:55:20]Send response to host [20:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112084,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [20:55:20]free response buf [20:55:20]execute_script done [20:55:20]execute_script returns [20:55:20]free content buf [20:55:20]Sock 7.Close socket [20:55:20]Sock 7.Thread stoped [20:55:52]ConnectInit Can't connect to host [20:55:52]CommunicateWithHost connect error [20:55:52]CommunicateWithHost err = -1 [20:55:52]OFD Sender: Server communicate error [20:55:52]OFD Sender: Processing packet 112083 [packets to send 39, broken 37] [20:55:52]ProducePacketName [20:55:52]name=ofd_packets/00112083 [20:55:52]OFD Sender: To server: 嚂鰌G, [20:55:52]CommunicateWithHost lk.salyk.kg:30040 [20:55:52]ConnectInit lk.salyk.kg [20:55:52]Connected sock=7 [20:55:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 42 07 01 F2 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 52 E8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B5 01 00 35 04 06 00 98 CC 05 F3 CF A9 6C 81 3D B0 AE 69 17 9F [20:55:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C6 15 47 00 EC 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 30 38 37 35 30 38 33 10 04 04 00 D3 B5 01 00 F4 03 04 00 F8 7F 75 66 B6 04 01 00 00 97 3E AF D1 FE A8 2D 77 [20:55:52]CommunicateWithHost err = 0 [20:55:52]CheckOFDResponse [20:55:52]1017 (14) - 77093643461234 [20:55:52]1041 (16) - 0000000000875083 [20:55:52]1040 (4) - 112083 [20:55:52]1012 (4) - 21.06.2024 13:28 [20:55:52]1206 (1) - 0 [20:55:52]OFD Sender: Remove packet 112083 [20:55:52]ProducePacketName [20:55:52]name=ofd_packets/00112083 [20:55:52]NVStorageDeleteData [20:55:53]OFD Sender: Processing packet 112084 [packets to send 38, broken 37] [20:55:53]ProducePacketName [20:55:53]name=ofd_packets/00112084 [20:55:53]OFD Sender: To server: 嚂鰌G, [20:55:53]CommunicateWithHost lk.salyk.kg:30040 [20:55:53]ConnectInit lk.salyk.kg [20:55:53]Connected sock=7 [20:55:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5E 2E 07 01 A5 0F 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 FC 00 00 00 F4 03 04 00 B5 E8 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B5 01 00 35 04 06 00 C0 B3 C9 6F D7 98 AC E4 53 AA 96 29 CD 02 [20:55:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 91 B4 47 00 1F 31 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 30 38 37 35 30 38 33 10 04 04 00 D4 B5 01 00 F4 03 04 00 F9 7F 75 66 B6 04 01 00 00 45 2F D7 EE C8 B0 B4 B6 [20:55:53]CommunicateWithHost err = 0 [20:55:53]CheckOFDResponse [20:55:53]1017 (14) - 77093643461234 [20:55:53]1041 (16) - 0000000000875083 [20:55:53]1040 (4) - 112084 [20:55:53]1012 (4) - 21.06.2024 13:28 [20:55:53]1206 (1) - 0 [20:55:53]OFD Sender: Remove packet 112084 [20:55:53]ProducePacketName [20:55:53]name=ofd_packets/00112084 [20:55:53]NVStorageDeleteData [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]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:38]accept exits with 9 [21:01:38]New connection [21:01:38]New thread 3066957156 created [21:01:38]Thread 3066813796 joined [21:01:38]Waiting for new connection... [21:01:38] Sock 9.Parse request [21:01:38]Sock 9.Check first char [21:01:38]Sock 9.First char is OK [21:01:38]request: POST /json_proto HTTP/1.0 [21:01:38]Method: POST [21:01:38]URL: /json_proto [21:01:38]Method is POST - this is cgi request [21:01:38]url: /json_proto [21:01:38]query_string will be loaded in cgi processing [21:01:38]execute_cgi json_proto POST (null) [21:01:38]execute_cgi path=json_proto method=POST [21:01:38]POST find Content-Length [21:01:38]Host: 172.17.59.68:8080 [21:01:38]Content-Length: 677 [21:01:38]Content-Type: application/json [21:01:38] [21:01:38]POST finish read [21:01:38]Found Content-Length = 677 [21:01:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.690, "sum" : 510.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:38]execute_script... [21:01:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.690, "sum" : 510.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:38]POST & json_proto [21:01:38]process_json_proto [21:01:38]json parsed OK: [21:01:38]protocol is kg_v1.0 [21:01:38]action value=close_receipt [21:01:38]process_action close_receipt [21:01:38]cmd_close_receipt [21:01:38]MH_GetDate [21:01:38]Write to MH i2c: F0 00 00 4F 05 43 [21:01:38]Write i2c OK [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: F0 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: F0 09 00 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: F0 09 00 4F 05 00 34 EA 75 66 BC EC 60 65 B2 [21:01:38]GetLastDocTimeStamp 1719003317 [21:01:38]current date 1719003700 [21:01:38]FM_GetShiftState [21:01:38]SAM_PROTO_GetShiftState [21:01:38]wFMCommunicate request_size=4 [21:01:38]MH_SAM_APDU [21:01:38]CAPDU: 80 13 01 00 [21:01:38]Write to MH i2c: E2 08 00 50 05 80 13 01 00 00 00 00 00 D2 [21:01:38]Write i2c OK [21:01:38]MH_I2C_Read... [21:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:38]Read from MH i2c: E2 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: E2 0E 00 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: E2 0E 00 50 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 4F [21:01:38]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:01:38]wFMCommunicate OK [21:01:38]SAM_PROTO_GetShiftState done [21:01:38]FM_GetShiftState done [21:01:38]opened in 1718933695 [21:01:38]opened+sec_in_day 1719020095 [21:01:38]quantity*price = 51061 [21:01:38]sum+1 = 51063 [21:01:38]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.62 袠孝袨袚袨: 510.00 袙薪械褋械薪芯: 510.00 小袛袗效袗: 0.00 袧小袩 1% : 4.52 袧袛小 12% : 54.22 袧邪谢懈褔薪褘屑懈: 510.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 253 21.06.2024 21:01 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112085 肖袩袛: 136517858865534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210140&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112085&fm=136517858865534&tin=02508201610067®Number=0000000000092771&sum=51000 [21:01:39]StoreToDocumentArchive [21:01:39]shift 390 fd 112085 [21:01:39]save to /storage/0390/doc_00112085 [21:01:39]save last doc name /storage/0390/doc_00112085 to /storage/kkm_last_doc_name [21:01:39]save OK [21:01:39]Clear old archive folders... [21:01:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:39]tlvbuf is 01127820 [21:01:39]SAM_PROTO_ClearQueue [21:01:39]wFMCommunicate request_size=4 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 09 00 00 [21:01:39]Write to MH i2c: E2 08 00 5D 05 80 09 00 00 00 00 00 00 D4 [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [21:01:39]RAPDU: 90 00 [21:01:39]wFMCommunicate OK [21:01:39]SAM_PROTO_ClearQueue done [21:01:39]KKMCreateOFDPacket [21:01:39]OFDProtocolAddRootSTLVToBuf [21:01:39]FM_MakeSignedData [21:01:39]FM_MakeSignedData [21:01:39]SAM_PROTO_SignData [21:01:39]wFMCommunicate request_size=4 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 0D 01 02 [21:01:39]Write to MH i2c: E2 08 00 5E 05 80 0D 01 02 00 00 00 00 DC [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:40]Read from MH i2c: E2 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: E2 03 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [21:01:40]RAPDU: 90 00 [21:01:40]wFMCommunicate OK [21:01:40]wFMCommunicate request_size=255 [21:01:40]MH_SAM_APDU [21:01:40]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 0A 1E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 76 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 34 EA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B5 01 00 35 04 06 00 7C [21:01:40]Write to MH i2c: E2 02 01 5F 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 0A 1E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 76 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 34 EA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B5 01 00 35 04 06 00 7C 00 00 DE [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:40]Read from MH i2c: E2 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: E2 03 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [21:01:40]RAPDU: 90 00 [21:01:40]wFMCommunicate OK [21:01:40]wFMCommunicate request_size=10 [21:01:40]MH_SAM_APDU [21:01:40]CAPDU: 80 0D 02 02 05 29 8A 7B B1 7E [21:01:40]Write to MH i2c: E2 0D 00 60 05 80 0D 02 02 05 00 29 8A 7B B1 7E 00 00 46 [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:40]Read from MH i2c: E2 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: E2 03 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [21:01:40]RAPDU: 90 00 [21:01:40]wFMCommunicate OK [21:01:40]wFMCommunicate request_size=4 [21:01:40]MH_SAM_APDU [21:01:40]CAPDU: 80 0D 03 02 [21:01:40]Write to MH i2c: E2 08 00 61 05 80 0D 03 02 00 00 00 00 E1 [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:40]Read from MH i2c: E2 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: E2 0B 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: E2 0B 00 61 05 00 FF E1 0C C8 6B 77 06 D3 90 00 51 [21:01:40]RAPDU: FF E1 0C C8 6B 77 06 D3 90 00 [21:01:40]wFMCommunicate OK [21:01:40]SAM_PROTO_SignData done [21:01:40]FM_MakeSignedData done [21:01:40]CreateOFDProtocolMessage [21:01:40]wFMCommunicate request_size=4 [21:01:40]MH_SAM_APDU [21:01:40]CAPDU: 80 11 00 00 [21:01:40]Write to MH i2c: E2 08 00 62 05 80 11 00 00 00 00 00 00 E1 [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:40]Read from MH i2c: E2 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: E2 17 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: E2 17 00 62 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 33 [21:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:01:40]wFMCommunicate OK [21:01:40]CreateOFDProtocolMessage done [21:01:40]OFDSenderStorePacket 112085 [21:01:40]StoreOFDPacket docnum=112085 [21:01:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5D 05 07 01 9A 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 0A 1E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 76 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 34 EA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B5 01 00 35 04 06 00 7C 29 8A 7B B1 7E FF E1 0C C8 6B 77 06 D3 [21:01:40]CheckFolder [21:01:40]dirname=/storage/ofd_packets [21:01:40]CheckFolder done [21:01:40]ProducePacketName [21:01:40]name=ofd_packets/00112085 [21:01:40]NVStorageSaveData ofd_packets/00112085 [21:01:40]File name is /storage/ofd_packets/00112085 [21:01:40]Write 301 bytes [21:01:40]NVStorageSaveData done [21:01:40]OFDSenderStorePacket done [21:01:40]KKMCreateOFDPacket done [21:01:40]NVStorageSaveData kkm_last_timestamp [21:01:40]File name is /storage/kkm_last_timestamp [21:01:40]Write 4 bytes [21:01:40]NVStorageSaveData done [21:01:40]ExternCall_PrintAddStr [21:01:40]wPrintStart [21:01:40]Write to MH i2c: 01 00 00 63 05 68 [21:01:40]Write i2c OK [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: 01 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: 01 07 00 [21:01:40]MH_I2C_Read... [21:01:40]Read from MH i2c: 01 07 00 63 05 00 00 00 00 00 FF 0F 7D [21:01:40]RasterBufferAndPrint [21:01:40]line 小褔械褌 N : (1)320745 [21:01:40]line 袠袧袧: 02508201610067 [21:01:40]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:01:40]line 袩袪袨袛袗袞袗 [21:01:40]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [21:01:40]line 孝芯胁邪褉: 2710124130 [21:01:40]line 袗懈-92-袣-5 [21:01:40]line 7.690 * 66.40 [21:01:40]line = 510.62 [21:01:40]line 袧袛小 12% 袧小袩 1% [21:01:40]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:01:40]line 袨袣袪校袚袥袝袧袠袝: -0.62 [21:01:40]line 袠孝袨袚袨: 510.00 [21:01:40]line 袙薪械褋械薪芯: 510.00 [21:01:40]line 小袛袗效袗: 0.00 [21:01:40]line 袧小袩 1% : 4.52 [21:01:40]line 袧袛小 12% : 54.22 [21:01:40]line 袧邪谢懈褔薪褘屑懈: 510.00 [21:01:40]line 袘械蟹薪邪谢.: 0.00 [21:01:40]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:01:40]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:01:40]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:01:40]line 效械泻 253 21.06.2024 21:01 [21:01:40]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:01:40]line 袟袧袦: 0300000198 [21:01:40]line 袪袧袦: 0000000000092771 [21:01:40]line 袙械褉褋懈褟 袣袣袦: 001 [21:01:40]line 肖袦: 0000000000875083 [21:01:40]line 肖袛: 112085 [21:01:40]line 肖袩袛: 136517858865534 [21:01:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210140&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112085&fm=136517858865534&tin=02508201610067®Number=0000000000092771&sum=51000 [21:01:40]OFD Sender: Processing packet 112085 [packets to send 38, broken 37] [21:01:40]ProducePacketName [21:01:40]name=ofd_packets/00112085 [21:01:40]OFD Sender: To server: 嚂鰌G, [21:01:40]CommunicateWithHost lk.salyk.kg:30040 [21:01:40]ConnectInit lk.salyk.kg [21:01:40]written 0, free lines is 4095 [21:01:40]Connected sock=10 [21:01:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5D 05 07 01 9A 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 0A 1E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 76 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 34 EA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B5 01 00 35 04 06 00 7C 29 8A 7B B1 7E FF E1 0C C8 6B 77 06 D3 [21:01:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 15 CA 47 00 9C 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 30 38 37 35 30 38 33 10 04 04 00 D5 B5 01 00 F4 03 04 00 54 81 75 66 B6 04 01 00 00 7E 9B 8E 40 AD A6 AD 07 [21:01:41]CommunicateWithHost err = 0 [21:01:41]CheckOFDResponse [21:01:41]1017 (14) - 77093643461234 [21:01:41]1041 (16) - 0000000000875083 [21:01:41]1040 (4) - 112085 [21:01:41]1012 (4) - 21.06.2024 13:34 [21:01:41]1206 (1) - 0 [21:01:41]OFD Sender: Remove packet 112085 [21:01:41]ProducePacketName [21:01:41]name=ofd_packets/00112085 [21:01:41]NVStorageDeleteData [21:01:41]Write to MH i2c: 01 00 00 8E 05 93 [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: 01 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: 01 07 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: 01 07 00 8E 05 00 00 00 00 00 D0 0C 76 [21:01:41]RasterBufferAndPrint [21:01:41]line [21:01:41]line [21:01:41]line [21:01:41]line [21:01:41]line [21:01:41]written 0, free lines is 3287 [21:01:41]MH_Cut [21:01:41]Write to MH i2c: D1 01 00 95 05 01 6C [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: D1 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: D1 01 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: D1 01 00 95 05 00 6B [21:01:41]Write to MH i2c: 01 00 00 96 05 9B [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]OFD Sender: No OFD packet to send [21:01:42]*** Cut start [21:01:42]*** Partial cut [21:01:42]*** CUTSNS_PIN = 1 [21:01:42]*** CUTSNS_PIN = 0 [21:01:42]*** Brake cut motor [21:01:42]Read from MH i2c: 01 [21:01:42]MH_I2C_Read... [21:01:42]*** Stop cut motor [21:01:42]*** Cut end [21:01:42]Read from MH i2c: 01 07 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: 01 07 00 96 05 00 00 00 00 00 FF 0F B0 [21:01:42]process_action close_receipt done [21:01:42]requested_data is exist [21:01:42]produce_requested_data [21:01:42]requested_item fm.sn is exist - process it [21:01:42]wFMCommunicate request_size=4 [21:01:42]MH_SAM_APDU [21:01:42]CAPDU: 80 11 00 00 [21:01:42]Write to MH i2c: E2 08 00 97 05 80 11 00 00 00 00 00 00 16 [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:42]Read from MH i2c: E2 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 17 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 17 00 97 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 68 [21:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:01:42]wFMCommunicate OK [21:01:42]requested_item fd.num is exist - process it [21:01:42]SAM_PROTO_GetFieldsCounters [21:01:42]wFMCommunicate request_size=4 [21:01:42]MH_SAM_APDU [21:01:42]CAPDU: 80 13 00 00 [21:01:42]Write to MH i2c: E2 08 00 98 05 80 13 00 00 00 00 00 00 19 [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:42]Read from MH i2c: E2 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 62 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 62 00 98 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D5 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [21:01:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D5 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:42]wFMCommunicate OK [21:01:42]SAM_PROTO_GetFieldsCounters done [21:01:42]requested_item shift.num is exist - process it [21:01:42]requested_item shift.opened is exist - process it [21:01:42]req_shift_opened [21:01:42]FM_GetShiftState [21:01:42]SAM_PROTO_GetShiftState [21:01:42]wFMCommunicate request_size=4 [21:01:42]MH_SAM_APDU [21:01:42]CAPDU: 80 13 01 00 [21:01:42]Write to MH i2c: E2 08 00 99 05 80 13 01 00 00 00 00 00 1B [21:01:42]Write i2c OK [21:01:42]MH_I2C_Read... [21:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:42]Read from MH i2c: E2 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 0E 00 [21:01:42]MH_I2C_Read... [21:01:42]Read from MH i2c: E2 0E 00 99 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 98 [21:01:42]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:01:42]wFMCommunicate OK [21:01:42]SAM_PROTO_GetShiftState done [21:01:42]FM_GetShiftState done [21:01:42]req_shift_opened done [21:01:42]requested_item shift.open_date is exist - process it [21:01:42]req_shift_open_date [21:01:42]req_shift_open_date done [21:01:42]produce_requested_data done [21:01:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112085,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:01:42]process_action_free close_receipt [21:01:42]json_value_free [21:01:42]json_value_free done [21:01:42]process_json_proto returns [21:01:42]Send response to host [21:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112085,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:01:42]free response buf [21:01:42]execute_script done [21:01:42]execute_script returns [21:01:42]free content buf [21:01:42]Sock 9.Close socket [21:01:42]Sock 9.Thread stoped [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:44]accept exits with 7 [21:02:44]New connection [21:02:44]New thread 3066813796 created [21:02:44]Thread 3066957156 joined [21:02:44]Waiting for new connection... [21:02:44] Sock 7.Parse request [21:02:44]Sock 7.Check first char [21:02:44]Sock 7.First char is OK [21:02:44]request: POST /json_proto HTTP/1.0 [21:02:44]Method: POST [21:02:44]URL: /json_proto [21:02:44]Method is POST - this is cgi request [21:02:44]url: /json_proto [21:02:44]query_string will be loaded in cgi processing [21:02:44]execute_cgi json_proto POST (null) [21:02:44]execute_cgi path=json_proto method=POST [21:02:44]POST find Content-Length [21:02:44]Host: 172.17.59.68:8080 [21:02:44]Content-Length: 677 [21:02:44]Content-Type: application/json [21:02:44] [21:02:44]POST finish read [21:02:44]Found Content-Length = 677 [21:02:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:02:44]execute_script... [21:02: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)320746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:02:44]POST & json_proto [21:02:44]process_json_proto [21:02:44]json parsed OK: [21:02:44]protocol is kg_v1.0 [21:02:44]action value=close_receipt [21:02:44]process_action close_receipt [21:02:44]cmd_close_receipt [21:02:44]MH_GetDate [21:02:44]Write to MH i2c: F0 00 00 9A 05 8E [21:02:44]Write i2c OK [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: F0 [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: F0 09 00 [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: F0 09 00 9A 05 00 75 EA 75 66 BC EC 60 65 3E [21:02:44]GetLastDocTimeStamp 1719003700 [21:02:44]current date 1719003765 [21:02:44]FM_GetShiftState [21:02:44]SAM_PROTO_GetShiftState [21:02:44]wFMCommunicate request_size=4 [21:02:44]MH_SAM_APDU [21:02:44]CAPDU: 80 13 01 00 [21:02:44]Write to MH i2c: E2 08 00 9B 05 80 13 01 00 00 00 00 00 1D [21:02:44]Write i2c OK [21:02:44]MH_I2C_Read... [21:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:44]Read from MH i2c: E2 [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: E2 0E 00 [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: E2 0E 00 9B 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 9A [21:02:44]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:02:44]wFMCommunicate OK [21:02:44]SAM_PROTO_GetShiftState done [21:02:44]FM_GetShiftState done [21:02:44]opened in 1718933695 [21:02:44]opened+sec_in_day 1719020095 [21:02:44]quantity*price = 50065 [21:02:44]sum+1 = 50067 [21:02:44]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 254 21.06.2024 21:02 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112086 肖袩袛: 245533381841704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210245&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112086&fm=245533381841704&tin=02508201610067®Number=0000000000092771&sum=50000 [21:02:45]StoreToDocumentArchive [21:02:45]shift 390 fd 112086 [21:02:45]save to /storage/0390/doc_00112086 [21:02:45]save last doc name /storage/0390/doc_00112086 to /storage/kkm_last_doc_name [21:02:45]save OK [21:02:45]Clear old archive folders... [21:02:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:45]tlvbuf is 0114CE90 [21:02:45]SAM_PROTO_ClearQueue [21:02:45]wFMCommunicate request_size=4 [21:02:45]MH_SAM_APDU [21:02:45]CAPDU: 80 09 00 00 [21:02:45]Write to MH i2c: E2 08 00 A8 05 80 09 00 00 00 00 00 00 1F [21:02:45]Write i2c OK [21:02:45]MH_I2C_Read... [21:02:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:45]Read from MH i2c: E2 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: E2 03 00 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [21:02:45]RAPDU: 90 00 [21:02:45]wFMCommunicate OK [21:02:45]SAM_PROTO_ClearQueue done [21:02:45]KKMCreateOFDPacket [21:02:45]OFDProtocolAddRootSTLVToBuf [21:02:45]FM_MakeSignedData [21:02:45]FM_MakeSignedData [21:02:45]SAM_PROTO_SignData [21:02:45]wFMCommunicate request_size=4 [21:02:45]MH_SAM_APDU [21:02:45]CAPDU: 80 0D 01 02 [21:02:45]Write to MH i2c: E2 08 00 A9 05 80 0D 01 02 00 00 00 00 27 [21:02:45]Write i2c OK [21:02:45]MH_I2C_Read... [21:02:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:45]Read from MH i2c: E2 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: E2 03 00 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [21:02:45]RAPDU: 90 00 [21:02:45]wFMCommunicate OK [21:02:45]wFMCommunicate request_size=255 [21:02:45]MH_SAM_APDU [21:02: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 FE 00 00 00 F4 03 04 00 75 EA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B5 01 00 35 04 06 00 DF [21:02:45]Write to MH i2c: E2 02 01 AA 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 FE 00 00 00 F4 03 04 00 75 EA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B5 01 00 35 04 06 00 DF 00 00 05 [21:02:45]Write i2c OK [21:02:45]MH_I2C_Read... [21:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:46]Read from MH i2c: E2 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 03 00 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [21:02:46]RAPDU: 90 00 [21:02:46]wFMCommunicate OK [21:02:46]wFMCommunicate request_size=10 [21:02:46]MH_SAM_APDU [21:02:46]CAPDU: 80 0D 02 02 05 4F B2 01 53 28 [21:02:46]Write to MH i2c: E2 0D 00 AB 05 80 0D 02 02 05 00 4F B2 01 53 28 00 00 B1 [21:02:46]Write i2c OK [21:02:46]MH_I2C_Read... [21:02:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:46]Read from MH i2c: E2 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 03 00 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [21:02:46]RAPDU: 90 00 [21:02:46]wFMCommunicate OK [21:02:46]wFMCommunicate request_size=4 [21:02:46]MH_SAM_APDU [21:02:46]CAPDU: 80 0D 03 02 [21:02:46]Write to MH i2c: E2 08 00 AC 05 80 0D 03 02 00 00 00 00 2C [21:02:46]Write i2c OK [21:02:46]MH_I2C_Read... [21:02:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:46]Read from MH i2c: E2 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 0B 00 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 0B 00 AC 05 00 1E 03 C0 5E E9 31 D4 13 90 00 6D [21:02:46]RAPDU: 1E 03 C0 5E E9 31 D4 13 90 00 [21:02:46]wFMCommunicate OK [21:02:46]SAM_PROTO_SignData done [21:02:46]FM_MakeSignedData done [21:02:46]CreateOFDProtocolMessage [21:02:46]wFMCommunicate request_size=4 [21:02:46]MH_SAM_APDU [21:02:46]CAPDU: 80 11 00 00 [21:02:46]Write to MH i2c: E2 08 00 AD 05 80 11 00 00 00 00 00 00 2C [21:02:46]Write i2c OK [21:02:46]MH_I2C_Read... [21:02:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:46]Read from MH i2c: E2 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 17 00 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: E2 17 00 AD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7E [21:02:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:02:46]wFMCommunicate OK [21:02:46]CreateOFDProtocolMessage done [21:02:46]OFDSenderStorePacket 112086 [21:02:46]StoreOFDPacket docnum=112086 [21:02:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EA 05 07 01 91 3B 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 FE 00 00 00 F4 03 04 00 75 EA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B5 01 00 35 04 06 00 DF 4F B2 01 53 28 1E 03 C0 5E E9 31 D4 13 [21:02:46]CheckFolder [21:02:46]dirname=/storage/ofd_packets [21:02:46]CheckFolder done [21:02:46]ProducePacketName [21:02:46]name=ofd_packets/00112086 [21:02:46]NVStorageSaveData ofd_packets/00112086 [21:02:46]File name is /storage/ofd_packets/00112086 [21:02:46]Write 301 bytes [21:02:46]NVStorageSaveData done [21:02:46]OFDSenderStorePacket done [21:02:46]KKMCreateOFDPacket done [21:02:46]NVStorageSaveData kkm_last_timestamp [21:02:46]File name is /storage/kkm_last_timestamp [21:02:46]Write 4 bytes [21:02:46]NVStorageSaveData done [21:02:46]ExternCall_PrintAddStr [21:02:46]wPrintStart [21:02:46]Write to MH i2c: 01 00 00 AE 05 B3 [21:02:46]OFD Sender: Processing packet 112086 [packets to send 38, broken 37] [21:02:46]ProducePacketName [21:02:46]name=ofd_packets/00112086 [21:02:46]OFD Sender: To server: 嚂鰌G, [21:02:46]CommunicateWithHost lk.salyk.kg:30040 [21:02:46]ConnectInit lk.salyk.kg [21:02:46]Write i2c OK [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: 01 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: 01 07 00 [21:02:46]MH_I2C_Read... [21:02:46]Read from MH i2c: 01 07 00 AE 05 00 00 00 00 00 FF 0F C8 [21:02:46]RasterBufferAndPrint [21:02:46]line 小褔械褌 N : (1)320746 [21:02:46]line 袠袧袧: 02508201610067 [21:02:46]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:02:46]line 袩袪袨袛袗袞袗 [21:02:46]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [21:02:46]line 孝芯胁邪褉: 2710124130 [21:02:46]line 袗懈-92-袣-5 [21:02:46]line 7.540 * 66.40 [21:02:46]line = 500.66 [21:02:46]line 袧袛小 12% 袧小袩 1% [21:02:46]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:02:46]line 袨袣袪校袚袥袝袧袠袝: -0.66 [21:02:46]line 袠孝袨袚袨: 500.00 [21:02:46]line 袙薪械褋械薪芯: 500.00 [21:02:46]line 小袛袗效袗: 0.00 [21:02:46]line 袧小袩 1% : 4.43 [21:02:46]line 袧袛小 12% : 53.17 [21:02:46]line 袧邪谢懈褔薪褘屑懈: 500.00 [21:02:46]line 袘械蟹薪邪谢.: 0.00 [21:02:46]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:02:46]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:02:46]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:02:46]line 效械泻 254 21.06.2024 21:02 [21:02:46]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:02:46]line 袟袧袦: 0300000198 [21:02:46]line 袪袧袦: 0000000000092771 [21:02:46]line 袙械褉褋懈褟 袣袣袦: 001 [21:02:46]line 肖袦: 0000000000875083 [21:02:46]line 肖袛: 112086 [21:02:46]line 肖袩袛: 245533381841704 [21:02:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210245&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112086&fm=245533381841704&tin=02508201610067®Number=0000000000092771&sum=50000 [21:02:46]Connected sock=11 [21:02:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EA 05 07 01 91 3B 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 FE 00 00 00 F4 03 04 00 75 EA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B5 01 00 35 04 06 00 DF 4F B2 01 53 28 1E 03 C0 5E E9 31 D4 13 [21:02:46]written 0, free lines is 4095 [21:02:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5C FB 47 00 E9 C2 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 30 38 37 35 30 38 33 10 04 04 00 D6 B5 01 00 F4 03 04 00 96 81 75 66 B6 04 01 00 00 95 8F 3F 57 C1 7C 2A 36 [21:02:46]CommunicateWithHost err = 0 [21:02:46]CheckOFDResponse [21:02:46]1017 (14) - 77093643461234 [21:02:46]1041 (16) - 0000000000875083 [21:02:46]1040 (4) - 112086 [21:02:46]1012 (4) - 21.06.2024 13:35 [21:02:46]1206 (1) - 0 [21:02:46]OFD Sender: Remove packet 112086 [21:02:46]ProducePacketName [21:02:46]name=ofd_packets/00112086 [21:02:46]NVStorageDeleteData [21:02:47]Write to MH i2c: 01 00 00 D9 05 DE [21:02:47]Write i2c OK [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: 01 [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: 01 07 00 [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: 01 07 00 D9 05 00 00 00 00 00 DC 0C CD [21:02:47]RasterBufferAndPrint [21:02:47]line [21:02:47]line [21:02:47]line [21:02:47]line [21:02:47]line [21:02:47]written 0, free lines is 3298 [21:02:47]MH_Cut [21:02:47]Write to MH i2c: D1 01 00 E0 05 01 B7 [21:02:47]Write i2c OK [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: D1 [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: D1 01 00 [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: D1 01 00 E0 05 00 B6 [21:02:47]Write to MH i2c: 01 00 00 E1 05 E6 [21:02:47]Write i2c OK [21:02:47]MH_I2C_Read... [21:02:47]OFD Sender: No OFD packet to send [21:02:47]*** Cut start [21:02:47]*** Partial cut [21:02:47]*** CUTSNS_PIN = 1 [21:02:47]*** CUTSNS_PIN = 0 [21:02:48]*** Brake cut motor [21:02:48]Read from MH i2c: 01 [21:02:48]MH_I2C_Read... [21:02:48]*** Stop cut motor [21:02:48]*** Cut end [21:02:48]Read from MH i2c: 01 07 00 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: 01 07 00 E1 05 00 00 00 00 00 FF 0F FB [21:02:48]process_action close_receipt done [21:02:48]requested_data is exist [21:02:48]produce_requested_data [21:02:48]requested_item fm.sn is exist - process it [21:02:48]wFMCommunicate request_size=4 [21:02:48]MH_SAM_APDU [21:02:48]CAPDU: 80 11 00 00 [21:02:48]Write to MH i2c: E2 08 00 E2 05 80 11 00 00 00 00 00 00 61 [21:02:48]Write i2c OK [21:02:48]MH_I2C_Read... [21:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:48]Read from MH i2c: E2 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: E2 17 00 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: E2 17 00 E2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B3 [21:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:02:48]wFMCommunicate OK [21:02:48]requested_item fd.num is exist - process it [21:02:48]SAM_PROTO_GetFieldsCounters [21:02:48]wFMCommunicate request_size=4 [21:02:48]MH_SAM_APDU [21:02:48]CAPDU: 80 13 00 00 [21:02:48]Write to MH i2c: E2 08 00 E3 05 80 13 00 00 00 00 00 00 64 [21:02:48]Write i2c OK [21:02:48]MH_I2C_Read... [21:02:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:48]Read from MH i2c: E2 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: E2 62 00 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: E2 62 00 E3 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D6 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [21:02:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D6 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:48]wFMCommunicate OK [21:02:48]SAM_PROTO_GetFieldsCounters done [21:02:48]requested_item shift.num is exist - process it [21:02:48]requested_item shift.opened is exist - process it [21:02:48]req_shift_opened [21:02:48]FM_GetShiftState [21:02:48]SAM_PROTO_GetShiftState [21:02:48]wFMCommunicate request_size=4 [21:02:48]MH_SAM_APDU [21:02:48]CAPDU: 80 13 01 00 [21:02:48]Write to MH i2c: E2 08 00 E4 05 80 13 01 00 00 00 00 00 66 [21:02:48]Write i2c OK [21:02:48]MH_I2C_Read... [21:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:48]Read from MH i2c: E2 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: E2 0E 00 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: E2 0E 00 E4 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E3 [21:02:48]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:02:48]wFMCommunicate OK [21:02:48]SAM_PROTO_GetShiftState done [21:02:48]FM_GetShiftState done [21:02:48]req_shift_opened done [21:02:48]requested_item shift.open_date is exist - process it [21:02:48]req_shift_open_date [21:02:48]req_shift_open_date done [21:02:48]produce_requested_data done [21:02:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112086,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:02:48]process_action_free close_receipt [21:02:48]json_value_free [21:02:48]json_value_free done [21:02:48]process_json_proto returns [21:02:48]Send response to host [21:02:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112086,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:02:48]free response buf [21:02:48]execute_script done [21:02:48]execute_script returns [21:02:48]free content buf [21:02:48]Sock 7.Close socket [21:02:48]Sock 7.Thread stoped [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:55]accept exits with 9 [21:06:55]New connection [21:06:55]New thread 3066957156 created [21:06:55]Thread 3066813796 joined [21:06:55]Waiting for new connection... [21:06:55] Sock 9.Parse request [21:06:55]Sock 9.Check first char [21:06:55]Sock 9.First char is OK [21:06:55]request: POST /json_proto HTTP/1.0 [21:06:55]Method: POST [21:06:55]URL: /json_proto [21:06:55]Method is POST - this is cgi request [21:06:55]url: /json_proto [21:06:55]query_string will be loaded in cgi processing [21:06:55]execute_cgi json_proto POST (null) [21:06:55]execute_cgi path=json_proto method=POST [21:06:55]POST find Content-Length [21:06:55]Host: 172.17.59.68:8080 [21:06:55]Content-Length: 677 [21:06:55]Content-Type: application/json [21:06:55] [21:06:55]POST finish read [21:06:55]Found Content-Length = 677 [21:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.110, "sum" : 140.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:55]execute_script... [21:06: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)320747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.110, "sum" : 140.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:55]POST & json_proto [21:06:55]process_json_proto [21:06:55]json parsed OK: [21:06:55]protocol is kg_v1.0 [21:06:55]action value=close_receipt [21:06:55]process_action close_receipt [21:06:55]cmd_close_receipt [21:06:55]MH_GetDate [21:06:55]Write to MH i2c: F0 00 00 E5 05 D9 [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: F0 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: F0 09 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: F0 09 00 E5 05 00 71 EB 75 66 BC EC 60 65 86 [21:06:55]GetLastDocTimeStamp 1719003765 [21:06:55]current date 1719004017 [21:06:55]FM_GetShiftState [21:06:55]SAM_PROTO_GetShiftState [21:06:55]wFMCommunicate request_size=4 [21:06:55]MH_SAM_APDU [21:06:55]CAPDU: 80 13 01 00 [21:06:55]Write to MH i2c: E2 08 00 E6 05 80 13 01 00 00 00 00 00 68 [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:55]Read from MH i2c: E2 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 E6 05 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E5 [21:06:55]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:06:55]wFMCommunicate OK [21:06:55]SAM_PROTO_GetShiftState done [21:06:55]FM_GetShiftState done [21:06:55]opened in 1718933695 [21:06:55]opened+sec_in_day 1719020095 [21:06:55]quantity*price = 14010 [21:06:55]sum+1 = 14011 [21:06:55]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.10 袠孝袨袚袨: 140.00 袙薪械褋械薪芯: 140.00 小袛袗效袗: 0.00 袧小袩 1% : 1.24 袧袛小 12% : 14.88 袧邪谢懈褔薪褘屑懈: 140.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 255 21.06.2024 21:06 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112087 肖袩袛: 195178976910288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210657&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112087&fm=195178976910288&tin=02508201610067®Number=0000000000092771&sum=14000 [21:06:56]StoreToDocumentArchive [21:06:56]shift 390 fd 112087 [21:06:56]save to /storage/0390/doc_00112087 [21:06:56]save last doc name /storage/0390/doc_00112087 to /storage/kkm_last_doc_name [21:06:56]save OK [21:06:56]Clear old archive folders... [21:06:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:56]tlvbuf is 0111C110 [21:06:56]SAM_PROTO_ClearQueue [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 09 00 00 [21:06:56]Write to MH i2c: E2 08 00 F3 05 80 09 00 00 00 00 00 00 6A [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]SAM_PROTO_ClearQueue done [21:06:56]KKMCreateOFDPacket [21:06:56]OFDProtocolAddRootSTLVToBuf [21:06:56]FM_MakeSignedData [21:06:56]FM_MakeSignedData [21:06:56]SAM_PROTO_SignData [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 01 02 [21:06:56]Write to MH i2c: E2 08 00 F4 05 80 0D 01 02 00 00 00 00 72 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]wFMCommunicate request_size=255 [21:06:56]MH_SAM_APDU [21:06:56]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 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 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 D0 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 FF 00 00 00 F4 03 04 00 71 EB 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B5 01 00 35 04 06 00 B1 [21:06:56]Write to MH i2c: E2 02 01 F5 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 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 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 D0 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 FF 00 00 00 F4 03 04 00 71 EB 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B5 01 00 35 04 06 00 B1 00 00 D3 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 03 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [21:06:57]RAPDU: 90 00 [21:06:57]wFMCommunicate OK [21:06:57]wFMCommunicate request_size=10 [21:06:57]MH_SAM_APDU [21:06:57]CAPDU: 80 0D 02 02 05 83 A5 96 1B D0 [21:06:57]Write to MH i2c: E2 0D 00 F6 05 80 0D 02 02 05 00 83 A5 96 1B D0 00 00 28 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 03 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [21:06:57]RAPDU: 90 00 [21:06:57]wFMCommunicate OK [21:06:57]wFMCommunicate request_size=4 [21:06:57]MH_SAM_APDU [21:06:57]CAPDU: 80 0D 03 02 [21:06:57]Write to MH i2c: E2 08 00 F7 05 80 0D 03 02 00 00 00 00 77 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 0B 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 0B 00 F7 05 00 49 41 22 78 13 0B C9 AE 90 00 31 [21:06:57]RAPDU: 49 41 22 78 13 0B C9 AE 90 00 [21:06:57]wFMCommunicate OK [21:06:57]SAM_PROTO_SignData done [21:06:57]FM_MakeSignedData done [21:06:57]CreateOFDProtocolMessage [21:06:57]wFMCommunicate request_size=4 [21:06:57]MH_SAM_APDU [21:06:57]CAPDU: 80 11 00 00 [21:06:57]Write to MH i2c: E2 08 00 F8 05 80 11 00 00 00 00 00 00 77 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 17 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 17 00 F8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C9 [21:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:06:57]wFMCommunicate OK [21:06:57]CreateOFDProtocolMessage done [21:06:57]OFDSenderStorePacket 112087 [21:06:57]StoreOFDPacket docnum=112087 [21:06:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 68 35 07 01 AA 28 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 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 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 D0 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 FF 00 00 00 F4 03 04 00 71 EB 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B5 01 00 35 04 06 00 B1 83 A5 96 1B D0 49 41 22 78 13 0B C9 AE [21:06:57]CheckFolder [21:06:57]dirname=/storage/ofd_packets [21:06:57]CheckFolder done [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00112087 [21:06:57]NVStorageSaveData ofd_packets/00112087 [21:06:57]File name is /storage/ofd_packets/00112087 [21:06:57]Write 301 bytes [21:06:57]NVStorageSaveData done [21:06:57]OFDSenderStorePacket done [21:06:57]KKMCreateOFDPacket done [21:06:57]NVStorageSaveData kkm_last_timestamp [21:06:57]File name is /storage/kkm_last_timestamp [21:06:57]Write 4 bytes [21:06:57]NVStorageSaveData done [21:06:57]ExternCall_PrintAddStr [21:06:57]wPrintStart [21:06:57]Write to MH i2c: 01 00 00 F9 05 FE [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 F9 05 00 00 00 00 00 FF 0F 13 [21:06:57]RasterBufferAndPrint [21:06:57]line 小褔械褌 N : (1)320747 [21:06:57]line 袠袧袧: 02508201610067 [21:06:57]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:06:57]line 袩袪袨袛袗袞袗 [21:06:57]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [21:06:57]line 孝芯胁邪褉: 2710124130 [21:06:57]line 袗懈-92-袣-5 [21:06:57]line 2.110 * 66.40 [21:06:57]line = 140.10 [21:06:57]line 袧袛小 12% 袧小袩 1% [21:06:57]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:06:57]line 袨袣袪校袚袥袝袧袠袝: -0.10 [21:06:57]line 袠孝袨袚袨: 140.00 [21:06:57]line 袙薪械褋械薪芯: 140.00 [21:06:57]line 小袛袗效袗: 0.00 [21:06:57]line 袧小袩 1% : 1.24 [21:06:57]line 袧袛小 12% : 14.88 [21:06:57]line 袧邪谢懈褔薪褘屑懈: 140.00 [21:06:57]line 袘械蟹薪邪谢.: 0.00 [21:06:57]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:06:57]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:06:57]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:06:57]line 效械泻 255 21.06.2024 21:06 [21:06:57]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:06:57]line 袟袧袦: 0300000198 [21:06:57]line 袪袧袦: 0000000000092771 [21:06:57]line 袙械褉褋懈褟 袣袣袦: 001 [21:06:57]line 肖袦: 0000000000875083 [21:06:57]line 肖袛: 112087 [21:06:57]line 肖袩袛: 195178976910288 [21:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210657&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112087&fm=195178976910288&tin=02508201610067®Number=0000000000092771&sum=14000 [21:06:57]OFD Sender: Processing packet 112087 [packets to send 38, broken 37] [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00112087 [21:06:57]OFD Sender: To server: 嚂鰌G, [21:06:57]CommunicateWithHost lk.salyk.kg:30040 [21:06:57]ConnectInit lk.salyk.kg [21:06:57]written 0, free lines is 4095 [21:06:57]Connected sock=10 [21:06:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 68 35 07 01 AA 28 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 3E 08 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BA 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 D0 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 FF 00 00 00 F4 03 04 00 71 EB 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B5 01 00 35 04 06 00 B1 83 A5 96 1B D0 49 41 22 78 13 0B C9 AE [21:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 51 3A 47 00 9D 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 30 38 37 35 30 38 33 10 04 04 00 D7 B5 01 00 F4 03 04 00 91 82 75 66 B6 04 01 00 00 48 70 F9 C0 53 95 9D 8C [21:06:57]CommunicateWithHost err = 0 [21:06:57]CheckOFDResponse [21:06:57]1017 (14) - 77093643461234 [21:06:57]1041 (16) - 0000000000875083 [21:06:57]1040 (4) - 112087 [21:06:57]1012 (4) - 21.06.2024 13:39 [21:06:57]1206 (1) - 0 [21:06:57]OFD Sender: Remove packet 112087 [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00112087 [21:06:57]NVStorageDeleteData [21:06:58]Write to MH i2c: 01 00 00 24 06 2A [21:06:58]Write i2c OK [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: 01 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: 01 07 00 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: 01 07 00 24 06 00 00 00 00 00 C9 0C 06 [21:06:58]RasterBufferAndPrint [21:06:58]line [21:06:58]line [21:06:58]line [21:06:58]line [21:06:58]line [21:06:58]written 0, free lines is 3280 [21:06:58]MH_Cut [21:06:58]Write to MH i2c: D1 01 00 2B 06 01 03 [21:06:58]Write i2c OK [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: D1 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: D1 01 00 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: D1 01 00 2B 06 00 02 [21:06:58]Write to MH i2c: 01 00 00 2C 06 32 [21:06:58]Write i2c OK [21:06:58]MH_I2C_Read... [21:06:58]OFD Sender: No OFD packet to send [21:06:58]*** Cut start [21:06:58]*** Partial cut [21:06:58]*** CUTSNS_PIN = 1 [21:06:58]*** CUTSNS_PIN = 0 [21:06:59]*** Brake cut motor [21:06:59]Read from MH i2c: 01 [21:06:59]MH_I2C_Read... [21:06:59]*** Stop cut motor [21:06:59]*** Cut end [21:06:59]Read from MH i2c: 01 07 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: 01 07 00 2C 06 00 00 00 00 00 FF 0F 47 [21:06:59]process_action close_receipt done [21:06:59]requested_data is exist [21:06:59]produce_requested_data [21:06:59]requested_item fm.sn is exist - process it [21:06:59]wFMCommunicate request_size=4 [21:06:59]MH_SAM_APDU [21:06:59]CAPDU: 80 11 00 00 [21:06:59]Write to MH i2c: E2 08 00 2D 06 80 11 00 00 00 00 00 00 AD [21:06:59]Write i2c OK [21:06:59]MH_I2C_Read... [21:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:59]Read from MH i2c: E2 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 17 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 17 00 2D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FF [21:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:06:59]wFMCommunicate OK [21:06:59]requested_item fd.num is exist - process it [21:06:59]SAM_PROTO_GetFieldsCounters [21:06:59]wFMCommunicate request_size=4 [21:06:59]MH_SAM_APDU [21:06:59]CAPDU: 80 13 00 00 [21:06:59]Write to MH i2c: E2 08 00 2E 06 80 13 00 00 00 00 00 00 B0 [21:06:59]Write i2c OK [21:06:59]MH_I2C_Read... [21:06:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:59]Read from MH i2c: E2 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 62 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 62 00 2E 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D7 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [21:06:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D7 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:59]wFMCommunicate OK [21:06:59]SAM_PROTO_GetFieldsCounters done [21:06:59]requested_item shift.num is exist - process it [21:06:59]requested_item shift.opened is exist - process it [21:06:59]req_shift_opened [21:06:59]FM_GetShiftState [21:06:59]SAM_PROTO_GetShiftState [21:06:59]wFMCommunicate request_size=4 [21:06:59]MH_SAM_APDU [21:06:59]CAPDU: 80 13 01 00 [21:06:59]Write to MH i2c: E2 08 00 2F 06 80 13 01 00 00 00 00 00 B2 [21:06:59]Write i2c OK [21:06:59]MH_I2C_Read... [21:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:59]Read from MH i2c: E2 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 0E 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 0E 00 2F 06 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 2F [21:06:59]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:06:59]wFMCommunicate OK [21:06:59]SAM_PROTO_GetShiftState done [21:06:59]FM_GetShiftState done [21:06:59]req_shift_opened done [21:06:59]requested_item shift.open_date is exist - process it [21:06:59]req_shift_open_date [21:06:59]req_shift_open_date done [21:06:59]produce_requested_data done [21:06:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112087,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:06:59]process_action_free close_receipt [21:06:59]json_value_free [21:06:59]json_value_free done [21:06:59]process_json_proto returns [21:06:59]Send response to host [21:06:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112087,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:06:59]free response buf [21:06:59]execute_script done [21:06:59]execute_script returns [21:06:59]free content buf [21:06:59]Sock 9.Close socket [21:06:59]Sock 9.Thread stoped [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:56]accept exits with 7 [21:08:56]New connection [21:08:56]New thread 3066813796 created [21:08:56]Thread 3066957156 joined [21:08:56]Waiting for new connection... [21:08:56] Sock 7.Parse request [21:08:56]Sock 7.Check first char [21:08:56]Sock 7.First char is OK [21:08:56]request: POST /json_proto HTTP/1.0 [21:08:56]Method: POST [21:08:56]URL: /json_proto [21:08:56]Method is POST - this is cgi request [21:08:56]url: /json_proto [21:08:56]query_string will be loaded in cgi processing [21:08:56]execute_cgi json_proto POST (null) [21:08:56]execute_cgi path=json_proto method=POST [21:08:56]POST find Content-Length [21:08:56]Host: 172.17.59.68:8080 [21:08:56]Content-Length: 808 [21:08:56]Content-Type: application/json [21:08:56] [21:08:56]POST finish read [21:08:56]Found Content-Length = 808 [21:08:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:56]execute_script... [21:08: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)320748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:56]POST & json_proto [21:08:56]process_json_proto [21:08:56]json parsed OK: [21:08:56]protocol is kg_v1.0 [21:08:56]action value=close_receipt [21:08:56]process_action close_receipt [21:08:56]cmd_close_receipt [21:08:56]MH_GetDate [21:08:56]Write to MH i2c: F0 00 00 30 06 25 [21:08:56]Write i2c OK [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: F0 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: F0 09 00 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: F0 09 00 30 06 00 E9 EB 75 66 BC EC 60 65 4A [21:08:56]GetLastDocTimeStamp 1719004017 [21:08:56]current date 1719004137 [21:08:56]FM_GetShiftState [21:08:56]SAM_PROTO_GetShiftState [21:08:56]wFMCommunicate request_size=4 [21:08:56]MH_SAM_APDU [21:08:56]CAPDU: 80 13 01 00 [21:08:56]Write to MH i2c: E2 08 00 31 06 80 13 01 00 00 00 00 00 B4 [21:08:56]Write i2c OK [21:08:56]MH_I2C_Read... [21:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:56]Read from MH i2c: E2 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 0E 00 [21:08:56]MH_I2C_Read... [21:08:56]Read from MH i2c: E2 0E 00 31 06 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 31 [21:08:56]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:08:56]wFMCommunicate OK [21:08:56]SAM_PROTO_GetShiftState done [21:08:56]FM_GetShiftState done [21:08:56]opened in 1718933695 [21:08:56]opened+sec_in_day 1719020095 [21:08:56]quantity*price = 100064 [21:08:56]sum+1 = 100066 [21:08:56]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 1000.65 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 1000.65 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 256 21.06.2024 21:08 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112088 肖袩袛: 178167666562075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210857&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112088&fm=178167666562075&tin=02508201610067®Number=0000000000092771&sum=100065 [21:08:57]StoreToDocumentArchive [21:08:57]shift 390 fd 112088 [21:08:57]save to /storage/0390/doc_00112088 [21:08:57]save last doc name /storage/0390/doc_00112088 to /storage/kkm_last_doc_name [21:08:57]save OK [21:08:57]Clear old archive folders... [21:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:08:57]tlvbuf is 0114BED0 [21:08:57]SAM_PROTO_ClearQueue [21:08:57]wFMCommunicate request_size=4 [21:08:57]MH_SAM_APDU [21:08:57]CAPDU: 80 09 00 00 [21:08:57]Write to MH i2c: E2 08 00 3E 06 80 09 00 00 00 00 00 00 B6 [21:08:57]Write i2c OK [21:08:57]MH_I2C_Read... [21:08:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:57]Read from MH i2c: E2 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 03 00 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [21:08:57]RAPDU: 90 00 [21:08:57]wFMCommunicate OK [21:08:57]SAM_PROTO_ClearQueue done [21:08:57]KKMCreateOFDPacket [21:08:57]OFDProtocolAddRootSTLVToBuf [21:08:57]FM_MakeSignedData [21:08:57]FM_MakeSignedData [21:08:57]SAM_PROTO_SignData [21:08:57]wFMCommunicate request_size=4 [21:08:57]MH_SAM_APDU [21:08:57]CAPDU: 80 0D 01 02 [21:08:57]Write to MH i2c: E2 08 00 3F 06 80 0D 01 02 00 00 00 00 BE [21:08:57]Write i2c OK [21:08:57]MH_I2C_Read... [21:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:57]Read from MH i2c: E2 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 03 00 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [21:08:57]RAPDU: 90 00 [21:08:57]wFMCommunicate OK [21:08:57]wFMCommunicate request_size=255 [21:08:57]MH_SAM_APDU [21:08: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 E9 EB 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B5 01 00 35 04 06 00 A2 [21:08:57]Write to MH i2c: E2 02 01 40 06 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 E9 EB 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B5 01 00 35 04 06 00 A2 00 00 AB [21:08:57]Write i2c OK [21:08:57]MH_I2C_Read... [21:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:57]Read from MH i2c: E2 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 03 00 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [21:08:57]RAPDU: 90 00 [21:08:57]wFMCommunicate OK [21:08:57]wFMCommunicate request_size=10 [21:08:57]MH_SAM_APDU [21:08:57]CAPDU: 80 0D 02 02 05 0A E4 79 D4 1B [21:08:57]Write to MH i2c: E2 0D 00 41 06 80 0D 02 02 05 00 0A E4 79 D4 1B 00 00 21 [21:08:57]Write i2c OK [21:08:57]MH_I2C_Read... [21:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:57]Read from MH i2c: E2 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 03 00 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [21:08:57]RAPDU: 90 00 [21:08:57]wFMCommunicate OK [21:08:57]wFMCommunicate request_size=4 [21:08:57]MH_SAM_APDU [21:08:57]CAPDU: 80 0D 03 02 [21:08:57]Write to MH i2c: E2 08 00 42 06 80 0D 03 02 00 00 00 00 C3 [21:08:57]Write i2c OK [21:08:57]MH_I2C_Read... [21:08:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:57]Read from MH i2c: E2 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 0B 00 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 0B 00 42 06 00 6D F9 16 C2 0E E4 96 3D 90 00 C7 [21:08:57]RAPDU: 6D F9 16 C2 0E E4 96 3D 90 00 [21:08:57]wFMCommunicate OK [21:08:57]SAM_PROTO_SignData done [21:08:57]FM_MakeSignedData done [21:08:57]CreateOFDProtocolMessage [21:08:57]wFMCommunicate request_size=4 [21:08:57]MH_SAM_APDU [21:08:57]CAPDU: 80 11 00 00 [21:08:57]Write to MH i2c: E2 08 00 43 06 80 11 00 00 00 00 00 00 C3 [21:08:57]Write i2c OK [21:08:57]MH_I2C_Read... [21:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:57]Read from MH i2c: E2 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 17 00 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: E2 17 00 43 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 15 [21:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:08:57]wFMCommunicate OK [21:08:57]CreateOFDProtocolMessage done [21:08:57]OFDSenderStorePacket 112088 [21:08:57]StoreOFDPacket docnum=112088 [21:08:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DE 4C 07 01 7C 8F 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 E9 EB 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B5 01 00 35 04 06 00 A2 0A E4 79 D4 1B 6D F9 16 C2 0E E4 96 3D [21:08:57]CheckFolder [21:08:57]dirname=/storage/ofd_packets [21:08:57]CheckFolder done [21:08:57]ProducePacketName [21:08:57]name=ofd_packets/00112088 [21:08:57]NVStorageSaveData ofd_packets/00112088 [21:08:57]File name is /storage/ofd_packets/00112088 [21:08:57]Write 301 bytes [21:08:57]NVStorageSaveData done [21:08:57]OFDSenderStorePacket done [21:08:57]KKMCreateOFDPacket done [21:08:57]NVStorageSaveData kkm_last_timestamp [21:08:57]File name is /storage/kkm_last_timestamp [21:08:57]Write 4 bytes [21:08:57]NVStorageSaveData done [21:08:57]ExternCall_PrintAddStr [21:08:57]wPrintStart [21:08:57]Write to MH i2c: 01 00 00 44 06 4A [21:08:57]Write i2c OK [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: 01 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: 01 07 00 [21:08:57]MH_I2C_Read... [21:08:57]Read from MH i2c: 01 07 00 44 06 00 00 00 00 00 FF 0F 5F [21:08:57]RasterBufferAndPrint [21:08:57]line 小褔械褌 N : (1)320748 [21:08:57]line 袠袧袧: 02508201610067 [21:08:57]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:08:57]line 袩袪袨袛袗袞袗 [21:08:57]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [21:08:57]line 孝芯胁邪褉: 2710124130 [21:08:57]line 袗懈-92-袣-5 [21:08:57]line 15.070 * 66.40 [21:08:57]line = 1000.65 [21:08:57]line 袧袛小 12% 袧小袩 1% [21:08:57]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:08:57]line 袠孝袨袚袨: 1000.65 [21:08:57]line 袧小袩 1% : 8.85 [21:08:57]line 袧袛小 12% : 106.26 [21:08:57]line 袧邪谢懈褔薪褘屑懈: 0.00 [21:08:57]line 袘械蟹薪邪谢.: 1000.65 [21:08:57]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:08:57]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:08:57]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:08:57]line 效械泻 256 21.06.2024 21:08 [21:08:57]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:08:57]line 袟袧袦: 0300000198 [21:08:57]line 袪袧袦: 0000000000092771 [21:08:57]line 袙械褉褋懈褟 袣袣袦: 001 [21:08:57]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [21:08:57]line 肖袦: 0000000000875083 [21:08:57]line 肖袛: 112088 [21:08:57]line 肖袩袛: 178167666562075 [21:08:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210857&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112088&fm=178167666562075&tin=02508201610067®Number=0000000000092771&sum=100065 [21:08:58]written 0, free lines is 4095 [21:08:58]OFD Sender: Processing packet 112088 [packets to send 38, broken 37] [21:08:58]ProducePacketName [21:08:58]name=ofd_packets/00112088 [21:08:58]OFD Sender: To server: 嚂鰌G, [21:08:58]CommunicateWithHost lk.salyk.kg:30040 [21:08:58]ConnectInit lk.salyk.kg [21:08:58]Connected sock=10 [21:08:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DE 4C 07 01 7C 8F 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 E9 EB 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B5 01 00 35 04 06 00 A2 0A E4 79 D4 1B 6D F9 16 C2 0E E4 96 3D [21:08:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 07 0C 47 00 D7 75 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 30 38 37 35 30 38 33 10 04 04 00 D8 B5 01 00 F4 03 04 00 0A 83 75 66 B6 04 01 00 00 76 02 F5 0A 80 9F 12 91 [21:08:58]CommunicateWithHost err = 0 [21:08:58]CheckOFDResponse [21:08:58]1017 (14) - 77093643461234 [21:08:58]1041 (16) - 0000000000875083 [21:08:58]1040 (4) - 112088 [21:08:58]1012 (4) - 21.06.2024 13:41 [21:08:58]1206 (1) - 0 [21:08:58]OFD Sender: Remove packet 112088 [21:08:58]ProducePacketName [21:08:58]name=ofd_packets/00112088 [21:08:58]NVStorageDeleteData [21:08:58]Write to MH i2c: 01 00 00 6E 06 74 [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: 01 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: 01 07 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 EF 0C 76 [21:08:58]RasterBufferAndPrint [21:08:58]line [21:08:58]line [21:08:58]line [21:08:58]line [21:08:58]line [21:08:58]written 0, free lines is 3318 [21:08:58]MH_Cut [21:08:58]Write to MH i2c: D1 01 00 75 06 01 4D [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: D1 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: D1 01 00 [21:08:58]MH_I2C_Read... [21:08:58]Read from MH i2c: D1 01 00 75 06 00 4C [21:08:58]Write to MH i2c: 01 00 00 76 06 7C [21:08:58]Write i2c OK [21:08:58]MH_I2C_Read... [21:08:58]OFD Sender: No OFD packet to send [21:08:59]*** Cut start [21:08:59]*** Partial cut [21:08:59]*** CUTSNS_PIN = 1 [21:08:59]*** CUTSNS_PIN = 0 [21:08:59]*** Brake cut motor [21:08:59]Read from MH i2c: 01 [21:08:59]MH_I2C_Read... [21:08:59]*** Stop cut motor [21:08:59]*** Cut end [21:08:59]Read from MH i2c: 01 07 00 [21:08:59]MH_I2C_Read... [21:08:59]Read from MH i2c: 01 07 00 76 06 00 00 00 00 00 FF 0F 91 [21:08:59]process_action close_receipt done [21:08:59]requested_data is exist [21:08:59]produce_requested_data [21:08:59]requested_item fm.sn is exist - process it [21:08:59]wFMCommunicate request_size=4 [21:08:59]MH_SAM_APDU [21:08:59]CAPDU: 80 11 00 00 [21:08:59]Write to MH i2c: E2 08 00 77 06 80 11 00 00 00 00 00 00 F7 [21:08:59]Write i2c OK [21:08:59]MH_I2C_Read... [21:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:00]Read from MH i2c: E2 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: E2 17 00 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: E2 17 00 77 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 49 [21:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:09:00]wFMCommunicate OK [21:09:00]requested_item fd.num is exist - process it [21:09:00]SAM_PROTO_GetFieldsCounters [21:09:00]wFMCommunicate request_size=4 [21:09:00]MH_SAM_APDU [21:09:00]CAPDU: 80 13 00 00 [21:09:00]Write to MH i2c: E2 08 00 78 06 80 13 00 00 00 00 00 00 FA [21:09:00]Write i2c OK [21:09:00]MH_I2C_Read... [21:09:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:00]Read from MH i2c: E2 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: E2 62 00 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: E2 62 00 78 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D8 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [21:09:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D8 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:00]wFMCommunicate OK [21:09:00]SAM_PROTO_GetFieldsCounters done [21:09:00]requested_item shift.num is exist - process it [21:09:00]requested_item shift.opened is exist - process it [21:09:00]req_shift_opened [21:09:00]FM_GetShiftState [21:09:00]SAM_PROTO_GetShiftState [21:09:00]wFMCommunicate request_size=4 [21:09:00]MH_SAM_APDU [21:09:00]CAPDU: 80 13 01 00 [21:09:00]Write to MH i2c: E2 08 00 79 06 80 13 01 00 00 00 00 00 FC [21:09:00]Write i2c OK [21:09:00]MH_I2C_Read... [21:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:00]Read from MH i2c: E2 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: E2 0E 00 [21:09:00]MH_I2C_Read... [21:09:00]Read from MH i2c: E2 0E 00 79 06 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 79 [21:09:00]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:09:00]wFMCommunicate OK [21:09:00]SAM_PROTO_GetShiftState done [21:09:00]FM_GetShiftState done [21:09:00]req_shift_opened done [21:09:00]requested_item shift.open_date is exist - process it [21:09:00]req_shift_open_date [21:09:00]req_shift_open_date done [21:09:00]produce_requested_data done [21:09:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112088,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:09:00]process_action_free close_receipt [21:09:00]json_value_free [21:09:00]json_value_free done [21:09:00]process_json_proto returns [21:09:00]Send response to host [21:09:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112088,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:09:00]free response buf [21:09:00]execute_script done [21:09:00]execute_script returns [21:09:00]free content buf [21:09:00]Sock 7.Close socket [21:09:00]Sock 7.Thread stoped [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:52]accept exits with 9 [21:09:52]New connection [21:09:52]New thread 3066957156 created [21:09:52]Thread 3066813796 joined [21:09:52]Waiting for new connection... [21:09:52] Sock 9.Parse request [21:09:52]Sock 9.Check first char [21:09:52]Sock 9.First char is OK [21:09:52]request: POST /json_proto HTTP/1.0 [21:09:52]Method: POST [21:09:52]URL: /json_proto [21:09:52]Method is POST - this is cgi request [21:09:52]url: /json_proto [21:09:52]query_string will be loaded in cgi processing [21:09:52]execute_cgi json_proto POST (null) [21:09:52]execute_cgi path=json_proto method=POST [21:09:52]POST find Content-Length [21:09:52]Host: 172.17.59.68:8080 [21:09:52]Content-Length: 674 [21:09:52]Content-Type: application/json [21:09:52] [21:09:52]POST finish read [21:09:52]Found Content-Length = 674 [21:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:09:52]execute_script... [21:09: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)320749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:09:52]POST & json_proto [21:09:52]process_json_proto [21:09:52]json parsed OK: [21:09:52]protocol is kg_v1.0 [21:09:52]action value=close_receipt [21:09:52]process_action close_receipt [21:09:52]cmd_close_receipt [21:09:52]MH_GetDate [21:09:52]Write to MH i2c: F0 00 00 7A 06 6F [21:09:52]Write i2c OK [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: F0 [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: F0 09 00 [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: F0 09 00 7A 06 00 21 EC 75 66 BC EC 60 65 CD [21:09:52]GetLastDocTimeStamp 1719004137 [21:09:52]current date 1719004193 [21:09:52]FM_GetShiftState [21:09:52]SAM_PROTO_GetShiftState [21:09:52]wFMCommunicate request_size=4 [21:09:52]MH_SAM_APDU [21:09:52]CAPDU: 80 13 01 00 [21:09:52]Write to MH i2c: E2 08 00 7B 06 80 13 01 00 00 00 00 00 FE [21:09:52]Write i2c OK [21:09:52]MH_I2C_Read... [21:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:52]Read from MH i2c: E2 [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: E2 0E 00 [21:09:52]MH_I2C_Read... [21:09:52]Read from MH i2c: E2 0E 00 7B 06 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 7B [21:09:52]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:09:52]wFMCommunicate OK [21:09:52]SAM_PROTO_GetShiftState done [21:09:52]FM_GetShiftState done [21:09:52]opened in 1718933695 [21:09:52]opened+sec_in_day 1719020095 [21:09:52]quantity*price = 50009 [21:09:52]sum+1 = 50010 [21:09:52]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.09 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.11 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 257 21.06.2024 21:09 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112089 肖袩袛: 10561335150108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210953&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112089&fm=10561335150108&tin=02508201610067®Number=0000000000092771&sum=50000 [21:09:53]StoreToDocumentArchive [21:09:53]shift 390 fd 112089 [21:09:53]save to /storage/0390/doc_00112089 [21:09:53]save last doc name /storage/0390/doc_00112089 to /storage/kkm_last_doc_name [21:09:53]save OK [21:09:53]Clear old archive folders... [21:09:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:09:53]tlvbuf is 0114BB60 [21:09:53]SAM_PROTO_ClearQueue [21:09:53]wFMCommunicate request_size=4 [21:09:53]MH_SAM_APDU [21:09:53]CAPDU: 80 09 00 00 [21:09:53]Write to MH i2c: E2 08 00 88 06 80 09 00 00 00 00 00 00 00 [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 [21:09:53]MH_I2C_Read... [21:09:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:53]Read from MH i2c: E2 03 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 03 00 88 06 00 90 00 02 [21:09:53]RAPDU: 90 00 [21:09:53]wFMCommunicate OK [21:09:53]SAM_PROTO_ClearQueue done [21:09:53]KKMCreateOFDPacket [21:09:53]OFDProtocolAddRootSTLVToBuf [21:09:53]FM_MakeSignedData [21:09:53]FM_MakeSignedData [21:09:53]SAM_PROTO_SignData [21:09:53]wFMCommunicate request_size=4 [21:09:53]MH_SAM_APDU [21:09:53]CAPDU: 80 0D 01 02 [21:09:53]Write to MH i2c: E2 08 00 89 06 80 0D 01 02 00 00 00 00 08 [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:53]Read from MH i2c: E2 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 03 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [21:09:53]RAPDU: 90 00 [21:09:53]wFMCommunicate OK [21:09:53]wFMCommunicate request_size=255 [21:09:53]MH_SAM_APDU [21:09:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 01 01 00 00 F4 03 04 00 21 EC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B5 01 00 35 04 06 00 09 9B 00 A1 [21:09:53]Write to MH i2c: E2 02 01 8A 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 01 01 00 00 F4 03 04 00 21 EC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B5 01 00 35 04 06 00 09 9B 00 A1 00 00 F7 [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:53]Read from MH i2c: E2 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 03 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [21:09:53]RAPDU: 90 00 [21:09:53]wFMCommunicate OK [21:09:53]wFMCommunicate request_size=7 [21:09:53]MH_SAM_APDU [21:09:53]CAPDU: 80 0D 02 02 02 46 1C [21:09:53]Write to MH i2c: E2 0A 00 8B 06 80 0D 02 02 02 00 46 1C 00 00 71 [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:53]Read from MH i2c: E2 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 03 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [21:09:53]RAPDU: 90 00 [21:09:53]wFMCommunicate OK [21:09:53]wFMCommunicate request_size=4 [21:09:53]MH_SAM_APDU [21:09:53]CAPDU: 80 0D 03 02 [21:09:53]Write to MH i2c: E2 08 00 8C 06 80 0D 03 02 00 00 00 00 0D [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:53]Read from MH i2c: E2 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 0B 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 0B 00 8C 06 00 A5 10 FB 84 03 0C 81 CE 90 00 A0 [21:09:53]RAPDU: A5 10 FB 84 03 0C 81 CE 90 00 [21:09:53]wFMCommunicate OK [21:09:53]SAM_PROTO_SignData done [21:09:53]FM_MakeSignedData done [21:09:53]CreateOFDProtocolMessage [21:09:53]wFMCommunicate request_size=4 [21:09:53]MH_SAM_APDU [21:09:53]CAPDU: 80 11 00 00 [21:09:53]Write to MH i2c: E2 08 00 8D 06 80 11 00 00 00 00 00 00 0D [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:53]Read from MH i2c: E2 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 17 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: E2 17 00 8D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5F [21:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:09:53]wFMCommunicate OK [21:09:53]CreateOFDProtocolMessage done [21:09:53]OFDSenderStorePacket 112089 [21:09:53]StoreOFDPacket docnum=112089 [21:09:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F9 40 04 01 95 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 01 01 00 00 F4 03 04 00 21 EC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B5 01 00 35 04 06 00 09 9B 00 A1 46 1C A5 10 FB 84 03 0C 81 CE [21:09:53]CheckFolder [21:09:53]dirname=/storage/ofd_packets [21:09:53]CheckFolder done [21:09:53]ProducePacketName [21:09:53]name=ofd_packets/00112089 [21:09:53]NVStorageSaveData ofd_packets/00112089 [21:09:53]File name is /storage/ofd_packets/00112089 [21:09:53]Write 298 bytes [21:09:53]NVStorageSaveData done [21:09:53]OFDSenderStorePacket done [21:09:53]KKMCreateOFDPacket done [21:09:53]NVStorageSaveData kkm_last_timestamp [21:09:53]File name is /storage/kkm_last_timestamp [21:09:53]Write 4 bytes [21:09:53]NVStorageSaveData done [21:09:53]ExternCall_PrintAddStr [21:09:53]wPrintStart [21:09:53]Write to MH i2c: 01 00 00 8E 06 94 [21:09:53]Write i2c OK [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: 01 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: 01 07 00 [21:09:53]MH_I2C_Read... [21:09:53]Read from MH i2c: 01 07 00 8E 06 00 00 00 00 00 FF 0F A9 [21:09:53]RasterBufferAndPrint [21:09:53]line 小褔械褌 N : (1)320749 [21:09:53]line 袠袧袧: 02508201610067 [21:09:53]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:09:53]line 袩袪袨袛袗袞袗 [21:09:53]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [21:09:53]line 孝芯胁邪褉: 2710194210 [21:09:53]line 袛孝-袣-5 [21:09:53]line 6.860 * 72.90 [21:09:53]line = 500.09 [21:09:53]line 袧袛小 12% 袧小袩 1% [21:09:53]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:09:53]line 袨袣袪校袚袥袝袧袠袝: -0.09 [21:09:53]line 袠孝袨袚袨: 500.00 [21:09:53]line 袙薪械褋械薪芯: 500.00 [21:09:53]line 小袛袗效袗: 0.00 [21:09:53]line 袧小袩 1% : 4.43 [21:09:53]line 袧袛小 12% : 53.11 [21:09:53]line 袧邪谢懈褔薪褘屑懈: 500.00 [21:09:53]line 袘械蟹薪邪谢.: 0.00 [21:09:53]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:09:53]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:09:53]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:09:53]line 效械泻 257 21.06.2024 21:09 [21:09:53]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:09:53]line 袟袧袦: 0300000198 [21:09:53]line 袪袧袦: 0000000000092771 [21:09:53]line 袙械褉褋懈褟 袣袣袦: 001 [21:09:53]line 肖袦: 0000000000875083 [21:09:53]line 肖袛: 112089 [21:09:53]line 肖袩袛: 10561335150108 [21:09:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T210953&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112089&fm=10561335150108&tin=02508201610067®Number=0000000000092771&sum=50000 [21:09:54]OFD Sender: Processing packet 112089 [packets to send 38, broken 37] [21:09:54]ProducePacketName [21:09:54]name=ofd_packets/00112089 [21:09:54]OFD Sender: To server: 嚂鰌G, [21:09:54]CommunicateWithHost lk.salyk.kg:30040 [21:09:54]ConnectInit lk.salyk.kg [21:09:54]written 0, free lines is 4095 [21:09:54]Connected sock=10 [21:09:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F9 40 04 01 95 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 01 01 00 00 F4 03 04 00 21 EC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B5 01 00 35 04 06 00 09 9B 00 A1 46 1C A5 10 FB 84 03 0C 81 CE [21:09:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 91 AF 47 00 B8 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 30 38 37 35 30 38 33 10 04 04 00 D9 B5 01 00 F4 03 04 00 42 83 75 66 B6 04 01 00 00 4F 7C A2 03 59 5E FF 78 [21:09:54]CommunicateWithHost err = 0 [21:09:54]CheckOFDResponse [21:09:54]1017 (14) - 77093643461234 [21:09:54]1041 (16) - 0000000000875083 [21:09:54]1040 (4) - 112089 [21:09:54]1012 (4) - 21.06.2024 13:42 [21:09:54]1206 (1) - 0 [21:09:54]OFD Sender: Remove packet 112089 [21:09:54]ProducePacketName [21:09:54]name=ofd_packets/00112089 [21:09:54]NVStorageDeleteData [21:09:54]Write to MH i2c: 01 00 00 B9 06 BF [21:09:54]Write i2c OK [21:09:54]MH_I2C_Read... [21:09:54]Read from MH i2c: 01 [21:09:54]MH_I2C_Read... [21:09:54]Read from MH i2c: 01 07 00 [21:09:54]MH_I2C_Read... [21:09:54]Read from MH i2c: 01 07 00 B9 06 00 00 00 00 00 E1 0C B3 [21:09:54]RasterBufferAndPrint [21:09:54]line [21:09:54]line [21:09:54]line [21:09:54]line [21:09:54]line [21:09:54]written 0, free lines is 3303 [21:09:54]MH_Cut [21:09:54]Write to MH i2c: D1 01 00 C0 06 01 98 [21:09:54]Write i2c OK [21:09:54]MH_I2C_Read... [21:09:54]Read from MH i2c: D1 [21:09:54]MH_I2C_Read... [21:09:54]Read from MH i2c: D1 01 00 [21:09:54]MH_I2C_Read... [21:09:54]Read from MH i2c: D1 01 00 C0 06 00 97 [21:09:54]Write to MH i2c: 01 00 00 C1 06 C7 [21:09:54]Write i2c OK [21:09:54]MH_I2C_Read... [21:09:55]OFD Sender: No OFD packet to send [21:09:55]*** Cut start [21:09:55]*** Partial cut [21:09:55]*** CUTSNS_PIN = 1 [21:09:55]*** CUTSNS_PIN = 0 [21:09:55]*** Brake cut motor [21:09:55]Read from MH i2c: 01 [21:09:55]MH_I2C_Read... [21:09:56]*** Stop cut motor [21:09:56]*** Cut end [21:09:56]Read from MH i2c: 01 07 00 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 FF 0F DC [21:09:56]process_action close_receipt done [21:09:56]requested_data is exist [21:09:56]produce_requested_data [21:09:56]requested_item fm.sn is exist - process it [21:09:56]wFMCommunicate request_size=4 [21:09:56]MH_SAM_APDU [21:09:56]CAPDU: 80 11 00 00 [21:09:56]Write to MH i2c: E2 08 00 C2 06 80 11 00 00 00 00 00 00 42 [21:09:56]Write i2c OK [21:09:56]MH_I2C_Read... [21:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:56]Read from MH i2c: E2 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 17 00 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 17 00 C2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 94 [21:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:09:56]wFMCommunicate OK [21:09:56]requested_item fd.num is exist - process it [21:09:56]SAM_PROTO_GetFieldsCounters [21:09:56]wFMCommunicate request_size=4 [21:09:56]MH_SAM_APDU [21:09:56]CAPDU: 80 13 00 00 [21:09:56]Write to MH i2c: E2 08 00 C3 06 80 13 00 00 00 00 00 00 45 [21:09:56]Write i2c OK [21:09:56]MH_I2C_Read... [21:09:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:56]Read from MH i2c: E2 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 62 00 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 62 00 C3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D9 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [21:09:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D9 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:56]wFMCommunicate OK [21:09:56]SAM_PROTO_GetFieldsCounters done [21:09:56]requested_item shift.num is exist - process it [21:09:56]requested_item shift.opened is exist - process it [21:09:56]req_shift_opened [21:09:56]FM_GetShiftState [21:09:56]SAM_PROTO_GetShiftState [21:09:56]wFMCommunicate request_size=4 [21:09:56]MH_SAM_APDU [21:09:56]CAPDU: 80 13 01 00 [21:09:56]Write to MH i2c: E2 08 00 C4 06 80 13 01 00 00 00 00 00 47 [21:09:56]Write i2c OK [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 [21:09:56]MH_I2C_Read... [21:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:56]Read from MH i2c: E2 0E 00 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 0E 00 C4 06 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C4 [21:09:56]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:09:56]wFMCommunicate OK [21:09:56]SAM_PROTO_GetShiftState done [21:09:56]FM_GetShiftState done [21:09:56]req_shift_opened done [21:09:56]requested_item shift.open_date is exist - process it [21:09:56]req_shift_open_date [21:09:56]req_shift_open_date done [21:09:56]produce_requested_data done [21:09:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112089,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:09:56]process_action_free close_receipt [21:09:56]json_value_free [21:09:56]json_value_free done [21:09:56]process_json_proto returns [21:09:56]Send response to host [21:09:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112089,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:09:56]free response buf [21:09:56]execute_script done [21:09:56]execute_script returns [21:09:56]free content buf [21:09:56]Sock 9.Close socket [21:09:56]Sock 9.Thread stoped [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:08]accept exits with 7 [21:10:08]New connection [21:10:08]New thread 3066813796 created [21:10:08]Thread 3066957156 joined [21:10:08]Waiting for new connection... [21:10:08] Sock 7.Parse request [21:10:08]Sock 7.Check first char [21:10:08]Sock 7.First char is OK [21:10:08]request: POST /json_proto HTTP/1.0 [21:10:08]Method: POST [21:10:08]URL: /json_proto [21:10:08]Method is POST - this is cgi request [21:10:08]url: /json_proto [21:10:08]query_string will be loaded in cgi processing [21:10:08]execute_cgi json_proto POST (null) [21:10:08]execute_cgi path=json_proto method=POST [21:10:08]POST find Content-Length [21:10:08]Host: 172.17.59.68:8080 [21:10:08]Content-Length: 805 [21:10:08]Content-Type: application/json [21:10:08] [21:10:08]POST finish read [21:10:08]Found Content-Length = 805 [21:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.660, "sum" : 442.22, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 442.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:08]execute_script... [21:10: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)320750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.660, "sum" : 442.22, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 442.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:08]POST & json_proto [21:10:08]process_json_proto [21:10:08]json parsed OK: [21:10:08]protocol is kg_v1.0 [21:10:08]action value=close_receipt [21:10:08]process_action close_receipt [21:10:08]cmd_close_receipt [21:10:08]MH_GetDate [21:10:08]Write to MH i2c: F0 00 00 C5 06 BA [21:10:08]Write i2c OK [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: F0 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: F0 09 00 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: F0 09 00 C5 06 00 31 EC 75 66 BC EC 60 65 28 [21:10:08]GetLastDocTimeStamp 1719004193 [21:10:08]current date 1719004209 [21:10:08]FM_GetShiftState [21:10:08]SAM_PROTO_GetShiftState [21:10:08]wFMCommunicate request_size=4 [21:10:08]MH_SAM_APDU [21:10:08]CAPDU: 80 13 01 00 [21:10:08]Write to MH i2c: E2 08 00 C6 06 80 13 01 00 00 00 00 00 49 [21:10:08]Write i2c OK [21:10:08]MH_I2C_Read... [21:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:08]Read from MH i2c: E2 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: E2 0E 00 [21:10:08]MH_I2C_Read... [21:10:08]Read from MH i2c: E2 0E 00 C6 06 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C6 [21:10:08]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:10:08]wFMCommunicate OK [21:10:08]SAM_PROTO_GetShiftState done [21:10:08]FM_GetShiftState done [21:10:08]opened in 1718933695 [21:10:08]opened+sec_in_day 1719020095 [21:10:08]quantity*price = 44222 [21:10:08]sum+1 = 44223 [21:10:08]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 442.22 袧小袩 1% : 3.91 袧袛小 12% : 46.96 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 442.22 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 258 21.06.2024 21:10 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112090 肖袩袛: 104617474682623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211009&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112090&fm=104617474682623&tin=02508201610067®Number=0000000000092771&sum=44222 [21:10:09]StoreToDocumentArchive [21:10:09]shift 390 fd 112090 [21:10:09]save to /storage/0390/doc_00112090 [21:10:09]save last doc name /storage/0390/doc_00112090 to /storage/kkm_last_doc_name [21:10:09]save OK [21:10:09]Clear old archive folders... [21:10:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:10:09]tlvbuf is 0114BCE0 [21:10:09]SAM_PROTO_ClearQueue [21:10:09]wFMCommunicate request_size=4 [21:10:09]MH_SAM_APDU [21:10:09]CAPDU: 80 09 00 00 [21:10:09]Write to MH i2c: E2 08 00 D3 06 80 09 00 00 00 00 00 00 4B [21:10:09]Write i2c OK [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 [21:10:09]MH_I2C_Read... [21:10:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:09]Read from MH i2c: E2 03 00 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 03 00 D3 06 00 90 00 4D [21:10:09]RAPDU: 90 00 [21:10:09]wFMCommunicate OK [21:10:09]SAM_PROTO_ClearQueue done [21:10:09]KKMCreateOFDPacket [21:10:09]OFDProtocolAddRootSTLVToBuf [21:10:09]FM_MakeSignedData [21:10:09]FM_MakeSignedData [21:10:09]SAM_PROTO_SignData [21:10:09]wFMCommunicate request_size=4 [21:10:09]MH_SAM_APDU [21:10:09]CAPDU: 80 0D 01 02 [21:10:09]Write to MH i2c: E2 08 00 D4 06 80 0D 01 02 00 00 00 00 53 [21:10:09]Write i2c OK [21:10:09]MH_I2C_Read... [21:10:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:09]Read from MH i2c: E2 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 03 00 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [21:10:09]RAPDU: 90 00 [21:10:09]wFMCommunicate OK [21:10:09]wFMCommunicate request_size=255 [21:10:09]MH_SAM_APDU [21:10: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 04 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE AC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE AC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 31 EC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B5 01 00 35 04 06 00 5F [21:10:09]Write to MH i2c: E2 02 01 D5 06 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 04 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE AC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE AC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 31 EC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B5 01 00 35 04 06 00 5F 00 00 25 [21:10:09]Write i2c OK [21:10:09]MH_I2C_Read... [21:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:09]Read from MH i2c: E2 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 03 00 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [21:10:09]RAPDU: 90 00 [21:10:09]wFMCommunicate OK [21:10:09]wFMCommunicate request_size=10 [21:10:09]MH_SAM_APDU [21:10:09]CAPDU: 80 0D 02 02 05 26 27 6A 6E FF [21:10:09]Write to MH i2c: E2 0D 00 D6 06 80 0D 02 02 05 00 26 27 6A 6E FF 00 00 84 [21:10:09]Write i2c OK [21:10:09]MH_I2C_Read... [21:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:09]Read from MH i2c: E2 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 03 00 [21:10:09]MH_I2C_Read... [21:10:09]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [21:10:09]RAPDU: 90 00 [21:10:09]wFMCommunicate OK [21:10:09]wFMCommunicate request_size=4 [21:10:09]MH_SAM_APDU [21:10:09]CAPDU: 80 0D 03 02 [21:10:09]Write to MH i2c: E2 08 00 D7 06 80 0D 03 02 00 00 00 00 58 [21:10:09]Write i2c OK [21:10:09]MH_I2C_Read... [21:10:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:10]Read from MH i2c: E2 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 0B 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 0B 00 D7 06 00 2A F9 B5 AC 81 AD 5F 47 90 00 B1 [21:10:10]RAPDU: 2A F9 B5 AC 81 AD 5F 47 90 00 [21:10:10]wFMCommunicate OK [21:10:10]SAM_PROTO_SignData done [21:10:10]FM_MakeSignedData done [21:10:10]CreateOFDProtocolMessage [21:10:10]wFMCommunicate request_size=4 [21:10:10]MH_SAM_APDU [21:10:10]CAPDU: 80 11 00 00 [21:10:10]Write to MH i2c: E2 08 00 D8 06 80 11 00 00 00 00 00 00 58 [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]OFD Sender: No OFD packet to send [21:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:10]Read from MH i2c: E2 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 17 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: E2 17 00 D8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AA [21:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:10:10]wFMCommunicate OK [21:10:10]CreateOFDProtocolMessage done [21:10:10]OFDSenderStorePacket 112090 [21:10:10]StoreOFDPacket docnum=112090 [21:10:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 2B 07 01 56 8C 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 04 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE AC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE AC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 31 EC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B5 01 00 35 04 06 00 5F 26 27 6A 6E FF 2A F9 B5 AC 81 AD 5F 47 [21:10:10]CheckFolder [21:10:10]dirname=/storage/ofd_packets [21:10:10]CheckFolder done [21:10:10]ProducePacketName [21:10:10]name=ofd_packets/00112090 [21:10:10]NVStorageSaveData ofd_packets/00112090 [21:10:10]File name is /storage/ofd_packets/00112090 [21:10:10]Write 301 bytes [21:10:10]NVStorageSaveData done [21:10:10]OFDSenderStorePacket done [21:10:10]KKMCreateOFDPacket done [21:10:10]NVStorageSaveData kkm_last_timestamp [21:10:10]File name is /storage/kkm_last_timestamp [21:10:10]Write 4 bytes [21:10:10]NVStorageSaveData done [21:10:10]ExternCall_PrintAddStr [21:10:10]wPrintStart [21:10:10]Write to MH i2c: 01 00 00 D9 06 DF [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 07 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 07 00 D9 06 00 00 00 00 00 FF 0F F4 [21:10:10]RasterBufferAndPrint [21:10:10]line 小褔械褌 N : (1)320750 [21:10:10]line 袠袧袧: 02508201610067 [21:10:10]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:10:10]line 袩袪袨袛袗袞袗 [21:10:10]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [21:10:10]line 孝芯胁邪褉: 2710124130 [21:10:10]line 袗懈-92-袣-5 [21:10:10]line 6.660 * 66.40 [21:10:10]line = 442.22 [21:10:10]line 袧袛小 12% 袧小袩 1% [21:10:10]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:10:10]line 袠孝袨袚袨: 442.22 [21:10:10]line 袧小袩 1% : 3.91 [21:10:10]line 袧袛小 12% : 46.96 [21:10:10]line 袧邪谢懈褔薪褘屑懈: 0.00 [21:10:10]line 袘械蟹薪邪谢.: 442.22 [21:10:10]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:10:10]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:10:10]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:10:10]line 效械泻 258 21.06.2024 21:10 [21:10:10]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:10:10]line 袟袧袦: 0300000198 [21:10:10]line 袪袧袦: 0000000000092771 [21:10:10]line 袙械褉褋懈褟 袣袣袦: 001 [21:10:10]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [21:10:10]line 肖袦: 0000000000875083 [21:10:10]line 肖袛: 112090 [21:10:10]line 肖袩袛: 104617474682623 [21:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211009&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112090&fm=104617474682623&tin=02508201610067®Number=0000000000092771&sum=44222 [21:10:10]OFD Sender: Processing packet 112090 [packets to send 38, broken 37] [21:10:10]ProducePacketName [21:10:10]name=ofd_packets/00112090 [21:10:10]OFD Sender: To server: 嚂鰌G, [21:10:10]CommunicateWithHost lk.salyk.kg:30040 [21:10:10]ConnectInit lk.salyk.kg [21:10:10]written 0, free lines is 4095 [21:10:10]Connected sock=10 [21:10:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 2B 07 01 56 8C 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 04 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE AC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE AC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 31 EC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B5 01 00 35 04 06 00 5F 26 27 6A 6E FF 2A F9 B5 AC 81 AD 5F 47 [21:10:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B3 53 47 00 74 8D 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 30 38 37 35 30 38 33 10 04 04 00 DA B5 01 00 F4 03 04 00 52 83 75 66 B6 04 01 00 00 A0 73 15 D0 EF 69 6A 64 [21:10:10]CommunicateWithHost err = 0 [21:10:10]CheckOFDResponse [21:10:10]1017 (14) - 77093643461234 [21:10:10]1041 (16) - 0000000000875083 [21:10:10]1040 (4) - 112090 [21:10:10]1012 (4) - 21.06.2024 13:42 [21:10:10]1206 (1) - 0 [21:10:10]OFD Sender: Remove packet 112090 [21:10:10]ProducePacketName [21:10:10]name=ofd_packets/00112090 [21:10:10]NVStorageDeleteData [21:10:10]Write to MH i2c: 01 00 00 03 07 0A [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 07 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: 01 07 00 03 07 00 00 00 00 00 F5 0C 12 [21:10:10]RasterBufferAndPrint [21:10:10]line [21:10:10]line [21:10:10]line [21:10:10]line [21:10:10]line [21:10:10]written 0, free lines is 3324 [21:10:10]MH_Cut [21:10:10]Write to MH i2c: D1 01 00 0A 07 01 E3 [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: D1 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: D1 01 00 [21:10:10]MH_I2C_Read... [21:10:10]Read from MH i2c: D1 01 00 0A 07 00 E2 [21:10:10]Write to MH i2c: 01 00 00 0B 07 12 [21:10:10]Write i2c OK [21:10:10]MH_I2C_Read... [21:10:11]OFD Sender: No OFD packet to send [21:10:11]*** Cut start [21:10:11]*** Partial cut [21:10:11]*** CUTSNS_PIN = 1 [21:10:11]*** CUTSNS_PIN = 0 [21:10:11]*** Brake cut motor [21:10:12]Read from MH i2c: 01 [21:10:12]MH_I2C_Read... [21:10:12]*** Stop cut motor [21:10:12]*** Cut end [21:10:12]Read from MH i2c: 01 07 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: 01 07 00 0B 07 00 00 00 00 00 FF 0F 27 [21:10:12]process_action close_receipt done [21:10:12]requested_data is exist [21:10:12]produce_requested_data [21:10:12]requested_item fm.sn is exist - process it [21:10:12]wFMCommunicate request_size=4 [21:10:12]MH_SAM_APDU [21:10:12]CAPDU: 80 11 00 00 [21:10:12]Write to MH i2c: E2 08 00 0C 07 80 11 00 00 00 00 00 00 8D [21:10:12]Write i2c OK [21:10:12]MH_I2C_Read... [21:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:12]Read from MH i2c: E2 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 17 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 17 00 0C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DF [21:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:10:12]wFMCommunicate OK [21:10:12]requested_item fd.num is exist - process it [21:10:12]SAM_PROTO_GetFieldsCounters [21:10:12]wFMCommunicate request_size=4 [21:10:12]MH_SAM_APDU [21:10:12]CAPDU: 80 13 00 00 [21:10:12]Write to MH i2c: E2 08 00 0D 07 80 13 00 00 00 00 00 00 90 [21:10:12]Write i2c OK [21:10:12]MH_I2C_Read... [21:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:12]Read from MH i2c: E2 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 62 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 62 00 0D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [21:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:12]wFMCommunicate OK [21:10:12]SAM_PROTO_GetFieldsCounters done [21:10:12]requested_item shift.num is exist - process it [21:10:12]requested_item shift.opened is exist - process it [21:10:12]req_shift_opened [21:10:12]FM_GetShiftState [21:10:12]SAM_PROTO_GetShiftState [21:10:12]wFMCommunicate request_size=4 [21:10:12]MH_SAM_APDU [21:10:12]CAPDU: 80 13 01 00 [21:10:12]Write to MH i2c: E2 08 00 0E 07 80 13 01 00 00 00 00 00 92 [21:10:12]Write i2c OK [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 [21:10:12]MH_I2C_Read... [21:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:12]Read from MH i2c: E2 0E 00 [21:10:12]MH_I2C_Read... [21:10:12]Read from MH i2c: E2 0E 00 0E 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0F [21:10:12]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:10:12]wFMCommunicate OK [21:10:12]SAM_PROTO_GetShiftState done [21:10:12]FM_GetShiftState done [21:10:12]req_shift_opened done [21:10:12]requested_item shift.open_date is exist - process it [21:10:12]req_shift_open_date [21:10:12]req_shift_open_date done [21:10:12]produce_requested_data done [21:10:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112090,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:10:12]process_action_free close_receipt [21:10:12]json_value_free [21:10:12]json_value_free done [21:10:12]process_json_proto returns [21:10:12]Send response to host [21:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112090,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:10:12]free response buf [21:10:12]execute_script done [21:10:12]execute_script returns [21:10:12]free content buf [21:10:12]Sock 7.Close socket [21:10:12]Sock 7.Thread stoped [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:10:57]accept exits with 9 [21:10:57]New connection [21:10:57]New thread 3066957156 created [21:10:57]Thread 3066813796 joined [21:10:57]Waiting for new connection... [21:10:57] Sock 9.Parse request [21:10:57]Sock 9.Check first char [21:10:57]Sock 9.First char is OK [21:10:57]request: POST /json_proto HTTP/1.0 [21:10:57]Method: POST [21:10:57]URL: /json_proto [21:10:57]Method is POST - this is cgi request [21:10:57]url: /json_proto [21:10:57]query_string will be loaded in cgi processing [21:10:57]execute_cgi json_proto POST (null) [21:10:57]execute_cgi path=json_proto method=POST [21:10:57]POST find Content-Length [21:10:57]Host: 172.17.59.68:8080 [21:10:57]Content-Length: 674 [21:10:57]Content-Type: application/json [21:10:57] [21:10:57]POST finish read [21:10:57]Found Content-Length = 674 [21:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:57]execute_script... [21:10: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)320751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:57]POST & json_proto [21:10:57]process_json_proto [21:10:57]json parsed OK: [21:10:57]protocol is kg_v1.0 [21:10:57]action value=close_receipt [21:10:57]process_action close_receipt [21:10:57]cmd_close_receipt [21:10:57]MH_GetDate [21:10:57]Write to MH i2c: F0 00 00 0F 07 05 [21:10:57]Write i2c OK [21:10:57]MH_I2C_Read... [21:10:57]Read from MH i2c: F0 [21:10:57]MH_I2C_Read... [21:10:57]Read from MH i2c: F0 09 00 [21:10:57]MH_I2C_Read... [21:10:57]Read from MH i2c: F0 09 00 0F 07 00 63 EC 75 66 BC EC 60 65 A5 [21:10:57]GetLastDocTimeStamp 1719004209 [21:10:57]current date 1719004259 [21:10:57]FM_GetShiftState [21:10:57]SAM_PROTO_GetShiftState [21:10:57]wFMCommunicate request_size=4 [21:10:57]MH_SAM_APDU [21:10:57]CAPDU: 80 13 01 00 [21:10:57]Write to MH i2c: E2 08 00 10 07 80 13 01 00 00 00 00 00 94 [21:10:57]Write i2c OK [21:10:57]MH_I2C_Read... [21:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:57]Read from MH i2c: E2 [21:10:57]MH_I2C_Read... [21:10:57]Read from MH i2c: E2 0E 00 [21:10:57]MH_I2C_Read... [21:10:57]Read from MH i2c: E2 0E 00 10 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 11 [21:10:57]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:10:57]wFMCommunicate OK [21:10:57]SAM_PROTO_GetShiftState done [21:10:57]FM_GetShiftState done [21:10:57]opened in 1718933695 [21:10:57]opened+sec_in_day 1719020095 [21:10:57]quantity*price = 20047 [21:10:57]sum+1 = 20049 [21:10:57]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.48 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 259 21.06.2024 21:10 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112091 肖袩袛: 270284310435636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211059&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112091&fm=270284310435636&tin=02508201610067®Number=0000000000092771&sum=20000 [21:10:59]StoreToDocumentArchive [21:10:59]shift 390 fd 112091 [21:10:59]save to /storage/0390/doc_00112091 [21:10:59]save last doc name /storage/0390/doc_00112091 to /storage/kkm_last_doc_name [21:10:59]save OK [21:10:59]Clear old archive folders... [21:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:10:59]tlvbuf is 01114F50 [21:10:59]SAM_PROTO_ClearQueue [21:10:59]wFMCommunicate request_size=4 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 09 00 00 [21:10:59]Write to MH i2c: E2 08 00 1D 07 80 09 00 00 00 00 00 00 96 [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:59]Read from MH i2c: E2 03 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 1D 07 00 90 00 98 [21:10:59]RAPDU: 90 00 [21:10:59]wFMCommunicate OK [21:10:59]SAM_PROTO_ClearQueue done [21:10:59]KKMCreateOFDPacket [21:10:59]OFDProtocolAddRootSTLVToBuf [21:10:59]FM_MakeSignedData [21:10:59]FM_MakeSignedData [21:10:59]SAM_PROTO_SignData [21:10:59]wFMCommunicate request_size=4 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 0D 01 02 [21:10:59]Write to MH i2c: E2 08 00 1E 07 80 0D 01 02 00 00 00 00 9E [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 1E 07 00 90 00 99 [21:10:59]RAPDU: 90 00 [21:10:59]wFMCommunicate OK [21:10:59]wFMCommunicate request_size=255 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 63 EC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B5 01 00 35 04 06 00 F5 D2 78 4F [21:10:59]Write to MH i2c: E2 02 01 1F 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 63 EC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B5 01 00 35 04 06 00 F5 D2 78 4F 00 00 B1 [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 1F 07 00 90 00 9A [21:10:59]RAPDU: 90 00 [21:10:59]wFMCommunicate OK [21:10:59]wFMCommunicate request_size=7 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 0D 02 02 02 D7 34 [21:10:59]Write to MH i2c: E2 0A 00 20 07 80 0D 02 02 02 00 D7 34 00 00 B0 [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 03 00 20 07 00 90 00 9B [21:10:59]RAPDU: 90 00 [21:10:59]wFMCommunicate OK [21:10:59]wFMCommunicate request_size=4 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 0D 03 02 [21:10:59]Write to MH i2c: E2 08 00 21 07 80 0D 03 02 00 00 00 00 A3 [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 0B 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 0B 00 21 07 00 C5 24 C8 86 C5 91 8E 55 90 00 14 [21:10:59]RAPDU: C5 24 C8 86 C5 91 8E 55 90 00 [21:10:59]wFMCommunicate OK [21:10:59]SAM_PROTO_SignData done [21:10:59]FM_MakeSignedData done [21:10:59]CreateOFDProtocolMessage [21:10:59]wFMCommunicate request_size=4 [21:10:59]MH_SAM_APDU [21:10:59]CAPDU: 80 11 00 00 [21:10:59]Write to MH i2c: E2 08 00 22 07 80 11 00 00 00 00 00 00 A3 [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:59]Read from MH i2c: E2 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 17 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: E2 17 00 22 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F5 [21:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:10:59]wFMCommunicate OK [21:10:59]CreateOFDProtocolMessage done [21:10:59]OFDSenderStorePacket 112091 [21:10:59]StoreOFDPacket docnum=112091 [21:10:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 22 83 04 01 40 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 63 EC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B5 01 00 35 04 06 00 F5 D2 78 4F D7 34 C5 24 C8 86 C5 91 8E 55 [21:10:59]CheckFolder [21:10:59]dirname=/storage/ofd_packets [21:10:59]CheckFolder done [21:10:59]ProducePacketName [21:10:59]name=ofd_packets/00112091 [21:10:59]NVStorageSaveData ofd_packets/00112091 [21:10:59]File name is /storage/ofd_packets/00112091 [21:10:59]Write 298 bytes [21:10:59]NVStorageSaveData done [21:10:59]OFDSenderStorePacket done [21:10:59]KKMCreateOFDPacket done [21:10:59]NVStorageSaveData kkm_last_timestamp [21:10:59]File name is /storage/kkm_last_timestamp [21:10:59]Write 4 bytes [21:10:59]NVStorageSaveData done [21:10:59]ExternCall_PrintAddStr [21:10:59]wPrintStart [21:10:59]Write to MH i2c: 01 00 00 23 07 2A [21:10:59]Write i2c OK [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: 01 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: 01 07 00 [21:10:59]MH_I2C_Read... [21:10:59]Read from MH i2c: 01 07 00 23 07 00 00 00 00 00 FF 0F 3F [21:10:59]RasterBufferAndPrint [21:10:59]line 小褔械褌 N : (1)320751 [21:10:59]line 袠袧袧: 02508201610067 [21:10:59]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:10:59]line 袩袪袨袛袗袞袗 [21:10:59]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [21:10:59]line 孝芯胁邪褉: 2710194210 [21:10:59]line 袛孝-袣-5 [21:10:59]line 2.750 * 72.90 [21:10:59]line = 200.48 [21:10:59]line 袧袛小 12% 袧小袩 1% [21:10:59]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:10:59]line 袨袣袪校袚袥袝袧袠袝: -0.48 [21:10:59]line 袠孝袨袚袨: 200.00 [21:10:59]line 袙薪械褋械薪芯: 200.00 [21:10:59]line 小袛袗效袗: 0.00 [21:10:59]line 袧小袩 1% : 1.77 [21:10:59]line 袧袛小 12% : 21.29 [21:10:59]line 袧邪谢懈褔薪褘屑懈: 200.00 [21:10:59]line 袘械蟹薪邪谢.: 0.00 [21:10:59]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:10:59]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:10:59]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:10:59]line 效械泻 259 21.06.2024 21:10 [21:10:59]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:10:59]line 袟袧袦: 0300000198 [21:10:59]line 袪袧袦: 0000000000092771 [21:10:59]line 袙械褉褋懈褟 袣袣袦: 001 [21:10:59]line 肖袦: 0000000000875083 [21:10:59]line 肖袛: 112091 [21:10:59]line 肖袩袛: 270284310435636 [21:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211059&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112091&fm=270284310435636&tin=02508201610067®Number=0000000000092771&sum=20000 [21:10:59]OFD Sender: Processing packet 112091 [packets to send 38, broken 37] [21:10:59]ProducePacketName [21:10:59]name=ofd_packets/00112091 [21:10:59]OFD Sender: To server: 嚂鰌G, [21:10:59]CommunicateWithHost lk.salyk.kg:30040 [21:10:59]ConnectInit lk.salyk.kg [21:10:59]written 0, free lines is 4095 [21:11:00]Connected sock=10 [21:11:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 22 83 04 01 40 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 63 EC 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B5 01 00 35 04 06 00 F5 D2 78 4F D7 34 C5 24 C8 86 C5 91 8E 55 [21:11:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2D E5 47 00 7B 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 30 38 37 35 30 38 33 10 04 04 00 DB B5 01 00 F4 03 04 00 83 83 75 66 B6 04 01 00 00 2B 0E F5 4E 32 46 C1 3C [21:11:00]CommunicateWithHost err = 0 [21:11:00]CheckOFDResponse [21:11:00]1017 (14) - 77093643461234 [21:11:00]1041 (16) - 0000000000875083 [21:11:00]1040 (4) - 112091 [21:11:00]1012 (4) - 21.06.2024 13:43 [21:11:00]1206 (1) - 0 [21:11:00]OFD Sender: Remove packet 112091 [21:11:00]ProducePacketName [21:11:00]name=ofd_packets/00112091 [21:11:00]NVStorageDeleteData [21:11:00]Write to MH i2c: 01 00 00 4E 07 55 [21:11:00]Write i2c OK [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: 01 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: 01 07 00 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: 01 07 00 4E 07 00 00 00 00 00 F0 0C 58 [21:11:00]RasterBufferAndPrint [21:11:00]line [21:11:00]line [21:11:00]line [21:11:00]line [21:11:00]line [21:11:00]written 0, free lines is 3318 [21:11:00]MH_Cut [21:11:00]Write to MH i2c: D1 01 00 55 07 01 2E [21:11:00]Write i2c OK [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: D1 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: D1 01 00 [21:11:00]MH_I2C_Read... [21:11:00]Read from MH i2c: D1 01 00 55 07 00 2D [21:11:00]Write to MH i2c: 01 00 00 56 07 5D [21:11:00]Write i2c OK [21:11:00]MH_I2C_Read... [21:11:00]OFD Sender: No OFD packet to send [21:11:01]*** Cut start [21:11:01]*** Partial cut [21:11:01]*** CUTSNS_PIN = 1 [21:11:01]*** CUTSNS_PIN = 0 [21:11:01]*** Brake cut motor [21:11:01]Read from MH i2c: 01 [21:11:01]MH_I2C_Read... [21:11:01]*** Stop cut motor [21:11:01]*** Cut end [21:11:01]Read from MH i2c: 01 07 00 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: 01 07 00 56 07 00 00 00 00 00 FF 0F 72 [21:11:01]process_action close_receipt done [21:11:01]requested_data is exist [21:11:01]produce_requested_data [21:11:01]requested_item fm.sn is exist - process it [21:11:01]wFMCommunicate request_size=4 [21:11:01]MH_SAM_APDU [21:11:01]CAPDU: 80 11 00 00 [21:11:01]Write to MH i2c: E2 08 00 57 07 80 11 00 00 00 00 00 00 D8 [21:11:01]Write i2c OK [21:11:01]MH_I2C_Read... [21:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:01]Read from MH i2c: E2 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: E2 17 00 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: E2 17 00 57 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2A [21:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:11:01]wFMCommunicate OK [21:11:01]requested_item fd.num is exist - process it [21:11:01]SAM_PROTO_GetFieldsCounters [21:11:01]wFMCommunicate request_size=4 [21:11:01]MH_SAM_APDU [21:11:01]CAPDU: 80 13 00 00 [21:11:01]Write to MH i2c: E2 08 00 58 07 80 13 00 00 00 00 00 00 DB [21:11:01]Write i2c OK [21:11:01]MH_I2C_Read... [21:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:01]Read from MH i2c: E2 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: E2 62 00 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: E2 62 00 58 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [21:11:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:01]wFMCommunicate OK [21:11:01]SAM_PROTO_GetFieldsCounters done [21:11:01]requested_item shift.num is exist - process it [21:11:01]requested_item shift.opened is exist - process it [21:11:01]req_shift_opened [21:11:01]FM_GetShiftState [21:11:01]SAM_PROTO_GetShiftState [21:11:01]wFMCommunicate request_size=4 [21:11:01]MH_SAM_APDU [21:11:01]CAPDU: 80 13 01 00 [21:11:01]Write to MH i2c: E2 08 00 59 07 80 13 01 00 00 00 00 00 DD [21:11:01]Write i2c OK [21:11:01]MH_I2C_Read... [21:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:01]Read from MH i2c: E2 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: E2 0E 00 [21:11:01]MH_I2C_Read... [21:11:01]Read from MH i2c: E2 0E 00 59 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 5A [21:11:01]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:11:01]wFMCommunicate OK [21:11:01]SAM_PROTO_GetShiftState done [21:11:01]FM_GetShiftState done [21:11:01]req_shift_opened done [21:11:01]requested_item shift.open_date is exist - process it [21:11:01]req_shift_open_date [21:11:01]req_shift_open_date done [21:11:01]produce_requested_data done [21:11:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112091,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:11:01]process_action_free close_receipt [21:11:01]json_value_free [21:11:01]json_value_free done [21:11:01]process_json_proto returns [21:11:01]Send response to host [21:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112091,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:11:01]free response buf [21:11:01]execute_script done [21:11:01]execute_script returns [21:11:01]free content buf [21:11:01]Sock 9.Close socket [21:11:01]Sock 9.Thread stoped [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]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:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:27]accept exits with 7 [21:16:27]New connection [21:16:27]New thread 3066813796 created [21:16:27]Thread 3066957156 joined [21:16:27]Waiting for new connection... [21:16:27] Sock 7.Parse request [21:16:27]Sock 7.Check first char [21:16:27]Sock 7.First char is OK [21:16:27]request: POST /json_proto HTTP/1.0 [21:16:27]Method: POST [21:16:27]URL: /json_proto [21:16:27]Method is POST - this is cgi request [21:16:27]url: /json_proto [21:16:27]query_string will be loaded in cgi processing [21:16:27]execute_cgi json_proto POST (null) [21:16:27]execute_cgi path=json_proto method=POST [21:16:27]POST find Content-Length [21:16:27]Host: 172.17.59.68:8080 [21:16:27]Content-Length: 677 [21:16:27]Content-Type: application/json [21:16:27] [21:16:27]POST finish read [21:16:27]Found Content-Length = 677 [21:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:16:27]execute_script... [21:16:27]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)320752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:16:27]POST & json_proto [21:16:27]process_json_proto [21:16:27]json parsed OK: [21:16:27]protocol is kg_v1.0 [21:16:27]action value=close_receipt [21:16:27]process_action close_receipt [21:16:27]cmd_close_receipt [21:16:27]MH_GetDate [21:16:27]Write to MH i2c: F0 00 00 5A 07 50 [21:16:27]Write i2c OK [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: F0 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: F0 09 00 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: F0 09 00 5A 07 00 AD ED 75 66 BC EC 60 65 3B [21:16:27]GetLastDocTimeStamp 1719004259 [21:16:27]current date 1719004589 [21:16:27]FM_GetShiftState [21:16:27]SAM_PROTO_GetShiftState [21:16:27]wFMCommunicate request_size=4 [21:16:27]MH_SAM_APDU [21:16:27]CAPDU: 80 13 01 00 [21:16:27]Write to MH i2c: E2 08 00 5B 07 80 13 01 00 00 00 00 00 DF [21:16:27]Write i2c OK [21:16:27]MH_I2C_Read... [21:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:27]Read from MH i2c: E2 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 0E 00 [21:16:27]MH_I2C_Read... [21:16:27]Read from MH i2c: E2 0E 00 5B 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 5C [21:16:27]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:16:27]wFMCommunicate OK [21:16:27]SAM_PROTO_GetShiftState done [21:16:27]FM_GetShiftState done [21:16:27]opened in 1718933695 [21:16:27]opened+sec_in_day 1719020095 [21:16:27]quantity*price = 50065 [21:16:27]sum+1 = 50067 [21:16:27]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 260 21.06.2024 21:16 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112092 肖袩袛: 217559002579343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211629&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112092&fm=217559002579343&tin=02508201610067®Number=0000000000092771&sum=50000 [21:16:28]StoreToDocumentArchive [21:16:28]shift 390 fd 112092 [21:16:28]save to /storage/0390/doc_00112092 [21:16:28]save last doc name /storage/0390/doc_00112092 to /storage/kkm_last_doc_name [21:16:28]save OK [21:16:28]Clear old archive folders... [21:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:28]tlvbuf is 01140100 [21:16:28]SAM_PROTO_ClearQueue [21:16:28]wFMCommunicate request_size=4 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 09 00 00 [21:16:28]Write to MH i2c: E2 08 00 68 07 80 09 00 00 00 00 00 00 E1 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:28]Read from MH i2c: E2 03 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 68 07 00 90 00 E3 [21:16:28]RAPDU: 90 00 [21:16:28]wFMCommunicate OK [21:16:28]SAM_PROTO_ClearQueue done [21:16:28]KKMCreateOFDPacket [21:16:28]OFDProtocolAddRootSTLVToBuf [21:16:28]FM_MakeSignedData [21:16:28]FM_MakeSignedData [21:16:28]SAM_PROTO_SignData [21:16:28]wFMCommunicate request_size=4 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 0D 01 02 [21:16:28]Write to MH i2c: E2 08 00 69 07 80 0D 01 02 00 00 00 00 E9 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 69 07 00 90 00 E4 [21:16:28]RAPDU: 90 00 [21:16:28]wFMCommunicate OK [21:16:28]wFMCommunicate request_size=255 [21:16:28]MH_SAM_APDU [21:16: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 04 01 00 00 F4 03 04 00 AD ED 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B5 01 00 35 04 06 00 C5 [21:16:28]Write to MH i2c: E2 02 01 6A 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 04 01 00 00 F4 03 04 00 AD ED 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B5 01 00 35 04 06 00 C5 00 00 F5 [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 6A 07 00 90 00 E5 [21:16:28]RAPDU: 90 00 [21:16:28]wFMCommunicate OK [21:16:28]wFMCommunicate request_size=10 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 0D 02 02 05 DE 67 11 01 8F [21:16:28]Write to MH i2c: E2 0D 00 6B 07 80 0D 02 02 05 00 DE 67 11 01 8F 00 00 DC [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:28]Read from MH i2c: E2 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 [21:16:28]MH_I2C_Read... [21:16:28]Read from MH i2c: E2 03 00 6B 07 00 90 00 E6 [21:16:28]RAPDU: 90 00 [21:16:28]wFMCommunicate OK [21:16:28]wFMCommunicate request_size=4 [21:16:28]MH_SAM_APDU [21:16:28]CAPDU: 80 0D 03 02 [21:16:28]Write to MH i2c: E2 08 00 6C 07 80 0D 03 02 00 00 00 00 EE [21:16:28]Write i2c OK [21:16:28]MH_I2C_Read... [21:16:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:29]Read from MH i2c: E2 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 0B 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 0B 00 6C 07 00 CE 98 75 59 06 86 44 50 90 00 43 [21:16:29]RAPDU: CE 98 75 59 06 86 44 50 90 00 [21:16:29]wFMCommunicate OK [21:16:29]SAM_PROTO_SignData done [21:16:29]FM_MakeSignedData done [21:16:29]CreateOFDProtocolMessage [21:16:29]wFMCommunicate request_size=4 [21:16:29]MH_SAM_APDU [21:16:29]CAPDU: 80 11 00 00 [21:16:29]Write to MH i2c: E2 08 00 6D 07 80 11 00 00 00 00 00 00 EE [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:29]Read from MH i2c: E2 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 17 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: E2 17 00 6D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 40 [21:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:16:29]wFMCommunicate OK [21:16:29]CreateOFDProtocolMessage done [21:16:29]OFDSenderStorePacket 112092 [21:16:29]StoreOFDPacket docnum=112092 [21:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F 6F 07 01 08 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 04 01 00 00 F4 03 04 00 AD ED 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B5 01 00 35 04 06 00 C5 DE 67 11 01 8F CE 98 75 59 06 86 44 50 [21:16:29]CheckFolder [21:16:29]dirname=/storage/ofd_packets [21:16:29]CheckFolder done [21:16:29]ProducePacketName [21:16:29]name=ofd_packets/00112092 [21:16:29]NVStorageSaveData ofd_packets/00112092 [21:16:29]File name is /storage/ofd_packets/00112092 [21:16:29]Write 301 bytes [21:16:29]NVStorageSaveData done [21:16:29]OFDSenderStorePacket done [21:16:29]KKMCreateOFDPacket done [21:16:29]NVStorageSaveData kkm_last_timestamp [21:16:29]File name is /storage/kkm_last_timestamp [21:16:29]Write 4 bytes [21:16:29]NVStorageSaveData done [21:16:29]OFD Sender: Processing packet 112092 [packets to send 38, broken 37] [21:16:29]ProducePacketName [21:16:29]name=ofd_packets/00112092 [21:16:29]OFD Sender: To server: 嚂鰌G, [21:16:29]CommunicateWithHost lk.salyk.kg:30040 [21:16:29]ConnectInit lk.salyk.kg [21:16:29]ExternCall_PrintAddStr [21:16:29]wPrintStart [21:16:29]Write to MH i2c: 01 00 00 6E 07 75 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 6E 07 00 00 00 00 00 FF 0F 8A [21:16:29]RasterBufferAndPrint [21:16:29]line 小褔械褌 N : (1)320752 [21:16:29]line 袠袧袧: 02508201610067 [21:16:29]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:16:29]line 袩袪袨袛袗袞袗 [21:16:29]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [21:16:29]line 孝芯胁邪褉: 2710124130 [21:16:29]line 袗懈-92-袣-5 [21:16:29]line 7.540 * 66.40 [21:16:29]line = 500.66 [21:16:29]line 袧袛小 12% 袧小袩 1% [21:16:29]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:16:29]line 袨袣袪校袚袥袝袧袠袝: -0.66 [21:16:29]line 袠孝袨袚袨: 500.00 [21:16:29]line 袙薪械褋械薪芯: 500.00 [21:16:29]line 小袛袗效袗: 0.00 [21:16:29]line 袧小袩 1% : 4.43 [21:16:29]line 袧袛小 12% : 53.17 [21:16:29]line 袧邪谢懈褔薪褘屑懈: 500.00 [21:16:29]line 袘械蟹薪邪谢.: 0.00 [21:16:29]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:16:29]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:16:29]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:16:29]line 效械泻 260 21.06.2024 21:16 [21:16:29]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:16:29]line 袟袧袦: 0300000198 [21:16:29]line 袪袧袦: 0000000000092771 [21:16:29]line 袙械褉褋懈褟 袣袣袦: 001 [21:16:29]line 肖袦: 0000000000875083 [21:16:29]line 肖袛: 112092 [21:16:29]line 肖袩袛: 217559002579343 [21:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T211629&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112092&fm=217559002579343&tin=02508201610067®Number=0000000000092771&sum=50000 [21:16:29]Connected sock=11 [21:16:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F 6F 07 01 08 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 04 01 00 00 F4 03 04 00 AD ED 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B5 01 00 35 04 06 00 C5 DE 67 11 01 8F CE 98 75 59 06 86 44 50 [21:16:29]written 0, free lines is 4095 [21:16:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8A 71 47 00 DD 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 30 38 37 35 30 38 33 10 04 04 00 DC B5 01 00 F4 03 04 00 CD 84 75 66 B6 04 01 00 00 00 C2 6B 1A 18 F0 6A CB [21:16:29]CommunicateWithHost err = 0 [21:16:29]CheckOFDResponse [21:16:29]1017 (14) - 77093643461234 [21:16:29]1041 (16) - 0000000000875083 [21:16:29]1040 (4) - 112092 [21:16:29]1012 (4) - 21.06.2024 13:49 [21:16:29]1206 (1) - 0 [21:16:29]OFD Sender: Remove packet 112092 [21:16:29]ProducePacketName [21:16:29]name=ofd_packets/00112092 [21:16:29]NVStorageDeleteData [21:16:29]Write to MH i2c: 01 00 00 99 07 A0 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 99 07 00 00 00 00 00 E4 0C 97 [21:16:29]RasterBufferAndPrint [21:16:29]line [21:16:29]line [21:16:29]line [21:16:29]line [21:16:29]line [21:16:29]written 0, free lines is 3306 [21:16:29]MH_Cut [21:16:29]Write to MH i2c: D1 01 00 A0 07 01 79 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: D1 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: D1 01 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: D1 01 00 A0 07 00 78 [21:16:29]Write to MH i2c: 01 00 00 A1 07 A8 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:30]OFD Sender: No OFD packet to send [21:16:30]*** Cut start [21:16:30]*** Partial cut [21:16:30]*** CUTSNS_PIN = 1 [21:16:30]*** CUTSNS_PIN = 0 [21:16:30]*** Brake cut motor [21:16:31]Read from MH i2c: 01 [21:16:31]MH_I2C_Read... [21:16:31]*** Stop cut motor [21:16:31]*** Cut end [21:16:31]Read from MH i2c: 01 07 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: 01 07 00 A1 07 00 00 00 00 00 FF 0F BD [21:16:31]process_action close_receipt done [21:16:31]requested_data is exist [21:16:31]produce_requested_data [21:16:31]requested_item fm.sn is exist - process it [21:16:31]wFMCommunicate request_size=4 [21:16:31]MH_SAM_APDU [21:16:31]CAPDU: 80 11 00 00 [21:16:31]Write to MH i2c: E2 08 00 A2 07 80 11 00 00 00 00 00 00 23 [21:16:31]Write i2c OK [21:16:31]MH_I2C_Read... [21:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:31]Read from MH i2c: E2 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 17 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 17 00 A2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 75 [21:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:16:31]wFMCommunicate OK [21:16:31]requested_item fd.num is exist - process it [21:16:31]SAM_PROTO_GetFieldsCounters [21:16:31]wFMCommunicate request_size=4 [21:16:31]MH_SAM_APDU [21:16:31]CAPDU: 80 13 00 00 [21:16:31]Write to MH i2c: E2 08 00 A3 07 80 13 00 00 00 00 00 00 26 [21:16:31]Write i2c OK [21:16:31]MH_I2C_Read... [21:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:31]Read from MH i2c: E2 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 62 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 62 00 A3 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [21:16:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:31]wFMCommunicate OK [21:16:31]SAM_PROTO_GetFieldsCounters done [21:16:31]requested_item shift.num is exist - process it [21:16:31]requested_item shift.opened is exist - process it [21:16:31]req_shift_opened [21:16:31]FM_GetShiftState [21:16:31]SAM_PROTO_GetShiftState [21:16:31]wFMCommunicate request_size=4 [21:16:31]MH_SAM_APDU [21:16:31]CAPDU: 80 13 01 00 [21:16:31]Write to MH i2c: E2 08 00 A4 07 80 13 01 00 00 00 00 00 28 [21:16:31]Write i2c OK [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 [21:16:31]MH_I2C_Read... [21:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:31]Read from MH i2c: E2 0E 00 [21:16:31]MH_I2C_Read... [21:16:31]Read from MH i2c: E2 0E 00 A4 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A5 [21:16:31]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:16:31]wFMCommunicate OK [21:16:31]SAM_PROTO_GetShiftState done [21:16:31]FM_GetShiftState done [21:16:31]req_shift_opened done [21:16:31]requested_item shift.open_date is exist - process it [21:16:31]req_shift_open_date [21:16:31]req_shift_open_date done [21:16:31]produce_requested_data done [21:16:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112092,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:16:31]process_action_free close_receipt [21:16:31]json_value_free [21:16:31]json_value_free done [21:16:31]process_json_proto returns [21:16:31]Send response to host [21:16:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112092,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:16:31]free response buf [21:16:31]execute_script done [21:16:31]execute_script returns [21:16:31]free content buf [21:16:31]Sock 7.Close socket [21:16:31]Sock 7.Thread stoped [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:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:19]accept exits with 9 [21:23:19]New connection [21:23:19]New thread 3066957156 created [21:23:19]Thread 3066813796 joined [21:23:19]Waiting for new connection... [21:23:19] Sock 9.Parse request [21:23:19]Sock 9.Check first char [21:23:19]Sock 9.First char is OK [21:23:19]request: POST /json_proto HTTP/1.0 [21:23:19]Method: POST [21:23:19]URL: /json_proto [21:23:19]Method is POST - this is cgi request [21:23:19]url: /json_proto [21:23:19]query_string will be loaded in cgi processing [21:23:19]execute_cgi json_proto POST (null) [21:23:19]execute_cgi path=json_proto method=POST [21:23:19]POST find Content-Length [21:23:19]Host: 172.17.59.68:8080 [21:23:19]Content-Length: 682 [21:23:19]Content-Type: application/json [21:23:19] [21:23:19]POST finish read [21:23:19]Found Content-Length = 682 [21:23:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:23:19]execute_script... [21:23: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)320753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:23:19]POST & json_proto [21:23:19]process_json_proto [21:23:19]json parsed OK: [21:23:19]protocol is kg_v1.0 [21:23:19]action value=close_receipt [21:23:19]process_action close_receipt [21:23:19]cmd_close_receipt [21:23:19]MH_GetDate [21:23:19]Write to MH i2c: F0 00 00 A5 07 9B [21:23:19]Write i2c OK [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: F0 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: F0 09 00 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: F0 09 00 A5 07 00 49 EF 75 66 BC EC 60 65 24 [21:23:19]GetLastDocTimeStamp 1719004589 [21:23:19]current date 1719005001 [21:23:19]FM_GetShiftState [21:23:19]SAM_PROTO_GetShiftState [21:23:19]wFMCommunicate request_size=4 [21:23:19]MH_SAM_APDU [21:23:19]CAPDU: 80 13 01 00 [21:23:19]Write to MH i2c: E2 08 00 A6 07 80 13 01 00 00 00 00 00 2A [21:23:19]Write i2c OK [21:23:19]MH_I2C_Read... [21:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:20]Read from MH i2c: E2 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 0E 00 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 0E 00 A6 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A7 [21:23:20]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:23:20]wFMCommunicate OK [21:23:20]SAM_PROTO_GetShiftState done [21:23:20]FM_GetShiftState done [21:23:20]opened in 1718933695 [21:23:20]opened+sec_in_day 1719020095 [21:23:20]quantity*price = 100064 [21:23:20]sum+1 = 100066 [21:23:20]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 261 21.06.2024 21:23 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112093 肖袩袛: 182813480613591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T212321&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112093&fm=182813480613591&tin=02508201610067®Number=0000000000092771&sum=100000 [21:23:21]StoreToDocumentArchive [21:23:21]shift 390 fd 112093 [21:23:21]save to /storage/0390/doc_00112093 [21:23:21]save last doc name /storage/0390/doc_00112093 to /storage/kkm_last_doc_name [21:23:21]save OK [21:23:21]Clear old archive folders... [21:23:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:21]tlvbuf is 010FB0F0 [21:23:21]SAM_PROTO_ClearQueue [21:23:21]wFMCommunicate request_size=4 [21:23:21]MH_SAM_APDU [21:23:21]CAPDU: 80 09 00 00 [21:23:21]Write to MH i2c: E2 08 00 B3 07 80 09 00 00 00 00 00 00 2C [21:23:21]Write i2c OK [21:23:21]MH_I2C_Read... [21:23:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:21]Read from MH i2c: E2 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 03 00 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 03 00 B3 07 00 90 00 2E [21:23:21]RAPDU: 90 00 [21:23:21]wFMCommunicate OK [21:23:21]SAM_PROTO_ClearQueue done [21:23:21]KKMCreateOFDPacket [21:23:21]OFDProtocolAddRootSTLVToBuf [21:23:21]FM_MakeSignedData [21:23:21]FM_MakeSignedData [21:23:21]SAM_PROTO_SignData [21:23:21]wFMCommunicate request_size=4 [21:23:21]MH_SAM_APDU [21:23:21]CAPDU: 80 0D 01 02 [21:23:21]Write to MH i2c: E2 08 00 B4 07 80 0D 01 02 00 00 00 00 34 [21:23:21]Write i2c OK [21:23:21]MH_I2C_Read... [21:23:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:21]Read from MH i2c: E2 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 03 00 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 03 00 B4 07 00 90 00 2F [21:23:21]RAPDU: 90 00 [21:23:21]wFMCommunicate OK [21:23:21]wFMCommunicate request_size=255 [21:23:21]MH_SAM_APDU [21:23: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 05 01 00 00 F4 03 04 00 49 EF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B5 01 00 35 04 06 00 A6 [21:23:21]Write to MH i2c: E2 02 01 B5 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 05 01 00 00 F4 03 04 00 49 EF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B5 01 00 35 04 06 00 A6 00 00 11 [21:23:21]Write i2c OK [21:23:21]MH_I2C_Read... [21:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:21]Read from MH i2c: E2 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 03 00 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [21:23:21]RAPDU: 90 00 [21:23:21]wFMCommunicate OK [21:23:21]wFMCommunicate request_size=10 [21:23:21]MH_SAM_APDU [21:23:21]CAPDU: 80 0D 02 02 05 44 94 92 76 D7 [21:23:21]Write to MH i2c: E2 0D 00 B6 07 80 0D 02 02 05 00 44 94 92 76 D7 00 00 F8 [21:23:21]Write i2c OK [21:23:21]MH_I2C_Read... [21:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:21]Read from MH i2c: E2 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 03 00 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [21:23:21]RAPDU: 90 00 [21:23:21]wFMCommunicate OK [21:23:21]wFMCommunicate request_size=4 [21:23:21]MH_SAM_APDU [21:23:21]CAPDU: 80 0D 03 02 [21:23:21]Write to MH i2c: E2 08 00 B7 07 80 0D 03 02 00 00 00 00 39 [21:23:21]Write i2c OK [21:23:21]MH_I2C_Read... [21:23:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:21]Read from MH i2c: E2 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 0B 00 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 0B 00 B7 07 00 E1 BC AE 9C 94 E0 08 5E 90 00 FB [21:23:21]RAPDU: E1 BC AE 9C 94 E0 08 5E 90 00 [21:23:21]wFMCommunicate OK [21:23:21]SAM_PROTO_SignData done [21:23:21]FM_MakeSignedData done [21:23:21]CreateOFDProtocolMessage [21:23:21]wFMCommunicate request_size=4 [21:23:21]MH_SAM_APDU [21:23:21]CAPDU: 80 11 00 00 [21:23:21]Write to MH i2c: E2 08 00 B8 07 80 11 00 00 00 00 00 00 39 [21:23:21]Write i2c OK [21:23:21]MH_I2C_Read... [21:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:21]Read from MH i2c: E2 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 17 00 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: E2 17 00 B8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8B [21:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:23:21]wFMCommunicate OK [21:23:21]CreateOFDProtocolMessage done [21:23:21]OFDSenderStorePacket 112093 [21:23:21]StoreOFDPacket docnum=112093 [21:23:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 36 07 01 18 A8 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 05 01 00 00 F4 03 04 00 49 EF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B5 01 00 35 04 06 00 A6 44 94 92 76 D7 E1 BC AE 9C 94 E0 08 5E [21:23:21]CheckFolder [21:23:21]dirname=/storage/ofd_packets [21:23:21]CheckFolder done [21:23:21]ProducePacketName [21:23:21]name=ofd_packets/00112093 [21:23:21]NVStorageSaveData ofd_packets/00112093 [21:23:21]File name is /storage/ofd_packets/00112093 [21:23:21]Write 301 bytes [21:23:21]NVStorageSaveData done [21:23:21]OFDSenderStorePacket done [21:23:21]KKMCreateOFDPacket done [21:23:21]NVStorageSaveData kkm_last_timestamp [21:23:21]File name is /storage/kkm_last_timestamp [21:23:21]Write 4 bytes [21:23:21]NVStorageSaveData done [21:23:21]ExternCall_PrintAddStr [21:23:21]wPrintStart [21:23:21]Write to MH i2c: 01 00 00 B9 07 C0 [21:23:21]Write i2c OK [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: 01 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: 01 07 00 [21:23:21]MH_I2C_Read... [21:23:21]Read from MH i2c: 01 07 00 B9 07 00 00 00 00 00 FF 0F D5 [21:23:21]RasterBufferAndPrint [21:23:21]line 小褔械褌 N : (1)320753 [21:23:21]line 袠袧袧: 02508201610067 [21:23:21]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:23:21]line 袩袪袨袛袗袞袗 [21:23:21]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [21:23:21]line 孝芯胁邪褉: 2710124130 [21:23:21]line 袗懈-92-袣-5 [21:23:21]line 15.070 * 66.40 [21:23:21]line = 1000.65 [21:23:21]line 袧袛小 12% 袧小袩 1% [21:23:21]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:23:21]line 袨袣袪校袚袥袝袧袠袝: -0.65 [21:23:21]line 袠孝袨袚袨: 1000.00 [21:23:21]line 袙薪械褋械薪芯: 1000.00 [21:23:21]line 小袛袗效袗: 0.00 [21:23:21]line 袧小袩 1% : 8.85 [21:23:21]line 袧袛小 12% : 106.26 [21:23:21]line 袧邪谢懈褔薪褘屑懈: 1000.00 [21:23:21]line 袘械蟹薪邪谢.: 0.00 [21:23:21]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:23:21]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:23:21]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:23:21]line 效械泻 261 21.06.2024 21:23 [21:23:21]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:23:21]line 袟袧袦: 0300000198 [21:23:21]line 袪袧袦: 0000000000092771 [21:23:21]line 袙械褉褋懈褟 袣袣袦: 001 [21:23:21]line 肖袦: 0000000000875083 [21:23:21]line 肖袛: 112093 [21:23:21]line 肖袩袛: 182813480613591 [21:23:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T212321&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112093&fm=182813480613591&tin=02508201610067®Number=0000000000092771&sum=100000 [21:23:21]OFD Sender: Processing packet 112093 [packets to send 38, broken 37] [21:23:21]ProducePacketName [21:23:21]name=ofd_packets/00112093 [21:23:21]OFD Sender: To server: 嚂鰌G, [21:23:21]CommunicateWithHost lk.salyk.kg:30040 [21:23:21]ConnectInit lk.salyk.kg [21:23:21]written 0, free lines is 4095 [21:23:22]Connected sock=11 [21:23:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 36 07 01 18 A8 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 05 01 00 00 F4 03 04 00 49 EF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B5 01 00 35 04 06 00 A6 44 94 92 76 D7 E1 BC AE 9C 94 E0 08 5E [21:23:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E9 14 47 00 23 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 30 38 37 35 30 38 33 10 04 04 00 DD B5 01 00 F4 03 04 00 69 86 75 66 B6 04 01 00 00 8E 4E F0 5B AA 40 7C 2A [21:23:22]CommunicateWithHost err = 0 [21:23:22]CheckOFDResponse [21:23:22]1017 (14) - 77093643461234 [21:23:22]1041 (16) - 0000000000875083 [21:23:22]1040 (4) - 112093 [21:23:22]1012 (4) - 21.06.2024 13:55 [21:23:22]1206 (1) - 0 [21:23:22]OFD Sender: Remove packet 112093 [21:23:22]ProducePacketName [21:23:22]name=ofd_packets/00112093 [21:23:22]NVStorageDeleteData [21:23:22]Write to MH i2c: 01 00 00 E4 07 EB [21:23:22]Write i2c OK [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: 01 [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: 01 07 00 [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: 01 07 00 E4 07 00 00 00 00 00 EC 0C EA [21:23:22]RasterBufferAndPrint [21:23:22]line [21:23:22]line [21:23:22]line [21:23:22]line [21:23:22]line [21:23:22]written 0, free lines is 3314 [21:23:22]MH_Cut [21:23:22]Write to MH i2c: D1 01 00 EB 07 01 C4 [21:23:22]Write i2c OK [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: D1 [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: D1 01 00 [21:23:22]MH_I2C_Read... [21:23:22]Read from MH i2c: D1 01 00 EB 07 00 C3 [21:23:22]Write to MH i2c: 01 00 00 EC 07 F3 [21:23:22]Write i2c OK [21:23:22]MH_I2C_Read... [21:23:22]OFD Sender: No OFD packet to send [21:23:23]*** Cut start [21:23:23]*** Partial cut [21:23:23]*** CUTSNS_PIN = 1 [21:23:23]*** CUTSNS_PIN = 0 [21:23:23]*** Brake cut motor [21:23:23]Read from MH i2c: 01 [21:23:23]MH_I2C_Read... [21:23:23]*** Stop cut motor [21:23:23]*** Cut end [21:23:23]Read from MH i2c: 01 07 00 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: 01 07 00 EC 07 00 00 00 00 00 FF 0F 08 [21:23:23]process_action close_receipt done [21:23:23]requested_data is exist [21:23:23]produce_requested_data [21:23:23]requested_item fm.sn is exist - process it [21:23:23]wFMCommunicate request_size=4 [21:23:23]MH_SAM_APDU [21:23:23]CAPDU: 80 11 00 00 [21:23:23]Write to MH i2c: E2 08 00 ED 07 80 11 00 00 00 00 00 00 6E [21:23:23]Write i2c OK [21:23:23]MH_I2C_Read... [21:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:23]Read from MH i2c: E2 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: E2 17 00 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: E2 17 00 ED 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C0 [21:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:23:23]wFMCommunicate OK [21:23:23]requested_item fd.num is exist - process it [21:23:23]SAM_PROTO_GetFieldsCounters [21:23:23]wFMCommunicate request_size=4 [21:23:23]MH_SAM_APDU [21:23:23]CAPDU: 80 13 00 00 [21:23:23]Write to MH i2c: E2 08 00 EE 07 80 13 00 00 00 00 00 00 71 [21:23:23]Write i2c OK [21:23:23]MH_I2C_Read... [21:23:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:23]Read from MH i2c: E2 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: E2 62 00 [21:23:23]MH_I2C_Read... [21:23:23]Read from MH i2c: E2 62 00 EE 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DD B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [21:23:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DD B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:23]wFMCommunicate OK [21:23:23]SAM_PROTO_GetFieldsCounters done [21:23:23]requested_item shift.num is exist - process it [21:23:23]requested_item shift.opened is exist - process it [21:23:23]req_shift_opened [21:23:23]FM_GetShiftState [21:23:23]SAM_PROTO_GetShiftState [21:23:23]wFMCommunicate request_size=4 [21:23:23]MH_SAM_APDU [21:23:23]CAPDU: 80 13 01 00 [21:23:23]Write to MH i2c: E2 08 00 EF 07 80 13 01 00 00 00 00 00 73 [21:23:23]Write i2c OK [21:23:23]MH_I2C_Read... [21:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:24]Read from MH i2c: E2 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: E2 0E 00 [21:23:24]MH_I2C_Read... [21:23:24]Read from MH i2c: E2 0E 00 EF 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F0 [21:23:24]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:23:24]wFMCommunicate OK [21:23:24]SAM_PROTO_GetShiftState done [21:23:24]FM_GetShiftState done [21:23:24]req_shift_opened done [21:23:24]requested_item shift.open_date is exist - process it [21:23:24]req_shift_open_date [21:23:24]req_shift_open_date done [21:23:24]produce_requested_data done [21:23:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112093,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:23:24]process_action_free close_receipt [21:23:24]json_value_free [21:23:24]json_value_free done [21:23:24]process_json_proto returns [21:23:24]Send response to host [21:23:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112093,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:23:24]free response buf [21:23:24]execute_script done [21:23:24]execute_script returns [21:23:24]free content buf [21:23:24]Sock 9.Close socket [21:23:24]Sock 9.Thread stoped [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:36]accept exits with 7 [21:23:36]New connection [21:23:36]New thread 3066813796 created [21:23:36]Thread 3066957156 joined [21:23:36]Waiting for new connection... [21:23:36] Sock 7.Parse request [21:23:36]Sock 7.Check first char [21:23:36]Sock 7.First char is OK [21:23:36]request: POST /json_proto HTTP/1.0 [21:23:36]Method: POST [21:23:36]URL: /json_proto [21:23:36]Method is POST - this is cgi request [21:23:36]url: /json_proto [21:23:36]query_string will be loaded in cgi processing [21:23:36]execute_cgi json_proto POST (null) [21:23:36]execute_cgi path=json_proto method=POST [21:23:36]POST find Content-Length [21:23:36]Host: 172.17.59.68:8080 [21:23:36]Content-Length: 674 [21:23:36]Content-Type: application/json [21:23:36] [21:23:36]POST finish read [21:23:36]Found Content-Length = 674 [21:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:23:36]execute_script... [21:23: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 : (1)320754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:23:36]POST & json_proto [21:23:36]process_json_proto [21:23:36]json parsed OK: [21:23:36]protocol is kg_v1.0 [21:23:36]action value=close_receipt [21:23:36]process_action close_receipt [21:23:36]cmd_close_receipt [21:23:36]MH_GetDate [21:23:36]Write to MH i2c: F0 00 00 F0 07 E6 [21:23:36]Write i2c OK [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: F0 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: F0 09 00 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: F0 09 00 F0 07 00 5A EF 75 66 BC EC 60 65 80 [21:23:36]GetLastDocTimeStamp 1719005001 [21:23:36]current date 1719005018 [21:23:36]FM_GetShiftState [21:23:36]SAM_PROTO_GetShiftState [21:23:36]wFMCommunicate request_size=4 [21:23:36]MH_SAM_APDU [21:23:36]CAPDU: 80 13 01 00 [21:23:36]Write to MH i2c: E2 08 00 F1 07 80 13 01 00 00 00 00 00 75 [21:23:36]Write i2c OK [21:23:36]MH_I2C_Read... [21:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:36]Read from MH i2c: E2 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: E2 0E 00 [21:23:36]MH_I2C_Read... [21:23:36]Read from MH i2c: E2 0E 00 F1 07 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F2 [21:23:36]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:23:36]wFMCommunicate OK [21:23:36]SAM_PROTO_GetShiftState done [21:23:36]FM_GetShiftState done [21:23:36]opened in 1718933695 [21:23:36]opened+sec_in_day 1719020095 [21:23:36]quantity*price = 50009 [21:23:36]sum+1 = 50010 [21:23:36]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.09 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.11 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 262 21.06.2024 21:23 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112094 肖袩袛: 110288161431554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T212338&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112094&fm=110288161431554&tin=02508201610067®Number=0000000000092771&sum=50000 [21:23:37]StoreToDocumentArchive [21:23:37]shift 390 fd 112094 [21:23:37]save to /storage/0390/doc_00112094 [21:23:37]save last doc name /storage/0390/doc_00112094 to /storage/kkm_last_doc_name [21:23:37]save OK [21:23:37]Clear old archive folders... [21:23:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:23:37]tlvbuf is B6EDB710 [21:23:37]SAM_PROTO_ClearQueue [21:23:37]wFMCommunicate request_size=4 [21:23:37]MH_SAM_APDU [21:23:37]CAPDU: 80 09 00 00 [21:23:37]Write to MH i2c: E2 08 00 FE 07 80 09 00 00 00 00 00 00 77 [21:23:37]Write i2c OK [21:23:37]MH_I2C_Read... [21:23:37]OFD Sender: No OFD packet to send [21:23:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:37]Read from MH i2c: E2 [21:23:37]MH_I2C_Read... [21:23:37]Read from MH i2c: E2 03 00 [21:23:37]MH_I2C_Read... [21:23:37]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [21:23:37]RAPDU: 90 00 [21:23:37]wFMCommunicate OK [21:23:37]SAM_PROTO_ClearQueue done [21:23:37]KKMCreateOFDPacket [21:23:37]OFDProtocolAddRootSTLVToBuf [21:23:37]FM_MakeSignedData [21:23:37]FM_MakeSignedData [21:23:37]SAM_PROTO_SignData [21:23:37]wFMCommunicate request_size=4 [21:23:37]MH_SAM_APDU [21:23:37]CAPDU: 80 0D 01 02 [21:23:37]Write to MH i2c: E2 08 00 FF 07 80 0D 01 02 00 00 00 00 7F [21:23:37]Write i2c OK [21:23:37]MH_I2C_Read... [21:23:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:37]Read from MH i2c: E2 [21:23:37]MH_I2C_Read... [21:23:37]Read from MH i2c: E2 03 00 [21:23:37]MH_I2C_Read... [21:23:37]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [21:23:37]RAPDU: 90 00 [21:23:37]wFMCommunicate OK [21:23:37]wFMCommunicate request_size=255 [21:23:37]MH_SAM_APDU [21:23:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 06 01 00 00 F4 03 04 00 5A EF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B5 01 00 35 04 06 00 64 4E 76 AF [21:23:37]Write to MH i2c: E2 02 01 00 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 06 01 00 00 F4 03 04 00 5A EF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B5 01 00 35 04 06 00 64 4E 76 AF 00 00 47 [21:23:37]Write i2c OK [21:23:37]MH_I2C_Read... [21:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:38]Read from MH i2c: E2 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 03 00 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [21:23:38]RAPDU: 90 00 [21:23:38]wFMCommunicate OK [21:23:38]wFMCommunicate request_size=7 [21:23:38]MH_SAM_APDU [21:23:38]CAPDU: 80 0D 02 02 02 60 02 [21:23:38]Write to MH i2c: E2 0A 00 01 08 80 0D 02 02 02 00 60 02 00 00 E9 [21:23:38]Write i2c OK [21:23:38]MH_I2C_Read... [21:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:38]Read from MH i2c: E2 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 03 00 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [21:23:38]RAPDU: 90 00 [21:23:38]wFMCommunicate OK [21:23:38]wFMCommunicate request_size=4 [21:23:38]MH_SAM_APDU [21:23:38]CAPDU: 80 0D 03 02 [21:23:38]Write to MH i2c: E2 08 00 02 08 80 0D 03 02 00 00 00 00 85 [21:23:38]Write i2c OK [21:23:38]MH_I2C_Read... [21:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:38]Read from MH i2c: E2 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 0B 00 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 0B 00 02 08 00 F7 E1 7E D8 9A 15 1E 53 90 00 D4 [21:23:38]RAPDU: F7 E1 7E D8 9A 15 1E 53 90 00 [21:23:38]wFMCommunicate OK [21:23:38]SAM_PROTO_SignData done [21:23:38]FM_MakeSignedData done [21:23:38]CreateOFDProtocolMessage [21:23:38]wFMCommunicate request_size=4 [21:23:38]MH_SAM_APDU [21:23:38]CAPDU: 80 11 00 00 [21:23:38]Write to MH i2c: E2 08 00 03 08 80 11 00 00 00 00 00 00 85 [21:23:38]Write i2c OK [21:23:38]MH_I2C_Read... [21:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:38]Read from MH i2c: E2 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 17 00 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: E2 17 00 03 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D7 [21:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:23:38]wFMCommunicate OK [21:23:38]CreateOFDProtocolMessage done [21:23:38]OFDSenderStorePacket 112094 [21:23:38]StoreOFDPacket docnum=112094 [21:23:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 93 1A 04 01 74 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 06 01 00 00 F4 03 04 00 5A EF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B5 01 00 35 04 06 00 64 4E 76 AF 60 02 F7 E1 7E D8 9A 15 1E 53 [21:23:38]CheckFolder [21:23:38]dirname=/storage/ofd_packets [21:23:38]CheckFolder done [21:23:38]ProducePacketName [21:23:38]name=ofd_packets/00112094 [21:23:38]NVStorageSaveData ofd_packets/00112094 [21:23:38]File name is /storage/ofd_packets/00112094 [21:23:38]Write 298 bytes [21:23:38]NVStorageSaveData done [21:23:38]OFDSenderStorePacket done [21:23:38]KKMCreateOFDPacket done [21:23:38]NVStorageSaveData kkm_last_timestamp [21:23:38]File name is /storage/kkm_last_timestamp [21:23:38]Write 4 bytes [21:23:38]NVStorageSaveData done [21:23:38]ExternCall_PrintAddStr [21:23:38]wPrintStart [21:23:38]Write to MH i2c: 01 00 00 04 08 0C [21:23:38]Write i2c OK [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: 01 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: 01 07 00 [21:23:38]MH_I2C_Read... [21:23:38]Read from MH i2c: 01 07 00 04 08 00 00 00 00 00 FF 0F 21 [21:23:38]RasterBufferAndPrint [21:23:38]line 小褔械褌 N : (1)320754 [21:23:38]line 袠袧袧: 02508201610067 [21:23:38]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:23:38]line 袩袪袨袛袗袞袗 [21:23:38]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [21:23:38]line 孝芯胁邪褉: 2710194210 [21:23:38]line 袛孝-袣-5 [21:23:38]line 6.860 * 72.90 [21:23:38]line = 500.09 [21:23:38]line 袧袛小 12% 袧小袩 1% [21:23:38]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:23:38]line 袨袣袪校袚袥袝袧袠袝: -0.09 [21:23:38]line 袠孝袨袚袨: 500.00 [21:23:38]line 袙薪械褋械薪芯: 500.00 [21:23:38]line 小袛袗效袗: 0.00 [21:23:38]line 袧小袩 1% : 4.43 [21:23:38]line 袧袛小 12% : 53.11 [21:23:38]line 袧邪谢懈褔薪褘屑懈: 500.00 [21:23:38]line 袘械蟹薪邪谢.: 0.00 [21:23:38]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:23:38]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:23:38]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:23:38]line 效械泻 262 21.06.2024 21:23 [21:23:38]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:23:38]line 袟袧袦: 0300000198 [21:23:38]line 袪袧袦: 0000000000092771 [21:23:38]line 袙械褉褋懈褟 袣袣袦: 001 [21:23:38]line 肖袦: 0000000000875083 [21:23:38]line 肖袛: 112094 [21:23:38]line 肖袩袛: 110288161431554 [21:23:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T212338&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112094&fm=110288161431554&tin=02508201610067®Number=0000000000092771&sum=50000 [21:23:38]OFD Sender: Processing packet 112094 [packets to send 38, broken 37] [21:23:38]ProducePacketName [21:23:38]name=ofd_packets/00112094 [21:23:38]OFD Sender: To server: 嚂鰌G, [21:23:38]CommunicateWithHost lk.salyk.kg:30040 [21:23:38]ConnectInit lk.salyk.kg [21:23:38]written 0, free lines is 4095 [21:23:38]Connected sock=10 [21:23:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 93 1A 04 01 74 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 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 BF 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 06 01 00 00 F4 03 04 00 5A EF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B5 01 00 35 04 06 00 64 4E 76 AF 60 02 F7 E1 7E D8 9A 15 1E 53 [21:23:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5B 87 47 00 63 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 30 38 37 35 30 38 33 10 04 04 00 DE B5 01 00 F4 03 04 00 7A 86 75 66 B6 04 01 00 00 F4 F1 58 43 66 18 A8 5C [21:23:38]CommunicateWithHost err = 0 [21:23:38]CheckOFDResponse [21:23:38]1017 (14) - 77093643461234 [21:23:38]1041 (16) - 0000000000875083 [21:23:38]1040 (4) - 112094 [21:23:38]1012 (4) - 21.06.2024 13:56 [21:23:38]1206 (1) - 0 [21:23:38]OFD Sender: Remove packet 112094 [21:23:38]ProducePacketName [21:23:38]name=ofd_packets/00112094 [21:23:38]NVStorageDeleteData [21:23:39]Write to MH i2c: 01 00 00 2F 08 37 [21:23:39]Write i2c OK [21:23:39]MH_I2C_Read... [21:23:39]Read from MH i2c: 01 [21:23:39]MH_I2C_Read... [21:23:39]Read from MH i2c: 01 07 00 [21:23:39]MH_I2C_Read... [21:23:39]Read from MH i2c: 01 07 00 2F 08 00 00 00 00 00 E1 0C 2B [21:23:39]RasterBufferAndPrint [21:23:39]line [21:23:39]line [21:23:39]line [21:23:39]line [21:23:39]line [21:23:39]written 0, free lines is 3303 [21:23:39]MH_Cut [21:23:39]Write to MH i2c: D1 01 00 36 08 01 10 [21:23:39]Write i2c OK [21:23:39]MH_I2C_Read... [21:23:39]Read from MH i2c: D1 [21:23:39]MH_I2C_Read... [21:23:39]Read from MH i2c: D1 01 00 [21:23:39]MH_I2C_Read... [21:23:39]Read from MH i2c: D1 01 00 36 08 00 0F [21:23:39]Write to MH i2c: 01 00 00 37 08 3F [21:23:39]Write i2c OK [21:23:39]MH_I2C_Read... [21:23:39]OFD Sender: No OFD packet to send [21:23:39]*** Cut start [21:23:39]*** Partial cut [21:23:39]*** CUTSNS_PIN = 1 [21:23:39]*** CUTSNS_PIN = 0 [21:23:40]*** Brake cut motor [21:23:40]Read from MH i2c: 01 [21:23:40]MH_I2C_Read... [21:23:40]*** Stop cut motor [21:23:40]*** Cut end [21:23:40]Read from MH i2c: 01 07 00 [21:23:40]MH_I2C_Read... [21:23:40]Read from MH i2c: 01 07 00 37 08 00 00 00 00 00 FF 0F 54 [21:23:40]process_action close_receipt done [21:23:40]requested_data is exist [21:23:40]produce_requested_data [21:23:40]requested_item fm.sn is exist - process it [21:23:40]wFMCommunicate request_size=4 [21:23:40]MH_SAM_APDU [21:23:40]CAPDU: 80 11 00 00 [21:23:40]Write to MH i2c: E2 08 00 38 08 80 11 00 00 00 00 00 00 BA [21:23:40]Write i2c OK [21:23:40]MH_I2C_Read... [21:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:40]Read from MH i2c: E2 [21:23:40]MH_I2C_Read... [21:23:40]Read from MH i2c: E2 17 00 [21:23:40]MH_I2C_Read... [21:23:40]Read from MH i2c: E2 17 00 38 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0C [21:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:23:40]wFMCommunicate OK [21:23:40]requested_item fd.num is exist - process it [21:23:40]SAM_PROTO_GetFieldsCounters [21:23:40]wFMCommunicate request_size=4 [21:23:40]MH_SAM_APDU [21:23:40]CAPDU: 80 13 00 00 [21:23:40]Write to MH i2c: E2 08 00 39 08 80 13 00 00 00 00 00 00 BD [21:23:40]Write i2c OK [21:23:40]MH_I2C_Read... [21:23:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:40]Read from MH i2c: E2 [21:23:40]MH_I2C_Read... [21:23:40]Read from MH i2c: E2 62 00 [21:23:40]MH_I2C_Read... [21:23:40]Read from MH i2c: E2 62 00 39 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DE B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [21:23:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DE B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:40]wFMCommunicate OK [21:23:40]SAM_PROTO_GetFieldsCounters done [21:23:40]requested_item shift.num is exist - process it [21:23:40]requested_item shift.opened is exist - process it [21:23:40]req_shift_opened [21:23:40]FM_GetShiftState [21:23:40]SAM_PROTO_GetShiftState [21:23:40]wFMCommunicate request_size=4 [21:23:40]MH_SAM_APDU [21:23:40]CAPDU: 80 13 01 00 [21:23:40]Write to MH i2c: E2 08 00 3A 08 80 13 01 00 00 00 00 00 BF [21:23:40]Write i2c OK [21:23:40]MH_I2C_Read... [21:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:40]Read from MH i2c: E2 [21:23:40]MH_I2C_Read... [21:23:40]Read from MH i2c: E2 0E 00 [21:23:40]MH_I2C_Read... [21:23:40]Read from MH i2c: E2 0E 00 3A 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 3C [21:23:40]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:23:40]wFMCommunicate OK [21:23:40]SAM_PROTO_GetShiftState done [21:23:40]FM_GetShiftState done [21:23:40]req_shift_opened done [21:23:40]requested_item shift.open_date is exist - process it [21:23:40]req_shift_open_date [21:23:40]req_shift_open_date done [21:23:40]produce_requested_data done [21:23:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112094,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:23:40]process_action_free close_receipt [21:23:40]json_value_free [21:23:40]json_value_free done [21:23:40]process_json_proto returns [21:23:40]Send response to host [21:23:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112094,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:23:40]free response buf [21:23:40]execute_script done [21:23:40]execute_script returns [21:23:40]free content buf [21:23:40]Sock 7.Close socket [21:23:40]Sock 7.Thread stoped [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:20]accept exits with 9 [21:26:20]New connection [21:26:20]New thread 3066957156 created [21:26:20]Thread 3066813796 joined [21:26:20]Waiting for new connection... [21:26:20] Sock 9.Parse request [21:26:20]Sock 9.Check first char [21:26:20]Sock 9.First char is OK [21:26:20]request: POST /json_proto HTTP/1.0 [21:26:20]Method: POST [21:26:20]URL: /json_proto [21:26:20]Method is POST - this is cgi request [21:26:20]url: /json_proto [21:26:20]query_string will be loaded in cgi processing [21:26:20]execute_cgi json_proto POST (null) [21:26:20]execute_cgi path=json_proto method=POST [21:26:20]POST find Content-Length [21:26:20]Host: 172.17.59.68:8080 [21:26:20]Content-Length: 679 [21:26:20]Content-Type: application/json [21:26:20] [21:26:20]POST finish read [21:26:20]Found Content-Length = 679 [21:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:20]execute_script... [21:26: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)320755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:20]POST & json_proto [21:26:20]process_json_proto [21:26:20]json parsed OK: [21:26:20]protocol is kg_v1.0 [21:26:20]action value=close_receipt [21:26:20]process_action close_receipt [21:26:20]cmd_close_receipt [21:26:20]MH_GetDate [21:26:20]Write to MH i2c: F0 00 00 3B 08 32 [21:26:20]Write i2c OK [21:26:20]MH_I2C_Read... [21:26:20]Read from MH i2c: F0 [21:26:20]MH_I2C_Read... [21:26:20]Read from MH i2c: F0 09 00 [21:26:20]MH_I2C_Read... [21:26:20]Read from MH i2c: F0 09 00 3B 08 00 FE EF 75 66 BC EC 60 65 70 [21:26:20]GetLastDocTimeStamp 1719005018 [21:26:20]current date 1719005182 [21:26:20]FM_GetShiftState [21:26:20]SAM_PROTO_GetShiftState [21:26:20]wFMCommunicate request_size=4 [21:26:20]MH_SAM_APDU [21:26:20]CAPDU: 80 13 01 00 [21:26:20]Write to MH i2c: E2 08 00 3C 08 80 13 01 00 00 00 00 00 C1 [21:26:20]Write i2c OK [21:26:20]MH_I2C_Read... [21:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:20]Read from MH i2c: E2 [21:26:20]MH_I2C_Read... [21:26:20]Read from MH i2c: E2 0E 00 [21:26:20]MH_I2C_Read... [21:26:20]Read from MH i2c: E2 0E 00 3C 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 3E [21:26:20]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:26:20]wFMCommunicate OK [21:26:20]SAM_PROTO_GetShiftState done [21:26:20]FM_GetShiftState done [21:26:20]opened in 1718933695 [21:26:20]opened+sec_in_day 1719020095 [21:26:20]quantity*price = 200037 [21:26:20]sum+1 = 200039 [21:26:20]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.38 袠孝袨袚袨: 2000.00 袙薪械褋械薪芯: 2000.00 小袛袗效袗: 0.00 袧小袩 1% : 17.70 袧袛小 12% : 212.43 袧邪谢懈褔薪褘屑懈: 2000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 263 21.06.2024 21:26 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112095 肖袩袛: 37123732465308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T212622&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112095&fm=37123732465308&tin=02508201610067®Number=0000000000092771&sum=200000 [21:26:21]StoreToDocumentArchive [21:26:21]shift 390 fd 112095 [21:26:21]save to /storage/0390/doc_00112095 [21:26:21]save last doc name /storage/0390/doc_00112095 to /storage/kkm_last_doc_name [21:26:21]save OK [21:26:21]Clear old archive folders... [21:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:26:21]tlvbuf is 01139F50 [21:26:21]SAM_PROTO_ClearQueue [21:26:21]wFMCommunicate request_size=4 [21:26:21]MH_SAM_APDU [21:26:21]CAPDU: 80 09 00 00 [21:26:21]Write to MH i2c: E2 08 00 49 08 80 09 00 00 00 00 00 00 C3 [21:26:21]Write i2c OK [21:26:21]MH_I2C_Read... [21:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:21]Read from MH i2c: E2 [21:26:21]MH_I2C_Read... [21:26:21]Read from MH i2c: E2 03 00 [21:26:21]MH_I2C_Read... [21:26:21]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [21:26:21]RAPDU: 90 00 [21:26:21]wFMCommunicate OK [21:26:21]SAM_PROTO_ClearQueue done [21:26:21]KKMCreateOFDPacket [21:26:21]OFDProtocolAddRootSTLVToBuf [21:26:21]FM_MakeSignedData [21:26:21]FM_MakeSignedData [21:26:21]SAM_PROTO_SignData [21:26:21]wFMCommunicate request_size=4 [21:26:21]MH_SAM_APDU [21:26:21]CAPDU: 80 0D 01 02 [21:26:21]Write to MH i2c: E2 08 00 4A 08 80 0D 01 02 00 00 00 00 CB [21:26:21]Write i2c OK [21:26:21]MH_I2C_Read... [21:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:21]Read from MH i2c: E2 [21:26:21]MH_I2C_Read... [21:26:21]Read from MH i2c: E2 03 00 [21:26:21]MH_I2C_Read... [21:26:21]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [21:26:21]RAPDU: 90 00 [21:26:21]wFMCommunicate OK [21:26:21]wFMCommunicate request_size=255 [21:26:21]MH_SAM_APDU [21:26:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 FE EF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B5 01 00 35 04 06 00 21 C3 8A E2 [21:26:21]Write to MH i2c: E2 02 01 4B 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 FE EF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B5 01 00 35 04 06 00 21 C3 8A E2 00 00 E8 [21:26:21]Write i2c OK [21:26:21]MH_I2C_Read... [21:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:22]Read from MH i2c: E2 [21:26:22]MH_I2C_Read... [21:26:22]Read from MH i2c: E2 03 00 [21:26:22]MH_I2C_Read... [21:26:22]Read from MH i2c: E2 03 00 4B 08 00 90 00 C7 [21:26:22]RAPDU: 90 00 [21:26:22]wFMCommunicate OK [21:26:22]wFMCommunicate request_size=7 [21:26:22]MH_SAM_APDU [21:26:22]CAPDU: 80 0D 02 02 02 E6 9C [21:26:22]Write to MH i2c: E2 0A 00 4C 08 80 0D 02 02 02 00 E6 9C 00 00 54 [21:26:22]Write i2c OK [21:26:22]MH_I2C_Read... [21:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:22]Read from MH i2c: E2 [21:26:22]MH_I2C_Read... [21:26:22]Read from MH i2c: E2 03 00 [21:26:22]MH_I2C_Read... [21:26:22]Read from MH i2c: E2 03 00 4C 08 00 90 00 C8 [21:26:22]RAPDU: 90 00 [21:26:22]wFMCommunicate OK [21:26:22]wFMCommunicate request_size=4 [21:26:22]MH_SAM_APDU [21:26:22]CAPDU: 80 0D 03 02 [21:26:22]Write to MH i2c: E2 08 00 4D 08 80 0D 03 02 00 00 00 00 D0 [21:26:22]Write i2c OK [21:26:22]MH_I2C_Read... [21:26:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:22]Read from MH i2c: E2 [21:26:22]MH_I2C_Read... [21:26:22]Read from MH i2c: E2 0B 00 [21:26:22]MH_I2C_Read... [21:26:22]Read from MH i2c: E2 0B 00 4D 08 00 15 3F 46 5C BD FA 72 E2 90 00 D2 [21:26:22]RAPDU: 15 3F 46 5C BD FA 72 E2 90 00 [21:26:22]wFMCommunicate OK [21:26:22]SAM_PROTO_SignData done [21:26:22]FM_MakeSignedData done [21:26:22]CreateOFDProtocolMessage [21:26:22]wFMCommunicate request_size=4 [21:26:22]MH_SAM_APDU [21:26:22]CAPDU: 80 11 00 00 [21:26:22]Write to MH i2c: E2 08 00 4E 08 80 11 00 00 00 00 00 00 D0 [21:26:22]Write i2c OK [21:26:22]MH_I2C_Read... [21:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:22]Read from MH i2c: E2 [21:26:22]MH_I2C_Read... [21:26:22]Read from MH i2c: E2 17 00 [21:26:22]MH_I2C_Read... [21:26:22]Read from MH i2c: E2 17 00 4E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 22 [21:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:26:22]wFMCommunicate OK [21:26:22]CreateOFDProtocolMessage done [21:26:22]OFDSenderStorePacket 112095 [21:26:22]StoreOFDPacket docnum=112095 [21:26:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 90 52 04 01 08 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 FE EF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B5 01 00 35 04 06 00 21 C3 8A E2 E6 9C 15 3F 46 5C BD FA 72 E2 [21:26:22]CheckFolder [21:26:22]dirname=/storage/ofd_packets [21:26:22]CheckFolder done [21:26:22]ProducePacketName [21:26:22]name=ofd_packets/00112095 [21:26:22]NVStorageSaveData ofd_packets/00112095 [21:26:22]File name is /storage/ofd_packets/00112095 [21:26:22]Write 298 bytes [21:26:22]NVStorageSaveData done [21:26:22]OFDSenderStorePacket done [21:26:22]KKMCreateOFDPacket done [21:26:22]NVStorageSaveData kkm_last_timestamp [21:26:22]File name is /storage/kkm_last_timestamp [21:26:22]Write 4 bytes [21:26:22]NVStorageSaveData done [21:26:22]ExternCall_PrintAddStr [21:26:22]wPrintStart [21:26:22]Write to MH i2c: 01 00 00 4F 08 57 [21:26:22]Write i2c OK [21:26:22]MH_I2C_Read... [21:26:22]Read from MH i2c: 01 [21:26:22]MH_I2C_Read... [21:26:22]Read from MH i2c: 01 07 00 [21:26:22]MH_I2C_Read... [21:26:22]Read from MH i2c: 01 07 00 4F 08 00 00 00 00 00 FF 0F 6C [21:26:22]RasterBufferAndPrint [21:26:22]line 小褔械褌 N : (1)320755 [21:26:22]line 袠袧袧: 02508201610067 [21:26:22]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:26:22]line 袩袪袨袛袗袞袗 [21:26:22]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [21:26:22]line 孝芯胁邪褉: 2710194210 [21:26:22]line 袛孝-袣-5 [21:26:22]line 27.440 * 72.90 [21:26:22]line = 2000.38 [21:26:22]line 袧袛小 12% 袧小袩 1% [21:26:22]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:26:22]line 袨袣袪校袚袥袝袧袠袝: -0.38 [21:26:22]line 袠孝袨袚袨: 2000.00 [21:26:22]line 袙薪械褋械薪芯: 2000.00 [21:26:22]line 小袛袗效袗: 0.00 [21:26:22]line 袧小袩 1% : 17.70 [21:26:22]line 袧袛小 12% : 212.43 [21:26:22]line 袧邪谢懈褔薪褘屑懈: 2000.00 [21:26:22]line 袘械蟹薪邪谢.: 0.00 [21:26:22]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:26:22]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:26:22]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:26:22]line 效械泻 263 21.06.2024 21:26 [21:26:22]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:26:22]line 袟袧袦: 0300000198 [21:26:22]line 袪袧袦: 0000000000092771 [21:26:22]line 袙械褉褋懈褟 袣袣袦: 001 [21:26:22]line 肖袦: 0000000000875083 [21:26:22]line 肖袛: 112095 [21:26:22]line 肖袩袛: 37123732465308 [21:26:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T212622&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112095&fm=37123732465308&tin=02508201610067®Number=0000000000092771&sum=200000 [21:26:22]OFD Sender: Processing packet 112095 [packets to send 38, broken 37] [21:26:22]ProducePacketName [21:26:22]name=ofd_packets/00112095 [21:26:22]OFD Sender: To server: 嚂鰌G, [21:26:22]CommunicateWithHost lk.salyk.kg:30040 [21:26:22]ConnectInit lk.salyk.kg [21:26:22]written 0, free lines is 4095 [21:26:22]Connected sock=10 [21:26:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 90 52 04 01 08 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 FE EF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B5 01 00 35 04 06 00 21 C3 8A E2 E6 9C 15 3F 46 5C BD FA 72 E2 [21:26:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 41 D6 47 00 EC 01 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 30 38 37 35 30 38 33 10 04 04 00 DF B5 01 00 F4 03 04 00 1E 87 75 66 B6 04 01 00 00 FC 10 A0 46 A0 17 99 98 [21:26:22]CommunicateWithHost err = 0 [21:26:22]CheckOFDResponse [21:26:22]1017 (14) - 77093643461234 [21:26:22]1041 (16) - 0000000000875083 [21:26:22]1040 (4) - 112095 [21:26:22]1012 (4) - 21.06.2024 13:58 [21:26:22]1206 (1) - 0 [21:26:22]OFD Sender: Remove packet 112095 [21:26:22]ProducePacketName [21:26:22]name=ofd_packets/00112095 [21:26:22]NVStorageDeleteData [21:26:23]Write to MH i2c: 01 00 00 7A 08 82 [21:26:23]Write i2c OK [21:26:23]MH_I2C_Read... [21:26:23]Read from MH i2c: 01 [21:26:23]MH_I2C_Read... [21:26:23]Read from MH i2c: 01 07 00 [21:26:23]MH_I2C_Read... [21:26:23]Read from MH i2c: 01 07 00 7A 08 00 00 00 00 00 EF 0C 84 [21:26:23]RasterBufferAndPrint [21:26:23]line [21:26:23]line [21:26:23]line [21:26:23]line [21:26:23]line [21:26:23]written 0, free lines is 3317 [21:26:23]MH_Cut [21:26:23]Write to MH i2c: D1 01 00 81 08 01 5B [21:26:23]Write i2c OK [21:26:23]MH_I2C_Read... [21:26:23]Read from MH i2c: D1 [21:26:23]MH_I2C_Read... [21:26:23]Read from MH i2c: D1 01 00 [21:26:23]MH_I2C_Read... [21:26:23]Read from MH i2c: D1 01 00 81 08 00 5A [21:26:23]Write to MH i2c: 01 00 00 82 08 8A [21:26:23]Write i2c OK [21:26:23]MH_I2C_Read... [21:26:23]OFD Sender: No OFD packet to send [21:26:23]*** Cut start [21:26:23]*** Partial cut [21:26:23]*** CUTSNS_PIN = 1 [21:26:23]*** CUTSNS_PIN = 0 [21:26:23]*** Brake cut motor [21:26:24]Read from MH i2c: 01 [21:26:24]MH_I2C_Read... [21:26:24]*** Stop cut motor [21:26:24]*** Cut end [21:26:24]Read from MH i2c: 01 07 00 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: 01 07 00 82 08 00 00 00 00 00 FF 0F 9F [21:26:24]process_action close_receipt done [21:26:24]requested_data is exist [21:26:24]produce_requested_data [21:26:24]requested_item fm.sn is exist - process it [21:26:24]wFMCommunicate request_size=4 [21:26:24]MH_SAM_APDU [21:26:24]CAPDU: 80 11 00 00 [21:26:24]Write to MH i2c: E2 08 00 83 08 80 11 00 00 00 00 00 00 05 [21:26:24]Write i2c OK [21:26:24]MH_I2C_Read... [21:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:24]Read from MH i2c: E2 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: E2 17 00 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: E2 17 00 83 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 57 [21:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:26:24]wFMCommunicate OK [21:26:24]requested_item fd.num is exist - process it [21:26:24]SAM_PROTO_GetFieldsCounters [21:26:24]wFMCommunicate request_size=4 [21:26:24]MH_SAM_APDU [21:26:24]CAPDU: 80 13 00 00 [21:26:24]Write to MH i2c: E2 08 00 84 08 80 13 00 00 00 00 00 00 08 [21:26:24]Write i2c OK [21:26:24]MH_I2C_Read... [21:26:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:24]Read from MH i2c: E2 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: E2 62 00 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: E2 62 00 84 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [21:26:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:24]wFMCommunicate OK [21:26:24]SAM_PROTO_GetFieldsCounters done [21:26:24]requested_item shift.num is exist - process it [21:26:24]requested_item shift.opened is exist - process it [21:26:24]req_shift_opened [21:26:24]FM_GetShiftState [21:26:24]SAM_PROTO_GetShiftState [21:26:24]wFMCommunicate request_size=4 [21:26:24]MH_SAM_APDU [21:26:24]CAPDU: 80 13 01 00 [21:26:24]Write to MH i2c: E2 08 00 85 08 80 13 01 00 00 00 00 00 0A [21:26:24]Write i2c OK [21:26:24]MH_I2C_Read... [21:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:24]Read from MH i2c: E2 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: E2 0E 00 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: E2 0E 00 85 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 87 [21:26:24]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:26:24]wFMCommunicate OK [21:26:24]SAM_PROTO_GetShiftState done [21:26:24]FM_GetShiftState done [21:26:24]req_shift_opened done [21:26:24]requested_item shift.open_date is exist - process it [21:26:24]req_shift_open_date [21:26:24]req_shift_open_date done [21:26:24]produce_requested_data done [21:26:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112095,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:26:24]process_action_free close_receipt [21:26:24]json_value_free [21:26:24]json_value_free done [21:26:24]process_json_proto returns [21:26:24]Send response to host [21:26:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112095,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:26:24]free response buf [21:26:24]execute_script done [21:26:24]execute_script returns [21:26:24]free content buf [21:26:24]Sock 9.Close socket [21:26:24]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:28]OFD Sender: No OFD packet to send [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:53]OFD Sender: No OFD packet to send [21:32:58]OFD Sender: No OFD packet to send [21:33:03]OFD Sender: No OFD packet to send [21:33:08]OFD Sender: No OFD packet to send [21:33:13]OFD Sender: No OFD packet to send [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:47]accept exits with 7 [21:35:47]New connection [21:35:47]New thread 3066813796 created [21:35:47]Thread 3066957156 joined [21:35:47]Waiting for new connection... [21:35:47] Sock 7.Parse request [21:35:47]Sock 7.Check first char [21:35:47]Sock 7.First char is OK [21:35:47]request: POST /json_proto HTTP/1.0 [21:35:47]Method: POST [21:35:47]URL: /json_proto [21:35:47]Method is POST - this is cgi request [21:35:47]url: /json_proto [21:35:47]query_string will be loaded in cgi processing [21:35:47]execute_cgi json_proto POST (null) [21:35:47]execute_cgi path=json_proto method=POST [21:35:47]POST find Content-Length [21:35:47]Host: 172.17.59.68:8080 [21:35:47]Content-Length: 682 [21:35:47]Content-Type: application/json [21:35:47] [21:35:47]POST finish read [21:35:47]Found Content-Length = 682 [21:35:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:35:47]execute_script... [21:35: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)320756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:35:47]POST & json_proto [21:35:47]process_json_proto [21:35:47]json parsed OK: [21:35:47]protocol is kg_v1.0 [21:35:47]action value=close_receipt [21:35:47]process_action close_receipt [21:35:47]cmd_close_receipt [21:35:47]MH_GetDate [21:35:47]Write to MH i2c: F0 00 00 86 08 7D [21:35:47]Write i2c OK [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: F0 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: F0 09 00 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: F0 09 00 86 08 00 35 F2 75 66 BC EC 60 65 F5 [21:35:47]GetLastDocTimeStamp 1719005182 [21:35:47]current date 1719005749 [21:35:47]FM_GetShiftState [21:35:47]SAM_PROTO_GetShiftState [21:35:47]wFMCommunicate request_size=4 [21:35:47]MH_SAM_APDU [21:35:47]CAPDU: 80 13 01 00 [21:35:47]Write to MH i2c: E2 08 00 87 08 80 13 01 00 00 00 00 00 0C [21:35:47]Write i2c OK [21:35:47]MH_I2C_Read... [21:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:47]Read from MH i2c: E2 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: E2 0E 00 [21:35:47]MH_I2C_Read... [21:35:47]Read from MH i2c: E2 0E 00 87 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 89 [21:35:47]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:35:47]wFMCommunicate OK [21:35:47]SAM_PROTO_GetShiftState done [21:35:47]FM_GetShiftState done [21:35:47]opened in 1718933695 [21:35:47]opened+sec_in_day 1719020095 [21:35:47]quantity*price = 100064 [21:35:47]sum+1 = 100066 [21:35:47]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 264 21.06.2024 21:35 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112096 肖袩袛: 273683415252180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T213549&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112096&fm=273683415252180&tin=02508201610067®Number=0000000000092771&sum=100000 [21:35:48]StoreToDocumentArchive [21:35:48]shift 390 fd 112096 [21:35:48]save to /storage/0390/doc_00112096 [21:35:48]save last doc name /storage/0390/doc_00112096 to /storage/kkm_last_doc_name [21:35:48]save OK [21:35:48]Clear old archive folders... [21:35:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:35:48]tlvbuf is 01143C70 [21:35:48]SAM_PROTO_ClearQueue [21:35:48]wFMCommunicate request_size=4 [21:35:48]MH_SAM_APDU [21:35:48]CAPDU: 80 09 00 00 [21:35:48]Write to MH i2c: E2 08 00 94 08 80 09 00 00 00 00 00 00 0E [21:35:48]Write i2c OK [21:35:48]MH_I2C_Read... [21:35:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:48]Read from MH i2c: E2 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 03 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [21:35:48]RAPDU: 90 00 [21:35:48]wFMCommunicate OK [21:35:48]SAM_PROTO_ClearQueue done [21:35:48]KKMCreateOFDPacket [21:35:48]OFDProtocolAddRootSTLVToBuf [21:35:48]FM_MakeSignedData [21:35:48]FM_MakeSignedData [21:35:48]SAM_PROTO_SignData [21:35:48]wFMCommunicate request_size=4 [21:35:48]MH_SAM_APDU [21:35:48]CAPDU: 80 0D 01 02 [21:35:48]Write to MH i2c: E2 08 00 95 08 80 0D 01 02 00 00 00 00 16 [21:35:48]Write i2c OK [21:35:48]MH_I2C_Read... [21:35:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:48]Read from MH i2c: E2 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 03 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 03 00 95 08 00 90 00 11 [21:35:48]RAPDU: 90 00 [21:35:48]wFMCommunicate OK [21:35:48]wFMCommunicate request_size=255 [21:35:48]MH_SAM_APDU [21:35:48]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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 08 01 00 00 F4 03 04 00 35 F2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B5 01 00 35 04 06 00 F8 [21:35:48]Write to MH i2c: E2 02 01 96 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 08 01 00 00 F4 03 04 00 35 F2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B5 01 00 35 04 06 00 F8 00 00 3A [21:35:48]Write i2c OK [21:35:48]MH_I2C_Read... [21:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:48]Read from MH i2c: E2 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 03 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [21:35:48]RAPDU: 90 00 [21:35:48]wFMCommunicate OK [21:35:48]wFMCommunicate request_size=10 [21:35:48]MH_SAM_APDU [21:35:48]CAPDU: 80 0D 02 02 05 E9 E2 BF 3C D4 [21:35:48]Write to MH i2c: E2 0D 00 97 08 80 0D 02 02 05 00 E9 E2 BF 3C D4 00 00 BD [21:35:48]Write i2c OK [21:35:48]MH_I2C_Read... [21:35:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:48]Read from MH i2c: E2 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 03 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 03 00 97 08 00 90 00 13 [21:35:48]RAPDU: 90 00 [21:35:48]wFMCommunicate OK [21:35:48]wFMCommunicate request_size=4 [21:35:48]MH_SAM_APDU [21:35:48]CAPDU: 80 0D 03 02 [21:35:48]Write to MH i2c: E2 08 00 98 08 80 0D 03 02 00 00 00 00 1B [21:35:48]Write i2c OK [21:35:48]MH_I2C_Read... [21:35:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:48]Read from MH i2c: E2 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 0B 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 0B 00 98 08 00 0A 92 98 22 DF A5 63 B7 90 00 10 [21:35:48]RAPDU: 0A 92 98 22 DF A5 63 B7 90 00 [21:35:48]wFMCommunicate OK [21:35:48]SAM_PROTO_SignData done [21:35:48]FM_MakeSignedData done [21:35:48]CreateOFDProtocolMessage [21:35:48]wFMCommunicate request_size=4 [21:35:48]MH_SAM_APDU [21:35:48]CAPDU: 80 11 00 00 [21:35:48]Write to MH i2c: E2 08 00 99 08 80 11 00 00 00 00 00 00 1B [21:35:48]Write i2c OK [21:35:48]MH_I2C_Read... [21:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:48]Read from MH i2c: E2 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 17 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: E2 17 00 99 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6D [21:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:35:48]wFMCommunicate OK [21:35:48]CreateOFDProtocolMessage done [21:35:48]OFDSenderStorePacket 112096 [21:35:48]StoreOFDPacket docnum=112096 [21:35:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 19 7D 07 01 9E 00 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 08 01 00 00 F4 03 04 00 35 F2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B5 01 00 35 04 06 00 F8 E9 E2 BF 3C D4 0A 92 98 22 DF A5 63 B7 [21:35:48]CheckFolder [21:35:48]dirname=/storage/ofd_packets [21:35:48]CheckFolder done [21:35:48]ProducePacketName [21:35:48]name=ofd_packets/00112096 [21:35:48]NVStorageSaveData ofd_packets/00112096 [21:35:48]File name is /storage/ofd_packets/00112096 [21:35:48]Write 301 bytes [21:35:48]NVStorageSaveData done [21:35:48]OFDSenderStorePacket done [21:35:48]KKMCreateOFDPacket done [21:35:48]NVStorageSaveData kkm_last_timestamp [21:35:48]File name is /storage/kkm_last_timestamp [21:35:48]Write 4 bytes [21:35:48]NVStorageSaveData done [21:35:48]ExternCall_PrintAddStr [21:35:48]wPrintStart [21:35:48]Write to MH i2c: 01 00 00 9A 08 A2 [21:35:48]Write i2c OK [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: 01 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: 01 07 00 [21:35:48]MH_I2C_Read... [21:35:48]Read from MH i2c: 01 07 00 9A 08 00 00 00 00 00 FF 0F B7 [21:35:48]RasterBufferAndPrint [21:35:48]line 小褔械褌 N : (1)320756 [21:35:48]line 袠袧袧: 02508201610067 [21:35:48]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:35:48]line 袩袪袨袛袗袞袗 [21:35:48]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [21:35:48]line 孝芯胁邪褉: 2710124130 [21:35:48]line 袗懈-92-袣-5 [21:35:48]line 15.070 * 66.40 [21:35:48]line = 1000.65 [21:35:48]line 袧袛小 12% 袧小袩 1% [21:35:48]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:35:48]line 袨袣袪校袚袥袝袧袠袝: -0.65 [21:35:48]line 袠孝袨袚袨: 1000.00 [21:35:48]line 袙薪械褋械薪芯: 1000.00 [21:35:48]line 小袛袗效袗: 0.00 [21:35:48]line 袧小袩 1% : 8.85 [21:35:48]line 袧袛小 12% : 106.26 [21:35:48]line 袧邪谢懈褔薪褘屑懈: 1000.00 [21:35:48]line 袘械蟹薪邪谢.: 0.00 [21:35:48]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:35:48]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:35:48]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:35:48]line 效械泻 264 21.06.2024 21:35 [21:35:48]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:35:48]line 袟袧袦: 0300000198 [21:35:48]line 袪袧袦: 0000000000092771 [21:35:48]line 袙械褉褋懈褟 袣袣袦: 001 [21:35:48]line 肖袦: 0000000000875083 [21:35:48]line 肖袛: 112096 [21:35:48]line 肖袩袛: 273683415252180 [21:35:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T213549&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112096&fm=273683415252180&tin=02508201610067®Number=0000000000092771&sum=100000 [21:35:49]OFD Sender: Processing packet 112096 [packets to send 38, broken 37] [21:35:49]ProducePacketName [21:35:49]name=ofd_packets/00112096 [21:35:49]OFD Sender: To server: 嚂鰌G, [21:35:49]CommunicateWithHost lk.salyk.kg:30040 [21:35:49]ConnectInit lk.salyk.kg [21:35:49]written 0, free lines is 4095 [21:35:49]Connected sock=11 [21:35:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 19 7D 07 01 9E 00 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 08 01 00 00 F4 03 04 00 35 F2 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B5 01 00 35 04 06 00 F8 E9 E2 BF 3C D4 0A 92 98 22 DF A5 63 B7 [21:35:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9C 25 47 00 DF 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 30 38 37 35 30 38 33 10 04 04 00 E0 B5 01 00 F4 03 04 00 55 89 75 66 B6 04 01 00 00 E7 6C 43 FB 16 53 5D 9C [21:35:49]CommunicateWithHost err = 0 [21:35:49]CheckOFDResponse [21:35:49]1017 (14) - 77093643461234 [21:35:49]1041 (16) - 0000000000875083 [21:35:49]1040 (4) - 112096 [21:35:49]1012 (4) - 21.06.2024 14:08 [21:35:49]1206 (1) - 0 [21:35:49]OFD Sender: Remove packet 112096 [21:35:49]ProducePacketName [21:35:49]name=ofd_packets/00112096 [21:35:49]NVStorageDeleteData [21:35:49]Write to MH i2c: 01 00 00 C5 08 CD [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: 01 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: 01 07 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: 01 07 00 C5 08 00 00 00 00 00 E5 0C C5 [21:35:49]RasterBufferAndPrint [21:35:49]line [21:35:49]line [21:35:49]line [21:35:49]line [21:35:49]line [21:35:49]written 0, free lines is 3307 [21:35:49]MH_Cut [21:35:49]Write to MH i2c: D1 01 00 CC 08 01 A6 [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: D1 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: D1 01 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: D1 01 00 CC 08 00 A5 [21:35:49]Write to MH i2c: 01 00 00 CD 08 D5 [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]OFD Sender: No OFD packet to send [21:35:50]*** Cut start [21:35:50]*** Partial cut [21:35:50]*** CUTSNS_PIN = 1 [21:35:50]*** CUTSNS_PIN = 0 [21:35:50]*** Brake cut motor [21:35:50]Read from MH i2c: 01 [21:35:50]MH_I2C_Read... [21:35:50]*** Stop cut motor [21:35:50]*** Cut end [21:35:50]Read from MH i2c: 01 07 00 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: 01 07 00 CD 08 00 00 00 00 00 FF 0F EA [21:35:50]process_action close_receipt done [21:35:50]requested_data is exist [21:35:50]produce_requested_data [21:35:50]requested_item fm.sn is exist - process it [21:35:50]wFMCommunicate request_size=4 [21:35:50]MH_SAM_APDU [21:35:50]CAPDU: 80 11 00 00 [21:35:50]Write to MH i2c: E2 08 00 CE 08 80 11 00 00 00 00 00 00 50 [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:50]Read from MH i2c: E2 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: E2 17 00 [21:35:50]MH_I2C_Read... [21:35:50]Read from MH i2c: E2 17 00 CE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A2 [21:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:35:50]wFMCommunicate OK [21:35:50]requested_item fd.num is exist - process it [21:35:50]SAM_PROTO_GetFieldsCounters [21:35:50]wFMCommunicate request_size=4 [21:35:50]MH_SAM_APDU [21:35:50]CAPDU: 80 13 00 00 [21:35:50]Write to MH i2c: E2 08 00 CF 08 80 13 00 00 00 00 00 00 53 [21:35:50]Write i2c OK [21:35:50]MH_I2C_Read... [21:35:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:51]Read from MH i2c: E2 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 62 00 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 62 00 CF 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [21:35:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:51]wFMCommunicate OK [21:35:51]SAM_PROTO_GetFieldsCounters done [21:35:51]requested_item shift.num is exist - process it [21:35:51]requested_item shift.opened is exist - process it [21:35:51]req_shift_opened [21:35:51]FM_GetShiftState [21:35:51]SAM_PROTO_GetShiftState [21:35:51]wFMCommunicate request_size=4 [21:35:51]MH_SAM_APDU [21:35:51]CAPDU: 80 13 01 00 [21:35:51]Write to MH i2c: E2 08 00 D0 08 80 13 01 00 00 00 00 00 55 [21:35:51]Write i2c OK [21:35:51]MH_I2C_Read... [21:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:51]Read from MH i2c: E2 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 0E 00 [21:35:51]MH_I2C_Read... [21:35:51]Read from MH i2c: E2 0E 00 D0 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D2 [21:35:51]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:35:51]wFMCommunicate OK [21:35:51]SAM_PROTO_GetShiftState done [21:35:51]FM_GetShiftState done [21:35:51]req_shift_opened done [21:35:51]requested_item shift.open_date is exist - process it [21:35:51]req_shift_open_date [21:35:51]req_shift_open_date done [21:35:51]produce_requested_data done [21:35:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112096,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:35:51]process_action_free close_receipt [21:35:51]json_value_free [21:35:51]json_value_free done [21:35:51]process_json_proto returns [21:35:51]Send response to host [21:35:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112096,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:35:51]free response buf [21:35:51]execute_script done [21:35:51]execute_script returns [21:35:51]free content buf [21:35:51]Sock 7.Close socket [21:35:51]Sock 7.Thread stoped [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37: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:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:50:58]accept exits with 9 [21:50:58]New connection [21:50:58]New thread 3066957156 created [21:50:58]Thread 3066813796 joined [21:50:58]Waiting for new connection... [21:50:58] Sock 9.Parse request [21:50:58]Sock 9.Check first char [21:50:58]Sock 9.First char is OK [21:50:58]request: POST /json_proto HTTP/1.0 [21:50:58]Method: POST [21:50:58]URL: /json_proto [21:50:58]Method is POST - this is cgi request [21:50:58]url: /json_proto [21:50:58]query_string will be loaded in cgi processing [21:50:58]execute_cgi json_proto POST (null) [21:50:58]execute_cgi path=json_proto method=POST [21:50:58]POST find Content-Length [21:50:58]Host: 172.17.59.68:8080 [21:50:58]Content-Length: 677 [21:50:58]Content-Type: application/json [21:50:58] [21:50:58]POST finish read [21:50:58]Found Content-Length = 677 [21:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [21:50:58]execute_script... [21:50: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)320757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [21:50:58]POST & json_proto [21:50:58]process_json_proto [21:50:58]json parsed OK: [21:50:58]protocol is kg_v1.0 [21:50:58]action value=close_receipt [21:50:58]process_action close_receipt [21:50:58]cmd_close_receipt [21:50:58]MH_GetDate [21:50:58]Write to MH i2c: F0 00 00 D1 08 C8 [21:50:58]Write i2c OK [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: F0 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: F0 09 00 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: F0 09 00 D1 08 00 C4 F5 75 66 BC EC 60 65 D2 [21:50:58]GetLastDocTimeStamp 1719005749 [21:50:58]current date 1719006660 [21:50:58]FM_GetShiftState [21:50:58]SAM_PROTO_GetShiftState [21:50:58]wFMCommunicate request_size=4 [21:50:58]MH_SAM_APDU [21:50:58]CAPDU: 80 13 01 00 [21:50:58]Write to MH i2c: E2 08 00 D2 08 80 13 01 00 00 00 00 00 57 [21:50:58]Write i2c OK [21:50:58]MH_I2C_Read... [21:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:58]Read from MH i2c: E2 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: E2 0E 00 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: E2 0E 00 D2 08 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D4 [21:50:58]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:50:58]wFMCommunicate OK [21:50:58]SAM_PROTO_GetShiftState done [21:50:58]FM_GetShiftState done [21:50:58]opened in 1718933695 [21:50:58]opened+sec_in_day 1719020095 [21:50:58]quantity*price = 60025 [21:50:58]sum+1 = 60027 [21:50:58]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.26 袠孝袨袚袨: 600.00 袙薪械褋械薪芯: 600.00 小袛袗效袗: 0.00 袧小袩 1% : 5.31 袧袛小 12% : 63.74 袧邪谢懈褔薪褘屑懈: 600.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 265 21.06.2024 21:51 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112097 肖袩袛: 45466027948953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T215100&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112097&fm=45466027948953&tin=02508201610067®Number=0000000000092771&sum=60000 [21:50:59]StoreToDocumentArchive [21:50:59]shift 390 fd 112097 [21:50:59]save to /storage/0390/doc_00112097 [21:50:59]save last doc name /storage/0390/doc_00112097 to /storage/kkm_last_doc_name [21:50:59]save OK [21:50:59]Clear old archive folders... [21:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:50:59]tlvbuf is 010FB2F0 [21:50:59]SAM_PROTO_ClearQueue [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 09 00 00 [21:50:59]Write to MH i2c: E2 08 00 DF 08 80 09 00 00 00 00 00 00 59 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 03 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 03 00 DF 08 00 90 00 5B [21:50:59]RAPDU: 90 00 [21:50:59]wFMCommunicate OK [21:50:59]SAM_PROTO_ClearQueue done [21:50:59]KKMCreateOFDPacket [21:50:59]OFDProtocolAddRootSTLVToBuf [21:50:59]FM_MakeSignedData [21:50:59]FM_MakeSignedData [21:50:59]SAM_PROTO_SignData [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 0D 01 02 [21:50:59]Write to MH i2c: E2 08 00 E0 08 80 0D 01 02 00 00 00 00 61 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 03 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 03 00 E0 08 00 90 00 5C [21:50:59]RAPDU: 90 00 [21:50:59]wFMCommunicate OK [21:50:59]wFMCommunicate request_size=255 [21:50:59]MH_SAM_APDU [21:50:59]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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 09 01 00 00 F4 03 04 00 C4 F5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B5 01 00 35 04 06 00 29 [21:50:59]Write to MH i2c: E2 02 01 E1 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 09 01 00 00 F4 03 04 00 C4 F5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B5 01 00 35 04 06 00 29 00 00 D7 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 03 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [21:50:59]RAPDU: 90 00 [21:50:59]wFMCommunicate OK [21:50:59]wFMCommunicate request_size=10 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 0D 02 02 05 59 E2 71 FB 99 [21:50:59]Write to MH i2c: E2 0D 00 E2 08 80 0D 02 02 05 00 59 E2 71 FB 99 00 00 AE [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 03 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 03 00 E2 08 00 90 00 5E [21:50:59]RAPDU: 90 00 [21:50:59]wFMCommunicate OK [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 0D 03 02 [21:50:59]Write to MH i2c: E2 08 00 E3 08 80 0D 03 02 00 00 00 00 66 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 0B 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 0B 00 E3 08 00 E6 77 10 0E 66 2F 6B 2D 90 00 0F [21:50:59]RAPDU: E6 77 10 0E 66 2F 6B 2D 90 00 [21:50:59]wFMCommunicate OK [21:50:59]SAM_PROTO_SignData done [21:50:59]FM_MakeSignedData done [21:50:59]CreateOFDProtocolMessage [21:50:59]wFMCommunicate request_size=4 [21:50:59]MH_SAM_APDU [21:50:59]CAPDU: 80 11 00 00 [21:50:59]Write to MH i2c: E2 08 00 E4 08 80 11 00 00 00 00 00 00 66 [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:59]Read from MH i2c: E2 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 17 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: E2 17 00 E4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B8 [21:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:50:59]wFMCommunicate OK [21:50:59]CreateOFDProtocolMessage done [21:50:59]OFDSenderStorePacket 112097 [21:50:59]StoreOFDPacket docnum=112097 [21:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC 70 07 01 00 C6 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 09 01 00 00 F4 03 04 00 C4 F5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B5 01 00 35 04 06 00 29 59 E2 71 FB 99 E6 77 10 0E 66 2F 6B 2D [21:50:59]CheckFolder [21:50:59]dirname=/storage/ofd_packets [21:50:59]CheckFolder done [21:50:59]ProducePacketName [21:50:59]name=ofd_packets/00112097 [21:50:59]NVStorageSaveData ofd_packets/00112097 [21:50:59]File name is /storage/ofd_packets/00112097 [21:50:59]Write 301 bytes [21:50:59]NVStorageSaveData done [21:50:59]OFDSenderStorePacket done [21:50:59]KKMCreateOFDPacket done [21:50:59]NVStorageSaveData kkm_last_timestamp [21:50:59]File name is /storage/kkm_last_timestamp [21:50:59]Write 4 bytes [21:50:59]NVStorageSaveData done [21:50:59]ExternCall_PrintAddStr [21:50:59]wPrintStart [21:50:59]Write to MH i2c: 01 00 00 E5 08 ED [21:50:59]Write i2c OK [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: 01 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: 01 07 00 [21:50:59]MH_I2C_Read... [21:50:59]Read from MH i2c: 01 07 00 E5 08 00 00 00 00 00 FF 0F 02 [21:50:59]RasterBufferAndPrint [21:50:59]line 小褔械褌 N : (1)320757 [21:50:59]line 袠袧袧: 02508201610067 [21:50:59]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:50:59]line 袩袪袨袛袗袞袗 [21:50:59]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [21:50:59]line 孝芯胁邪褉: 2710124130 [21:50:59]line 袗懈-92-袣-5 [21:50:59]line 9.040 * 66.40 [21:50:59]line = 600.26 [21:50:59]line 袧袛小 12% 袧小袩 1% [21:50:59]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:50:59]line 袨袣袪校袚袥袝袧袠袝: -0.26 [21:50:59]line 袠孝袨袚袨: 600.00 [21:50:59]line 袙薪械褋械薪芯: 600.00 [21:50:59]line 小袛袗效袗: 0.00 [21:50:59]line 袧小袩 1% : 5.31 [21:50:59]line 袧袛小 12% : 63.74 [21:50:59]line 袧邪谢懈褔薪褘屑懈: 600.00 [21:50:59]line 袘械蟹薪邪谢.: 0.00 [21:50:59]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:50:59]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:50:59]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:50:59]line 效械泻 265 21.06.2024 21:51 [21:50:59]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:50:59]line 袟袧袦: 0300000198 [21:50:59]line 袪袧袦: 0000000000092771 [21:50:59]line 袙械褉褋懈褟 袣袣袦: 001 [21:50:59]line 肖袦: 0000000000875083 [21:50:59]line 肖袛: 112097 [21:50:59]line 肖袩袛: 45466027948953 [21:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T215100&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112097&fm=45466027948953&tin=02508201610067®Number=0000000000092771&sum=60000 [21:51:00]OFD Sender: Processing packet 112097 [packets to send 38, broken 37] [21:51:00]ProducePacketName [21:51:00]name=ofd_packets/00112097 [21:51:00]OFD Sender: To server: 嚂鰌G, [21:51:00]CommunicateWithHost lk.salyk.kg:30040 [21:51:00]ConnectInit lk.salyk.kg [21:51:00]written 0, free lines is 4095 [21:51:00]Connected sock=10 [21:51:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC 70 07 01 00 C6 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 09 01 00 00 F4 03 04 00 C4 F5 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B5 01 00 35 04 06 00 29 59 E2 71 FB 99 E6 77 10 0E 66 2F 6B 2D [21:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D0 88 47 00 1F 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B5 01 00 F4 03 04 00 E4 8C 75 66 B6 04 01 00 00 53 02 06 31 50 C8 B5 85 [21:51:00]CommunicateWithHost err = 0 [21:51:00]CheckOFDResponse [21:51:00]1017 (14) - 77093643461234 [21:51:00]1041 (16) - 0000000000875083 [21:51:00]1040 (4) - 112097 [21:51:00]1012 (4) - 21.06.2024 14:23 [21:51:00]1206 (1) - 0 [21:51:00]OFD Sender: Remove packet 112097 [21:51:00]ProducePacketName [21:51:00]name=ofd_packets/00112097 [21:51:00]NVStorageDeleteData [21:51:00]Write to MH i2c: 01 00 00 10 09 19 [21:51:00]Write i2c OK [21:51:00]MH_I2C_Read... [21:51:00]Read from MH i2c: 01 [21:51:00]MH_I2C_Read... [21:51:00]Read from MH i2c: 01 07 00 [21:51:00]MH_I2C_Read... [21:51:00]Read from MH i2c: 01 07 00 10 09 00 00 00 00 00 E4 0C 10 [21:51:00]RasterBufferAndPrint [21:51:00]line [21:51:00]line [21:51:00]line [21:51:00]line [21:51:00]line [21:51:00]written 0, free lines is 3306 [21:51:00]MH_Cut [21:51:00]Write to MH i2c: D1 01 00 17 09 01 F2 [21:51:00]Write i2c OK [21:51:00]MH_I2C_Read... [21:51:00]Read from MH i2c: D1 [21:51:00]MH_I2C_Read... [21:51:00]Read from MH i2c: D1 01 00 [21:51:00]MH_I2C_Read... [21:51:00]Read from MH i2c: D1 01 00 17 09 00 F1 [21:51:00]Write to MH i2c: 01 00 00 18 09 21 [21:51:00]Write i2c OK [21:51:00]MH_I2C_Read... [21:51:01]OFD Sender: No OFD packet to send [21:51:01]*** Cut start [21:51:01]*** Partial cut [21:51:01]*** CUTSNS_PIN = 1 [21:51:01]*** CUTSNS_PIN = 0 [21:51:01]*** Brake cut motor [21:51:02]Read from MH i2c: 01 [21:51:02]MH_I2C_Read... [21:51:02]*** Stop cut motor [21:51:02]*** Cut end [21:51:02]Read from MH i2c: 01 07 00 [21:51:02]MH_I2C_Read... [21:51:02]Read from MH i2c: 01 07 00 18 09 00 00 00 00 00 FF 0F 36 [21:51:02]process_action close_receipt done [21:51:02]requested_data is exist [21:51:02]produce_requested_data [21:51:02]requested_item fm.sn is exist - process it [21:51:02]wFMCommunicate request_size=4 [21:51:02]MH_SAM_APDU [21:51:02]CAPDU: 80 11 00 00 [21:51:02]Write to MH i2c: E2 08 00 19 09 80 11 00 00 00 00 00 00 9C [21:51:02]Write i2c OK [21:51:02]MH_I2C_Read... [21:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:02]Read from MH i2c: E2 [21:51:02]MH_I2C_Read... [21:51:02]Read from MH i2c: E2 17 00 [21:51:02]MH_I2C_Read... [21:51:02]Read from MH i2c: E2 17 00 19 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [21:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:51:02]wFMCommunicate OK [21:51:02]requested_item fd.num is exist - process it [21:51:02]SAM_PROTO_GetFieldsCounters [21:51:02]wFMCommunicate request_size=4 [21:51:02]MH_SAM_APDU [21:51:02]CAPDU: 80 13 00 00 [21:51:02]Write to MH i2c: E2 08 00 1A 09 80 13 00 00 00 00 00 00 9F [21:51:02]Write i2c OK [21:51:02]MH_I2C_Read... [21:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:02]Read from MH i2c: E2 [21:51:02]MH_I2C_Read... [21:51:02]Read from MH i2c: E2 62 00 [21:51:02]MH_I2C_Read... [21:51:02]Read from MH i2c: E2 62 00 1A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E1 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [21:51:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E1 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:02]wFMCommunicate OK [21:51:02]SAM_PROTO_GetFieldsCounters done [21:51:02]requested_item shift.num is exist - process it [21:51:02]requested_item shift.opened is exist - process it [21:51:02]req_shift_opened [21:51:02]FM_GetShiftState [21:51:02]SAM_PROTO_GetShiftState [21:51:02]wFMCommunicate request_size=4 [21:51:02]MH_SAM_APDU [21:51:02]CAPDU: 80 13 01 00 [21:51:02]Write to MH i2c: E2 08 00 1B 09 80 13 01 00 00 00 00 00 A1 [21:51:02]Write i2c OK [21:51:02]MH_I2C_Read... [21:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:02]Read from MH i2c: E2 [21:51:02]MH_I2C_Read... [21:51:02]Read from MH i2c: E2 0E 00 [21:51:02]MH_I2C_Read... [21:51:02]Read from MH i2c: E2 0E 00 1B 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1E [21:51:02]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:51:02]wFMCommunicate OK [21:51:02]SAM_PROTO_GetShiftState done [21:51:02]FM_GetShiftState done [21:51:02]req_shift_opened done [21:51:02]requested_item shift.open_date is exist - process it [21:51:02]req_shift_open_date [21:51:02]req_shift_open_date done [21:51:02]produce_requested_data done [21:51:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112097,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:51:02]process_action_free close_receipt [21:51:02]json_value_free [21:51:02]json_value_free done [21:51:02]process_json_proto returns [21:51:02]Send response to host [21:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112097,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:51:02]free response buf [21:51:02]execute_script done [21:51:02]execute_script returns [21:51:02]free content buf [21:51:02]Sock 9.Close socket [21:51:02]Sock 9.Thread stoped [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:13]accept exits with 7 [21:52:13]New connection [21:52:13]New thread 3066813796 created [21:52:13]Thread 3066957156 joined [21:52:13]Waiting for new connection... [21:52:13] Sock 7.Parse request [21:52:13]Sock 7.Check first char [21:52:13]Sock 7.First char is OK [21:52:13]request: POST /json_proto HTTP/1.0 [21:52:13]Method: POST [21:52:13]URL: /json_proto [21:52:13]Method is POST - this is cgi request [21:52:13]url: /json_proto [21:52:13]query_string will be loaded in cgi processing [21:52:13]execute_cgi json_proto POST (null) [21:52:13]execute_cgi path=json_proto method=POST [21:52:13]POST find Content-Length [21:52:13]Host: 172.17.59.68:8080 [21:52:13]Content-Length: 805 [21:52:13]Content-Type: application/json [21:52:13] [21:52:13]POST finish read [21:52:13]Found Content-Length = 805 [21:52:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.360, "sum" : 470.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:13]execute_script... [21:52: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)320758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.360, "sum" : 470.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:13]POST & json_proto [21:52:13]process_json_proto [21:52:13]json parsed OK: [21:52:13]protocol is kg_v1.0 [21:52:13]action value=close_receipt [21:52:13]process_action close_receipt [21:52:13]cmd_close_receipt [21:52:13]MH_GetDate [21:52:13]Write to MH i2c: F0 00 00 1C 09 14 [21:52:13]Write i2c OK [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: F0 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: F0 09 00 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: F0 09 00 1C 09 00 10 F6 75 66 BC EC 60 65 6B [21:52:13]GetLastDocTimeStamp 1719006660 [21:52:13]current date 1719006736 [21:52:13]FM_GetShiftState [21:52:13]SAM_PROTO_GetShiftState [21:52:13]wFMCommunicate request_size=4 [21:52:13]MH_SAM_APDU [21:52:13]CAPDU: 80 13 01 00 [21:52:13]Write to MH i2c: E2 08 00 1D 09 80 13 01 00 00 00 00 00 A3 [21:52:13]Write i2c OK [21:52:13]MH_I2C_Read... [21:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:13]Read from MH i2c: E2 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 0E 00 [21:52:13]MH_I2C_Read... [21:52:13]Read from MH i2c: E2 0E 00 1D 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 20 [21:52:13]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:52:13]wFMCommunicate OK [21:52:13]SAM_PROTO_GetShiftState done [21:52:13]FM_GetShiftState done [21:52:13]opened in 1718933695 [21:52:13]opened+sec_in_day 1719020095 [21:52:13]quantity*price = 47000 [21:52:13]sum+1 = 47001 [21:52:13]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 470.00 袧小袩 1% : 4.16 袧袛小 12% : 49.91 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 470.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 266 21.06.2024 21:52 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112098 肖袩袛: 112221343475386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T215216&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112098&fm=112221343475386&tin=02508201610067®Number=0000000000092771&sum=47000 [21:52:14]StoreToDocumentArchive [21:52:14]shift 390 fd 112098 [21:52:14]save to /storage/0390/doc_00112098 [21:52:14]save last doc name /storage/0390/doc_00112098 to /storage/kkm_last_doc_name [21:52:14]save OK [21:52:14]Clear old archive folders... [21:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:14]tlvbuf is 0111EDF0 [21:52:14]SAM_PROTO_ClearQueue [21:52:14]wFMCommunicate request_size=4 [21:52:14]MH_SAM_APDU [21:52:14]CAPDU: 80 09 00 00 [21:52:14]Write to MH i2c: E2 08 00 2A 09 80 09 00 00 00 00 00 00 A5 [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:14]Read from MH i2c: E2 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 03 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 03 00 2A 09 00 90 00 A7 [21:52:14]RAPDU: 90 00 [21:52:14]wFMCommunicate OK [21:52:14]SAM_PROTO_ClearQueue done [21:52:14]KKMCreateOFDPacket [21:52:14]OFDProtocolAddRootSTLVToBuf [21:52:14]FM_MakeSignedData [21:52:14]FM_MakeSignedData [21:52:14]SAM_PROTO_SignData [21:52:14]wFMCommunicate request_size=4 [21:52:14]MH_SAM_APDU [21:52:14]CAPDU: 80 0D 01 02 [21:52:14]Write to MH i2c: E2 08 00 2B 09 80 0D 01 02 00 00 00 00 AD [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:14]Read from MH i2c: E2 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 03 00 [21:52:14]MH_I2C_Read... [21:52:14]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [21:52:14]RAPDU: 90 00 [21:52:14]wFMCommunicate OK [21:52:14]wFMCommunicate request_size=255 [21:52:14]MH_SAM_APDU [21:52: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 98 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 10 F6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B5 01 00 35 04 06 00 66 [21:52:14]Write to MH i2c: E2 02 01 2C 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 D8 18 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 98 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 10 F6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B5 01 00 35 04 06 00 66 00 00 36 [21:52:14]Write i2c OK [21:52:14]MH_I2C_Read... [21:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:15]Read from MH i2c: E2 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: E2 03 00 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: E2 03 00 2C 09 00 90 00 A9 [21:52:15]RAPDU: 90 00 [21:52:15]wFMCommunicate OK [21:52:15]wFMCommunicate request_size=10 [21:52:15]MH_SAM_APDU [21:52:15]CAPDU: 80 0D 02 02 05 10 91 50 66 BA [21:52:15]Write to MH i2c: E2 0D 00 2D 09 80 0D 02 02 05 00 10 91 50 66 BA 00 00 CB [21:52:15]Write i2c OK [21:52:15]MH_I2C_Read... [21:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:15]Read from MH i2c: E2 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: E2 03 00 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: E2 03 00 2D 09 00 90 00 AA [21:52:15]RAPDU: 90 00 [21:52:15]wFMCommunicate OK [21:52:15]wFMCommunicate request_size=4 [21:52:15]MH_SAM_APDU [21:52:15]CAPDU: 80 0D 03 02 [21:52:15]Write to MH i2c: E2 08 00 2E 09 80 0D 03 02 00 00 00 00 B2 [21:52:15]Write i2c OK [21:52:15]MH_I2C_Read... [21:52:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:15]Read from MH i2c: E2 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: E2 0B 00 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: E2 0B 00 2E 09 00 2F 17 1F 18 12 83 9E D2 90 00 35 [21:52:15]RAPDU: 2F 17 1F 18 12 83 9E D2 90 00 [21:52:15]wFMCommunicate OK [21:52:15]SAM_PROTO_SignData done [21:52:15]FM_MakeSignedData done [21:52:15]CreateOFDProtocolMessage [21:52:15]wFMCommunicate request_size=4 [21:52:15]MH_SAM_APDU [21:52:15]CAPDU: 80 11 00 00 [21:52:15]Write to MH i2c: E2 08 00 2F 09 80 11 00 00 00 00 00 00 B2 [21:52:15]Write i2c OK [21:52:15]MH_I2C_Read... [21:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:15]Read from MH i2c: E2 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: E2 17 00 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: E2 17 00 2F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [21:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:52:15]wFMCommunicate OK [21:52:15]CreateOFDProtocolMessage done [21:52:15]OFDSenderStorePacket 112098 [21:52:15]StoreOFDPacket docnum=112098 [21:52:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C4 0A 07 01 17 2B 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 D8 18 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 98 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 10 F6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B5 01 00 35 04 06 00 66 10 91 50 66 BA 2F 17 1F 18 12 83 9E D2 [21:52:15]CheckFolder [21:52:15]dirname=/storage/ofd_packets [21:52:15]CheckFolder done [21:52:15]ProducePacketName [21:52:15]name=ofd_packets/00112098 [21:52:15]NVStorageSaveData ofd_packets/00112098 [21:52:15]File name is /storage/ofd_packets/00112098 [21:52:15]Write 301 bytes [21:52:15]NVStorageSaveData done [21:52:15]OFDSenderStorePacket done [21:52:15]KKMCreateOFDPacket done [21:52:15]NVStorageSaveData kkm_last_timestamp [21:52:15]File name is /storage/kkm_last_timestamp [21:52:15]Write 4 bytes [21:52:15]NVStorageSaveData done [21:52:15]ExternCall_PrintAddStr [21:52:15]wPrintStart [21:52:15]Write to MH i2c: 01 00 00 30 09 39 [21:52:15]Write i2c OK [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: 01 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: 01 07 00 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: 01 07 00 30 09 00 00 00 00 00 FF 0F 4E [21:52:15]RasterBufferAndPrint [21:52:15]line 小褔械褌 N : (1)320758 [21:52:15]line 袠袧袧: 02508201610067 [21:52:15]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:52:15]line 袩袪袨袛袗袞袗 [21:52:15]line 孝袪袣 (袦袪袣, 袚袧袣) : 12 [21:52:15]line 孝芯胁邪褉: 2710124500 [21:52:15]line 袗懈-95-袣-5 [21:52:15]line 6.360 * 73.90 [21:52:15]line = 470.00 [21:52:15]line 袧袛小 12% 袧小袩 1% [21:52:15]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:52:15]line 袠孝袨袚袨: 470.00 [21:52:15]line 袧小袩 1% : 4.16 [21:52:15]line 袧袛小 12% : 49.91 [21:52:15]line 袧邪谢懈褔薪褘屑懈: 0.00 [21:52:15]line 袘械蟹薪邪谢.: 470.00 [21:52:15]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:52:15]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:52:15]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:52:15]line 效械泻 266 21.06.2024 21:52 [21:52:15]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:52:15]line 袟袧袦: 0300000198 [21:52:15]line 袪袧袦: 0000000000092771 [21:52:15]line 袙械褉褋懈褟 袣袣袦: 001 [21:52:15]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [21:52:15]line 肖袦: 0000000000875083 [21:52:15]line 肖袛: 112098 [21:52:15]line 肖袩袛: 112221343475386 [21:52:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T215216&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112098&fm=112221343475386&tin=02508201610067®Number=0000000000092771&sum=47000 [21:52:15]written 0, free lines is 4095 [21:52:15]OFD Sender: Processing packet 112098 [packets to send 38, broken 37] [21:52:15]ProducePacketName [21:52:15]name=ofd_packets/00112098 [21:52:15]OFD Sender: To server: 嚂鰌G, [21:52:15]CommunicateWithHost lk.salyk.kg:30040 [21:52:15]ConnectInit lk.salyk.kg [21:52:15]Connected sock=10 [21:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C4 0A 07 01 17 2B 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 D8 18 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 98 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 B7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 10 F6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B5 01 00 35 04 06 00 66 10 91 50 66 BA 2F 17 1F 18 12 83 9E D2 [21:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 61 C5 47 00 F0 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 30 38 37 35 30 38 33 10 04 04 00 E2 B5 01 00 F4 03 04 00 2F 8D 75 66 B6 04 01 00 00 4E 78 5E 2B D2 30 E5 EF [21:52:15]CommunicateWithHost err = 0 [21:52:15]CheckOFDResponse [21:52:15]1017 (14) - 77093643461234 [21:52:15]1041 (16) - 0000000000875083 [21:52:15]1040 (4) - 112098 [21:52:15]1012 (4) - 21.06.2024 14:24 [21:52:15]1206 (1) - 0 [21:52:15]OFD Sender: Remove packet 112098 [21:52:15]ProducePacketName [21:52:15]name=ofd_packets/00112098 [21:52:15]NVStorageDeleteData [21:52:15]Write to MH i2c: 01 00 00 5A 09 63 [21:52:15]Write i2c OK [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: 01 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: 01 07 00 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: 01 07 00 5A 09 00 00 00 00 00 E3 0C 59 [21:52:15]RasterBufferAndPrint [21:52:15]line [21:52:15]line [21:52:15]line [21:52:15]line [21:52:15]line [21:52:15]written 0, free lines is 3305 [21:52:15]MH_Cut [21:52:15]Write to MH i2c: D1 01 00 61 09 01 3C [21:52:15]Write i2c OK [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: D1 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: D1 01 00 [21:52:15]MH_I2C_Read... [21:52:15]Read from MH i2c: D1 01 00 61 09 00 3B [21:52:15]Write to MH i2c: 01 00 00 62 09 6B [21:52:15]Write i2c OK [21:52:15]MH_I2C_Read... [21:52:16]OFD Sender: No OFD packet to send [21:52:16]*** Cut start [21:52:16]*** Partial cut [21:52:16]*** CUTSNS_PIN = 1 [21:52:16]*** CUTSNS_PIN = 0 [21:52:16]*** Brake cut motor [21:52:17]Read from MH i2c: 01 [21:52:17]MH_I2C_Read... [21:52:17]*** Stop cut motor [21:52:17]*** Cut end [21:52:17]Read from MH i2c: 01 07 00 [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: 01 07 00 62 09 00 00 00 00 00 FF 0F 80 [21:52:17]process_action close_receipt done [21:52:17]requested_data is exist [21:52:17]produce_requested_data [21:52:17]requested_item fm.sn is exist - process it [21:52:17]wFMCommunicate request_size=4 [21:52:17]MH_SAM_APDU [21:52:17]CAPDU: 80 11 00 00 [21:52:17]Write to MH i2c: E2 08 00 63 09 80 11 00 00 00 00 00 00 E6 [21:52:17]Write i2c OK [21:52:17]MH_I2C_Read... [21:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:17]Read from MH i2c: E2 [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: E2 17 00 [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: E2 17 00 63 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 38 [21:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:52:17]wFMCommunicate OK [21:52:17]requested_item fd.num is exist - process it [21:52:17]SAM_PROTO_GetFieldsCounters [21:52:17]wFMCommunicate request_size=4 [21:52:17]MH_SAM_APDU [21:52:17]CAPDU: 80 13 00 00 [21:52:17]Write to MH i2c: E2 08 00 64 09 80 13 00 00 00 00 00 00 E9 [21:52:17]Write i2c OK [21:52:17]MH_I2C_Read... [21:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:17]Read from MH i2c: E2 [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: E2 62 00 [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: E2 62 00 64 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [21:52:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:17]wFMCommunicate OK [21:52:17]SAM_PROTO_GetFieldsCounters done [21:52:17]requested_item shift.num is exist - process it [21:52:17]requested_item shift.opened is exist - process it [21:52:17]req_shift_opened [21:52:17]FM_GetShiftState [21:52:17]SAM_PROTO_GetShiftState [21:52:17]wFMCommunicate request_size=4 [21:52:17]MH_SAM_APDU [21:52:17]CAPDU: 80 13 01 00 [21:52:17]Write to MH i2c: E2 08 00 65 09 80 13 01 00 00 00 00 00 EB [21:52:17]Write i2c OK [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: E2 [21:52:17]MH_I2C_Read... [21:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:17]Read from MH i2c: E2 0E 00 [21:52:17]MH_I2C_Read... [21:52:17]Read from MH i2c: E2 0E 00 65 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 68 [21:52:17]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:52:17]wFMCommunicate OK [21:52:17]SAM_PROTO_GetShiftState done [21:52:17]FM_GetShiftState done [21:52:17]req_shift_opened done [21:52:17]requested_item shift.open_date is exist - process it [21:52:17]req_shift_open_date [21:52:17]req_shift_open_date done [21:52:17]produce_requested_data done [21:52:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112098,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:52:17]process_action_free close_receipt [21:52:17]json_value_free [21:52:17]json_value_free done [21:52:17]process_json_proto returns [21:52:17]Send response to host [21:52:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112098,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:52:17]free response buf [21:52:17]execute_script done [21:52:17]execute_script returns [21:52:17]free content buf [21:52:17]Sock 7.Close socket [21:52:17]Sock 7.Thread stoped [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:22]accept exits with 9 [21:54:22]New connection [21:54:22]New thread 3066957156 created [21:54:22]Thread 3066813796 joined [21:54:22]Waiting for new connection... [21:54:22] Sock 9.Parse request [21:54:22]Sock 9.Check first char [21:54:22]Sock 9.First char is OK [21:54:22]request: POST /json_proto HTTP/1.0 [21:54:22]Method: POST [21:54:22]URL: /json_proto [21:54:22]Method is POST - this is cgi request [21:54:22]url: /json_proto [21:54:22]query_string will be loaded in cgi processing [21:54:22]execute_cgi json_proto POST (null) [21:54:22]execute_cgi path=json_proto method=POST [21:54:22]POST find Content-Length [21:54:22]Host: 172.17.59.68:8080 [21:54:22]Content-Length: 677 [21:54:22]Content-Type: application/json [21:54:22] [21:54:22]POST finish read [21:54:22]Found Content-Length = 677 [21:54:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:54:22]execute_script... [21:54:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:54:22]POST & json_proto [21:54:22]process_json_proto [21:54:22]json parsed OK: [21:54:22]protocol is kg_v1.0 [21:54:22]action value=close_receipt [21:54:22]process_action close_receipt [21:54:22]cmd_close_receipt [21:54:22]MH_GetDate [21:54:22]Write to MH i2c: F0 00 00 66 09 5E [21:54:22]Write i2c OK [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: F0 [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: F0 09 00 [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: F0 09 00 66 09 00 91 F6 75 66 BC EC 60 65 36 [21:54:22]GetLastDocTimeStamp 1719006736 [21:54:22]current date 1719006865 [21:54:22]FM_GetShiftState [21:54:22]SAM_PROTO_GetShiftState [21:54:22]wFMCommunicate request_size=4 [21:54:22]MH_SAM_APDU [21:54:22]CAPDU: 80 13 01 00 [21:54:22]Write to MH i2c: E2 08 00 67 09 80 13 01 00 00 00 00 00 ED [21:54:22]Write i2c OK [21:54:22]MH_I2C_Read... [21:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:22]Read from MH i2c: E2 [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: E2 0E 00 [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: E2 0E 00 67 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 6A [21:54:22]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:54:22]wFMCommunicate OK [21:54:22]SAM_PROTO_GetShiftState done [21:54:22]FM_GetShiftState done [21:54:22]opened in 1718933695 [21:54:22]opened+sec_in_day 1719020095 [21:54:22]quantity*price = 40039 [21:54:22]sum+1 = 40040 [21:54:22]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.39 袠孝袨袚袨: 400.00 袙薪械褋械薪芯: 400.00 小袛袗效袗: 0.00 袧小袩 1% : 3.54 袧袛小 12% : 42.52 袧邪谢懈褔薪褘屑懈: 400.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 267 21.06.2024 21:54 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112099 肖袩袛: 249918302005008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T215425&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112099&fm=249918302005008&tin=02508201610067®Number=0000000000092771&sum=40000 [21:54:23]StoreToDocumentArchive [21:54:23]shift 390 fd 112099 [21:54:23]save to /storage/0390/doc_00112099 [21:54:23]save last doc name /storage/0390/doc_00112099 to /storage/kkm_last_doc_name [21:54:23]save OK [21:54:23]Clear old archive folders... [21:54:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:23]tlvbuf is 010FBA70 [21:54:23]SAM_PROTO_ClearQueue [21:54:23]wFMCommunicate request_size=4 [21:54:23]MH_SAM_APDU [21:54:23]CAPDU: 80 09 00 00 [21:54:23]Write to MH i2c: E2 08 00 74 09 80 09 00 00 00 00 00 00 EF [21:54:23]Write i2c OK [21:54:23]MH_I2C_Read... [21:54:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:23]Read from MH i2c: E2 [21:54:23]MH_I2C_Read... [21:54:23]Read from MH i2c: E2 03 00 [21:54:23]MH_I2C_Read... [21:54:23]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [21:54:23]RAPDU: 90 00 [21:54:23]wFMCommunicate OK [21:54:23]SAM_PROTO_ClearQueue done [21:54:23]KKMCreateOFDPacket [21:54:23]OFDProtocolAddRootSTLVToBuf [21:54:23]FM_MakeSignedData [21:54:23]FM_MakeSignedData [21:54:23]SAM_PROTO_SignData [21:54:23]wFMCommunicate request_size=4 [21:54:23]MH_SAM_APDU [21:54:23]CAPDU: 80 0D 01 02 [21:54:23]Write to MH i2c: E2 08 00 75 09 80 0D 01 02 00 00 00 00 F7 [21:54:23]Write i2c OK [21:54:23]MH_I2C_Read... [21:54:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:23]Read from MH i2c: E2 [21:54:23]MH_I2C_Read... [21:54:23]Read from MH i2c: E2 03 00 [21:54:23]MH_I2C_Read... [21:54:23]Read from MH i2c: E2 03 00 75 09 00 90 00 F2 [21:54:23]RAPDU: 90 00 [21:54:23]wFMCommunicate OK [21:54:23]wFMCommunicate request_size=255 [21:54:23]MH_SAM_APDU [21:54:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 0B 01 00 00 F4 03 04 00 91 F6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B5 01 00 35 04 06 00 E3 [21:54:23]Write to MH i2c: E2 02 01 76 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 0B 01 00 00 F4 03 04 00 91 F6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B5 01 00 35 04 06 00 E3 00 00 EA [21:54:23]Write i2c OK [21:54:23]MH_I2C_Read... [21:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:24]Read from MH i2c: E2 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: E2 03 00 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: E2 03 00 76 09 00 90 00 F3 [21:54:24]RAPDU: 90 00 [21:54:24]wFMCommunicate OK [21:54:24]wFMCommunicate request_size=10 [21:54:24]MH_SAM_APDU [21:54:24]CAPDU: 80 0D 02 02 05 4C A3 9D 27 10 [21:54:24]Write to MH i2c: E2 0D 00 77 09 80 0D 02 02 05 00 4C A3 9D 27 10 00 00 C7 [21:54:24]Write i2c OK [21:54:24]MH_I2C_Read... [21:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:24]Read from MH i2c: E2 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: E2 03 00 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: E2 03 00 77 09 00 90 00 F4 [21:54:24]RAPDU: 90 00 [21:54:24]wFMCommunicate OK [21:54:24]wFMCommunicate request_size=4 [21:54:24]MH_SAM_APDU [21:54:24]CAPDU: 80 0D 03 02 [21:54:24]Write to MH i2c: E2 08 00 78 09 80 0D 03 02 00 00 00 00 FC [21:54:24]Write i2c OK [21:54:24]MH_I2C_Read... [21:54:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:24]Read from MH i2c: E2 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: E2 0B 00 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: E2 0B 00 78 09 00 C9 6A C7 76 50 40 EB 21 90 00 09 [21:54:24]RAPDU: C9 6A C7 76 50 40 EB 21 90 00 [21:54:24]wFMCommunicate OK [21:54:24]SAM_PROTO_SignData done [21:54:24]FM_MakeSignedData done [21:54:24]CreateOFDProtocolMessage [21:54:24]wFMCommunicate request_size=4 [21:54:24]MH_SAM_APDU [21:54:24]CAPDU: 80 11 00 00 [21:54:24]Write to MH i2c: E2 08 00 79 09 80 11 00 00 00 00 00 00 FC [21:54:24]Write i2c OK [21:54:24]MH_I2C_Read... [21:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:24]Read from MH i2c: E2 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: E2 17 00 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: E2 17 00 79 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4E [21:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:54:24]wFMCommunicate OK [21:54:24]CreateOFDProtocolMessage done [21:54:24]OFDSenderStorePacket 112099 [21:54:24]StoreOFDPacket docnum=112099 [21:54:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2D B0 07 01 87 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 0B 01 00 00 F4 03 04 00 91 F6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B5 01 00 35 04 06 00 E3 4C A3 9D 27 10 C9 6A C7 76 50 40 EB 21 [21:54:24]CheckFolder [21:54:24]dirname=/storage/ofd_packets [21:54:24]CheckFolder done [21:54:24]ProducePacketName [21:54:24]name=ofd_packets/00112099 [21:54:24]NVStorageSaveData ofd_packets/00112099 [21:54:24]File name is /storage/ofd_packets/00112099 [21:54:24]Write 301 bytes [21:54:24]NVStorageSaveData done [21:54:24]OFDSenderStorePacket done [21:54:24]KKMCreateOFDPacket done [21:54:24]NVStorageSaveData kkm_last_timestamp [21:54:24]File name is /storage/kkm_last_timestamp [21:54:24]Write 4 bytes [21:54:24]NVStorageSaveData done [21:54:24]ExternCall_PrintAddStr [21:54:24]wPrintStart [21:54:24]Write to MH i2c: 01 00 00 7A 09 83 [21:54:24]Write i2c OK [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: 01 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: 01 07 00 [21:54:24]MH_I2C_Read... [21:54:24]Read from MH i2c: 01 07 00 7A 09 00 00 00 00 00 FF 0F 98 [21:54:24]RasterBufferAndPrint [21:54:24]line 小褔械褌 N : (1)320759 [21:54:24]line 袠袧袧: 02508201610067 [21:54:24]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:54:24]line 袩袪袨袛袗袞袗 [21:54:24]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [21:54:24]line 孝芯胁邪褉: 2710124130 [21:54:24]line 袗懈-92-袣-5 [21:54:24]line 6.030 * 66.40 [21:54:24]line = 400.39 [21:54:24]line 袧袛小 12% 袧小袩 1% [21:54:24]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:54:24]line 袨袣袪校袚袥袝袧袠袝: -0.39 [21:54:24]line 袠孝袨袚袨: 400.00 [21:54:24]line 袙薪械褋械薪芯: 400.00 [21:54:24]line 小袛袗效袗: 0.00 [21:54:24]line 袧小袩 1% : 3.54 [21:54:24]line 袧袛小 12% : 42.52 [21:54:24]line 袧邪谢懈褔薪褘屑懈: 400.00 [21:54:24]line 袘械蟹薪邪谢.: 0.00 [21:54:24]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:54:24]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:54:24]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:54:24]line 效械泻 267 21.06.2024 21:54 [21:54:24]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:54:24]line 袟袧袦: 0300000198 [21:54:24]line 袪袧袦: 0000000000092771 [21:54:24]line 袙械褉褋懈褟 袣袣袦: 001 [21:54:24]line 肖袦: 0000000000875083 [21:54:24]line 肖袛: 112099 [21:54:24]line 肖袩袛: 249918302005008 [21:54:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T215425&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112099&fm=249918302005008&tin=02508201610067®Number=0000000000092771&sum=40000 [21:54:24]OFD Sender: Processing packet 112099 [packets to send 38, broken 37] [21:54:24]ProducePacketName [21:54:24]name=ofd_packets/00112099 [21:54:24]OFD Sender: To server: 嚂鰌G, [21:54:24]CommunicateWithHost lk.salyk.kg:30040 [21:54:24]ConnectInit lk.salyk.kg [21:54:24]written 0, free lines is 4095 [21:54:24]Connected sock=10 [21:54:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2D B0 07 01 87 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 0B 01 00 00 F4 03 04 00 91 F6 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B5 01 00 35 04 06 00 E3 4C A3 9D 27 10 C9 6A C7 76 50 40 EB 21 [21:54:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 53 D9 47 00 10 BC 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 30 38 37 35 30 38 33 10 04 04 00 E3 B5 01 00 F4 03 04 00 B0 8D 75 66 B6 04 01 00 00 4E 9D AD F8 01 6D 1F 44 [21:54:24]CommunicateWithHost err = 0 [21:54:24]CheckOFDResponse [21:54:24]1017 (14) - 77093643461234 [21:54:24]1041 (16) - 0000000000875083 [21:54:24]1040 (4) - 112099 [21:54:24]1012 (4) - 21.06.2024 14:26 [21:54:24]1206 (1) - 0 [21:54:24]OFD Sender: Remove packet 112099 [21:54:24]ProducePacketName [21:54:24]name=ofd_packets/00112099 [21:54:24]NVStorageDeleteData [21:54:25]Write to MH i2c: 01 00 00 A5 09 AE [21:54:25]Write i2c OK [21:54:25]MH_I2C_Read... [21:54:25]Read from MH i2c: 01 [21:54:25]MH_I2C_Read... [21:54:25]Read from MH i2c: 01 07 00 [21:54:25]MH_I2C_Read... [21:54:25]Read from MH i2c: 01 07 00 A5 09 00 00 00 00 00 E4 0C A5 [21:54:25]RasterBufferAndPrint [21:54:25]line [21:54:25]line [21:54:25]line [21:54:25]line [21:54:25]line [21:54:25]written 0, free lines is 3306 [21:54:25]MH_Cut [21:54:25]Write to MH i2c: D1 01 00 AC 09 01 87 [21:54:25]Write i2c OK [21:54:25]MH_I2C_Read... [21:54:25]Read from MH i2c: D1 [21:54:25]MH_I2C_Read... [21:54:25]Read from MH i2c: D1 01 00 [21:54:25]MH_I2C_Read... [21:54:25]Read from MH i2c: D1 01 00 AC 09 00 86 [21:54:25]Write to MH i2c: 01 00 00 AD 09 B6 [21:54:25]Write i2c OK [21:54:25]MH_I2C_Read... [21:54:25]OFD Sender: No OFD packet to send [21:54:25]*** Cut start [21:54:25]*** Partial cut [21:54:25]*** CUTSNS_PIN = 1 [21:54:25]*** CUTSNS_PIN = 0 [21:54:26]*** Brake cut motor [21:54:26]Read from MH i2c: 01 [21:54:26]MH_I2C_Read... [21:54:26]*** Stop cut motor [21:54:26]*** Cut end [21:54:26]Read from MH i2c: 01 07 00 [21:54:26]MH_I2C_Read... [21:54:26]Read from MH i2c: 01 07 00 AD 09 00 00 00 00 00 FF 0F CB [21:54:26]process_action close_receipt done [21:54:26]requested_data is exist [21:54:26]produce_requested_data [21:54:26]requested_item fm.sn is exist - process it [21:54:26]wFMCommunicate request_size=4 [21:54:26]MH_SAM_APDU [21:54:26]CAPDU: 80 11 00 00 [21:54:26]Write to MH i2c: E2 08 00 AE 09 80 11 00 00 00 00 00 00 31 [21:54:26]Write i2c OK [21:54:26]MH_I2C_Read... [21:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:26]Read from MH i2c: E2 [21:54:26]MH_I2C_Read... [21:54:26]Read from MH i2c: E2 17 00 [21:54:26]MH_I2C_Read... [21:54:26]Read from MH i2c: E2 17 00 AE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 83 [21:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:54:26]wFMCommunicate OK [21:54:26]requested_item fd.num is exist - process it [21:54:26]SAM_PROTO_GetFieldsCounters [21:54:26]wFMCommunicate request_size=4 [21:54:26]MH_SAM_APDU [21:54:26]CAPDU: 80 13 00 00 [21:54:26]Write to MH i2c: E2 08 00 AF 09 80 13 00 00 00 00 00 00 34 [21:54:26]Write i2c OK [21:54:26]MH_I2C_Read... [21:54:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:26]Read from MH i2c: E2 [21:54:26]MH_I2C_Read... [21:54:26]Read from MH i2c: E2 62 00 [21:54:26]MH_I2C_Read... [21:54:26]Read from MH i2c: E2 62 00 AF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [21:54:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:26]wFMCommunicate OK [21:54:26]SAM_PROTO_GetFieldsCounters done [21:54:26]requested_item shift.num is exist - process it [21:54:26]requested_item shift.opened is exist - process it [21:54:26]req_shift_opened [21:54:26]FM_GetShiftState [21:54:26]SAM_PROTO_GetShiftState [21:54:26]wFMCommunicate request_size=4 [21:54:26]MH_SAM_APDU [21:54:26]CAPDU: 80 13 01 00 [21:54:26]Write to MH i2c: E2 08 00 B0 09 80 13 01 00 00 00 00 00 36 [21:54:26]Write i2c OK [21:54:26]MH_I2C_Read... [21:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:26]Read from MH i2c: E2 [21:54:26]MH_I2C_Read... [21:54:26]Read from MH i2c: E2 0E 00 [21:54:26]MH_I2C_Read... [21:54:26]Read from MH i2c: E2 0E 00 B0 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B3 [21:54:26]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:54:26]wFMCommunicate OK [21:54:26]SAM_PROTO_GetShiftState done [21:54:26]FM_GetShiftState done [21:54:26]req_shift_opened done [21:54:26]requested_item shift.open_date is exist - process it [21:54:26]req_shift_open_date [21:54:26]req_shift_open_date done [21:54:26]produce_requested_data done [21:54:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112099,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:54:26]process_action_free close_receipt [21:54:26]json_value_free [21:54:26]json_value_free done [21:54:26]process_json_proto returns [21:54:26]Send response to host [21:54:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112099,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:54:26]free response buf [21:54:26]execute_script done [21:54:26]execute_script returns [21:54:26]free content buf [21:54:26]Sock 9.Close socket [21:54:26]Sock 9.Thread stoped [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:41]accept exits with 7 [21:59:41]New connection [21:59:41]New thread 3066813796 created [21:59:41]Thread 3066957156 joined [21:59:41]Waiting for new connection... [21:59:41] Sock 7.Parse request [21:59:41]Sock 7.Check first char [21:59:41]Sock 7.First char is OK [21:59:41]request: POST /json_proto HTTP/1.0 [21:59:41]Method: POST [21:59:41]URL: /json_proto [21:59:41]Method is POST - this is cgi request [21:59:41]url: /json_proto [21:59:41]query_string will be loaded in cgi processing [21:59:41]execute_cgi json_proto POST (null) [21:59:41]execute_cgi path=json_proto method=POST [21:59:41]POST find Content-Length [21:59:41]Host: 172.17.59.68:8080 [21:59:41]Content-Length: 682 [21:59:41]Content-Type: application/json [21:59:41] [21:59:41]POST finish read [21:59:41]Found Content-Length = 682 [21:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:59:41]execute_script... [21:59:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:59:41]POST & json_proto [21:59:41]process_json_proto [21:59:41]json parsed OK: [21:59:41]protocol is kg_v1.0 [21:59:41]action value=close_receipt [21:59:41]process_action close_receipt [21:59:41]cmd_close_receipt [21:59:41]MH_GetDate [21:59:41]Write to MH i2c: F0 00 00 B1 09 A9 [21:59:41]Write i2c OK [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: F0 [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: F0 09 00 [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: F0 09 00 B1 09 00 CF F7 75 66 BC EC 60 65 C0 [21:59:41]GetLastDocTimeStamp 1719006865 [21:59:41]current date 1719007183 [21:59:41]FM_GetShiftState [21:59:41]SAM_PROTO_GetShiftState [21:59:41]wFMCommunicate request_size=4 [21:59:41]MH_SAM_APDU [21:59:41]CAPDU: 80 13 01 00 [21:59:41]Write to MH i2c: E2 08 00 B2 09 80 13 01 00 00 00 00 00 38 [21:59:41]Write i2c OK [21:59:41]MH_I2C_Read... [21:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:41]Read from MH i2c: E2 [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: E2 0E 00 [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: E2 0E 00 B2 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B5 [21:59:41]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:59:41]wFMCommunicate OK [21:59:41]SAM_PROTO_GetShiftState done [21:59:41]FM_GetShiftState done [21:59:41]opened in 1718933695 [21:59:41]opened+sec_in_day 1719020095 [21:59:41]quantity*price = 100064 [21:59:41]sum+1 = 100066 [21:59:41]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 268 21.06.2024 21:59 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112100 肖袩袛: 34481355137930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T215943&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112100&fm=34481355137930&tin=02508201610067®Number=0000000000092771&sum=100000 [21:59:42]StoreToDocumentArchive [21:59:42]shift 390 fd 112100 [21:59:42]save to /storage/0390/doc_00112100 [21:59:42]save last doc name /storage/0390/doc_00112100 to /storage/kkm_last_doc_name [21:59:42]save OK [21:59:42]Clear old archive folders... [21:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:59:42]tlvbuf is 011647D0 [21:59:42]SAM_PROTO_ClearQueue [21:59:42]wFMCommunicate request_size=4 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 09 00 00 [21:59:42]Write to MH i2c: E2 08 00 BF 09 80 09 00 00 00 00 00 00 3A [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [21:59:42]RAPDU: 90 00 [21:59:42]wFMCommunicate OK [21:59:42]SAM_PROTO_ClearQueue done [21:59:42]KKMCreateOFDPacket [21:59:42]OFDProtocolAddRootSTLVToBuf [21:59:42]FM_MakeSignedData [21:59:42]FM_MakeSignedData [21:59:42]SAM_PROTO_SignData [21:59:42]wFMCommunicate request_size=4 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 0D 01 02 [21:59:42]Write to MH i2c: E2 08 00 C0 09 80 0D 01 02 00 00 00 00 42 [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 C0 09 00 90 00 3D [21:59:42]RAPDU: 90 00 [21:59:42]wFMCommunicate OK [21:59:42]wFMCommunicate request_size=255 [21:59:42]MH_SAM_APDU [21:59: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 0C 01 00 00 F4 03 04 00 CF F7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B5 01 00 35 04 06 00 1F [21:59:42]Write to MH i2c: E2 02 01 C1 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 0C 01 00 00 F4 03 04 00 CF F7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B5 01 00 35 04 06 00 1F 00 00 34 [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 C1 09 00 90 00 3E [21:59:42]RAPDU: 90 00 [21:59:42]wFMCommunicate OK [21:59:42]wFMCommunicate request_size=10 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 0D 02 02 05 5C 50 EC A3 8A [21:59:42]Write to MH i2c: E2 0D 00 C2 09 80 0D 02 02 05 00 5C 50 EC A3 8A 00 00 14 [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 03 00 C2 09 00 90 00 3F [21:59:42]RAPDU: 90 00 [21:59:42]wFMCommunicate OK [21:59:42]wFMCommunicate request_size=4 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 0D 03 02 [21:59:42]Write to MH i2c: E2 08 00 C3 09 80 0D 03 02 00 00 00 00 47 [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 0B 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 0B 00 C3 09 00 5B 4F 1F F0 56 A2 64 50 90 00 AD [21:59:42]RAPDU: 5B 4F 1F F0 56 A2 64 50 90 00 [21:59:42]wFMCommunicate OK [21:59:42]SAM_PROTO_SignData done [21:59:42]FM_MakeSignedData done [21:59:42]CreateOFDProtocolMessage [21:59:42]wFMCommunicate request_size=4 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 11 00 00 [21:59:42]Write to MH i2c: E2 08 00 C4 09 80 11 00 00 00 00 00 00 47 [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 17 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 17 00 C4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 99 [21:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:59:42]wFMCommunicate OK [21:59:42]CreateOFDProtocolMessage done [21:59:42]OFDSenderStorePacket 112100 [21:59:42]StoreOFDPacket docnum=112100 [21:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 96 29 07 01 8B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 0C 01 00 00 F4 03 04 00 CF F7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B5 01 00 35 04 06 00 1F 5C 50 EC A3 8A 5B 4F 1F F0 56 A2 64 50 [21:59:42]CheckFolder [21:59:42]dirname=/storage/ofd_packets [21:59:42]CheckFolder done [21:59:42]ProducePacketName [21:59:42]name=ofd_packets/00112100 [21:59:42]NVStorageSaveData ofd_packets/00112100 [21:59:42]File name is /storage/ofd_packets/00112100 [21:59:42]Write 301 bytes [21:59:42]NVStorageSaveData done [21:59:42]OFDSenderStorePacket done [21:59:42]KKMCreateOFDPacket done [21:59:42]NVStorageSaveData kkm_last_timestamp [21:59:42]File name is /storage/kkm_last_timestamp [21:59:42]Write 4 bytes [21:59:42]NVStorageSaveData done [21:59:42]ExternCall_PrintAddStr [21:59:42]wPrintStart [21:59:42]Write to MH i2c: 01 00 00 C5 09 CE [21:59:42]OFD Sender: Processing packet 112100 [packets to send 38, broken 37] [21:59:42]ProducePacketName [21:59:42]name=ofd_packets/00112100 [21:59:42]OFD Sender: To server: 嚂鰌G, [21:59:42]CommunicateWithHost lk.salyk.kg:30040 [21:59:42]ConnectInit lk.salyk.kg [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: 01 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: 01 07 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: 01 07 00 C5 09 00 00 00 00 00 FF 0F E3 [21:59:42]RasterBufferAndPrint [21:59:42]line 小褔械褌 N : (1)320760 [21:59:42]line 袠袧袧: 02508201610067 [21:59:42]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [21:59:42]line 袩袪袨袛袗袞袗 [21:59:42]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [21:59:42]line 孝芯胁邪褉: 2710124130 [21:59:42]line 袗懈-92-袣-5 [21:59:42]line 15.070 * 66.40 [21:59:42]line = 1000.65 [21:59:42]line 袧袛小 12% 袧小袩 1% [21:59:42]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [21:59:42]line 袨袣袪校袚袥袝袧袠袝: -0.65 [21:59:42]line 袠孝袨袚袨: 1000.00 [21:59:42]line 袙薪械褋械薪芯: 1000.00 [21:59:42]line 小袛袗效袗: 0.00 [21:59:42]line 袧小袩 1% : 8.85 [21:59:42]line 袧袛小 12% : 106.26 [21:59:42]line 袧邪谢懈褔薪褘屑懈: 1000.00 [21:59:42]line 袘械蟹薪邪谢.: 0.00 [21:59:42]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [21:59:42]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [21:59:42]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [21:59:42]line 效械泻 268 21.06.2024 21:59 [21:59:42]line 小屑械薪邪: 390 肖肖袛: 1.0 [21:59:42]line 袟袧袦: 0300000198 [21:59:42]line 袪袧袦: 0000000000092771 [21:59:42]line 袙械褉褋懈褟 袣袣袦: 001 [21:59:42]line 肖袦: 0000000000875083 [21:59:42]line 肖袛: 112100 [21:59:42]line 肖袩袛: 34481355137930 [21:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T215943&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112100&fm=34481355137930&tin=02508201610067®Number=0000000000092771&sum=100000 [21:59:43]Connected sock=10 [21:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 96 29 07 01 8B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 0C 01 00 00 F4 03 04 00 CF F7 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B5 01 00 35 04 06 00 1F 5C 50 EC A3 8A 5B 4F 1F F0 56 A2 64 50 [21:59:43]written 0, free lines is 4095 [21:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EC 84 47 00 CB 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 30 38 37 35 30 38 33 10 04 04 00 E4 B5 01 00 F4 03 04 00 EF 8E 75 66 B6 04 01 00 00 47 C4 25 A4 29 C9 A6 85 [21:59:43]CommunicateWithHost err = 0 [21:59:43]CheckOFDResponse [21:59:43]1017 (14) - 77093643461234 [21:59:43]1041 (16) - 0000000000875083 [21:59:43]1040 (4) - 112100 [21:59:43]1012 (4) - 21.06.2024 14:32 [21:59:43]1206 (1) - 0 [21:59:43]OFD Sender: Remove packet 112100 [21:59:43]ProducePacketName [21:59:43]name=ofd_packets/00112100 [21:59:43]NVStorageDeleteData [21:59:43]Write to MH i2c: 01 00 00 F0 09 F9 [21:59:43]Write i2c OK [21:59:43]MH_I2C_Read... [21:59:43]Read from MH i2c: 01 [21:59:43]MH_I2C_Read... [21:59:43]Read from MH i2c: 01 07 00 [21:59:43]MH_I2C_Read... [21:59:43]Read from MH i2c: 01 07 00 F0 09 00 00 00 00 00 D6 0C E2 [21:59:43]RasterBufferAndPrint [21:59:43]line [21:59:43]line [21:59:43]line [21:59:43]line [21:59:43]line [21:59:43]written 0, free lines is 3294 [21:59:43]MH_Cut [21:59:43]Write to MH i2c: D1 01 00 F7 09 01 D2 [21:59:43]Write i2c OK [21:59:43]MH_I2C_Read... [21:59:43]Read from MH i2c: D1 [21:59:43]MH_I2C_Read... [21:59:43]Read from MH i2c: D1 01 00 [21:59:43]MH_I2C_Read... [21:59:43]Read from MH i2c: D1 01 00 F7 09 00 D1 [21:59:43]Write to MH i2c: 01 00 00 F8 09 01 [21:59:43]Write i2c OK [21:59:43]MH_I2C_Read... [21:59:43]OFD Sender: No OFD packet to send [21:59:44]*** Cut start [21:59:44]*** Partial cut [21:59:44]*** CUTSNS_PIN = 1 [21:59:44]*** CUTSNS_PIN = 0 [21:59:44]*** Brake cut motor [21:59:44]Read from MH i2c: 01 [21:59:44]MH_I2C_Read... [21:59:44]*** Stop cut motor [21:59:44]*** Cut end [21:59:44]Read from MH i2c: 01 07 00 [21:59:44]MH_I2C_Read... [21:59:44]Read from MH i2c: 01 07 00 F8 09 00 00 00 00 00 FF 0F 16 [21:59:44]process_action close_receipt done [21:59:44]requested_data is exist [21:59:44]produce_requested_data [21:59:44]requested_item fm.sn is exist - process it [21:59:44]wFMCommunicate request_size=4 [21:59:44]MH_SAM_APDU [21:59:44]CAPDU: 80 11 00 00 [21:59:44]Write to MH i2c: E2 08 00 F9 09 80 11 00 00 00 00 00 00 7C [21:59:44]Write i2c OK [21:59:44]MH_I2C_Read... [21:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:45]Read from MH i2c: E2 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 17 00 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 17 00 F9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CE [21:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:59:45]wFMCommunicate OK [21:59:45]requested_item fd.num is exist - process it [21:59:45]SAM_PROTO_GetFieldsCounters [21:59:45]wFMCommunicate request_size=4 [21:59:45]MH_SAM_APDU [21:59:45]CAPDU: 80 13 00 00 [21:59:45]Write to MH i2c: E2 08 00 FA 09 80 13 00 00 00 00 00 00 7F [21:59:45]Write i2c OK [21:59:45]MH_I2C_Read... [21:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:45]Read from MH i2c: E2 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 62 00 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 62 00 FA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E4 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [21:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E4 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:45]wFMCommunicate OK [21:59:45]SAM_PROTO_GetFieldsCounters done [21:59:45]requested_item shift.num is exist - process it [21:59:45]requested_item shift.opened is exist - process it [21:59:45]req_shift_opened [21:59:45]FM_GetShiftState [21:59:45]SAM_PROTO_GetShiftState [21:59:45]wFMCommunicate request_size=4 [21:59:45]MH_SAM_APDU [21:59:45]CAPDU: 80 13 01 00 [21:59:45]Write to MH i2c: E2 08 00 FB 09 80 13 01 00 00 00 00 00 81 [21:59:45]Write i2c OK [21:59:45]MH_I2C_Read... [21:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:45]Read from MH i2c: E2 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 0E 00 [21:59:45]MH_I2C_Read... [21:59:45]Read from MH i2c: E2 0E 00 FB 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 FE [21:59:45]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [21:59:45]wFMCommunicate OK [21:59:45]SAM_PROTO_GetShiftState done [21:59:45]FM_GetShiftState done [21:59:45]req_shift_opened done [21:59:45]requested_item shift.open_date is exist - process it [21:59:45]req_shift_open_date [21:59:45]req_shift_open_date done [21:59:45]produce_requested_data done [21:59:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112100,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [21:59:45]process_action_free close_receipt [21:59:45]json_value_free [21:59:45]json_value_free done [21:59:45]process_json_proto returns [21:59:45]Send response to host [21:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112100,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [21:59:45]free response buf [21:59:45]execute_script done [21:59:45]execute_script returns [21:59:45]free content buf [21:59:45]Sock 7.Close socket [21:59:45]Sock 7.Thread stoped [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]accept exits with 9 [22:11:29]New connection [22:11:29]New thread 3066957156 created [22:11:29]Thread 3066813796 joined [22:11:29]Waiting for new connection... [22:11:29] Sock 9.Parse request [22:11:29]Sock 9.Check first char [22:11:29]Sock 9.First char is OK [22:11:29]request: POST /json_proto HTTP/1.0 [22:11:29]Method: POST [22:11:29]URL: /json_proto [22:11:29]Method is POST - this is cgi request [22:11:29]url: /json_proto [22:11:29]query_string will be loaded in cgi processing [22:11:29]execute_cgi json_proto POST (null) [22:11:29]execute_cgi path=json_proto method=POST [22:11:29]POST find Content-Length [22:11:29]Host: 172.17.59.68:8080 [22:11:29]Content-Length: 674 [22:11:29]Content-Type: application/json [22:11:29] [22:11:29]POST finish read [22:11:29]Found Content-Length = 674 [22:11:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:29]execute_script... [22:11:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:29]POST & json_proto [22:11:29]process_json_proto [22:11:29]json parsed OK: [22:11:29]protocol is kg_v1.0 [22:11:29]action value=close_receipt [22:11:29]process_action close_receipt [22:11:29]cmd_close_receipt [22:11:29]MH_GetDate [22:11:29]Write to MH i2c: F0 00 00 FC 09 F4 [22:11:29]Write i2c OK [22:11:29]MH_I2C_Read... [22:11:29]Read from MH i2c: F0 [22:11:29]MH_I2C_Read... [22:11:29]Read from MH i2c: F0 09 00 [22:11:29]MH_I2C_Read... [22:11:29]Read from MH i2c: F0 09 00 FC 09 00 94 FA 75 66 BC EC 60 65 D3 [22:11:29]GetLastDocTimeStamp 1719007183 [22:11:29]current date 1719007892 [22:11:29]FM_GetShiftState [22:11:29]SAM_PROTO_GetShiftState [22:11:29]wFMCommunicate request_size=4 [22:11:29]MH_SAM_APDU [22:11:29]CAPDU: 80 13 01 00 [22:11:29]Write to MH i2c: E2 08 00 FD 09 80 13 01 00 00 00 00 00 83 [22:11:29]Write i2c OK [22:11:29]MH_I2C_Read... [22:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:29]Read from MH i2c: E2 [22:11:29]MH_I2C_Read... [22:11:29]Read from MH i2c: E2 0E 00 [22:11:29]MH_I2C_Read... [22:11:29]Read from MH i2c: E2 0E 00 FD 09 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 00 [22:11:29]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:11:29]wFMCommunicate OK [22:11:29]SAM_PROTO_GetShiftState done [22:11:29]FM_GetShiftState done [22:11:29]opened in 1718933695 [22:11:29]opened+sec_in_day 1719020095 [22:11:29]quantity*price = 30034 [22:11:29]sum+1 = 30036 [22:11:29]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.35 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.90 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 269 21.06.2024 22:11 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112101 肖袩袛: 1051540991239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T221132&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112101&fm=1051540991239&tin=02508201610067®Number=0000000000092771&sum=30000 [22:11:30]StoreToDocumentArchive [22:11:30]shift 390 fd 112101 [22:11:30]save to /storage/0390/doc_00112101 [22:11:30]save last doc name /storage/0390/doc_00112101 to /storage/kkm_last_doc_name [22:11:30]save OK [22:11:30]Clear old archive folders... [22:11:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:11:30]tlvbuf is 01121030 [22:11:30]SAM_PROTO_ClearQueue [22:11:30]wFMCommunicate request_size=4 [22:11:30]MH_SAM_APDU [22:11:30]CAPDU: 80 09 00 00 [22:11:30]Write to MH i2c: E2 08 00 0A 0A 80 09 00 00 00 00 00 00 86 [22:11:30]Write i2c OK [22:11:30]MH_I2C_Read... [22:11:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:30]Read from MH i2c: E2 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: E2 03 00 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: E2 03 00 0A 0A 00 90 00 88 [22:11:30]RAPDU: 90 00 [22:11:30]wFMCommunicate OK [22:11:30]SAM_PROTO_ClearQueue done [22:11:30]KKMCreateOFDPacket [22:11:30]OFDProtocolAddRootSTLVToBuf [22:11:30]FM_MakeSignedData [22:11:30]FM_MakeSignedData [22:11:30]SAM_PROTO_SignData [22:11:30]wFMCommunicate request_size=4 [22:11:30]MH_SAM_APDU [22:11:30]CAPDU: 80 0D 01 02 [22:11:30]Write to MH i2c: E2 08 00 0B 0A 80 0D 01 02 00 00 00 00 8E [22:11:30]Write i2c OK [22:11:30]MH_I2C_Read... [22:11:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:30]Read from MH i2c: E2 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: E2 03 00 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: E2 03 00 0B 0A 00 90 00 89 [22:11:30]RAPDU: 90 00 [22:11:30]wFMCommunicate OK [22:11:30]wFMCommunicate request_size=255 [22:11:30]MH_SAM_APDU [22:11:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 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 0D 01 00 00 F4 03 04 00 94 FA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B5 01 00 35 04 06 00 00 F4 D4 BA [22:11:30]Write to MH i2c: E2 02 01 0C 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 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 0D 01 00 00 F4 03 04 00 94 FA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B5 01 00 35 04 06 00 00 F4 D4 BA 00 00 63 [22:11:30]Write i2c OK [22:11:30]MH_I2C_Read... [22:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:30]Read from MH i2c: E2 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: E2 03 00 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: E2 03 00 0C 0A 00 90 00 8A [22:11:30]RAPDU: 90 00 [22:11:30]wFMCommunicate OK [22:11:30]wFMCommunicate request_size=7 [22:11:30]MH_SAM_APDU [22:11:30]CAPDU: 80 0D 02 02 02 2D 07 [22:11:30]Write to MH i2c: E2 0A 00 0D 0A 80 0D 02 02 02 00 2D 07 00 00 C9 [22:11:30]Write i2c OK [22:11:30]MH_I2C_Read... [22:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:30]Read from MH i2c: E2 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: E2 03 00 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: E2 03 00 0D 0A 00 90 00 8B [22:11:30]RAPDU: 90 00 [22:11:30]wFMCommunicate OK [22:11:30]wFMCommunicate request_size=4 [22:11:30]MH_SAM_APDU [22:11:30]CAPDU: 80 0D 03 02 [22:11:30]Write to MH i2c: E2 08 00 0E 0A 80 0D 03 02 00 00 00 00 93 [22:11:30]Write i2c OK [22:11:30]MH_I2C_Read... [22:11:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:30]Read from MH i2c: E2 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: E2 0B 00 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: E2 0B 00 0E 0A 00 FD 98 A5 22 ED 39 40 6E 90 00 C4 [22:11:30]RAPDU: FD 98 A5 22 ED 39 40 6E 90 00 [22:11:30]wFMCommunicate OK [22:11:30]SAM_PROTO_SignData done [22:11:30]FM_MakeSignedData done [22:11:30]CreateOFDProtocolMessage [22:11:30]wFMCommunicate request_size=4 [22:11:30]MH_SAM_APDU [22:11:30]CAPDU: 80 11 00 00 [22:11:30]Write to MH i2c: E2 08 00 0F 0A 80 11 00 00 00 00 00 00 93 [22:11:30]Write i2c OK [22:11:30]MH_I2C_Read... [22:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:30]Read from MH i2c: E2 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: E2 17 00 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: E2 17 00 0F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E5 [22:11:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:11:30]wFMCommunicate OK [22:11:30]CreateOFDProtocolMessage done [22:11:30]OFDSenderStorePacket 112101 [22:11:30]StoreOFDPacket docnum=112101 [22:11:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 73 2B 04 01 BE 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 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 0D 01 00 00 F4 03 04 00 94 FA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B5 01 00 35 04 06 00 00 F4 D4 BA 2D 07 FD 98 A5 22 ED 39 40 6E [22:11:30]CheckFolder [22:11:30]dirname=/storage/ofd_packets [22:11:30]CheckFolder done [22:11:30]ProducePacketName [22:11:30]name=ofd_packets/00112101 [22:11:30]NVStorageSaveData ofd_packets/00112101 [22:11:30]File name is /storage/ofd_packets/00112101 [22:11:30]Write 298 bytes [22:11:30]NVStorageSaveData done [22:11:30]OFDSenderStorePacket done [22:11:30]KKMCreateOFDPacket done [22:11:30]NVStorageSaveData kkm_last_timestamp [22:11:30]File name is /storage/kkm_last_timestamp [22:11:30]Write 4 bytes [22:11:30]NVStorageSaveData done [22:11:30]ExternCall_PrintAddStr [22:11:30]wPrintStart [22:11:30]Write to MH i2c: 01 00 00 10 0A 1A [22:11:30]Write i2c OK [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: 01 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: 01 07 00 [22:11:30]MH_I2C_Read... [22:11:30]Read from MH i2c: 01 07 00 10 0A 00 00 00 00 00 FF 0F 2F [22:11:30]RasterBufferAndPrint [22:11:30]line 小褔械褌 N : (1)320761 [22:11:30]line 袠袧袧: 02508201610067 [22:11:30]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [22:11:30]line 袩袪袨袛袗袞袗 [22:11:30]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [22:11:30]line 孝芯胁邪褉: 2710194210 [22:11:30]line 袛孝-袣-5 [22:11:30]line 4.120 * 72.90 [22:11:30]line = 300.35 [22:11:30]line 袧袛小 12% 袧小袩 1% [22:11:30]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [22:11:30]line 袨袣袪校袚袥袝袧袠袝: -0.35 [22:11:30]line 袠孝袨袚袨: 300.00 [22:11:30]line 袙薪械褋械薪芯: 300.00 [22:11:30]line 小袛袗效袗: 0.00 [22:11:30]line 袧小袩 1% : 2.66 [22:11:30]line 袧袛小 12% : 31.90 [22:11:30]line 袧邪谢懈褔薪褘屑懈: 300.00 [22:11:30]line 袘械蟹薪邪谢.: 0.00 [22:11:30]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [22:11:30]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [22:11:30]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [22:11:30]line 效械泻 269 21.06.2024 22:11 [22:11:30]line 小屑械薪邪: 390 肖肖袛: 1.0 [22:11:30]line 袟袧袦: 0300000198 [22:11:30]line 袪袧袦: 0000000000092771 [22:11:30]line 袙械褉褋懈褟 袣袣袦: 001 [22:11:30]line 肖袦: 0000000000875083 [22:11:30]line 肖袛: 112101 [22:11:31]line 肖袩袛: 1051540991239 [22:11:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T221132&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112101&fm=1051540991239&tin=02508201610067®Number=0000000000092771&sum=30000 [22:11:31]OFD Sender: Processing packet 112101 [packets to send 38, broken 37] [22:11:31]ProducePacketName [22:11:31]name=ofd_packets/00112101 [22:11:31]OFD Sender: To server: 嚂鰌G, [22:11:31]CommunicateWithHost lk.salyk.kg:30040 [22:11:31]ConnectInit lk.salyk.kg [22:11:31]written 0, free lines is 4095 [22:11:31]Connected sock=10 [22:11:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 73 2B 04 01 BE 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 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 0D 01 00 00 F4 03 04 00 94 FA 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B5 01 00 35 04 06 00 00 F4 D4 BA 2D 07 FD 98 A5 22 ED 39 40 6E [22:11:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0E 27 47 00 61 8D 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 30 38 37 35 30 38 33 10 04 04 00 E5 B5 01 00 F4 03 04 00 B3 91 75 66 B6 04 01 00 00 A5 1F D8 7B A0 64 20 3B [22:11:31]CommunicateWithHost err = 0 [22:11:31]CheckOFDResponse [22:11:31]1017 (14) - 77093643461234 [22:11:31]1041 (16) - 0000000000875083 [22:11:31]1040 (4) - 112101 [22:11:31]1012 (4) - 21.06.2024 14:44 [22:11:31]1206 (1) - 0 [22:11:31]OFD Sender: Remove packet 112101 [22:11:31]ProducePacketName [22:11:31]name=ofd_packets/00112101 [22:11:31]NVStorageDeleteData [22:11:31]Write to MH i2c: 01 00 00 3B 0A 45 [22:11:31]Write i2c OK [22:11:31]MH_I2C_Read... [22:11:31]Read from MH i2c: 01 [22:11:31]MH_I2C_Read... [22:11:31]Read from MH i2c: 01 07 00 [22:11:31]MH_I2C_Read... [22:11:31]Read from MH i2c: 01 07 00 3B 0A 00 00 00 00 00 CE 0C 26 [22:11:31]RasterBufferAndPrint [22:11:31]line [22:11:31]line [22:11:31]line [22:11:31]line [22:11:31]line [22:11:31]written 0, free lines is 3286 [22:11:31]MH_Cut [22:11:31]Write to MH i2c: D1 01 00 42 0A 01 1E [22:11:31]Write i2c OK [22:11:31]MH_I2C_Read... [22:11:31]Read from MH i2c: D1 [22:11:31]MH_I2C_Read... [22:11:31]Read from MH i2c: D1 01 00 [22:11:31]MH_I2C_Read... [22:11:31]Read from MH i2c: D1 01 00 42 0A 00 1D [22:11:31]Write to MH i2c: 01 00 00 43 0A 4D [22:11:31]Write i2c OK [22:11:31]MH_I2C_Read... [22:11:31]OFD Sender: No OFD packet to send [22:11:32]*** Cut start [22:11:32]*** Partial cut [22:11:32]*** CUTSNS_PIN = 1 [22:11:32]*** CUTSNS_PIN = 0 [22:11:32]*** Brake cut motor [22:11:32]Read from MH i2c: 01 [22:11:32]MH_I2C_Read... [22:11:32]*** Stop cut motor [22:11:32]*** Cut end [22:11:32]Read from MH i2c: 01 07 00 [22:11:32]MH_I2C_Read... [22:11:32]Read from MH i2c: 01 07 00 43 0A 00 00 00 00 00 FF 0F 62 [22:11:32]process_action close_receipt done [22:11:32]requested_data is exist [22:11:32]produce_requested_data [22:11:32]requested_item fm.sn is exist - process it [22:11:32]wFMCommunicate request_size=4 [22:11:32]MH_SAM_APDU [22:11:32]CAPDU: 80 11 00 00 [22:11:32]Write to MH i2c: E2 08 00 44 0A 80 11 00 00 00 00 00 00 C8 [22:11:32]Write i2c OK [22:11:32]MH_I2C_Read... [22:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:32]Read from MH i2c: E2 [22:11:32]MH_I2C_Read... [22:11:32]Read from MH i2c: E2 17 00 [22:11:32]MH_I2C_Read... [22:11:32]Read from MH i2c: E2 17 00 44 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1A [22:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:11:32]wFMCommunicate OK [22:11:32]requested_item fd.num is exist - process it [22:11:32]SAM_PROTO_GetFieldsCounters [22:11:32]wFMCommunicate request_size=4 [22:11:32]MH_SAM_APDU [22:11:32]CAPDU: 80 13 00 00 [22:11:32]Write to MH i2c: E2 08 00 45 0A 80 13 00 00 00 00 00 00 CB [22:11:33]Write i2c OK [22:11:33]MH_I2C_Read... [22:11:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:33]Read from MH i2c: E2 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: E2 62 00 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: E2 62 00 45 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E5 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [22:11:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E5 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:33]wFMCommunicate OK [22:11:33]SAM_PROTO_GetFieldsCounters done [22:11:33]requested_item shift.num is exist - process it [22:11:33]requested_item shift.opened is exist - process it [22:11:33]req_shift_opened [22:11:33]FM_GetShiftState [22:11:33]SAM_PROTO_GetShiftState [22:11:33]wFMCommunicate request_size=4 [22:11:33]MH_SAM_APDU [22:11:33]CAPDU: 80 13 01 00 [22:11:33]Write to MH i2c: E2 08 00 46 0A 80 13 01 00 00 00 00 00 CD [22:11:33]Write i2c OK [22:11:33]MH_I2C_Read... [22:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:33]Read from MH i2c: E2 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: E2 0E 00 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: E2 0E 00 46 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 4A [22:11:33]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:11:33]wFMCommunicate OK [22:11:33]SAM_PROTO_GetShiftState done [22:11:33]FM_GetShiftState done [22:11:33]req_shift_opened done [22:11:33]requested_item shift.open_date is exist - process it [22:11:33]req_shift_open_date [22:11:33]req_shift_open_date done [22:11:33]produce_requested_data done [22:11:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112101,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [22:11:33]process_action_free close_receipt [22:11:33]json_value_free [22:11:33]json_value_free done [22:11:33]process_json_proto returns [22:11:33]Send response to host [22:11:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112101,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [22:11:33]free response buf [22:11:33]execute_script done [22:11:33]execute_script returns [22:11:33]free content buf [22:11:33]Sock 9.Close socket [22:11:33]Sock 9.Thread stoped [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:33]accept exits with 7 [22:22:33]New connection [22:22:33]New thread 3066813796 created [22:22:33]Thread 3066957156 joined [22:22:33]Waiting for new connection... [22:22:33] Sock 7.Parse request [22:22:33]Sock 7.Check first char [22:22:33]Sock 7.First char is OK [22:22:33]request: POST /json_proto HTTP/1.0 [22:22:33]Method: POST [22:22:33]URL: /json_proto [22:22:33]Method is POST - this is cgi request [22:22:33]url: /json_proto [22:22:33]query_string will be loaded in cgi processing [22:22:33]execute_cgi json_proto POST (null) [22:22:33]execute_cgi path=json_proto method=POST [22:22:33]POST find Content-Length [22:22:33]Host: 172.17.59.68:8080 [22:22:33]Content-Length: 682 [22:22:33]Content-Type: application/json [22:22:33] [22:22:33]POST finish read [22:22:33]Found Content-Length = 682 [22:22:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:33]execute_script... [22:22: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 : (1)320762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:33]POST & json_proto [22:22:33]process_json_proto [22:22:33]json parsed OK: [22:22:33]protocol is kg_v1.0 [22:22:33]action value=close_receipt [22:22:33]process_action close_receipt [22:22:33]cmd_close_receipt [22:22:33]MH_GetDate [22:22:33]Write to MH i2c: F0 00 00 47 0A 40 [22:22:33]Write i2c OK [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: F0 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: F0 09 00 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: F0 09 00 47 0A 00 2C FD 75 66 BC EC 60 65 BA [22:22:33]GetLastDocTimeStamp 1719007892 [22:22:33]current date 1719008556 [22:22:33]FM_GetShiftState [22:22:33]SAM_PROTO_GetShiftState [22:22:33]wFMCommunicate request_size=4 [22:22:33]MH_SAM_APDU [22:22:33]CAPDU: 80 13 01 00 [22:22:33]Write to MH i2c: E2 08 00 48 0A 80 13 01 00 00 00 00 00 CF [22:22:33]Write i2c OK [22:22:33]MH_I2C_Read... [22:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:33]Read from MH i2c: E2 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: E2 0E 00 [22:22:33]MH_I2C_Read... [22:22:33]Read from MH i2c: E2 0E 00 48 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 4C [22:22:33]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:22:33]wFMCommunicate OK [22:22:33]SAM_PROTO_GetShiftState done [22:22:33]FM_GetShiftState done [22:22:33]opened in 1718933695 [22:22:33]opened+sec_in_day 1719020095 [22:22:33]quantity*price = 300061 [22:22:33]sum+1 = 300063 [22:22:33]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.62 袠孝袨袚袨: 3000.00 袙薪械褋械薪芯: 3000.00 小袛袗效袗: 0.00 袧小袩 1% : 26.55 袧袛小 12% : 318.65 袧邪谢懈褔薪褘屑懈: 3000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 270 21.06.2024 22:22 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112102 肖袩袛: 127798686135748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222236&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112102&fm=127798686135748&tin=02508201610067®Number=0000000000092771&sum=300000 [22:22:34]StoreToDocumentArchive [22:22:34]shift 390 fd 112102 [22:22:34]save to /storage/0390/doc_00112102 [22:22:34]save last doc name /storage/0390/doc_00112102 to /storage/kkm_last_doc_name [22:22:34]save OK [22:22:34]Clear old archive folders... [22:22:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:22:34]tlvbuf is 0111B890 [22:22:34]SAM_PROTO_ClearQueue [22:22:34]wFMCommunicate request_size=4 [22:22:34]MH_SAM_APDU [22:22:34]CAPDU: 80 09 00 00 [22:22:34]Write to MH i2c: E2 08 00 55 0A 80 09 00 00 00 00 00 00 D1 [22:22:34]Write i2c OK [22:22:34]MH_I2C_Read... [22:22:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:34]Read from MH i2c: E2 [22:22:34]MH_I2C_Read... [22:22:34]Read from MH i2c: E2 03 00 [22:22:34]MH_I2C_Read... [22:22:34]Read from MH i2c: E2 03 00 55 0A 00 90 00 D3 [22:22:34]RAPDU: 90 00 [22:22:34]wFMCommunicate OK [22:22:34]SAM_PROTO_ClearQueue done [22:22:34]KKMCreateOFDPacket [22:22:34]OFDProtocolAddRootSTLVToBuf [22:22:34]FM_MakeSignedData [22:22:34]FM_MakeSignedData [22:22:34]SAM_PROTO_SignData [22:22:34]wFMCommunicate request_size=4 [22:22:34]MH_SAM_APDU [22:22:34]CAPDU: 80 0D 01 02 [22:22:34]Write to MH i2c: E2 08 00 56 0A 80 0D 01 02 00 00 00 00 D9 [22:22:34]Write i2c OK [22:22:34]MH_I2C_Read... [22:22:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:34]Read from MH i2c: E2 [22:22:34]MH_I2C_Read... [22:22:34]Read from MH i2c: E2 03 00 [22:22:34]MH_I2C_Read... [22:22:34]Read from MH i2c: E2 03 00 56 0A 00 90 00 D4 [22:22:34]RAPDU: 90 00 [22:22:34]wFMCommunicate OK [22:22:34]wFMCommunicate request_size=255 [22:22:34]MH_SAM_APDU [22:22:34]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 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 2C FD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B5 01 00 35 04 06 00 74 [22:22:34]Write to MH i2c: E2 02 01 57 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 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 2C FD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B5 01 00 35 04 06 00 74 00 00 CE [22:22:34]Write i2c OK [22:22:34]MH_I2C_Read... [22:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:35]Read from MH i2c: E2 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 03 00 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 03 00 57 0A 00 90 00 D5 [22:22:35]RAPDU: 90 00 [22:22:35]wFMCommunicate OK [22:22:35]wFMCommunicate request_size=10 [22:22:35]MH_SAM_APDU [22:22:35]CAPDU: 80 0D 02 02 05 3B 73 4A 35 C4 [22:22:35]Write to MH i2c: E2 0D 00 58 0A 80 0D 02 02 05 00 3B 73 4A 35 C4 00 00 D7 [22:22:35]Write i2c OK [22:22:35]MH_I2C_Read... [22:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:35]Read from MH i2c: E2 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 03 00 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 03 00 58 0A 00 90 00 D6 [22:22:35]RAPDU: 90 00 [22:22:35]wFMCommunicate OK [22:22:35]wFMCommunicate request_size=4 [22:22:35]MH_SAM_APDU [22:22:35]CAPDU: 80 0D 03 02 [22:22:35]Write to MH i2c: E2 08 00 59 0A 80 0D 03 02 00 00 00 00 DE [22:22:35]Write i2c OK [22:22:35]MH_I2C_Read... [22:22:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:35]Read from MH i2c: E2 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 0B 00 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 0B 00 59 0A 00 E1 07 D8 3A 2B 0F 53 80 90 00 E6 [22:22:35]RAPDU: E1 07 D8 3A 2B 0F 53 80 90 00 [22:22:35]wFMCommunicate OK [22:22:35]SAM_PROTO_SignData done [22:22:35]FM_MakeSignedData done [22:22:35]CreateOFDProtocolMessage [22:22:35]wFMCommunicate request_size=4 [22:22:35]MH_SAM_APDU [22:22:35]CAPDU: 80 11 00 00 [22:22:35]Write to MH i2c: E2 08 00 5A 0A 80 11 00 00 00 00 00 00 DE [22:22:35]Write i2c OK [22:22:35]MH_I2C_Read... [22:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:35]Read from MH i2c: E2 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 17 00 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: E2 17 00 5A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 30 [22:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:22:35]wFMCommunicate OK [22:22:35]CreateOFDProtocolMessage done [22:22:35]OFDSenderStorePacket 112102 [22:22:35]StoreOFDPacket docnum=112102 [22:22:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C5 E0 07 01 DC 0B 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 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 2C FD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B5 01 00 35 04 06 00 74 3B 73 4A 35 C4 E1 07 D8 3A 2B 0F 53 80 [22:22:35]CheckFolder [22:22:35]dirname=/storage/ofd_packets [22:22:35]CheckFolder done [22:22:35]ProducePacketName [22:22:35]name=ofd_packets/00112102 [22:22:35]NVStorageSaveData ofd_packets/00112102 [22:22:35]File name is /storage/ofd_packets/00112102 [22:22:35]Write 301 bytes [22:22:35]NVStorageSaveData done [22:22:35]OFDSenderStorePacket done [22:22:35]KKMCreateOFDPacket done [22:22:35]NVStorageSaveData kkm_last_timestamp [22:22:35]File name is /storage/kkm_last_timestamp [22:22:35]Write 4 bytes [22:22:35]NVStorageSaveData done [22:22:35]ExternCall_PrintAddStr [22:22:35]wPrintStart [22:22:35]Write to MH i2c: 01 00 00 5B 0A 65 [22:22:35]Write i2c OK [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: 01 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: 01 07 00 [22:22:35]MH_I2C_Read... [22:22:35]Read from MH i2c: 01 07 00 5B 0A 00 00 00 00 00 FF 0F 7A [22:22:35]RasterBufferAndPrint [22:22:35]line 小褔械褌 N : (1)320762 [22:22:35]line 袠袧袧: 02508201610067 [22:22:35]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [22:22:35]line 袩袪袨袛袗袞袗 [22:22:35]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [22:22:35]line 孝芯胁邪褉: 2710124130 [22:22:35]line 袗懈-92-袣-5 [22:22:35]line 45.190 * 66.40 [22:22:35]line = 3000.62 [22:22:35]line 袧袛小 12% 袧小袩 1% [22:22:35]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [22:22:35]line 袨袣袪校袚袥袝袧袠袝: -0.62 [22:22:35]line 袠孝袨袚袨: 3000.00 [22:22:35]line 袙薪械褋械薪芯: 3000.00 [22:22:35]line 小袛袗效袗: 0.00 [22:22:35]line 袧小袩 1% : 26.55 [22:22:35]line 袧袛小 12% : 318.65 [22:22:35]line 袧邪谢懈褔薪褘屑懈: 3000.00 [22:22:35]line 袘械蟹薪邪谢.: 0.00 [22:22:35]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [22:22:35]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [22:22:35]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [22:22:35]line 效械泻 270 21.06.2024 22:22 [22:22:35]line 小屑械薪邪: 390 肖肖袛: 1.0 [22:22:35]line 袟袧袦: 0300000198 [22:22:35]line 袪袧袦: 0000000000092771 [22:22:35]line 袙械褉褋懈褟 袣袣袦: 001 [22:22:35]line 肖袦: 0000000000875083 [22:22:35]line 肖袛: 112102 [22:22:35]line 肖袩袛: 127798686135748 [22:22:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222236&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112102&fm=127798686135748&tin=02508201610067®Number=0000000000092771&sum=300000 [22:22:35]OFD Sender: Processing packet 112102 [packets to send 38, broken 37] [22:22:35]ProducePacketName [22:22:35]name=ofd_packets/00112102 [22:22:35]OFD Sender: To server: 嚂鰌G, [22:22:35]CommunicateWithHost lk.salyk.kg:30040 [22:22:35]ConnectInit lk.salyk.kg [22:22:35]written 0, free lines is 4095 [22:22:35]Connected sock=10 [22:22:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C5 E0 07 01 DC 0B 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 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 2C FD 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B5 01 00 35 04 06 00 74 3B 73 4A 35 C4 E1 07 D8 3A 2B 0F 53 80 [22:22:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A3 C4 47 00 3C 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 30 38 37 35 30 38 33 10 04 04 00 E6 B5 01 00 F4 03 04 00 4B 94 75 66 B6 04 01 00 00 AB B0 E7 1F C2 0A 3C B7 [22:22:36]CommunicateWithHost err = 0 [22:22:36]CheckOFDResponse [22:22:36]1017 (14) - 77093643461234 [22:22:36]1041 (16) - 0000000000875083 [22:22:36]1040 (4) - 112102 [22:22:36]1012 (4) - 21.06.2024 14:55 [22:22:36]1206 (1) - 0 [22:22:36]OFD Sender: Remove packet 112102 [22:22:36]ProducePacketName [22:22:36]name=ofd_packets/00112102 [22:22:36]NVStorageDeleteData [22:22:36]Write to MH i2c: 01 00 00 86 0A 90 [22:22:36]Write i2c OK [22:22:36]MH_I2C_Read... [22:22:36]Read from MH i2c: 01 [22:22:36]MH_I2C_Read... [22:22:36]Read from MH i2c: 01 07 00 [22:22:36]MH_I2C_Read... [22:22:36]Read from MH i2c: 01 07 00 86 0A 00 00 00 00 00 E0 0C 83 [22:22:36]RasterBufferAndPrint [22:22:36]line [22:22:36]line [22:22:36]line [22:22:36]line [22:22:36]line [22:22:36]written 0, free lines is 3305 [22:22:36]MH_Cut [22:22:36]Write to MH i2c: D1 01 00 8D 0A 01 69 [22:22:36]Write i2c OK [22:22:36]MH_I2C_Read... [22:22:36]Read from MH i2c: D1 [22:22:36]MH_I2C_Read... [22:22:36]Read from MH i2c: D1 01 00 [22:22:36]MH_I2C_Read... [22:22:36]Read from MH i2c: D1 01 00 8D 0A 00 68 [22:22:36]Write to MH i2c: 01 00 00 8E 0A 98 [22:22:36]Write i2c OK [22:22:36]MH_I2C_Read... [22:22:36]OFD Sender: No OFD packet to send [22:22:36]*** Cut start [22:22:36]*** Partial cut [22:22:36]*** CUTSNS_PIN = 1 [22:22:36]*** CUTSNS_PIN = 0 [22:22:37]*** Brake cut motor [22:22:37]Read from MH i2c: 01 [22:22:37]MH_I2C_Read... [22:22:37]*** Stop cut motor [22:22:37]*** Cut end [22:22:37]Read from MH i2c: 01 07 00 [22:22:37]MH_I2C_Read... [22:22:37]Read from MH i2c: 01 07 00 8E 0A 00 00 00 00 00 FF 0F AD [22:22:37]process_action close_receipt done [22:22:37]requested_data is exist [22:22:37]produce_requested_data [22:22:37]requested_item fm.sn is exist - process it [22:22:37]wFMCommunicate request_size=4 [22:22:37]MH_SAM_APDU [22:22:37]CAPDU: 80 11 00 00 [22:22:37]Write to MH i2c: E2 08 00 8F 0A 80 11 00 00 00 00 00 00 13 [22:22:37]Write i2c OK [22:22:37]MH_I2C_Read... [22:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:37]Read from MH i2c: E2 [22:22:37]MH_I2C_Read... [22:22:37]Read from MH i2c: E2 17 00 [22:22:37]MH_I2C_Read... [22:22:37]Read from MH i2c: E2 17 00 8F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [22:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:22:37]wFMCommunicate OK [22:22:37]requested_item fd.num is exist - process it [22:22:37]SAM_PROTO_GetFieldsCounters [22:22:37]wFMCommunicate request_size=4 [22:22:37]MH_SAM_APDU [22:22:37]CAPDU: 80 13 00 00 [22:22:37]Write to MH i2c: E2 08 00 90 0A 80 13 00 00 00 00 00 00 16 [22:22:37]Write i2c OK [22:22:37]MH_I2C_Read... [22:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:37]Read from MH i2c: E2 [22:22:37]MH_I2C_Read... [22:22:37]Read from MH i2c: E2 62 00 [22:22:37]MH_I2C_Read... [22:22:37]Read from MH i2c: E2 62 00 90 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E6 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [22:22:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E6 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:22:37]wFMCommunicate OK [22:22:37]SAM_PROTO_GetFieldsCounters done [22:22:37]requested_item shift.num is exist - process it [22:22:37]requested_item shift.opened is exist - process it [22:22:37]req_shift_opened [22:22:37]FM_GetShiftState [22:22:37]SAM_PROTO_GetShiftState [22:22:37]wFMCommunicate request_size=4 [22:22:37]MH_SAM_APDU [22:22:37]CAPDU: 80 13 01 00 [22:22:37]Write to MH i2c: E2 08 00 91 0A 80 13 01 00 00 00 00 00 18 [22:22:37]Write i2c OK [22:22:37]MH_I2C_Read... [22:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:37]Read from MH i2c: E2 [22:22:37]MH_I2C_Read... [22:22:37]Read from MH i2c: E2 0E 00 [22:22:37]MH_I2C_Read... [22:22:37]Read from MH i2c: E2 0E 00 91 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 95 [22:22:37]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:22:37]wFMCommunicate OK [22:22:37]SAM_PROTO_GetShiftState done [22:22:37]FM_GetShiftState done [22:22:37]req_shift_opened done [22:22:37]requested_item shift.open_date is exist - process it [22:22:37]req_shift_open_date [22:22:37]req_shift_open_date done [22:22:37]produce_requested_data done [22:22:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112102,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [22:22:37]process_action_free close_receipt [22:22:37]json_value_free [22:22:37]json_value_free done [22:22:37]process_json_proto returns [22:22:37]Send response to host [22:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112102,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [22:22:37]free response buf [22:22:37]execute_script done [22:22:37]execute_script returns [22:22:37]free content buf [22:22:37]Sock 7.Close socket [22:22:37]Sock 7.Thread stoped [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:15]accept exits with 9 [22:26:15]New connection [22:26:15]New thread 3066957156 created [22:26:15]Thread 3066813796 joined [22:26:15]Waiting for new connection... [22:26:15] Sock 9.Parse request [22:26:15]Sock 9.Check first char [22:26:15]Sock 9.First char is OK [22:26:15]request: POST /json_proto HTTP/1.0 [22:26:15]Method: POST [22:26:15]URL: /json_proto [22:26:15]Method is POST - this is cgi request [22:26:15]url: /json_proto [22:26:15]query_string will be loaded in cgi processing [22:26:15]execute_cgi json_proto POST (null) [22:26:15]execute_cgi path=json_proto method=POST [22:26:15]POST find Content-Length [22:26:15]Host: 172.17.59.68:8080 [22:26:15]Content-Length: 678 [22:26:15]Content-Type: application/json [22:26:15] [22:26:15]POST finish read [22:26:15]Found Content-Length = 678 [22:26:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.810, "sum" : 850.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:15]execute_script... [22:26: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)320763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.810, "sum" : 850.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:15]POST & json_proto [22:26:15]process_json_proto [22:26:15]json parsed OK: [22:26:15]protocol is kg_v1.0 [22:26:15]action value=close_receipt [22:26:15]process_action close_receipt [22:26:15]cmd_close_receipt [22:26:15]MH_GetDate [22:26:15]Write to MH i2c: F0 00 00 92 0A 8B [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: F0 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: F0 09 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: F0 09 00 92 0A 00 0A FE 75 66 BC EC 60 65 E4 [22:26:15]GetLastDocTimeStamp 1719008556 [22:26:15]current date 1719008778 [22:26:15]FM_GetShiftState [22:26:15]SAM_PROTO_GetShiftState [22:26:15]wFMCommunicate request_size=4 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 13 01 00 [22:26:15]Write to MH i2c: E2 08 00 93 0A 80 13 01 00 00 00 00 00 1A [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 0E 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 0E 00 93 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 97 [22:26:15]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:26:15]wFMCommunicate OK [22:26:15]SAM_PROTO_GetShiftState done [22:26:15]FM_GetShiftState done [22:26:15]opened in 1718933695 [22:26:15]opened+sec_in_day 1719020095 [22:26:15]quantity*price = 85058 [22:26:15]sum+1 = 85059 [22:26:15]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.58 袠孝袨袚袨: 850.00 袙薪械褋械薪芯: 850.00 小袛袗效袗: 0.00 袧小袩 1% : 7.53 袧袛小 12% : 90.33 袧邪谢懈褔薪褘屑懈: 850.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 271 21.06.2024 22:26 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112103 肖袩袛: 224616287082075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222619&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112103&fm=224616287082075&tin=02508201610067®Number=0000000000092771&sum=85000 [22:26:16]StoreToDocumentArchive [22:26:16]shift 390 fd 112103 [22:26:16]save to /storage/0390/doc_00112103 [22:26:16]save last doc name /storage/0390/doc_00112103 to /storage/kkm_last_doc_name [22:26:16]save OK [22:26:16]Clear old archive folders... [22:26:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:16]tlvbuf is 01139EB0 [22:26:16]SAM_PROTO_ClearQueue [22:26:16]wFMCommunicate request_size=4 [22:26:16]MH_SAM_APDU [22:26:16]CAPDU: 80 09 00 00 [22:26:16]Write to MH i2c: E2 08 00 A0 0A 80 09 00 00 00 00 00 00 1C [22:26:16]Write i2c OK [22:26:16]MH_I2C_Read... [22:26:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:16]Read from MH i2c: E2 [22:26:16]MH_I2C_Read... [22:26:16]Read from MH i2c: E2 03 00 [22:26:16]MH_I2C_Read... [22:26:16]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [22:26:16]RAPDU: 90 00 [22:26:16]wFMCommunicate OK [22:26:16]SAM_PROTO_ClearQueue done [22:26:16]KKMCreateOFDPacket [22:26:16]OFDProtocolAddRootSTLVToBuf [22:26:16]FM_MakeSignedData [22:26:16]FM_MakeSignedData [22:26:16]SAM_PROTO_SignData [22:26:16]wFMCommunicate request_size=4 [22:26:16]MH_SAM_APDU [22:26:16]CAPDU: 80 0D 01 02 [22:26:16]Write to MH i2c: E2 08 00 A1 0A 80 0D 01 02 00 00 00 00 24 [22:26:16]Write i2c OK [22:26:16]MH_I2C_Read... [22:26:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:16]Read from MH i2c: E2 [22:26:16]MH_I2C_Read... [22:26:16]Read from MH i2c: E2 03 00 [22:26:16]MH_I2C_Read... [22:26:16]Read from MH i2c: E2 03 00 A1 0A 00 90 00 1F [22:26:16]RAPDU: 90 00 [22:26:16]wFMCommunicate OK [22:26:16]wFMCommunicate request_size=255 [22:26:16]MH_SAM_APDU [22:26: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 0A 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 23 00 00 00 00 07 04 06 00 08 4C 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 01 00 00 F4 03 04 00 0B FE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B5 01 00 35 04 06 00 CC [22:26:16]Write to MH i2c: E2 02 01 A2 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 0A 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 23 00 00 00 00 07 04 06 00 08 4C 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 01 00 00 F4 03 04 00 0B FE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B5 01 00 35 04 06 00 CC 00 00 EF [22:26:16]Write i2c OK [22:26:16]MH_I2C_Read... [22:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:17]Read from MH i2c: E2 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 03 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [22:26:17]RAPDU: 90 00 [22:26:17]wFMCommunicate OK [22:26:17]wFMCommunicate request_size=10 [22:26:17]MH_SAM_APDU [22:26:17]CAPDU: 80 0D 02 02 05 49 8E 00 96 5B [22:26:17]Write to MH i2c: E2 0D 00 A3 0A 80 0D 02 02 05 00 49 8E 00 96 5B 00 00 F9 [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:17]Read from MH i2c: E2 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 03 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [22:26:17]RAPDU: 90 00 [22:26:17]wFMCommunicate OK [22:26:17]wFMCommunicate request_size=4 [22:26:17]MH_SAM_APDU [22:26:17]CAPDU: 80 0D 03 02 [22:26:17]Write to MH i2c: E2 08 00 A4 0A 80 0D 03 02 00 00 00 00 29 [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:17]Read from MH i2c: E2 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 0B 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 0B 00 A4 0A 00 16 EB 00 39 B7 B2 78 22 90 00 67 [22:26:17]RAPDU: 16 EB 00 39 B7 B2 78 22 90 00 [22:26:17]wFMCommunicate OK [22:26:17]SAM_PROTO_SignData done [22:26:17]FM_MakeSignedData done [22:26:17]CreateOFDProtocolMessage [22:26:17]wFMCommunicate request_size=4 [22:26:17]MH_SAM_APDU [22:26:17]CAPDU: 80 11 00 00 [22:26:17]Write to MH i2c: E2 08 00 A5 0A 80 11 00 00 00 00 00 00 29 [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:17]Read from MH i2c: E2 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 17 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: E2 17 00 A5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [22:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:26:17]wFMCommunicate OK [22:26:17]CreateOFDProtocolMessage done [22:26:17]OFDSenderStorePacket 112103 [22:26:17]StoreOFDPacket docnum=112103 [22:26:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C0 80 07 01 90 BB 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 0A 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 23 00 00 00 00 07 04 06 00 08 4C 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 01 00 00 F4 03 04 00 0B FE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B5 01 00 35 04 06 00 CC 49 8E 00 96 5B 16 EB 00 39 B7 B2 78 22 [22:26:17]CheckFolder [22:26:17]dirname=/storage/ofd_packets [22:26:17]CheckFolder done [22:26:17]ProducePacketName [22:26:17]name=ofd_packets/00112103 [22:26:17]NVStorageSaveData ofd_packets/00112103 [22:26:17]File name is /storage/ofd_packets/00112103 [22:26:17]Write 301 bytes [22:26:17]NVStorageSaveData done [22:26:17]OFDSenderStorePacket done [22:26:17]KKMCreateOFDPacket done [22:26:17]NVStorageSaveData kkm_last_timestamp [22:26:17]File name is /storage/kkm_last_timestamp [22:26:17]Write 4 bytes [22:26:17]NVStorageSaveData done [22:26:17]ExternCall_PrintAddStr [22:26:17]wPrintStart [22:26:17]Write to MH i2c: 01 00 00 A6 0A B0 [22:26:17]Write i2c OK [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: 01 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: 01 07 00 [22:26:17]MH_I2C_Read... [22:26:17]Read from MH i2c: 01 07 00 A6 0A 00 00 00 00 00 FF 0F C5 [22:26:17]RasterBufferAndPrint [22:26:17]line 小褔械褌 N : (1)320763 [22:26:17]line 袠袧袧: 02508201610067 [22:26:17]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [22:26:17]line 袩袪袨袛袗袞袗 [22:26:17]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [22:26:17]line 孝芯胁邪褉: 2710124130 [22:26:17]line 袗懈-92-袣-5 [22:26:17]line 12.810 * 66.40 [22:26:17]line = 850.58 [22:26:17]line 袧袛小 12% 袧小袩 1% [22:26:17]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [22:26:17]line 袨袣袪校袚袥袝袧袠袝: -0.58 [22:26:17]line 袠孝袨袚袨: 850.00 [22:26:17]line 袙薪械褋械薪芯: 850.00 [22:26:17]line 小袛袗效袗: 0.00 [22:26:17]line 袧小袩 1% : 7.53 [22:26:17]line 袧袛小 12% : 90.33 [22:26:17]line 袧邪谢懈褔薪褘屑懈: 850.00 [22:26:17]line 袘械蟹薪邪谢.: 0.00 [22:26:17]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [22:26:17]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [22:26:17]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [22:26:17]line 效械泻 271 21.06.2024 22:26 [22:26:17]line 小屑械薪邪: 390 肖肖袛: 1.0 [22:26:17]line 袟袧袦: 0300000198 [22:26:17]line 袪袧袦: 0000000000092771 [22:26:17]line 袙械褉褋懈褟 袣袣袦: 001 [22:26:17]line 肖袦: 0000000000875083 [22:26:17]line 肖袛: 112103 [22:26:17]line 肖袩袛: 224616287082075 [22:26:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222619&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112103&fm=224616287082075&tin=02508201610067®Number=0000000000092771&sum=85000 [22:26:17]OFD Sender: Processing packet 112103 [packets to send 38, broken 37] [22:26:17]ProducePacketName [22:26:17]name=ofd_packets/00112103 [22:26:17]OFD Sender: To server: 嚂鰌G, [22:26:17]CommunicateWithHost lk.salyk.kg:30040 [22:26:17]ConnectInit lk.salyk.kg [22:26:17]written 0, free lines is 4095 [22:26:17]Connected sock=10 [22:26:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C0 80 07 01 90 BB 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 0A 32 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 23 00 00 00 00 07 04 06 00 08 4C 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 01 00 00 F4 03 04 00 0B FE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B5 01 00 35 04 06 00 CC 49 8E 00 96 5B 16 EB 00 39 B7 B2 78 22 [22:26:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6A A4 47 00 A4 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 30 38 37 35 30 38 33 10 04 04 00 E7 B5 01 00 F4 03 04 00 29 95 75 66 B6 04 01 00 00 F7 12 69 F2 C8 3C ED 04 [22:26:17]CommunicateWithHost err = 0 [22:26:17]CheckOFDResponse [22:26:17]1017 (14) - 77093643461234 [22:26:17]1041 (16) - 0000000000875083 [22:26:17]1040 (4) - 112103 [22:26:17]1012 (4) - 21.06.2024 14:58 [22:26:17]1206 (1) - 0 [22:26:17]OFD Sender: Remove packet 112103 [22:26:17]ProducePacketName [22:26:17]name=ofd_packets/00112103 [22:26:17]NVStorageDeleteData [22:26:18]Write to MH i2c: 01 00 00 D1 0A DB [22:26:18]Write i2c OK [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: 01 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: 01 07 00 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: 01 07 00 D1 0A 00 00 00 00 00 D4 0C C2 [22:26:18]RasterBufferAndPrint [22:26:18]line [22:26:18]line [22:26:18]line [22:26:18]line [22:26:18]line [22:26:18]written 0, free lines is 3292 [22:26:18]MH_Cut [22:26:18]Write to MH i2c: D1 01 00 D8 0A 01 B4 [22:26:18]Write i2c OK [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: D1 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: D1 01 00 [22:26:18]MH_I2C_Read... [22:26:18]Read from MH i2c: D1 01 00 D8 0A 00 B3 [22:26:18]Write to MH i2c: 01 00 00 D9 0A E3 [22:26:18]Write i2c OK [22:26:18]MH_I2C_Read... [22:26:18]OFD Sender: No OFD packet to send [22:26:18]*** Cut start [22:26:18]*** Partial cut [22:26:18]*** CUTSNS_PIN = 1 [22:26:18]*** CUTSNS_PIN = 0 [22:26:19]*** Brake cut motor [22:26:19]Read from MH i2c: 01 [22:26:19]MH_I2C_Read... [22:26:19]*** Stop cut motor [22:26:19]*** Cut end [22:26:19]Read from MH i2c: 01 07 00 [22:26:19]MH_I2C_Read... [22:26:19]Read from MH i2c: 01 07 00 D9 0A 00 00 00 00 00 FF 0F F8 [22:26:19]process_action close_receipt done [22:26:19]requested_data is exist [22:26:19]produce_requested_data [22:26:19]requested_item fm.sn is exist - process it [22:26:19]wFMCommunicate request_size=4 [22:26:19]MH_SAM_APDU [22:26:19]CAPDU: 80 11 00 00 [22:26:19]Write to MH i2c: E2 08 00 DA 0A 80 11 00 00 00 00 00 00 5E [22:26:19]Write i2c OK [22:26:19]MH_I2C_Read... [22:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:19]Read from MH i2c: E2 [22:26:19]MH_I2C_Read... [22:26:19]Read from MH i2c: E2 17 00 [22:26:19]MH_I2C_Read... [22:26:19]Read from MH i2c: E2 17 00 DA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [22:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:26:19]wFMCommunicate OK [22:26:19]requested_item fd.num is exist - process it [22:26:19]SAM_PROTO_GetFieldsCounters [22:26:19]wFMCommunicate request_size=4 [22:26:19]MH_SAM_APDU [22:26:19]CAPDU: 80 13 00 00 [22:26:19]Write to MH i2c: E2 08 00 DB 0A 80 13 00 00 00 00 00 00 61 [22:26:19]Write i2c OK [22:26:19]MH_I2C_Read... [22:26:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:19]Read from MH i2c: E2 [22:26:19]MH_I2C_Read... [22:26:19]Read from MH i2c: E2 62 00 [22:26:19]MH_I2C_Read... [22:26:19]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 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E7 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [22:26:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E7 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:19]wFMCommunicate OK [22:26:19]SAM_PROTO_GetFieldsCounters done [22:26:19]requested_item shift.num is exist - process it [22:26:19]requested_item shift.opened is exist - process it [22:26:19]req_shift_opened [22:26:19]FM_GetShiftState [22:26:19]SAM_PROTO_GetShiftState [22:26:19]wFMCommunicate request_size=4 [22:26:19]MH_SAM_APDU [22:26:19]CAPDU: 80 13 01 00 [22:26:19]Write to MH i2c: E2 08 00 DC 0A 80 13 01 00 00 00 00 00 63 [22:26:19]Write i2c OK [22:26:19]MH_I2C_Read... [22:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:19]Read from MH i2c: E2 [22:26:19]MH_I2C_Read... [22:26:19]Read from MH i2c: E2 0E 00 [22:26:19]MH_I2C_Read... [22:26:19]Read from MH i2c: E2 0E 00 DC 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E0 [22:26:19]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:26:19]wFMCommunicate OK [22:26:19]SAM_PROTO_GetShiftState done [22:26:19]FM_GetShiftState done [22:26:19]req_shift_opened done [22:26:19]requested_item shift.open_date is exist - process it [22:26:19]req_shift_open_date [22:26:19]req_shift_open_date done [22:26:19]produce_requested_data done [22:26:19]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112103,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [22:26:19]process_action_free close_receipt [22:26:19]json_value_free [22:26:19]json_value_free done [22:26:19]process_json_proto returns [22:26:19]Send response to host [22:26:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112103,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [22:26:19]free response buf [22:26:19]execute_script done [22:26:19]execute_script returns [22:26:19]free content buf [22:26:19]Sock 9.Close socket [22:26:19]Sock 9.Thread stoped [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:22]accept exits with 7 [22:27:22]New connection [22:27:22]New thread 3066813796 created [22:27:22]Thread 3066957156 joined [22:27:22]Waiting for new connection... [22:27:22] Sock 7.Parse request [22:27:22]Sock 7.Check first char [22:27:22]Sock 7.First char is OK [22:27:22]request: POST /json_proto HTTP/1.0 [22:27:22]Method: POST [22:27:22]URL: /json_proto [22:27:22]Method is POST - this is cgi request [22:27:22]url: /json_proto [22:27:22]query_string will be loaded in cgi processing [22:27:22]execute_cgi json_proto POST (null) [22:27:22]execute_cgi path=json_proto method=POST [22:27:22]POST find Content-Length [22:27:22]Host: 172.17.59.68:8080 [22:27:22]Content-Length: 682 [22:27:22]Content-Type: application/json [22:27:22] [22:27:22]POST finish read [22:27:22]Found Content-Length = 682 [22:27:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:27:22]execute_script... [22:27:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:27:22]POST & json_proto [22:27:22]process_json_proto [22:27:22]json parsed OK: [22:27:22]protocol is kg_v1.0 [22:27:22]action value=close_receipt [22:27:22]process_action close_receipt [22:27:22]cmd_close_receipt [22:27:22]MH_GetDate [22:27:22]Write to MH i2c: F0 00 00 DD 0A D6 [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: F0 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: F0 09 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: F0 09 00 DD 0A 00 4D FE 75 66 BC EC 60 65 72 [22:27:22]GetLastDocTimeStamp 1719008779 [22:27:22]current date 1719008845 [22:27:22]FM_GetShiftState [22:27:22]SAM_PROTO_GetShiftState [22:27:22]wFMCommunicate request_size=4 [22:27:22]MH_SAM_APDU [22:27:22]CAPDU: 80 13 01 00 [22:27:22]Write to MH i2c: E2 08 00 DE 0A 80 13 01 00 00 00 00 00 65 [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:22]Read from MH i2c: E2 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 0E 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 0E 00 DE 0A 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E2 [22:27:22]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:27:22]wFMCommunicate OK [22:27:22]SAM_PROTO_GetShiftState done [22:27:22]FM_GetShiftState done [22:27:22]opened in 1718933695 [22:27:22]opened+sec_in_day 1719020095 [22:27:22]quantity*price = 100064 [22:27:22]sum+1 = 100066 [22:27:22]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 272 21.06.2024 22:27 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112104 肖袩袛: 173379231799776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222725&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112104&fm=173379231799776&tin=02508201610067®Number=0000000000092771&sum=100000 [22:27:23]StoreToDocumentArchive [22:27:23]shift 390 fd 112104 [22:27:23]save to /storage/0390/doc_00112104 [22:27:23]save last doc name /storage/0390/doc_00112104 to /storage/kkm_last_doc_name [22:27:23]save OK [22:27:23]Clear old archive folders... [22:27:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:23]tlvbuf is 011398E0 [22:27:23]SAM_PROTO_ClearQueue [22:27:23]wFMCommunicate request_size=4 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 09 00 00 [22:27:23]Write to MH i2c: E2 08 00 EB 0A 80 09 00 00 00 00 00 00 67 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [22:27:23]RAPDU: 90 00 [22:27:23]wFMCommunicate OK [22:27:23]SAM_PROTO_ClearQueue done [22:27:23]KKMCreateOFDPacket [22:27:23]OFDProtocolAddRootSTLVToBuf [22:27:23]FM_MakeSignedData [22:27:23]FM_MakeSignedData [22:27:23]SAM_PROTO_SignData [22:27:23]wFMCommunicate request_size=4 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 0D 01 02 [22:27:23]Write to MH i2c: E2 08 00 EC 0A 80 0D 01 02 00 00 00 00 6F [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 EC 0A 00 90 00 6A [22:27:23]RAPDU: 90 00 [22:27:23]wFMCommunicate OK [22:27:23]wFMCommunicate request_size=255 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 10 01 00 00 F4 03 04 00 4D FE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B5 01 00 35 04 06 00 9D [22:27:23]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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 10 01 00 00 F4 03 04 00 4D FE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B5 01 00 35 04 06 00 9D 00 00 6C [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]OFD Sender: No OFD packet to send [22:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [22:27:23]RAPDU: 90 00 [22:27:23]wFMCommunicate OK [22:27:23]wFMCommunicate request_size=10 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 0D 02 02 05 AF FF 85 D9 E0 [22:27:23]Write to MH i2c: E2 0D 00 EE 0A 80 0D 02 02 05 00 AF FF 85 D9 E0 00 00 68 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [22:27:23]RAPDU: 90 00 [22:27:23]wFMCommunicate OK [22:27:23]wFMCommunicate request_size=4 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 0D 03 02 [22:27:23]Write to MH i2c: E2 08 00 EF 0A 80 0D 03 02 00 00 00 00 74 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 0B 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 0B 00 EF 0A 00 51 B1 9D 66 DB 65 5C 58 90 00 6E [22:27:23]RAPDU: 51 B1 9D 66 DB 65 5C 58 90 00 [22:27:23]wFMCommunicate OK [22:27:23]SAM_PROTO_SignData done [22:27:23]FM_MakeSignedData done [22:27:23]CreateOFDProtocolMessage [22:27:23]wFMCommunicate request_size=4 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 11 00 00 [22:27:23]Write to MH i2c: E2 08 00 F0 0A 80 11 00 00 00 00 00 00 74 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 17 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 17 00 F0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [22:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:27:23]wFMCommunicate OK [22:27:23]CreateOFDProtocolMessage done [22:27:23]OFDSenderStorePacket 112104 [22:27:23]StoreOFDPacket docnum=112104 [22:27:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0C 89 07 01 4A 8E 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 10 01 00 00 F4 03 04 00 4D FE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B5 01 00 35 04 06 00 9D AF FF 85 D9 E0 51 B1 9D 66 DB 65 5C 58 [22:27:23]CheckFolder [22:27:23]dirname=/storage/ofd_packets [22:27:23]CheckFolder done [22:27:23]ProducePacketName [22:27:23]name=ofd_packets/00112104 [22:27:23]NVStorageSaveData ofd_packets/00112104 [22:27:23]File name is /storage/ofd_packets/00112104 [22:27:23]Write 301 bytes [22:27:23]NVStorageSaveData done [22:27:23]OFDSenderStorePacket done [22:27:23]KKMCreateOFDPacket done [22:27:23]NVStorageSaveData kkm_last_timestamp [22:27:23]File name is /storage/kkm_last_timestamp [22:27:23]Write 4 bytes [22:27:23]NVStorageSaveData done [22:27:23]ExternCall_PrintAddStr [22:27:23]wPrintStart [22:27:23]Write to MH i2c: 01 00 00 F1 0A FB [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: 01 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: 01 07 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: 01 07 00 F1 0A 00 00 00 00 00 FF 0F 10 [22:27:23]RasterBufferAndPrint [22:27:23]line 小褔械褌 N : (1)320764 [22:27:23]line 袠袧袧: 02508201610067 [22:27:23]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [22:27:23]line 袩袪袨袛袗袞袗 [22:27:23]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [22:27:23]line 孝芯胁邪褉: 2710124130 [22:27:23]line 袗懈-92-袣-5 [22:27:23]line 15.070 * 66.40 [22:27:23]line = 1000.65 [22:27:23]line 袧袛小 12% 袧小袩 1% [22:27:23]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [22:27:23]line 袨袣袪校袚袥袝袧袠袝: -0.65 [22:27:23]line 袠孝袨袚袨: 1000.00 [22:27:23]line 袙薪械褋械薪芯: 1000.00 [22:27:23]line 小袛袗效袗: 0.00 [22:27:23]line 袧小袩 1% : 8.85 [22:27:23]line 袧袛小 12% : 106.26 [22:27:23]line 袧邪谢懈褔薪褘屑懈: 1000.00 [22:27:23]line 袘械蟹薪邪谢.: 0.00 [22:27:23]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [22:27:23]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [22:27:23]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [22:27:23]line 效械泻 272 21.06.2024 22:27 [22:27:23]line 小屑械薪邪: 390 肖肖袛: 1.0 [22:27:23]line 袟袧袦: 0300000198 [22:27:23]line 袪袧袦: 0000000000092771 [22:27:23]line 袙械褉褋懈褟 袣袣袦: 001 [22:27:24]line 肖袦: 0000000000875083 [22:27:24]line 肖袛: 112104 [22:27:24]line 肖袩袛: 173379231799776 [22:27:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222725&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112104&fm=173379231799776&tin=02508201610067®Number=0000000000092771&sum=100000 [22:27:24]OFD Sender: Processing packet 112104 [packets to send 38, broken 37] [22:27:24]ProducePacketName [22:27:24]name=ofd_packets/00112104 [22:27:24]OFD Sender: To server: 嚂鰌G, [22:27:24]CommunicateWithHost lk.salyk.kg:30040 [22:27:24]ConnectInit lk.salyk.kg [22:27:24]written 0, free lines is 4095 [22:27:24]Connected sock=10 [22:27:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0C 89 07 01 4A 8E 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 10 01 00 00 F4 03 04 00 4D FE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B5 01 00 35 04 06 00 9D AF FF 85 D9 E0 51 B1 9D 66 DB 65 5C 58 [22:27:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BF D4 47 00 38 AF 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 30 38 37 35 30 38 33 10 04 04 00 E8 B5 01 00 F4 03 04 00 6C 95 75 66 B6 04 01 00 00 94 35 D2 87 98 76 33 AC [22:27:24]CommunicateWithHost err = 0 [22:27:24]CheckOFDResponse [22:27:24]1017 (14) - 77093643461234 [22:27:24]1041 (16) - 0000000000875083 [22:27:24]1040 (4) - 112104 [22:27:24]1012 (4) - 21.06.2024 14:59 [22:27:24]1206 (1) - 0 [22:27:24]OFD Sender: Remove packet 112104 [22:27:24]ProducePacketName [22:27:24]name=ofd_packets/00112104 [22:27:24]NVStorageDeleteData [22:27:24]Write to MH i2c: 01 00 00 1C 0B 27 [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 07 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 07 00 1C 0B 00 00 00 00 00 D5 0C 0F [22:27:24]RasterBufferAndPrint [22:27:24]line [22:27:24]line [22:27:24]line [22:27:24]line [22:27:24]line [22:27:24]written 0, free lines is 3292 [22:27:24]MH_Cut [22:27:24]Write to MH i2c: D1 01 00 23 0B 01 00 [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: D1 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: D1 01 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: D1 01 00 23 0B 00 FF [22:27:24]Write to MH i2c: 01 00 00 24 0B 2F [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:25]OFD Sender: No OFD packet to send [22:27:25]*** Cut start [22:27:25]*** Partial cut [22:27:25]*** CUTSNS_PIN = 1 [22:27:25]*** CUTSNS_PIN = 0 [22:27:25]*** Brake cut motor [22:27:26]Read from MH i2c: 01 [22:27:26]MH_I2C_Read... [22:27:26]*** Stop cut motor [22:27:26]*** Cut end [22:27:26]Read from MH i2c: 01 07 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: 01 07 00 24 0B 00 00 00 00 00 FF 0F 44 [22:27:26]process_action close_receipt done [22:27:26]requested_data is exist [22:27:26]produce_requested_data [22:27:26]requested_item fm.sn is exist - process it [22:27:26]wFMCommunicate request_size=4 [22:27:26]MH_SAM_APDU [22:27:26]CAPDU: 80 11 00 00 [22:27:26]Write to MH i2c: E2 08 00 25 0B 80 11 00 00 00 00 00 00 AA [22:27:26]Write i2c OK [22:27:26]MH_I2C_Read... [22:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:26]Read from MH i2c: E2 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 17 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 17 00 25 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FC [22:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:27:26]wFMCommunicate OK [22:27:26]requested_item fd.num is exist - process it [22:27:26]SAM_PROTO_GetFieldsCounters [22:27:26]wFMCommunicate request_size=4 [22:27:26]MH_SAM_APDU [22:27:26]CAPDU: 80 13 00 00 [22:27:26]Write to MH i2c: E2 08 00 26 0B 80 13 00 00 00 00 00 00 AD [22:27:26]Write i2c OK [22:27:26]MH_I2C_Read... [22:27:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:26]Read from MH i2c: E2 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 62 00 [22:27:26]MH_I2C_Read... [22:27:26]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 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E8 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [22:27:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E8 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:26]wFMCommunicate OK [22:27:26]SAM_PROTO_GetFieldsCounters done [22:27:26]requested_item shift.num is exist - process it [22:27:26]requested_item shift.opened is exist - process it [22:27:26]req_shift_opened [22:27:26]FM_GetShiftState [22:27:26]SAM_PROTO_GetShiftState [22:27:26]wFMCommunicate request_size=4 [22:27:26]MH_SAM_APDU [22:27:26]CAPDU: 80 13 01 00 [22:27:26]Write to MH i2c: E2 08 00 27 0B 80 13 01 00 00 00 00 00 AF [22:27:26]Write i2c OK [22:27:26]MH_I2C_Read... [22:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:26]Read from MH i2c: E2 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 0E 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 0E 00 27 0B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 2C [22:27:26]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:27:26]wFMCommunicate OK [22:27:26]SAM_PROTO_GetShiftState done [22:27:26]FM_GetShiftState done [22:27:26]req_shift_opened done [22:27:26]requested_item shift.open_date is exist - process it [22:27:26]req_shift_open_date [22:27:26]req_shift_open_date done [22:27:26]produce_requested_data done [22:27:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112104,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [22:27:26]process_action_free close_receipt [22:27:26]json_value_free [22:27:26]json_value_free done [22:27:26]process_json_proto returns [22:27:26]Send response to host [22:27:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112104,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [22:27:26]free response buf [22:27:26]execute_script done [22:27:26]execute_script returns [22:27:26]free content buf [22:27:26]Sock 7.Close socket [22:27:26]Sock 7.Thread stoped [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:52]accept exits with 9 [22:27:52]New connection [22:27:52]New thread 3066957156 created [22:27:52]Thread 3066813796 joined [22:27:52]Waiting for new connection... [22:27:52] Sock 9.Parse request [22:27:52]Sock 9.Check first char [22:27:52]Sock 9.First char is OK [22:27:52]request: POST /json_proto HTTP/1.0 [22:27:52]Method: POST [22:27:52]URL: /json_proto [22:27:52]Method is POST - this is cgi request [22:27:52]url: /json_proto [22:27:52]query_string will be loaded in cgi processing [22:27:52]execute_cgi json_proto POST (null) [22:27:52]execute_cgi path=json_proto method=POST [22:27:52]POST find Content-Length [22:27:52]Host: 172.17.59.68:8080 [22:27:52]Content-Length: 677 [22:27:52]Content-Type: application/json [22:27:52] [22:27:52]POST finish read [22:27:52]Found Content-Length = 677 [22:27:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "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:27:52]execute_script... [22:27: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)320765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.770, "sum" : 500.30, "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:27:52]POST & json_proto [22:27:52]process_json_proto [22:27:52]json parsed OK: [22:27:52]protocol is kg_v1.0 [22:27:52]action value=close_receipt [22:27:52]process_action close_receipt [22:27:52]cmd_close_receipt [22:27:52]MH_GetDate [22:27:52]Write to MH i2c: F0 00 00 28 0B 22 [22:27:52]Write i2c OK [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: F0 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: F0 09 00 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: F0 09 00 28 0B 00 6C FE 75 66 BC EC 60 65 DD [22:27:52]GetLastDocTimeStamp 1719008845 [22:27:52]current date 1719008876 [22:27:52]FM_GetShiftState [22:27:52]SAM_PROTO_GetShiftState [22:27:52]wFMCommunicate request_size=4 [22:27:52]MH_SAM_APDU [22:27:52]CAPDU: 80 13 01 00 [22:27:52]Write to MH i2c: E2 08 00 29 0B 80 13 01 00 00 00 00 00 B1 [22:27:52]Write i2c OK [22:27:52]MH_I2C_Read... [22:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:52]Read from MH i2c: E2 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: E2 0E 00 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: E2 0E 00 29 0B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 2E [22:27:52]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:27:52]wFMCommunicate OK [22:27:52]SAM_PROTO_GetShiftState done [22:27:52]FM_GetShiftState done [22:27:52]opened in 1718933695 [22:27:52]opened+sec_in_day 1719020095 [22:27:52]quantity*price = 50030 [22:27:52]sum+1 = 50031 [22:27:52]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.30 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.13 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 273 21.06.2024 22:27 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112105 肖袩袛: 103015264025948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222756&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112105&fm=103015264025948&tin=02508201610067®Number=0000000000092771&sum=50000 [22:27:53]StoreToDocumentArchive [22:27:53]shift 390 fd 112105 [22:27:53]save to /storage/0390/doc_00112105 [22:27:53]save last doc name /storage/0390/doc_00112105 to /storage/kkm_last_doc_name [22:27:53]save OK [22:27:53]Clear old archive folders... [22:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:53]tlvbuf is 0111B950 [22:27:53]SAM_PROTO_ClearQueue [22:27:53]wFMCommunicate request_size=4 [22:27:53]MH_SAM_APDU [22:27:53]CAPDU: 80 09 00 00 [22:27:53]Write to MH i2c: E2 08 00 36 0B 80 09 00 00 00 00 00 00 B3 [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:53]Read from MH i2c: E2 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 03 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 03 00 36 0B 00 90 00 B5 [22:27:53]RAPDU: 90 00 [22:27:53]wFMCommunicate OK [22:27:53]SAM_PROTO_ClearQueue done [22:27:53]KKMCreateOFDPacket [22:27:53]OFDProtocolAddRootSTLVToBuf [22:27:53]FM_MakeSignedData [22:27:53]FM_MakeSignedData [22:27:53]SAM_PROTO_SignData [22:27:53]wFMCommunicate request_size=4 [22:27:53]MH_SAM_APDU [22:27:53]CAPDU: 80 0D 01 02 [22:27:53]Write to MH i2c: E2 08 00 37 0B 80 0D 01 02 00 00 00 00 BB [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:53]Read from MH i2c: E2 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 03 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 03 00 37 0B 00 90 00 B6 [22:27:53]RAPDU: 90 00 [22:27:53]wFMCommunicate OK [22:27:53]wFMCommunicate request_size=255 [22:27:53]MH_SAM_APDU [22:27: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E 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 C1 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 11 01 00 00 F4 03 04 00 6C FE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B5 01 00 35 04 06 00 5D [22:27:53]Write to MH i2c: E2 02 01 38 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E 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 C1 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 11 01 00 00 F4 03 04 00 6C FE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B5 01 00 35 04 06 00 5D 00 00 11 [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:54]Read from MH i2c: E2 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 03 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 03 00 38 0B 00 90 00 B7 [22:27:54]RAPDU: 90 00 [22:27:54]wFMCommunicate OK [22:27:54]wFMCommunicate request_size=10 [22:27:54]MH_SAM_APDU [22:27:54]CAPDU: 80 0D 02 02 05 B1 1C 37 FD 5C [22:27:54]Write to MH i2c: E2 0D 00 39 0B 80 0D 02 02 05 00 B1 1C 37 FD 5C 00 00 25 [22:27:54]Write i2c OK [22:27:54]MH_I2C_Read... [22:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:54]Read from MH i2c: E2 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 03 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 03 00 39 0B 00 90 00 B8 [22:27:54]RAPDU: 90 00 [22:27:54]wFMCommunicate OK [22:27:54]wFMCommunicate request_size=4 [22:27:54]MH_SAM_APDU [22:27:54]CAPDU: 80 0D 03 02 [22:27:54]Write to MH i2c: E2 08 00 3A 0B 80 0D 03 02 00 00 00 00 C0 [22:27:54]Write i2c OK [22:27:54]MH_I2C_Read... [22:27:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:54]Read from MH i2c: E2 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 0B 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 0B 00 3A 0B 00 66 F3 60 DE C5 E0 4A EE 90 00 35 [22:27:54]RAPDU: 66 F3 60 DE C5 E0 4A EE 90 00 [22:27:54]wFMCommunicate OK [22:27:54]SAM_PROTO_SignData done [22:27:54]FM_MakeSignedData done [22:27:54]CreateOFDProtocolMessage [22:27:54]wFMCommunicate request_size=4 [22:27:54]MH_SAM_APDU [22:27:54]CAPDU: 80 11 00 00 [22:27:54]Write to MH i2c: E2 08 00 3B 0B 80 11 00 00 00 00 00 00 C0 [22:27:54]Write i2c OK [22:27:54]MH_I2C_Read... [22:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:54]Read from MH i2c: E2 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 17 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: E2 17 00 3B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 12 [22:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:27:54]wFMCommunicate OK [22:27:54]CreateOFDProtocolMessage done [22:27:54]OFDSenderStorePacket 112105 [22:27:54]StoreOFDPacket docnum=112105 [22:27:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B0 E1 07 01 44 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 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E 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 C1 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 11 01 00 00 F4 03 04 00 6C FE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B5 01 00 35 04 06 00 5D B1 1C 37 FD 5C 66 F3 60 DE C5 E0 4A EE [22:27:54]CheckFolder [22:27:54]dirname=/storage/ofd_packets [22:27:54]CheckFolder done [22:27:54]ProducePacketName [22:27:54]name=ofd_packets/00112105 [22:27:54]NVStorageSaveData ofd_packets/00112105 [22:27:54]File name is /storage/ofd_packets/00112105 [22:27:54]Write 301 bytes [22:27:54]NVStorageSaveData done [22:27:54]OFDSenderStorePacket done [22:27:54]KKMCreateOFDPacket done [22:27:54]NVStorageSaveData kkm_last_timestamp [22:27:54]File name is /storage/kkm_last_timestamp [22:27:54]Write 4 bytes [22:27:54]NVStorageSaveData done [22:27:54]ExternCall_PrintAddStr [22:27:54]wPrintStart [22:27:54]Write to MH i2c: 01 00 00 3C 0B 47 [22:27:54]Write i2c OK [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: 01 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: 01 07 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: 01 07 00 3C 0B 00 00 00 00 00 FF 0F 5C [22:27:54]RasterBufferAndPrint [22:27:54]line 小褔械褌 N : (1)320765 [22:27:54]line 袠袧袧: 02508201610067 [22:27:54]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [22:27:54]line 袩袪袨袛袗袞袗 [22:27:54]line 孝袪袣 (袦袪袣, 袚袧袣) : 12 [22:27:54]line 孝芯胁邪褉: 2710124500 [22:27:54]line 袗懈-95-袣-5 [22:27:54]line 6.770 * 73.90 [22:27:54]line = 500.30 [22:27:54]line 袧袛小 12% 袧小袩 1% [22:27:54]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [22:27:54]line 袨袣袪校袚袥袝袧袠袝: -0.30 [22:27:54]line 袠孝袨袚袨: 500.00 [22:27:54]line 袙薪械褋械薪芯: 500.00 [22:27:54]line 小袛袗效袗: 0.00 [22:27:54]line 袧小袩 1% : 4.43 [22:27:54]line 袧袛小 12% : 53.13 [22:27:54]line 袧邪谢懈褔薪褘屑懈: 500.00 [22:27:54]line 袘械蟹薪邪谢.: 0.00 [22:27:54]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [22:27:54]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [22:27:54]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [22:27:54]line 效械泻 273 21.06.2024 22:27 [22:27:54]line 小屑械薪邪: 390 肖肖袛: 1.0 [22:27:54]line 袟袧袦: 0300000198 [22:27:54]line 袪袧袦: 0000000000092771 [22:27:54]line 袙械褉褋懈褟 袣袣袦: 001 [22:27:54]line 肖袦: 0000000000875083 [22:27:54]line 肖袛: 112105 [22:27:54]line 肖袩袛: 103015264025948 [22:27:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T222756&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112105&fm=103015264025948&tin=02508201610067®Number=0000000000092771&sum=50000 [22:27:54]written 0, free lines is 4095 [22:27:54]OFD Sender: Processing packet 112105 [packets to send 38, broken 37] [22:27:54]ProducePacketName [22:27:54]name=ofd_packets/00112105 [22:27:54]OFD Sender: To server: 嚂鰌G, [22:27:54]CommunicateWithHost lk.salyk.kg:30040 [22:27:54]ConnectInit lk.salyk.kg [22:27:54]Connected sock=10 [22:27:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B0 E1 07 01 44 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 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E 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 C1 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 11 01 00 00 F4 03 04 00 6C FE 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B5 01 00 35 04 06 00 5D B1 1C 37 FD 5C 66 F3 60 DE C5 E0 4A EE [22:27:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 ED 2F 47 00 43 CA 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 30 38 37 35 30 38 33 10 04 04 00 E9 B5 01 00 F4 03 04 00 8A 95 75 66 B6 04 01 00 00 66 FA 35 38 7B 9D 36 AB [22:27:54]CommunicateWithHost err = 0 [22:27:54]CheckOFDResponse [22:27:54]1017 (14) - 77093643461234 [22:27:54]1041 (16) - 0000000000875083 [22:27:54]1040 (4) - 112105 [22:27:54]1012 (4) - 21.06.2024 15:00 [22:27:54]1206 (1) - 0 [22:27:54]OFD Sender: Remove packet 112105 [22:27:54]ProducePacketName [22:27:54]name=ofd_packets/00112105 [22:27:54]NVStorageDeleteData [22:27:54]Write to MH i2c: 01 00 00 67 0B 72 [22:27:54]Write i2c OK [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: 01 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: 01 07 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: 01 07 00 67 0B 00 00 00 00 00 E4 0C 69 [22:27:54]RasterBufferAndPrint [22:27:54]line [22:27:54]line [22:27:54]line [22:27:54]line [22:27:54]line [22:27:54]written 0, free lines is 3306 [22:27:54]MH_Cut [22:27:54]Write to MH i2c: D1 01 00 6E 0B 01 4B [22:27:54]Write i2c OK [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: D1 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: D1 01 00 [22:27:54]MH_I2C_Read... [22:27:54]Read from MH i2c: D1 01 00 6E 0B 00 4A [22:27:54]Write to MH i2c: 01 00 00 6F 0B 7A [22:27:54]Write i2c OK [22:27:54]MH_I2C_Read... [22:27:55]OFD Sender: No OFD packet to send [22:27:55]*** Cut start [22:27:55]*** Partial cut [22:27:55]*** CUTSNS_PIN = 1 [22:27:55]*** CUTSNS_PIN = 0 [22:27:55]*** Brake cut motor [22:27:56]Read from MH i2c: 01 [22:27:56]MH_I2C_Read... [22:27:56]*** Stop cut motor [22:27:56]*** Cut end [22:27:56]Read from MH i2c: 01 07 00 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: 01 07 00 6F 0B 00 00 00 00 00 FF 0F 8F [22:27:56]process_action close_receipt done [22:27:56]requested_data is exist [22:27:56]produce_requested_data [22:27:56]requested_item fm.sn is exist - process it [22:27:56]wFMCommunicate request_size=4 [22:27:56]MH_SAM_APDU [22:27:56]CAPDU: 80 11 00 00 [22:27:56]Write to MH i2c: E2 08 00 70 0B 80 11 00 00 00 00 00 00 F5 [22:27:56]Write i2c OK [22:27:56]MH_I2C_Read... [22:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:56]Read from MH i2c: E2 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 17 00 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 17 00 70 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [22:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:27:56]wFMCommunicate OK [22:27:56]requested_item fd.num is exist - process it [22:27:56]SAM_PROTO_GetFieldsCounters [22:27:56]wFMCommunicate request_size=4 [22:27:56]MH_SAM_APDU [22:27:56]CAPDU: 80 13 00 00 [22:27:56]Write to MH i2c: E2 08 00 71 0B 80 13 00 00 00 00 00 00 F8 [22:27:56]Write i2c OK [22:27:56]MH_I2C_Read... [22:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:56]Read from MH i2c: E2 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 62 00 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 62 00 71 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E9 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [22:27:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E9 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:56]wFMCommunicate OK [22:27:56]SAM_PROTO_GetFieldsCounters done [22:27:56]requested_item shift.num is exist - process it [22:27:56]requested_item shift.opened is exist - process it [22:27:56]req_shift_opened [22:27:56]FM_GetShiftState [22:27:56]SAM_PROTO_GetShiftState [22:27:56]wFMCommunicate request_size=4 [22:27:56]MH_SAM_APDU [22:27:56]CAPDU: 80 13 01 00 [22:27:56]Write to MH i2c: E2 08 00 72 0B 80 13 01 00 00 00 00 00 FA [22:27:56]Write i2c OK [22:27:56]MH_I2C_Read... [22:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:56]Read from MH i2c: E2 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 0E 00 [22:27:56]MH_I2C_Read... [22:27:56]Read from MH i2c: E2 0E 00 72 0B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 77 [22:27:56]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:27:56]wFMCommunicate OK [22:27:56]SAM_PROTO_GetShiftState done [22:27:56]FM_GetShiftState done [22:27:56]req_shift_opened done [22:27:56]requested_item shift.open_date is exist - process it [22:27:56]req_shift_open_date [22:27:56]req_shift_open_date done [22:27:56]produce_requested_data done [22:27:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112105,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [22:27:56]process_action_free close_receipt [22:27:56]json_value_free [22:27:56]json_value_free done [22:27:56]process_json_proto returns [22:27:56]Send response to host [22:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112105,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [22:27:56]free response buf [22:27:56]execute_script done [22:27:56]execute_script returns [22:27:56]free content buf [22:27:56]Sock 9.Close socket [22:27:56]Sock 9.Thread stoped [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:49]accept exits with 7 [22:30:49]New connection [22:30:49]New thread 3066813796 created [22:30:49]Thread 3066957156 joined [22:30:49]Waiting for new connection... [22:30:49] Sock 7.Parse request [22:30:49]Sock 7.Check first char [22:30:49]Sock 7.First char is OK [22:30:49]request: POST /json_proto HTTP/1.0 [22:30:49]Method: POST [22:30:49]URL: /json_proto [22:30:49]Method is POST - this is cgi request [22:30:49]url: /json_proto [22:30:49]query_string will be loaded in cgi processing [22:30:49]execute_cgi json_proto POST (null) [22:30:49]execute_cgi path=json_proto method=POST [22:30:49]POST find Content-Length [22:30:49]Host: 172.17.59.68:8080 [22:30:49]Content-Length: 682 [22:30:49]Content-Type: application/json [22:30:49] [22:30:49]POST finish read [22:30:49]Found Content-Length = 682 [22:30:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:30:49]execute_script... [22:30: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)320766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:30:49]POST & json_proto [22:30:49]process_json_proto [22:30:49]json parsed OK: [22:30:49]protocol is kg_v1.0 [22:30:49]action value=close_receipt [22:30:49]process_action close_receipt [22:30:49]cmd_close_receipt [22:30:49]MH_GetDate [22:30:49]Write to MH i2c: F0 00 00 73 0B 6D [22:30:49]Write i2c OK [22:30:49]MH_I2C_Read... [22:30:49]Read from MH i2c: F0 [22:30:49]MH_I2C_Read... [22:30:49]Read from MH i2c: F0 09 00 [22:30:49]MH_I2C_Read... [22:30:49]Read from MH i2c: F0 09 00 73 0B 00 1C FF 75 66 BC EC 60 65 D9 [22:30:49]GetLastDocTimeStamp 1719008876 [22:30:49]current date 1719009052 [22:30:49]FM_GetShiftState [22:30:49]SAM_PROTO_GetShiftState [22:30:49]wFMCommunicate request_size=4 [22:30:49]MH_SAM_APDU [22:30:49]CAPDU: 80 13 01 00 [22:30:49]Write to MH i2c: E2 08 00 74 0B 80 13 01 00 00 00 00 00 FC [22:30:49]Write i2c OK [22:30:49]MH_I2C_Read... [22:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:49]Read from MH i2c: E2 [22:30:49]MH_I2C_Read... [22:30:49]Read from MH i2c: E2 0E 00 [22:30:49]MH_I2C_Read... [22:30:49]Read from MH i2c: E2 0E 00 74 0B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 79 [22:30:49]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:30:49]wFMCommunicate OK [22:30:49]SAM_PROTO_GetShiftState done [22:30:49]FM_GetShiftState done [22:30:49]opened in 1718933695 [22:30:49]opened+sec_in_day 1719020095 [22:30:49]quantity*price = 100064 [22:30:49]sum+1 = 100066 [22:30:49]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 274 21.06.2024 22:30 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112106 肖袩袛: 212796174863949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T223052&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112106&fm=212796174863949&tin=02508201610067®Number=0000000000092771&sum=100000 [22:30:50]StoreToDocumentArchive [22:30:50]shift 390 fd 112106 [22:30:50]save to /storage/0390/doc_00112106 [22:30:50]save last doc name /storage/0390/doc_00112106 to /storage/kkm_last_doc_name [22:30:50]save OK [22:30:50]Clear old archive folders... [22:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:30:50]tlvbuf is 010FB5C0 [22:30:50]SAM_PROTO_ClearQueue [22:30:50]wFMCommunicate request_size=4 [22:30:50]MH_SAM_APDU [22:30:50]CAPDU: 80 09 00 00 [22:30:50]Write to MH i2c: E2 08 00 81 0B 80 09 00 00 00 00 00 00 FE [22:30:50]Write i2c OK [22:30:50]MH_I2C_Read... [22:30:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:50]Read from MH i2c: E2 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: E2 03 00 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [22:30:50]RAPDU: 90 00 [22:30:50]wFMCommunicate OK [22:30:50]SAM_PROTO_ClearQueue done [22:30:50]KKMCreateOFDPacket [22:30:50]OFDProtocolAddRootSTLVToBuf [22:30:50]FM_MakeSignedData [22:30:50]FM_MakeSignedData [22:30:50]SAM_PROTO_SignData [22:30:50]wFMCommunicate request_size=4 [22:30:50]MH_SAM_APDU [22:30:50]CAPDU: 80 0D 01 02 [22:30:50]Write to MH i2c: E2 08 00 82 0B 80 0D 01 02 00 00 00 00 06 [22:30:50]Write i2c OK [22:30:50]MH_I2C_Read... [22:30:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:50]Read from MH i2c: E2 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: E2 03 00 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: E2 03 00 82 0B 00 90 00 01 [22:30:50]RAPDU: 90 00 [22:30:50]wFMCommunicate OK [22:30:50]wFMCommunicate request_size=255 [22:30:50]MH_SAM_APDU [22:30:50]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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 12 01 00 00 F4 03 04 00 1C FF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B5 01 00 35 04 06 00 C1 [22:30:50]Write to MH i2c: E2 02 01 83 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 12 01 00 00 F4 03 04 00 1C FF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B5 01 00 35 04 06 00 C1 00 00 FB [22:30:50]Write i2c OK [22:30:50]MH_I2C_Read... [22:30:50]OFD Sender: No OFD packet to send [22:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:50]Read from MH i2c: E2 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: E2 03 00 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: E2 03 00 83 0B 00 90 00 02 [22:30:50]RAPDU: 90 00 [22:30:50]wFMCommunicate OK [22:30:50]wFMCommunicate request_size=10 [22:30:50]MH_SAM_APDU [22:30:50]CAPDU: 80 0D 02 02 05 89 78 69 8E 4D [22:30:50]Write to MH i2c: E2 0D 00 84 0B 80 0D 02 02 05 00 89 78 69 8E 4D 00 00 58 [22:30:50]Write i2c OK [22:30:50]MH_I2C_Read... [22:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:50]Read from MH i2c: E2 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: E2 03 00 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: E2 03 00 84 0B 00 90 00 03 [22:30:50]RAPDU: 90 00 [22:30:50]wFMCommunicate OK [22:30:50]wFMCommunicate request_size=4 [22:30:50]MH_SAM_APDU [22:30:50]CAPDU: 80 0D 03 02 [22:30:50]Write to MH i2c: E2 08 00 85 0B 80 0D 03 02 00 00 00 00 0B [22:30:50]Write i2c OK [22:30:50]MH_I2C_Read... [22:30:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:50]Read from MH i2c: E2 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: E2 0B 00 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: E2 0B 00 85 0B 00 C9 96 E4 43 B1 36 3E 78 90 00 2F [22:30:50]RAPDU: C9 96 E4 43 B1 36 3E 78 90 00 [22:30:50]wFMCommunicate OK [22:30:50]SAM_PROTO_SignData done [22:30:50]FM_MakeSignedData done [22:30:50]CreateOFDProtocolMessage [22:30:50]wFMCommunicate request_size=4 [22:30:50]MH_SAM_APDU [22:30:50]CAPDU: 80 11 00 00 [22:30:50]Write to MH i2c: E2 08 00 86 0B 80 11 00 00 00 00 00 00 0B [22:30:50]Write i2c OK [22:30:50]MH_I2C_Read... [22:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:50]Read from MH i2c: E2 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: E2 17 00 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: E2 17 00 86 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [22:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:30:50]wFMCommunicate OK [22:30:50]CreateOFDProtocolMessage done [22:30:50]OFDSenderStorePacket 112106 [22:30:50]StoreOFDPacket docnum=112106 [22:30:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1B B6 07 01 85 A1 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 12 01 00 00 F4 03 04 00 1C FF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B5 01 00 35 04 06 00 C1 89 78 69 8E 4D C9 96 E4 43 B1 36 3E 78 [22:30:50]CheckFolder [22:30:50]dirname=/storage/ofd_packets [22:30:50]CheckFolder done [22:30:50]ProducePacketName [22:30:50]name=ofd_packets/00112106 [22:30:50]NVStorageSaveData ofd_packets/00112106 [22:30:50]File name is /storage/ofd_packets/00112106 [22:30:50]Write 301 bytes [22:30:50]NVStorageSaveData done [22:30:50]OFDSenderStorePacket done [22:30:50]KKMCreateOFDPacket done [22:30:50]NVStorageSaveData kkm_last_timestamp [22:30:50]File name is /storage/kkm_last_timestamp [22:30:50]Write 4 bytes [22:30:50]NVStorageSaveData done [22:30:50]ExternCall_PrintAddStr [22:30:50]wPrintStart [22:30:50]Write to MH i2c: 01 00 00 87 0B 92 [22:30:50]Write i2c OK [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: 01 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: 01 07 00 [22:30:50]MH_I2C_Read... [22:30:50]Read from MH i2c: 01 07 00 87 0B 00 00 00 00 00 FF 0F A7 [22:30:50]RasterBufferAndPrint [22:30:50]line 小褔械褌 N : (1)320766 [22:30:50]line 袠袧袧: 02508201610067 [22:30:50]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [22:30:50]line 袩袪袨袛袗袞袗 [22:30:50]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [22:30:50]line 孝芯胁邪褉: 2710124130 [22:30:50]line 袗懈-92-袣-5 [22:30:50]line 15.070 * 66.40 [22:30:50]line = 1000.65 [22:30:50]line 袧袛小 12% 袧小袩 1% [22:30:50]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [22:30:50]line 袨袣袪校袚袥袝袧袠袝: -0.65 [22:30:50]line 袠孝袨袚袨: 1000.00 [22:30:50]line 袙薪械褋械薪芯: 1000.00 [22:30:50]line 小袛袗效袗: 0.00 [22:30:50]line 袧小袩 1% : 8.85 [22:30:50]line 袧袛小 12% : 106.26 [22:30:50]line 袧邪谢懈褔薪褘屑懈: 1000.00 [22:30:50]line 袘械蟹薪邪谢.: 0.00 [22:30:50]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [22:30:50]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [22:30:50]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [22:30:50]line 效械泻 274 21.06.2024 22:30 [22:30:50]line 小屑械薪邪: 390 肖肖袛: 1.0 [22:30:50]line 袟袧袦: 0300000198 [22:30:50]line 袪袧袦: 0000000000092771 [22:30:50]line 袙械褉褋懈褟 袣袣袦: 001 [22:30:50]line 肖袦: 0000000000875083 [22:30:50]line 肖袛: 112106 [22:30:50]line 肖袩袛: 212796174863949 [22:30:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T223052&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112106&fm=212796174863949&tin=02508201610067®Number=0000000000092771&sum=100000 [22:30:51]OFD Sender: Processing packet 112106 [packets to send 38, broken 37] [22:30:51]ProducePacketName [22:30:51]name=ofd_packets/00112106 [22:30:51]OFD Sender: To server: 嚂鰌G, [22:30:51]CommunicateWithHost lk.salyk.kg:30040 [22:30:51]ConnectInit lk.salyk.kg [22:30:51]written 0, free lines is 4095 [22:30:51]Connected sock=10 [22:30:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1B B6 07 01 85 A1 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 12 01 00 00 F4 03 04 00 1C FF 75 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B5 01 00 35 04 06 00 C1 89 78 69 8E 4D C9 96 E4 43 B1 36 3E 78 [22:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 42 4F 47 00 68 F7 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 30 38 37 35 30 38 33 10 04 04 00 EA B5 01 00 F4 03 04 00 3B 96 75 66 B6 04 01 00 00 64 55 34 83 63 C4 C4 0B [22:30:51]CommunicateWithHost err = 0 [22:30:51]CheckOFDResponse [22:30:51]1017 (14) - 77093643461234 [22:30:51]1041 (16) - 0000000000875083 [22:30:51]1040 (4) - 112106 [22:30:51]1012 (4) - 21.06.2024 15:03 [22:30:51]1206 (1) - 0 [22:30:51]OFD Sender: Remove packet 112106 [22:30:51]ProducePacketName [22:30:51]name=ofd_packets/00112106 [22:30:51]NVStorageDeleteData [22:30:51]Write to MH i2c: 01 00 00 B2 0B BD [22:30:51]Write i2c OK [22:30:51]MH_I2C_Read... [22:30:51]Read from MH i2c: 01 [22:30:51]MH_I2C_Read... [22:30:51]Read from MH i2c: 01 07 00 [22:30:51]MH_I2C_Read... [22:30:51]Read from MH i2c: 01 07 00 B2 0B 00 00 00 00 00 D4 0C A4 [22:30:51]RasterBufferAndPrint [22:30:51]line [22:30:51]line [22:30:51]line [22:30:51]line [22:30:51]line [22:30:51]written 0, free lines is 3290 [22:30:51]MH_Cut [22:30:51]Write to MH i2c: D1 01 00 B9 0B 01 96 [22:30:51]Write i2c OK [22:30:51]MH_I2C_Read... [22:30:51]Read from MH i2c: D1 [22:30:51]MH_I2C_Read... [22:30:51]Read from MH i2c: D1 01 00 [22:30:51]MH_I2C_Read... [22:30:51]Read from MH i2c: D1 01 00 B9 0B 00 95 [22:30:51]Write to MH i2c: 01 00 00 BA 0B C5 [22:30:51]Write i2c OK [22:30:51]MH_I2C_Read... [22:30:51]OFD Sender: No OFD packet to send [22:30:52]*** Cut start [22:30:52]*** Partial cut [22:30:52]*** CUTSNS_PIN = 1 [22:30:52]*** CUTSNS_PIN = 0 [22:30:52]*** Brake cut motor [22:30:52]Read from MH i2c: 01 [22:30:52]MH_I2C_Read... [22:30:52]*** Stop cut motor [22:30:52]*** Cut end [22:30:52]Read from MH i2c: 01 07 00 [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: 01 07 00 BA 0B 00 00 00 00 00 FF 0F DA [22:30:52]process_action close_receipt done [22:30:52]requested_data is exist [22:30:52]produce_requested_data [22:30:52]requested_item fm.sn is exist - process it [22:30:52]wFMCommunicate request_size=4 [22:30:52]MH_SAM_APDU [22:30:52]CAPDU: 80 11 00 00 [22:30:52]Write to MH i2c: E2 08 00 BB 0B 80 11 00 00 00 00 00 00 40 [22:30:52]Write i2c OK [22:30:52]MH_I2C_Read... [22:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:52]Read from MH i2c: E2 [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: E2 17 00 [22:30:52]MH_I2C_Read... [22:30:52]Read from MH i2c: E2 17 00 BB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [22:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:30:52]wFMCommunicate OK [22:30:52]requested_item fd.num is exist - process it [22:30:52]SAM_PROTO_GetFieldsCounters [22:30:52]wFMCommunicate request_size=4 [22:30:52]MH_SAM_APDU [22:30:52]CAPDU: 80 13 00 00 [22:30:52]Write to MH i2c: E2 08 00 BC 0B 80 13 00 00 00 00 00 00 43 [22:30:52]Write i2c OK [22:30:52]MH_I2C_Read... [22:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:53]Read from MH i2c: E2 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 62 00 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 62 00 BC 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [22:30:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:53]wFMCommunicate OK [22:30:53]SAM_PROTO_GetFieldsCounters done [22:30:53]requested_item shift.num is exist - process it [22:30:53]requested_item shift.opened is exist - process it [22:30:53]req_shift_opened [22:30:53]FM_GetShiftState [22:30:53]SAM_PROTO_GetShiftState [22:30:53]wFMCommunicate request_size=4 [22:30:53]MH_SAM_APDU [22:30:53]CAPDU: 80 13 01 00 [22:30:53]Write to MH i2c: E2 08 00 BD 0B 80 13 01 00 00 00 00 00 45 [22:30:53]Write i2c OK [22:30:53]MH_I2C_Read... [22:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:53]Read from MH i2c: E2 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 0E 00 [22:30:53]MH_I2C_Read... [22:30:53]Read from MH i2c: E2 0E 00 BD 0B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C2 [22:30:53]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:30:53]wFMCommunicate OK [22:30:53]SAM_PROTO_GetShiftState done [22:30:53]FM_GetShiftState done [22:30:53]req_shift_opened done [22:30:53]requested_item shift.open_date is exist - process it [22:30:53]req_shift_open_date [22:30:53]req_shift_open_date done [22:30:53]produce_requested_data done [22:30:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112106,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [22:30:53]process_action_free close_receipt [22:30:53]json_value_free [22:30:53]json_value_free done [22:30:53]process_json_proto returns [22:30:53]Send response to host [22:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112106,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [22:30:53]free response buf [22:30:53]execute_script done [22:30:53]execute_script returns [22:30:53]free content buf [22:30:53]Sock 7.Close socket [22:30:53]Sock 7.Thread stoped [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]accept exits with 9 [22:41:27]New connection [22:41:27]New thread 3066957156 created [22:41:27]Thread 3066813796 joined [22:41:27]Waiting for new connection... [22:41:27] Sock 9.Parse request [22:41:27]Sock 9.Check first char [22:41:27]Sock 9.First char is OK [22:41:27]request: POST /json_proto HTTP/1.0 [22:41:27]Method: POST [22:41:27]URL: /json_proto [22:41:27]Method is POST - this is cgi request [22:41:27]url: /json_proto [22:41:27]query_string will be loaded in cgi processing [22:41:27]execute_cgi json_proto POST (null) [22:41:27]execute_cgi path=json_proto method=POST [22:41:27]POST find Content-Length [22:41:27]Host: 172.17.59.68:8080 [22:41:27]Content-Length: 682 [22:41:27]Content-Type: application/json [22:41:27] [22:41:27]POST finish read [22:41:27]Found Content-Length = 682 [22:41:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:41:27]execute_script... [22:41:27]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)320767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:41:27]POST & json_proto [22:41:27]process_json_proto [22:41:27]json parsed OK: [22:41:27]protocol is kg_v1.0 [22:41:27]action value=close_receipt [22:41:27]process_action close_receipt [22:41:27]cmd_close_receipt [22:41:27]MH_GetDate [22:41:27]Write to MH i2c: F0 00 00 BE 0B B8 [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: F0 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: F0 09 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: F0 09 00 BE 0B 00 9B 01 76 66 BC EC 60 65 A6 [22:41:27]GetLastDocTimeStamp 1719009052 [22:41:27]current date 1719009691 [22:41:27]FM_GetShiftState [22:41:27]SAM_PROTO_GetShiftState [22:41:27]wFMCommunicate request_size=4 [22:41:27]MH_SAM_APDU [22:41:27]CAPDU: 80 13 01 00 [22:41:27]Write to MH i2c: E2 08 00 BF 0B 80 13 01 00 00 00 00 00 47 [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:27]Read from MH i2c: E2 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 0E 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 0E 00 BF 0B 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 C4 [22:41:27]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:41:27]wFMCommunicate OK [22:41:27]SAM_PROTO_GetShiftState done [22:41:27]FM_GetShiftState done [22:41:27]opened in 1718933695 [22:41:27]opened+sec_in_day 1719020095 [22:41:27]quantity*price = 100064 [22:41:27]sum+1 = 100066 [22:41:27]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 275 21.06.2024 22:41 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112107 肖袩袛: 77117044206624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T224131&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112107&fm=77117044206624&tin=02508201610067®Number=0000000000092771&sum=100000 [22:41:28]StoreToDocumentArchive [22:41:28]shift 390 fd 112107 [22:41:28]save to /storage/0390/doc_00112107 [22:41:28]save last doc name /storage/0390/doc_00112107 to /storage/kkm_last_doc_name [22:41:28]save OK [22:41:28]Clear old archive folders... [22:41:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:41:28]tlvbuf is 0111B610 [22:41:28]SAM_PROTO_ClearQueue [22:41:28]wFMCommunicate request_size=4 [22:41:28]MH_SAM_APDU [22:41:28]CAPDU: 80 09 00 00 [22:41:28]Write to MH i2c: E2 08 00 CC 0B 80 09 00 00 00 00 00 00 49 [22:41:28]Write i2c OK [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 [22:41:28]MH_I2C_Read... [22:41:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:28]Read from MH i2c: E2 03 00 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [22:41:28]RAPDU: 90 00 [22:41:28]wFMCommunicate OK [22:41:28]SAM_PROTO_ClearQueue done [22:41:28]KKMCreateOFDPacket [22:41:28]OFDProtocolAddRootSTLVToBuf [22:41:28]FM_MakeSignedData [22:41:28]FM_MakeSignedData [22:41:28]SAM_PROTO_SignData [22:41:28]wFMCommunicate request_size=4 [22:41:28]MH_SAM_APDU [22:41:28]CAPDU: 80 0D 01 02 [22:41:28]Write to MH i2c: E2 08 00 CD 0B 80 0D 01 02 00 00 00 00 51 [22:41:28]Write i2c OK [22:41:28]MH_I2C_Read... [22:41:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:28]Read from MH i2c: E2 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 03 00 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 03 00 CD 0B 00 90 00 4C [22:41:28]RAPDU: 90 00 [22:41:28]wFMCommunicate OK [22:41:28]wFMCommunicate request_size=255 [22:41:28]MH_SAM_APDU [22:41: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 13 01 00 00 F4 03 04 00 9B 01 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B5 01 00 35 04 06 00 46 [22:41:28]Write to MH i2c: E2 02 01 CE 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 13 01 00 00 F4 03 04 00 9B 01 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B5 01 00 35 04 06 00 46 00 00 4F [22:41:28]Write i2c OK [22:41:28]MH_I2C_Read... [22:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:28]Read from MH i2c: E2 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 03 00 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 03 00 CE 0B 00 90 00 4D [22:41:28]RAPDU: 90 00 [22:41:28]wFMCommunicate OK [22:41:28]wFMCommunicate request_size=10 [22:41:28]MH_SAM_APDU [22:41:28]CAPDU: 80 0D 02 02 05 23 36 06 AC 20 [22:41:28]Write to MH i2c: E2 0D 00 CF 0B 80 0D 02 02 05 00 23 36 06 AC 20 00 00 89 [22:41:28]Write i2c OK [22:41:28]MH_I2C_Read... [22:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:28]Read from MH i2c: E2 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 03 00 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 03 00 CF 0B 00 90 00 4E [22:41:28]RAPDU: 90 00 [22:41:28]wFMCommunicate OK [22:41:28]wFMCommunicate request_size=4 [22:41:28]MH_SAM_APDU [22:41:28]CAPDU: 80 0D 03 02 [22:41:28]Write to MH i2c: E2 08 00 D0 0B 80 0D 03 02 00 00 00 00 56 [22:41:28]Write i2c OK [22:41:28]MH_I2C_Read... [22:41:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:29]Read from MH i2c: E2 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 0B 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 0B 00 D0 0B 00 82 C4 EA 21 AD A7 19 64 90 00 79 [22:41:29]RAPDU: 82 C4 EA 21 AD A7 19 64 90 00 [22:41:29]wFMCommunicate OK [22:41:29]SAM_PROTO_SignData done [22:41:29]FM_MakeSignedData done [22:41:29]CreateOFDProtocolMessage [22:41:29]wFMCommunicate request_size=4 [22:41:29]MH_SAM_APDU [22:41:29]CAPDU: 80 11 00 00 [22:41:29]Write to MH i2c: E2 08 00 D1 0B 80 11 00 00 00 00 00 00 56 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:29]Read from MH i2c: E2 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 17 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 17 00 D1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A8 [22:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:41:29]wFMCommunicate OK [22:41:29]CreateOFDProtocolMessage done [22:41:29]OFDSenderStorePacket 112107 [22:41:29]StoreOFDPacket docnum=112107 [22:41:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0F 43 07 01 6B B9 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 13 01 00 00 F4 03 04 00 9B 01 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B5 01 00 35 04 06 00 46 23 36 06 AC 20 82 C4 EA 21 AD A7 19 64 [22:41:29]CheckFolder [22:41:29]dirname=/storage/ofd_packets [22:41:29]CheckFolder done [22:41:29]ProducePacketName [22:41:29]name=ofd_packets/00112107 [22:41:29]NVStorageSaveData ofd_packets/00112107 [22:41:29]File name is /storage/ofd_packets/00112107 [22:41:29]Write 301 bytes [22:41:29]NVStorageSaveData done [22:41:29]OFDSenderStorePacket done [22:41:29]KKMCreateOFDPacket done [22:41:29]NVStorageSaveData kkm_last_timestamp [22:41:29]File name is /storage/kkm_last_timestamp [22:41:29]Write 4 bytes [22:41:29]NVStorageSaveData done [22:41:29]ExternCall_PrintAddStr [22:41:29]wPrintStart [22:41:29]Write to MH i2c: 01 00 00 D2 0B DD [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: 01 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: 01 07 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: 01 07 00 D2 0B 00 00 00 00 00 FF 0F F2 [22:41:29]RasterBufferAndPrint [22:41:29]line 小褔械褌 N : (1)320767 [22:41:29]line 袠袧袧: 02508201610067 [22:41:29]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [22:41:29]line 袩袪袨袛袗袞袗 [22:41:29]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [22:41:29]line 孝芯胁邪褉: 2710124130 [22:41:29]line 袗懈-92-袣-5 [22:41:29]line 15.070 * 66.40 [22:41:29]line = 1000.65 [22:41:29]line 袧袛小 12% 袧小袩 1% [22:41:29]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [22:41:29]line 袨袣袪校袚袥袝袧袠袝: -0.65 [22:41:29]line 袠孝袨袚袨: 1000.00 [22:41:29]line 袙薪械褋械薪芯: 1000.00 [22:41:29]line 小袛袗效袗: 0.00 [22:41:29]line 袧小袩 1% : 8.85 [22:41:29]line 袧袛小 12% : 106.26 [22:41:29]line 袧邪谢懈褔薪褘屑懈: 1000.00 [22:41:29]line 袘械蟹薪邪谢.: 0.00 [22:41:29]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [22:41:29]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [22:41:29]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [22:41:29]line 效械泻 275 21.06.2024 22:41 [22:41:29]line 小屑械薪邪: 390 肖肖袛: 1.0 [22:41:29]line 袟袧袦: 0300000198 [22:41:29]line 袪袧袦: 0000000000092771 [22:41:29]line 袙械褉褋懈褟 袣袣袦: 001 [22:41:29]line 肖袦: 0000000000875083 [22:41:29]line 肖袛: 112107 [22:41:29]line 肖袩袛: 77117044206624 [22:41:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T224131&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112107&fm=77117044206624&tin=02508201610067®Number=0000000000092771&sum=100000 [22:41:29]OFD Sender: Processing packet 112107 [packets to send 38, broken 37] [22:41:29]ProducePacketName [22:41:29]name=ofd_packets/00112107 [22:41:29]OFD Sender: To server: 嚂鰌G, [22:41:29]CommunicateWithHost lk.salyk.kg:30040 [22:41:29]ConnectInit lk.salyk.kg [22:41:29]written 0, free lines is 4095 [22:41:29]Connected sock=10 [22:41:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0F 43 07 01 6B B9 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 13 01 00 00 F4 03 04 00 9B 01 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B5 01 00 35 04 06 00 46 23 36 06 AC 20 82 C4 EA 21 AD A7 19 64 [22:41:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 71 DC 47 00 24 CA 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 30 38 37 35 30 38 33 10 04 04 00 EB B5 01 00 F4 03 04 00 B9 98 75 66 B6 04 01 00 00 B6 AE D4 3A 46 77 4C 39 [22:41:29]CommunicateWithHost err = 0 [22:41:29]CheckOFDResponse [22:41:29]1017 (14) - 77093643461234 [22:41:29]1041 (16) - 0000000000875083 [22:41:29]1040 (4) - 112107 [22:41:29]1012 (4) - 21.06.2024 15:14 [22:41:29]1206 (1) - 0 [22:41:29]OFD Sender: Remove packet 112107 [22:41:29]ProducePacketName [22:41:29]name=ofd_packets/00112107 [22:41:29]NVStorageDeleteData [22:41:29]Write to MH i2c: 01 00 00 FD 0B 08 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: 01 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: 01 07 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: 01 07 00 FD 0B 00 00 00 00 00 D4 0C EF [22:41:29]RasterBufferAndPrint [22:41:29]line [22:41:29]line [22:41:29]line [22:41:29]line [22:41:29]line [22:41:29]written 0, free lines is 3292 [22:41:29]MH_Cut [22:41:29]Write to MH i2c: D1 01 00 04 0C 01 E2 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: D1 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: D1 01 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: D1 01 00 04 0C 00 E1 [22:41:29]Write to MH i2c: 01 00 00 05 0C 11 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:30]OFD Sender: No OFD packet to send [22:41:30]*** Cut start [22:41:30]*** Partial cut [22:41:30]*** CUTSNS_PIN = 1 [22:41:30]*** CUTSNS_PIN = 0 [22:41:30]*** Brake cut motor [22:41:31]Read from MH i2c: 01 [22:41:31]MH_I2C_Read... [22:41:31]*** Stop cut motor [22:41:31]*** Cut end [22:41:31]Read from MH i2c: 01 07 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: 01 07 00 05 0C 00 00 00 00 00 FF 0F 26 [22:41:31]process_action close_receipt done [22:41:31]requested_data is exist [22:41:31]produce_requested_data [22:41:31]requested_item fm.sn is exist - process it [22:41:31]wFMCommunicate request_size=4 [22:41:31]MH_SAM_APDU [22:41:31]CAPDU: 80 11 00 00 [22:41:31]Write to MH i2c: E2 08 00 06 0C 80 11 00 00 00 00 00 00 8C [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 17 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 17 00 06 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DE [22:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:41:31]wFMCommunicate OK [22:41:31]requested_item fd.num is exist - process it [22:41:31]SAM_PROTO_GetFieldsCounters [22:41:31]wFMCommunicate request_size=4 [22:41:31]MH_SAM_APDU [22:41:31]CAPDU: 80 13 00 00 [22:41:31]Write to MH i2c: E2 08 00 07 0C 80 13 00 00 00 00 00 00 8F [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 62 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 62 00 07 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [22:41:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:31]wFMCommunicate OK [22:41:31]SAM_PROTO_GetFieldsCounters done [22:41:31]requested_item shift.num is exist - process it [22:41:31]requested_item shift.opened is exist - process it [22:41:31]req_shift_opened [22:41:31]FM_GetShiftState [22:41:31]SAM_PROTO_GetShiftState [22:41:31]wFMCommunicate request_size=4 [22:41:31]MH_SAM_APDU [22:41:31]CAPDU: 80 13 01 00 [22:41:31]Write to MH i2c: E2 08 00 08 0C 80 13 01 00 00 00 00 00 91 [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 0E 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 0E 00 08 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 0E [22:41:31]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:41:31]wFMCommunicate OK [22:41:31]SAM_PROTO_GetShiftState done [22:41:31]FM_GetShiftState done [22:41:31]req_shift_opened done [22:41:31]requested_item shift.open_date is exist - process it [22:41:31]req_shift_open_date [22:41:31]req_shift_open_date done [22:41:31]produce_requested_data done [22:41:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112107,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [22:41:31]process_action_free close_receipt [22:41:31]json_value_free [22:41:31]json_value_free done [22:41:31]process_json_proto returns [22:41:31]Send response to host [22:41:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112107,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [22:41:31]free response buf [22:41:31]execute_script done [22:41:31]execute_script returns [22:41:31]free content buf [22:41:31]Sock 9.Close socket [22:41:31]Sock 9.Thread stoped [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]accept exits with 7 [22:43:35]New connection [22:43:35]New thread 3066813796 created [22:43:35]Thread 3066957156 joined [22:43:35]Waiting for new connection... [22:43:35] Sock 7.Parse request [22:43:35]Sock 7.Check first char [22:43:35]Sock 7.First char is OK [22:43:35]request: POST /json_proto HTTP/1.0 [22:43:35]Method: POST [22:43:35]URL: /json_proto [22:43:35]Method is POST - this is cgi request [22:43:35]url: /json_proto [22:43:35]query_string will be loaded in cgi processing [22:43:35]execute_cgi json_proto POST (null) [22:43:35]execute_cgi path=json_proto method=POST [22:43:35]POST find Content-Length [22:43:35]Host: 172.17.59.68:8080 [22:43:35]Content-Length: 677 [22:43:35]Content-Type: application/json [22:43:35] [22:43:35]POST finish read [22:43:35]Found Content-Length = 677 [22:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:35]execute_script... [22:43:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:43:35]POST & json_proto [22:43:35]process_json_proto [22:43:35]json parsed OK: [22:43:35]protocol is kg_v1.0 [22:43:35]action value=close_receipt [22:43:35]process_action close_receipt [22:43:35]cmd_close_receipt [22:43:35]MH_GetDate [22:43:35]Write to MH i2c: F0 00 00 09 0C 04 [22:43:35]Write i2c OK [22:43:35]MH_I2C_Read... [22:43:35]Read from MH i2c: F0 [22:43:35]MH_I2C_Read... [22:43:35]Read from MH i2c: F0 09 00 [22:43:35]MH_I2C_Read... [22:43:35]Read from MH i2c: F0 09 00 09 0C 00 1A 02 76 66 BC EC 60 65 72 [22:43:35]GetLastDocTimeStamp 1719009691 [22:43:35]current date 1719009818 [22:43:35]FM_GetShiftState [22:43:35]SAM_PROTO_GetShiftState [22:43:35]wFMCommunicate request_size=4 [22:43:35]MH_SAM_APDU [22:43:35]CAPDU: 80 13 01 00 [22:43:35]Write to MH i2c: E2 08 00 0A 0C 80 13 01 00 00 00 00 00 93 [22:43:35]Write i2c OK [22:43:35]MH_I2C_Read... [22:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:35]Read from MH i2c: E2 [22:43:35]MH_I2C_Read... [22:43:35]Read from MH i2c: E2 0E 00 [22:43:35]MH_I2C_Read... [22:43:35]Read from MH i2c: E2 0E 00 0A 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 10 [22:43:35]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:43:35]wFMCommunicate OK [22:43:35]SAM_PROTO_GetShiftState done [22:43:35]FM_GetShiftState done [22:43:35]opened in 1718933695 [22:43:35]opened+sec_in_day 1719020095 [22:43:35]quantity*price = 30012 [22:43:35]sum+1 = 30014 [22:43:35]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 276 21.06.2024 22:43 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112108 肖袩袛: 28133551811408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T224339&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112108&fm=28133551811408&tin=02508201610067®Number=0000000000092771&sum=30000 [22:43:36]StoreToDocumentArchive [22:43:36]shift 390 fd 112108 [22:43:36]save to /storage/0390/doc_00112108 [22:43:36]save last doc name /storage/0390/doc_00112108 to /storage/kkm_last_doc_name [22:43:36]save OK [22:43:36]Clear old archive folders... [22:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:43:36]tlvbuf is 01131ED0 [22:43:36]SAM_PROTO_ClearQueue [22:43:36]wFMCommunicate request_size=4 [22:43:36]MH_SAM_APDU [22:43:36]CAPDU: 80 09 00 00 [22:43:36]Write to MH i2c: E2 08 00 17 0C 80 09 00 00 00 00 00 00 95 [22:43:36]Write i2c OK [22:43:36]MH_I2C_Read... [22:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:36]Read from MH i2c: E2 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: E2 03 00 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: E2 03 00 17 0C 00 90 00 97 [22:43:36]RAPDU: 90 00 [22:43:36]wFMCommunicate OK [22:43:36]SAM_PROTO_ClearQueue done [22:43:36]KKMCreateOFDPacket [22:43:36]OFDProtocolAddRootSTLVToBuf [22:43:36]FM_MakeSignedData [22:43:36]FM_MakeSignedData [22:43:36]SAM_PROTO_SignData [22:43:36]wFMCommunicate request_size=4 [22:43:36]MH_SAM_APDU [22:43:36]CAPDU: 80 0D 01 02 [22:43:36]Write to MH i2c: E2 08 00 18 0C 80 0D 01 02 00 00 00 00 9D [22:43:36]Write i2c OK [22:43:36]MH_I2C_Read... [22:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:36]Read from MH i2c: E2 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: E2 03 00 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: E2 03 00 18 0C 00 90 00 98 [22:43:36]RAPDU: 90 00 [22:43:36]wFMCommunicate OK [22:43:36]wFMCommunicate request_size=255 [22:43:36]MH_SAM_APDU [22:43:36]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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 14 01 00 00 F4 03 04 00 1B 02 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B5 01 00 35 04 06 00 19 [22:43:36]Write to MH i2c: E2 02 01 19 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 14 01 00 00 F4 03 04 00 1B 02 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B5 01 00 35 04 06 00 19 00 00 3F [22:43:36]Write i2c OK [22:43:36]MH_I2C_Read... [22:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:36]Read from MH i2c: E2 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: E2 03 00 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: E2 03 00 19 0C 00 90 00 99 [22:43:36]RAPDU: 90 00 [22:43:36]wFMCommunicate OK [22:43:36]wFMCommunicate request_size=10 [22:43:36]MH_SAM_APDU [22:43:36]CAPDU: 80 0D 02 02 05 96 5A 5C AB 50 [22:43:36]Write to MH i2c: E2 0D 00 1A 0C 80 0D 02 02 05 00 96 5A 5C AB 50 00 00 F1 [22:43:36]Write i2c OK [22:43:36]MH_I2C_Read... [22:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:36]Read from MH i2c: E2 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: E2 03 00 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: E2 03 00 1A 0C 00 90 00 9A [22:43:36]RAPDU: 90 00 [22:43:36]wFMCommunicate OK [22:43:36]wFMCommunicate request_size=4 [22:43:36]MH_SAM_APDU [22:43:36]CAPDU: 80 0D 03 02 [22:43:36]Write to MH i2c: E2 08 00 1B 0C 80 0D 03 02 00 00 00 00 A2 [22:43:36]Write i2c OK [22:43:36]MH_I2C_Read... [22:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:36]Read from MH i2c: E2 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: E2 0B 00 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: E2 0B 00 1B 0C 00 A1 C7 02 B0 F8 FF 69 93 90 00 B0 [22:43:36]RAPDU: A1 C7 02 B0 F8 FF 69 93 90 00 [22:43:36]wFMCommunicate OK [22:43:36]SAM_PROTO_SignData done [22:43:36]FM_MakeSignedData done [22:43:36]CreateOFDProtocolMessage [22:43:36]wFMCommunicate request_size=4 [22:43:36]MH_SAM_APDU [22:43:36]CAPDU: 80 11 00 00 [22:43:36]Write to MH i2c: E2 08 00 1C 0C 80 11 00 00 00 00 00 00 A2 [22:43:36]Write i2c OK [22:43:36]MH_I2C_Read... [22:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:36]Read from MH i2c: E2 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: E2 17 00 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: E2 17 00 1C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F4 [22:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:43:36]wFMCommunicate OK [22:43:36]CreateOFDProtocolMessage done [22:43:36]OFDSenderStorePacket 112108 [22:43:36]StoreOFDPacket docnum=112108 [22:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD 24 07 01 4D 66 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 14 01 00 00 F4 03 04 00 1B 02 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B5 01 00 35 04 06 00 19 96 5A 5C AB 50 A1 C7 02 B0 F8 FF 69 93 [22:43:36]CheckFolder [22:43:36]dirname=/storage/ofd_packets [22:43:36]CheckFolder done [22:43:36]ProducePacketName [22:43:36]name=ofd_packets/00112108 [22:43:36]NVStorageSaveData ofd_packets/00112108 [22:43:36]File name is /storage/ofd_packets/00112108 [22:43:36]Write 301 bytes [22:43:36]NVStorageSaveData done [22:43:36]OFDSenderStorePacket done [22:43:36]KKMCreateOFDPacket done [22:43:36]NVStorageSaveData kkm_last_timestamp [22:43:36]File name is /storage/kkm_last_timestamp [22:43:36]Write 4 bytes [22:43:36]NVStorageSaveData done [22:43:36]ExternCall_PrintAddStr [22:43:36]wPrintStart [22:43:36]Write to MH i2c: 01 00 00 1D 0C 29 [22:43:36]Write i2c OK [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: 01 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: 01 07 00 [22:43:36]MH_I2C_Read... [22:43:36]Read from MH i2c: 01 07 00 1D 0C 00 00 00 00 00 FF 0F 3E [22:43:36]RasterBufferAndPrint [22:43:36]line 小褔械褌 N : (1)320768 [22:43:36]line 袠袧袧: 02508201610067 [22:43:36]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [22:43:36]line 袩袪袨袛袗袞袗 [22:43:36]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [22:43:36]line 孝芯胁邪褉: 2710124130 [22:43:36]line 袗懈-92-袣-5 [22:43:36]line 4.520 * 66.40 [22:43:36]line = 300.13 [22:43:36]line 袧袛小 12% 袧小袩 1% [22:43:36]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [22:43:36]line 袨袣袪校袚袥袝袧袠袝: -0.13 [22:43:36]line 袠孝袨袚袨: 300.00 [22:43:36]line 袙薪械褋械薪芯: 300.00 [22:43:36]line 小袛袗效袗: 0.00 [22:43:36]line 袧小袩 1% : 2.66 [22:43:36]line 袧袛小 12% : 31.87 [22:43:36]line 袧邪谢懈褔薪褘屑懈: 300.00 [22:43:36]line 袘械蟹薪邪谢.: 0.00 [22:43:36]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [22:43:36]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [22:43:36]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [22:43:36]line 效械泻 276 21.06.2024 22:43 [22:43:36]line 小屑械薪邪: 390 肖肖袛: 1.0 [22:43:36]line 袟袧袦: 0300000198 [22:43:36]line 袪袧袦: 0000000000092771 [22:43:36]line 袙械褉褋懈褟 袣袣袦: 001 [22:43:36]line 肖袦: 0000000000875083 [22:43:36]line 肖袛: 112108 [22:43:36]line 肖袩袛: 28133551811408 [22:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T224339&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112108&fm=28133551811408&tin=02508201610067®Number=0000000000092771&sum=30000 [22:43:37]OFD Sender: Processing packet 112108 [packets to send 38, broken 37] [22:43:37]ProducePacketName [22:43:37]name=ofd_packets/00112108 [22:43:37]OFD Sender: To server: 嚂鰌G, [22:43:37]CommunicateWithHost lk.salyk.kg:30040 [22:43:37]ConnectInit lk.salyk.kg [22:43:37]written 0, free lines is 4095 [22:43:37]Connected sock=10 [22:43:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD 24 07 01 4D 66 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 14 01 00 00 F4 03 04 00 1B 02 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B5 01 00 35 04 06 00 19 96 5A 5C AB 50 A1 C7 02 B0 F8 FF 69 93 [22:43:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 26 4E 47 00 2A E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B5 01 00 F4 03 04 00 39 99 75 66 B6 04 01 00 00 AE F5 4B CD F9 5A 99 7B [22:43:37]CommunicateWithHost err = 0 [22:43:37]CheckOFDResponse [22:43:37]1017 (14) - 77093643461234 [22:43:37]1041 (16) - 0000000000875083 [22:43:37]1040 (4) - 112108 [22:43:37]1012 (4) - 21.06.2024 15:16 [22:43:37]1206 (1) - 0 [22:43:37]OFD Sender: Remove packet 112108 [22:43:37]ProducePacketName [22:43:37]name=ofd_packets/00112108 [22:43:37]NVStorageDeleteData [22:43:37]Write to MH i2c: 01 00 00 48 0C 54 [22:43:37]Write i2c OK [22:43:37]MH_I2C_Read... [22:43:37]Read from MH i2c: 01 [22:43:37]MH_I2C_Read... [22:43:37]Read from MH i2c: 01 07 00 [22:43:37]MH_I2C_Read... [22:43:37]Read from MH i2c: 01 07 00 48 0C 00 00 00 00 00 D4 0C 3B [22:43:37]RasterBufferAndPrint [22:43:37]line [22:43:37]line [22:43:37]line [22:43:37]line [22:43:37]line [22:43:37]written 0, free lines is 3288 [22:43:37]MH_Cut [22:43:37]Write to MH i2c: D1 01 00 4F 0C 01 2D [22:43:37]Write i2c OK [22:43:37]MH_I2C_Read... [22:43:37]Read from MH i2c: D1 [22:43:37]MH_I2C_Read... [22:43:37]Read from MH i2c: D1 01 00 [22:43:37]MH_I2C_Read... [22:43:37]Read from MH i2c: D1 01 00 4F 0C 00 2C [22:43:37]Write to MH i2c: 01 00 00 50 0C 5C [22:43:37]Write i2c OK [22:43:37]MH_I2C_Read... [22:43:38]OFD Sender: No OFD packet to send [22:43:38]*** Cut start [22:43:38]*** Partial cut [22:43:38]*** CUTSNS_PIN = 1 [22:43:38]*** CUTSNS_PIN = 0 [22:43:38]*** Brake cut motor [22:43:39]Read from MH i2c: 01 [22:43:39]MH_I2C_Read... [22:43:39]*** Stop cut motor [22:43:39]*** Cut end [22:43:39]Read from MH i2c: 01 07 00 [22:43:39]MH_I2C_Read... [22:43:39]Read from MH i2c: 01 07 00 50 0C 00 00 00 00 00 FF 0F 71 [22:43:39]process_action close_receipt done [22:43:39]requested_data is exist [22:43:39]produce_requested_data [22:43:39]requested_item fm.sn is exist - process it [22:43:39]wFMCommunicate request_size=4 [22:43:39]MH_SAM_APDU [22:43:39]CAPDU: 80 11 00 00 [22:43:39]Write to MH i2c: E2 08 00 51 0C 80 11 00 00 00 00 00 00 D7 [22:43:39]Write i2c OK [22:43:39]MH_I2C_Read... [22:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:39]Read from MH i2c: E2 [22:43:39]MH_I2C_Read... [22:43:39]Read from MH i2c: E2 17 00 [22:43:39]MH_I2C_Read... [22:43:39]Read from MH i2c: E2 17 00 51 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [22:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:43:39]wFMCommunicate OK [22:43:39]requested_item fd.num is exist - process it [22:43:39]SAM_PROTO_GetFieldsCounters [22:43:39]wFMCommunicate request_size=4 [22:43:39]MH_SAM_APDU [22:43:39]CAPDU: 80 13 00 00 [22:43:39]Write to MH i2c: E2 08 00 52 0C 80 13 00 00 00 00 00 00 DA [22:43:39]Write i2c OK [22:43:39]MH_I2C_Read... [22:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:39]Read from MH i2c: E2 [22:43:39]MH_I2C_Read... [22:43:39]Read from MH i2c: E2 62 00 [22:43:39]MH_I2C_Read... [22:43:39]Read from MH i2c: E2 62 00 52 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [22:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:39]wFMCommunicate OK [22:43:39]SAM_PROTO_GetFieldsCounters done [22:43:39]requested_item shift.num is exist - process it [22:43:39]requested_item shift.opened is exist - process it [22:43:39]req_shift_opened [22:43:39]FM_GetShiftState [22:43:39]SAM_PROTO_GetShiftState [22:43:39]wFMCommunicate request_size=4 [22:43:39]MH_SAM_APDU [22:43:39]CAPDU: 80 13 01 00 [22:43:39]Write to MH i2c: E2 08 00 53 0C 80 13 01 00 00 00 00 00 DC [22:43:39]Write i2c OK [22:43:39]MH_I2C_Read... [22:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:39]Read from MH i2c: E2 [22:43:39]MH_I2C_Read... [22:43:39]Read from MH i2c: E2 0E 00 [22:43:39]MH_I2C_Read... [22:43:39]Read from MH i2c: E2 0E 00 53 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 59 [22:43:39]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:43:39]wFMCommunicate OK [22:43:39]SAM_PROTO_GetShiftState done [22:43:39]FM_GetShiftState done [22:43:39]req_shift_opened done [22:43:39]requested_item shift.open_date is exist - process it [22:43:39]req_shift_open_date [22:43:39]req_shift_open_date done [22:43:39]produce_requested_data done [22:43:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112108,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [22:43:39]process_action_free close_receipt [22:43:39]json_value_free [22:43:39]json_value_free done [22:43:39]process_json_proto returns [22:43:39]Send response to host [22:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112108,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [22:43:39]free response buf [22:43:39]execute_script done [22:43:39]execute_script returns [22:43:39]free content buf [22:43:39]Sock 7.Close socket [22:43:39]Sock 7.Thread stoped [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:11]accept exits with 9 [22:45:11]New connection [22:45:11]New thread 3066957156 created [22:45:11]Thread 3066813796 joined [22:45:11]Waiting for new connection... [22:45:11] Sock 9.Parse request [22:45:11]Sock 9.Check first char [22:45:11]Sock 9.First char is OK [22:45:11]request: POST /json_proto HTTP/1.0 [22:45:11]Method: POST [22:45:11]URL: /json_proto [22:45:11]Method is POST - this is cgi request [22:45:11]url: /json_proto [22:45:11]query_string will be loaded in cgi processing [22:45:11]execute_cgi json_proto POST (null) [22:45:11]execute_cgi path=json_proto method=POST [22:45:11]POST find Content-Length [22:45:11]Host: 172.17.59.68:8080 [22:45:11]Content-Length: 678 [22:45:11]Content-Type: application/json [22:45:11] [22:45:11]POST finish read [22:45:11]Found Content-Length = 678 [22:45:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:11]execute_script... [22:45: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 : (1)320769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:11]POST & json_proto [22:45:11]process_json_proto [22:45:11]json parsed OK: [22:45:11]protocol is kg_v1.0 [22:45:11]action value=close_receipt [22:45:11]process_action close_receipt [22:45:11]cmd_close_receipt [22:45:11]MH_GetDate [22:45:11]Write to MH i2c: F0 00 00 54 0C 4F [22:45:11]Write i2c OK [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: F0 [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: F0 09 00 [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: F0 09 00 54 0C 00 7B 02 76 66 BC EC 60 65 1E [22:45:11]GetLastDocTimeStamp 1719009819 [22:45:11]current date 1719009915 [22:45:11]FM_GetShiftState [22:45:11]SAM_PROTO_GetShiftState [22:45:11]wFMCommunicate request_size=4 [22:45:11]MH_SAM_APDU [22:45:11]CAPDU: 80 13 01 00 [22:45:11]Write to MH i2c: E2 08 00 55 0C 80 13 01 00 00 00 00 00 DE [22:45:11]Write i2c OK [22:45:11]MH_I2C_Read... [22:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:11]Read from MH i2c: E2 [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: E2 0E 00 [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: E2 0E 00 55 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 5B [22:45:11]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:45:11]wFMCommunicate OK [22:45:11]SAM_PROTO_GetShiftState done [22:45:11]FM_GetShiftState done [22:45:11]opened in 1718933695 [22:45:11]opened+sec_in_day 1719020095 [22:45:11]quantity*price = 67064 [22:45:11]sum+1 = 67065 [22:45:11]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.64 袠孝袨袚袨: 670.00 袙薪械褋械薪芯: 670.00 小袛袗效袗: 0.00 袧小袩 1% : 5.93 袧袛小 12% : 71.22 袧邪谢懈褔薪褘屑懈: 670.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 277 21.06.2024 22:45 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112109 肖袩袛: 9007789985614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T224515&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112109&fm=9007789985614&tin=02508201610067®Number=0000000000092771&sum=67000 [22:45:12]StoreToDocumentArchive [22:45:12]shift 390 fd 112109 [22:45:12]save to /storage/0390/doc_00112109 [22:45:12]save last doc name /storage/0390/doc_00112109 to /storage/kkm_last_doc_name [22:45:12]save OK [22:45:12]Clear old archive folders... [22:45:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:45:12]tlvbuf is 0111B730 [22:45:12]SAM_PROTO_ClearQueue [22:45:12]wFMCommunicate request_size=4 [22:45:12]MH_SAM_APDU [22:45:12]CAPDU: 80 09 00 00 [22:45:12]Write to MH i2c: E2 08 00 62 0C 80 09 00 00 00 00 00 00 E0 [22:45:12]Write i2c OK [22:45:12]MH_I2C_Read... [22:45:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:13]Read from MH i2c: E2 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 62 0C 00 90 00 E2 [22:45:13]RAPDU: 90 00 [22:45:13]wFMCommunicate OK [22:45:13]SAM_PROTO_ClearQueue done [22:45:13]KKMCreateOFDPacket [22:45:13]OFDProtocolAddRootSTLVToBuf [22:45:13]FM_MakeSignedData [22:45:13]FM_MakeSignedData [22:45:13]SAM_PROTO_SignData [22:45:13]wFMCommunicate request_size=4 [22:45:13]MH_SAM_APDU [22:45:13]CAPDU: 80 0D 01 02 [22:45:13]Write to MH i2c: E2 08 00 63 0C 80 0D 01 02 00 00 00 00 E8 [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:13]Read from MH i2c: E2 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 63 0C 00 90 00 E3 [22:45:13]RAPDU: 90 00 [22:45:13]wFMCommunicate OK [22:45:13]wFMCommunicate request_size=255 [22:45:13]MH_SAM_APDU [22:45: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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 7B 02 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B5 01 00 35 04 06 00 08 [22:45:13]Write to MH i2c: E2 02 01 64 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 7B 02 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B5 01 00 35 04 06 00 08 00 00 F1 [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]OFD Sender: No OFD packet to send [22:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:13]Read from MH i2c: E2 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 64 0C 00 90 00 E4 [22:45:13]RAPDU: 90 00 [22:45:13]wFMCommunicate OK [22:45:13]wFMCommunicate request_size=10 [22:45:13]MH_SAM_APDU [22:45:13]CAPDU: 80 0D 02 02 05 31 4A 1F 4F 4E [22:45:13]Write to MH i2c: E2 0D 00 65 0C 80 0D 02 02 05 00 31 4A 1F 4F 4E 00 00 2C [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:13]Read from MH i2c: E2 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 03 00 65 0C 00 90 00 E5 [22:45:13]RAPDU: 90 00 [22:45:13]wFMCommunicate OK [22:45:13]wFMCommunicate request_size=4 [22:45:13]MH_SAM_APDU [22:45:13]CAPDU: 80 0D 03 02 [22:45:13]Write to MH i2c: E2 08 00 66 0C 80 0D 03 02 00 00 00 00 ED [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:13]Read from MH i2c: E2 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 0B 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 0B 00 66 0C 00 9B 74 02 B6 C3 96 2A 96 90 00 CE [22:45:13]RAPDU: 9B 74 02 B6 C3 96 2A 96 90 00 [22:45:13]wFMCommunicate OK [22:45:13]SAM_PROTO_SignData done [22:45:13]FM_MakeSignedData done [22:45:13]CreateOFDProtocolMessage [22:45:13]wFMCommunicate request_size=4 [22:45:13]MH_SAM_APDU [22:45:13]CAPDU: 80 11 00 00 [22:45:13]Write to MH i2c: E2 08 00 67 0C 80 11 00 00 00 00 00 00 ED [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:13]Read from MH i2c: E2 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 17 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: E2 17 00 67 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3F [22:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:45:13]wFMCommunicate OK [22:45:13]CreateOFDProtocolMessage done [22:45:13]OFDSenderStorePacket 112109 [22:45:13]StoreOFDPacket docnum=112109 [22:45:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 87 04 07 01 FB B2 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 7B 02 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B5 01 00 35 04 06 00 08 31 4A 1F 4F 4E 9B 74 02 B6 C3 96 2A 96 [22:45:13]CheckFolder [22:45:13]dirname=/storage/ofd_packets [22:45:13]CheckFolder done [22:45:13]ProducePacketName [22:45:13]name=ofd_packets/00112109 [22:45:13]NVStorageSaveData ofd_packets/00112109 [22:45:13]File name is /storage/ofd_packets/00112109 [22:45:13]Write 301 bytes [22:45:13]NVStorageSaveData done [22:45:13]OFDSenderStorePacket done [22:45:13]KKMCreateOFDPacket done [22:45:13]NVStorageSaveData kkm_last_timestamp [22:45:13]File name is /storage/kkm_last_timestamp [22:45:13]Write 4 bytes [22:45:13]NVStorageSaveData done [22:45:13]ExternCall_PrintAddStr [22:45:13]wPrintStart [22:45:13]Write to MH i2c: 01 00 00 68 0C 74 [22:45:13]Write i2c OK [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: 01 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: 01 07 00 [22:45:13]MH_I2C_Read... [22:45:13]Read from MH i2c: 01 07 00 68 0C 00 00 00 00 00 FF 0F 89 [22:45:13]RasterBufferAndPrint [22:45:13]line 小褔械褌 N : (1)320769 [22:45:13]line 袠袧袧: 02508201610067 [22:45:13]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [22:45:13]line 袩袪袨袛袗袞袗 [22:45:13]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [22:45:13]line 孝芯胁邪褉: 2710124130 [22:45:13]line 袗懈-92-袣-5 [22:45:13]line 10.100 * 66.40 [22:45:13]line = 670.64 [22:45:13]line 袧袛小 12% 袧小袩 1% [22:45:13]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [22:45:13]line 袨袣袪校袚袥袝袧袠袝: -0.64 [22:45:13]line 袠孝袨袚袨: 670.00 [22:45:13]line 袙薪械褋械薪芯: 670.00 [22:45:13]line 小袛袗效袗: 0.00 [22:45:13]line 袧小袩 1% : 5.93 [22:45:13]line 袧袛小 12% : 71.22 [22:45:13]line 袧邪谢懈褔薪褘屑懈: 670.00 [22:45:13]line 袘械蟹薪邪谢.: 0.00 [22:45:13]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [22:45:13]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [22:45:13]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [22:45:13]line 效械泻 277 21.06.2024 22:45 [22:45:13]line 小屑械薪邪: 390 肖肖袛: 1.0 [22:45:13]line 袟袧袦: 0300000198 [22:45:13]line 袪袧袦: 0000000000092771 [22:45:13]line 袙械褉褋懈褟 袣袣袦: 001 [22:45:13]line 肖袦: 0000000000875083 [22:45:13]line 肖袛: 112109 [22:45:13]line 肖袩袛: 9007789985614 [22:45:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T224515&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112109&fm=9007789985614&tin=02508201610067®Number=0000000000092771&sum=67000 [22:45:13]OFD Sender: Processing packet 112109 [packets to send 38, broken 37] [22:45:13]ProducePacketName [22:45:13]name=ofd_packets/00112109 [22:45:13]OFD Sender: To server: 嚂鰌G, [22:45:13]CommunicateWithHost lk.salyk.kg:30040 [22:45:13]ConnectInit lk.salyk.kg [22:45:13]written 0, free lines is 4095 [22:45:13]Connected sock=10 [22:45:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 87 04 07 01 FB B2 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 7B 02 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B5 01 00 35 04 06 00 08 31 4A 1F 4F 4E 9B 74 02 B6 C3 96 2A 96 [22:45:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 19 E4 47 00 BF 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 30 38 37 35 30 38 33 10 04 04 00 ED B5 01 00 F4 03 04 00 99 99 75 66 B6 04 01 00 00 AF 9E 75 71 94 82 E6 A7 [22:45:14]CommunicateWithHost err = 0 [22:45:14]CheckOFDResponse [22:45:14]1017 (14) - 77093643461234 [22:45:14]1041 (16) - 0000000000875083 [22:45:14]1040 (4) - 112109 [22:45:14]1012 (4) - 21.06.2024 15:17 [22:45:14]1206 (1) - 0 [22:45:14]OFD Sender: Remove packet 112109 [22:45:14]ProducePacketName [22:45:14]name=ofd_packets/00112109 [22:45:14]NVStorageDeleteData [22:45:14]Write to MH i2c: 01 00 00 93 0C 9F [22:45:14]Write i2c OK [22:45:14]MH_I2C_Read... [22:45:14]Read from MH i2c: 01 [22:45:14]MH_I2C_Read... [22:45:14]Read from MH i2c: 01 07 00 [22:45:14]MH_I2C_Read... [22:45:14]Read from MH i2c: 01 07 00 93 0C 00 00 00 00 00 E0 0C 92 [22:45:14]RasterBufferAndPrint [22:45:14]line [22:45:14]line [22:45:14]line [22:45:14]line [22:45:14]line [22:45:14]written 0, free lines is 3301 [22:45:14]MH_Cut [22:45:14]Write to MH i2c: D1 01 00 9A 0C 01 78 [22:45:14]Write i2c OK [22:45:14]MH_I2C_Read... [22:45:14]Read from MH i2c: D1 [22:45:14]MH_I2C_Read... [22:45:14]Read from MH i2c: D1 01 00 [22:45:14]MH_I2C_Read... [22:45:14]Read from MH i2c: D1 01 00 9A 0C 00 77 [22:45:14]Write to MH i2c: 01 00 00 9B 0C A7 [22:45:14]Write i2c OK [22:45:14]MH_I2C_Read... [22:45:14]OFD Sender: No OFD packet to send [22:45:15]*** Cut start [22:45:15]*** Partial cut [22:45:15]*** CUTSNS_PIN = 1 [22:45:15]*** CUTSNS_PIN = 0 [22:45:15]*** Brake cut motor [22:45:15]Read from MH i2c: 01 [22:45:15]MH_I2C_Read... [22:45:15]*** Stop cut motor [22:45:15]*** Cut end [22:45:15]Read from MH i2c: 01 07 00 [22:45:15]MH_I2C_Read... [22:45:15]Read from MH i2c: 01 07 00 9B 0C 00 00 00 00 00 FF 0F BC [22:45:15]process_action close_receipt done [22:45:15]requested_data is exist [22:45:15]produce_requested_data [22:45:15]requested_item fm.sn is exist - process it [22:45:15]wFMCommunicate request_size=4 [22:45:15]MH_SAM_APDU [22:45:15]CAPDU: 80 11 00 00 [22:45:15]Write to MH i2c: E2 08 00 9C 0C 80 11 00 00 00 00 00 00 22 [22:45:15]Write i2c OK [22:45:15]MH_I2C_Read... [22:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:15]Read from MH i2c: E2 [22:45:15]MH_I2C_Read... [22:45:15]Read from MH i2c: E2 17 00 [22:45:15]MH_I2C_Read... [22:45:15]Read from MH i2c: E2 17 00 9C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [22:45:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:45:15]wFMCommunicate OK [22:45:15]requested_item fd.num is exist - process it [22:45:15]SAM_PROTO_GetFieldsCounters [22:45:15]wFMCommunicate request_size=4 [22:45:15]MH_SAM_APDU [22:45:15]CAPDU: 80 13 00 00 [22:45:15]Write to MH i2c: E2 08 00 9D 0C 80 13 00 00 00 00 00 00 25 [22:45:15]Write i2c OK [22:45:15]MH_I2C_Read... [22:45:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:15]Read from MH i2c: E2 [22:45:15]MH_I2C_Read... [22:45:15]Read from MH i2c: E2 62 00 [22:45:15]MH_I2C_Read... [22:45:15]Read from MH i2c: E2 62 00 9D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 ED B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [22:45:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 ED B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:45:15]wFMCommunicate OK [22:45:15]SAM_PROTO_GetFieldsCounters done [22:45:15]requested_item shift.num is exist - process it [22:45:15]requested_item shift.opened is exist - process it [22:45:15]req_shift_opened [22:45:15]FM_GetShiftState [22:45:15]SAM_PROTO_GetShiftState [22:45:15]wFMCommunicate request_size=4 [22:45:15]MH_SAM_APDU [22:45:15]CAPDU: 80 13 01 00 [22:45:15]Write to MH i2c: E2 08 00 9E 0C 80 13 01 00 00 00 00 00 27 [22:45:15]Write i2c OK [22:45:15]MH_I2C_Read... [22:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:15]Read from MH i2c: E2 [22:45:15]MH_I2C_Read... [22:45:15]Read from MH i2c: E2 0E 00 [22:45:15]MH_I2C_Read... [22:45:15]Read from MH i2c: E2 0E 00 9E 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A4 [22:45:15]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:45:15]wFMCommunicate OK [22:45:15]SAM_PROTO_GetShiftState done [22:45:15]FM_GetShiftState done [22:45:15]req_shift_opened done [22:45:15]requested_item shift.open_date is exist - process it [22:45:15]req_shift_open_date [22:45:15]req_shift_open_date done [22:45:15]produce_requested_data done [22:45:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112109,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [22:45:15]process_action_free close_receipt [22:45:15]json_value_free [22:45:15]json_value_free done [22:45:15]process_json_proto returns [22:45:15]Send response to host [22:45:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112109,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [22:45:15]free response buf [22:45:15]execute_script done [22:45:15]execute_script returns [22:45:15]free content buf [22:45:15]Sock 9.Close socket [22:45:15]Sock 9.Thread stoped [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:58]accept exits with 7 [22:50:58]New connection [22:50:58]New thread 3066813796 created [22:50:58]Thread 3066957156 joined [22:50:58]Waiting for new connection... [22:50:58] Sock 7.Parse request [22:50:58]Sock 7.Check first char [22:50:58]Sock 7.First char is OK [22:50:58]request: POST /json_proto HTTP/1.0 [22:50:58]Method: POST [22:50:58]URL: /json_proto [22:50:58]Method is POST - this is cgi request [22:50:58]url: /json_proto [22:50:58]query_string will be loaded in cgi processing [22:50:58]execute_cgi json_proto POST (null) [22:50:58]execute_cgi path=json_proto method=POST [22:50:58]POST find Content-Length [22:50:58]Host: 172.17.59.68:8080 [22:50:58]Content-Length: 677 [22:50:58]Content-Type: application/json [22:50:58] [22:50:58]POST finish read [22:50:58]Found Content-Length = 677 [22:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:50:58]execute_script... [22:50: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)320770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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:50:58]POST & json_proto [22:50:58]process_json_proto [22:50:58]json parsed OK: [22:50:58]protocol is kg_v1.0 [22:50:58]action value=close_receipt [22:50:58]process_action close_receipt [22:50:58]cmd_close_receipt [22:50:58]MH_GetDate [22:50:58]Write to MH i2c: F0 00 00 9F 0C 9A [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: F0 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: F0 09 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: F0 09 00 9F 0C 00 D6 03 76 66 BC EC 60 65 C5 [22:50:58]GetLastDocTimeStamp 1719009915 [22:50:58]current date 1719010262 [22:50:58]FM_GetShiftState [22:50:58]SAM_PROTO_GetShiftState [22:50:58]wFMCommunicate request_size=4 [22:50:58]MH_SAM_APDU [22:50:58]CAPDU: 80 13 01 00 [22:50:58]Write to MH i2c: E2 08 00 A0 0C 80 13 01 00 00 00 00 00 29 [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:58]Read from MH i2c: E2 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 0E 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 0E 00 A0 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 A6 [22:50:58]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:50:58]wFMCommunicate OK [22:50:58]SAM_PROTO_GetShiftState done [22:50:58]FM_GetShiftState done [22:50:58]opened in 1718933695 [22:50:58]opened+sec_in_day 1719020095 [22:50:58]quantity*price = 50065 [22:50:58]sum+1 = 50067 [22:50:58]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 278 21.06.2024 22:51 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112110 肖袩袛: 41124357665374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T225102&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112110&fm=41124357665374&tin=02508201610067®Number=0000000000092771&sum=50000 [22:51:00]StoreToDocumentArchive [22:51:00]shift 390 fd 112110 [22:51:00]save to /storage/0390/doc_00112110 [22:51:00]save last doc name /storage/0390/doc_00112110 to /storage/kkm_last_doc_name [22:51:00]save OK [22:51:00]Clear old archive folders... [22:51:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:51:00]tlvbuf is 0111E680 [22:51:00]SAM_PROTO_ClearQueue [22:51:00]wFMCommunicate request_size=4 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 09 00 00 [22:51:00]Write to MH i2c: E2 08 00 AD 0C 80 09 00 00 00 00 00 00 2B [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [22:51:00]RAPDU: 90 00 [22:51:00]wFMCommunicate OK [22:51:00]SAM_PROTO_ClearQueue done [22:51:00]KKMCreateOFDPacket [22:51:00]OFDProtocolAddRootSTLVToBuf [22:51:00]FM_MakeSignedData [22:51:00]FM_MakeSignedData [22:51:00]SAM_PROTO_SignData [22:51:00]wFMCommunicate request_size=4 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 0D 01 02 [22:51:00]Write to MH i2c: E2 08 00 AE 0C 80 0D 01 02 00 00 00 00 33 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [22:51:00]RAPDU: 90 00 [22:51:00]wFMCommunicate OK [22:51:00]wFMCommunicate request_size=255 [22:51:00]MH_SAM_APDU [22:51:00]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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 16 01 00 00 F4 03 04 00 D6 03 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B5 01 00 35 04 06 00 25 [22:51:00]Write to MH i2c: E2 02 01 AF 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 16 01 00 00 F4 03 04 00 D6 03 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B5 01 00 35 04 06 00 25 00 00 03 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [22:51:00]RAPDU: 90 00 [22:51:00]wFMCommunicate OK [22:51:00]wFMCommunicate request_size=10 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 0D 02 02 05 67 02 BA F2 5E [22:51:00]Write to MH i2c: E2 0D 00 B0 0C 80 0D 02 02 05 00 67 02 BA F2 5E 00 00 B3 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [22:51:00]RAPDU: 90 00 [22:51:00]wFMCommunicate OK [22:51:00]wFMCommunicate request_size=4 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 0D 03 02 [22:51:00]Write to MH i2c: E2 08 00 B1 0C 80 0D 03 02 00 00 00 00 38 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 0B 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 0B 00 B1 0C 00 A5 12 AF 83 1E 15 18 DB 90 00 48 [22:51:00]RAPDU: A5 12 AF 83 1E 15 18 DB 90 00 [22:51:00]wFMCommunicate OK [22:51:00]SAM_PROTO_SignData done [22:51:00]FM_MakeSignedData done [22:51:00]CreateOFDProtocolMessage [22:51:00]wFMCommunicate request_size=4 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 11 00 00 [22:51:00]Write to MH i2c: E2 08 00 B2 0C 80 11 00 00 00 00 00 00 38 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 17 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 17 00 B2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8A [22:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:51:00]wFMCommunicate OK [22:51:00]CreateOFDProtocolMessage done [22:51:00]OFDSenderStorePacket 112110 [22:51:00]StoreOFDPacket docnum=112110 [22:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0A 83 07 01 DA 79 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 16 01 00 00 F4 03 04 00 D6 03 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B5 01 00 35 04 06 00 25 67 02 BA F2 5E A5 12 AF 83 1E 15 18 DB [22:51:00]CheckFolder [22:51:00]dirname=/storage/ofd_packets [22:51:00]CheckFolder done [22:51:00]ProducePacketName [22:51:00]name=ofd_packets/00112110 [22:51:00]NVStorageSaveData ofd_packets/00112110 [22:51:00]File name is /storage/ofd_packets/00112110 [22:51:00]Write 301 bytes [22:51:00]NVStorageSaveData done [22:51:00]OFDSenderStorePacket done [22:51:00]KKMCreateOFDPacket done [22:51:00]NVStorageSaveData kkm_last_timestamp [22:51:00]File name is /storage/kkm_last_timestamp [22:51:00]Write 4 bytes [22:51:00]NVStorageSaveData done [22:51:00]ExternCall_PrintAddStr [22:51:00]wPrintStart [22:51:00]Write to MH i2c: 01 00 00 B3 0C BF [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: 01 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: 01 07 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: 01 07 00 B3 0C 00 00 00 00 00 FF 0F D4 [22:51:00]RasterBufferAndPrint [22:51:00]line 小褔械褌 N : (1)320770 [22:51:00]line 袠袧袧: 02508201610067 [22:51:00]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [22:51:00]line 袩袪袨袛袗袞袗 [22:51:00]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [22:51:00]line 孝芯胁邪褉: 2710124130 [22:51:00]line 袗懈-92-袣-5 [22:51:00]line 7.540 * 66.40 [22:51:00]line = 500.66 [22:51:00]line 袧袛小 12% 袧小袩 1% [22:51:00]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [22:51:00]line 袨袣袪校袚袥袝袧袠袝: -0.66 [22:51:00]line 袠孝袨袚袨: 500.00 [22:51:00]line 袙薪械褋械薪芯: 500.00 [22:51:00]line 小袛袗效袗: 0.00 [22:51:00]line 袧小袩 1% : 4.43 [22:51:00]line 袧袛小 12% : 53.17 [22:51:00]line 袧邪谢懈褔薪褘屑懈: 500.00 [22:51:00]line 袘械蟹薪邪谢.: 0.00 [22:51:00]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [22:51:00]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [22:51:00]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [22:51:00]line 效械泻 278 21.06.2024 22:51 [22:51:00]line 小屑械薪邪: 390 肖肖袛: 1.0 [22:51:00]line 袟袧袦: 0300000198 [22:51:00]line 袪袧袦: 0000000000092771 [22:51:00]line 袙械褉褋懈褟 袣袣袦: 001 [22:51:00]line 肖袦: 0000000000875083 [22:51:00]line 肖袛: 112110 [22:51:00]line 肖袩袛: 41124357665374 [22:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T225102&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112110&fm=41124357665374&tin=02508201610067®Number=0000000000092771&sum=50000 [22:51:00]OFD Sender: Processing packet 112110 [packets to send 38, broken 37] [22:51:00]ProducePacketName [22:51:00]name=ofd_packets/00112110 [22:51:00]OFD Sender: To server: 嚂鰌G, [22:51:00]CommunicateWithHost lk.salyk.kg:30040 [22:51:00]ConnectInit lk.salyk.kg [22:51:00]written 0, free lines is 4095 [22:51:01]Connected sock=10 [22:51:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0A 83 07 01 DA 79 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 16 01 00 00 F4 03 04 00 D6 03 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B5 01 00 35 04 06 00 25 67 02 BA F2 5E A5 12 AF 83 1E 15 18 DB [22:51:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A7 0A 47 00 DA 3C 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 30 38 37 35 30 38 33 10 04 04 00 EE B5 01 00 F4 03 04 00 F5 9A 75 66 B6 04 01 00 00 9D 4A F9 AE 84 7C D0 E4 [22:51:01]CommunicateWithHost err = 0 [22:51:01]CheckOFDResponse [22:51:01]1017 (14) - 77093643461234 [22:51:01]1041 (16) - 0000000000875083 [22:51:01]1040 (4) - 112110 [22:51:01]1012 (4) - 21.06.2024 15:23 [22:51:01]1206 (1) - 0 [22:51:01]OFD Sender: Remove packet 112110 [22:51:01]ProducePacketName [22:51:01]name=ofd_packets/00112110 [22:51:01]NVStorageDeleteData [22:51:01]Write to MH i2c: 01 00 00 DE 0C EA [22:51:01]Write i2c OK [22:51:01]MH_I2C_Read... [22:51:01]Read from MH i2c: 01 [22:51:01]MH_I2C_Read... [22:51:01]Read from MH i2c: 01 07 00 [22:51:01]MH_I2C_Read... [22:51:01]Read from MH i2c: 01 07 00 DE 0C 00 00 00 00 00 CC 0C C9 [22:51:01]RasterBufferAndPrint [22:51:01]line [22:51:01]line [22:51:01]line [22:51:01]line [22:51:01]line [22:51:01]written 0, free lines is 3282 [22:51:01]MH_Cut [22:51:01]Write to MH i2c: D1 01 00 E5 0C 01 C3 [22:51:01]Write i2c OK [22:51:01]MH_I2C_Read... [22:51:01]Read from MH i2c: D1 [22:51:01]MH_I2C_Read... [22:51:01]Read from MH i2c: D1 01 00 [22:51:01]MH_I2C_Read... [22:51:01]Read from MH i2c: D1 01 00 E5 0C 00 C2 [22:51:01]Write to MH i2c: 01 00 00 E6 0C F2 [22:51:01]Write i2c OK [22:51:01]MH_I2C_Read... [22:51:01]OFD Sender: No OFD packet to send [22:51:02]*** Cut start [22:51:02]*** Partial cut [22:51:02]*** CUTSNS_PIN = 1 [22:51:02]*** CUTSNS_PIN = 0 [22:51:02]*** Brake cut motor [22:51:02]Read from MH i2c: 01 [22:51:02]MH_I2C_Read... [22:51:02]*** Stop cut motor [22:51:02]*** Cut end [22:51:02]Read from MH i2c: 01 07 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: 01 07 00 E6 0C 00 00 00 00 00 FF 0F 07 [22:51:02]process_action close_receipt done [22:51:02]requested_data is exist [22:51:02]produce_requested_data [22:51:02]requested_item fm.sn is exist - process it [22:51:02]wFMCommunicate request_size=4 [22:51:02]MH_SAM_APDU [22:51:02]CAPDU: 80 11 00 00 [22:51:02]Write to MH i2c: E2 08 00 E7 0C 80 11 00 00 00 00 00 00 6D [22:51:02]Write i2c OK [22:51:02]MH_I2C_Read... [22:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:02]Read from MH i2c: E2 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 17 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 17 00 E7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BF [22:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:51:02]wFMCommunicate OK [22:51:02]requested_item fd.num is exist - process it [22:51:02]SAM_PROTO_GetFieldsCounters [22:51:02]wFMCommunicate request_size=4 [22:51:02]MH_SAM_APDU [22:51:02]CAPDU: 80 13 00 00 [22:51:02]Write to MH i2c: E2 08 00 E8 0C 80 13 00 00 00 00 00 00 70 [22:51:02]Write i2c OK [22:51:02]MH_I2C_Read... [22:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:02]Read from MH i2c: E2 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 62 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 62 00 E8 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EE B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [22:51:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EE B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:02]wFMCommunicate OK [22:51:02]SAM_PROTO_GetFieldsCounters done [22:51:02]requested_item shift.num is exist - process it [22:51:02]requested_item shift.opened is exist - process it [22:51:02]req_shift_opened [22:51:02]FM_GetShiftState [22:51:02]SAM_PROTO_GetShiftState [22:51:02]wFMCommunicate request_size=4 [22:51:02]MH_SAM_APDU [22:51:02]CAPDU: 80 13 01 00 [22:51:02]Write to MH i2c: E2 08 00 E9 0C 80 13 01 00 00 00 00 00 72 [22:51:02]Write i2c OK [22:51:02]MH_I2C_Read... [22:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:02]Read from MH i2c: E2 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 0E 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 0E 00 E9 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 EF [22:51:02]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [22:51:02]wFMCommunicate OK [22:51:02]SAM_PROTO_GetShiftState done [22:51:02]FM_GetShiftState done [22:51:02]req_shift_opened done [22:51:02]requested_item shift.open_date is exist - process it [22:51:02]req_shift_open_date [22:51:02]req_shift_open_date done [22:51:02]produce_requested_data done [22:51:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112110,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [22:51:02]process_action_free close_receipt [22:51:02]json_value_free [22:51:02]json_value_free done [22:51:02]process_json_proto returns [22:51:02]Send response to host [22:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112110,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [22:51:02]free response buf [22:51:02]execute_script done [22:51:02]execute_script returns [22:51:02]free content buf [22:51:02]Sock 7.Close socket [22:51:02]Sock 7.Thread stoped [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [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:45]accept exits with 9 [23:04:45]New connection [23:04:45]New thread 3066957156 created [23:04:45]Thread 3066813796 joined [23:04:45]Waiting for new connection... [23:04:45] Sock 9.Parse request [23:04:45]Sock 9.Check first char [23:04:45]Sock 9.First char is OK [23:04:45]request: POST /json_proto HTTP/1.0 [23:04:45]Method: POST [23:04:45]URL: /json_proto [23:04:45]Method is POST - this is cgi request [23:04:45]url: /json_proto [23:04:45]query_string will be loaded in cgi processing [23:04:45]execute_cgi json_proto POST (null) [23:04:45]execute_cgi path=json_proto method=POST [23:04:45]POST find Content-Length [23:04:45]Host: 172.17.59.68:8080 [23:04:45]Content-Length: 677 [23:04:45]Content-Type: application/json [23:04:45] [23:04:45]POST finish read [23:04:45]Found Content-Length = 677 [23:04:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:45]execute_script... [23:04: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)320771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:45]POST & json_proto [23:04:45]process_json_proto [23:04:45]json parsed OK: [23:04:45]protocol is kg_v1.0 [23:04:45]action value=close_receipt [23:04:45]process_action close_receipt [23:04:45]cmd_close_receipt [23:04:45]MH_GetDate [23:04:45]Write to MH i2c: F0 00 00 EA 0C E5 [23:04:45]Write i2c OK [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: F0 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: F0 09 00 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: F0 09 00 EA 0C 00 11 07 76 66 BC EC 60 65 4F [23:04:45]GetLastDocTimeStamp 1719010262 [23:04:45]current date 1719011089 [23:04:45]FM_GetShiftState [23:04:45]SAM_PROTO_GetShiftState [23:04:45]wFMCommunicate request_size=4 [23:04:45]MH_SAM_APDU [23:04:45]CAPDU: 80 13 01 00 [23:04:45]Write to MH i2c: E2 08 00 EB 0C 80 13 01 00 00 00 00 00 74 [23:04:45]Write i2c OK [23:04:45]MH_I2C_Read... [23:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:45]Read from MH i2c: E2 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: E2 0E 00 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: E2 0E 00 EB 0C 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F1 [23:04:45]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:04:45]wFMCommunicate OK [23:04:45]SAM_PROTO_GetShiftState done [23:04:45]FM_GetShiftState done [23:04:45]opened in 1718933695 [23:04:45]opened+sec_in_day 1719020095 [23:04:45]quantity*price = 65005 [23:04:45]sum+1 = 65007 [23:04:45]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.06 袠孝袨袚袨: 650.00 袙薪械褋械薪芯: 650.00 小袛袗效袗: 0.00 袧小袩 1% : 5.75 袧袛小 12% : 69.03 袧邪谢懈褔薪褘屑懈: 650.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 279 21.06.2024 23:04 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112111 肖袩袛: 164412537914441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T230449&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112111&fm=164412537914441&tin=02508201610067®Number=0000000000092771&sum=65000 [23:04:46]StoreToDocumentArchive [23:04:46]shift 390 fd 112111 [23:04:46]save to /storage/0390/doc_00112111 [23:04:46]save last doc name /storage/0390/doc_00112111 to /storage/kkm_last_doc_name [23:04:46]save OK [23:04:46]Clear old archive folders... [23:04:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:46]tlvbuf is 0111AD70 [23:04:46]SAM_PROTO_ClearQueue [23:04:46]wFMCommunicate request_size=4 [23:04:46]MH_SAM_APDU [23:04:46]CAPDU: 80 09 00 00 [23:04:46]Write to MH i2c: E2 08 00 F8 0C 80 09 00 00 00 00 00 00 76 [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:46]Read from MH i2c: E2 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [23:04:46]RAPDU: 90 00 [23:04:46]wFMCommunicate OK [23:04:46]SAM_PROTO_ClearQueue done [23:04:46]KKMCreateOFDPacket [23:04:46]OFDProtocolAddRootSTLVToBuf [23:04:46]FM_MakeSignedData [23:04:46]FM_MakeSignedData [23:04:46]SAM_PROTO_SignData [23:04:46]wFMCommunicate request_size=4 [23:04:46]MH_SAM_APDU [23:04:46]CAPDU: 80 0D 01 02 [23:04:46]Write to MH i2c: E2 08 00 F9 0C 80 0D 01 02 00 00 00 00 7E [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:46]Read from MH i2c: E2 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [23:04:46]RAPDU: 90 00 [23:04:46]wFMCommunicate OK [23:04:46]wFMCommunicate request_size=255 [23:04:46]MH_SAM_APDU [23:04: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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 11 07 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B5 01 00 35 04 06 00 95 [23:04:46]Write to MH i2c: E2 02 01 FA 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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 11 07 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B5 01 00 35 04 06 00 95 00 00 C9 [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [23:04:47]RAPDU: 90 00 [23:04:47]wFMCommunicate OK [23:04:47]wFMCommunicate request_size=10 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 0D 02 02 05 88 46 EB 44 49 [23:04:47]Write to MH i2c: E2 0D 00 FB 0C 80 0D 02 02 05 00 88 46 EB 44 49 00 00 D1 [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [23:04:47]RAPDU: 90 00 [23:04:47]wFMCommunicate OK [23:04:47]wFMCommunicate request_size=4 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 0D 03 02 [23:04:47]Write to MH i2c: E2 08 00 FC 0C 80 0D 03 02 00 00 00 00 83 [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 0B 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 0B 00 FC 0C 00 BE BC 88 24 85 E2 2D 2D 90 00 6B [23:04:47]RAPDU: BE BC 88 24 85 E2 2D 2D 90 00 [23:04:47]wFMCommunicate OK [23:04:47]SAM_PROTO_SignData done [23:04:47]FM_MakeSignedData done [23:04:47]CreateOFDProtocolMessage [23:04:47]wFMCommunicate request_size=4 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 11 00 00 [23:04:47]Write to MH i2c: E2 08 00 FD 0C 80 11 00 00 00 00 00 00 83 [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 17 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 17 00 FD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D5 [23:04:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:04:47]wFMCommunicate OK [23:04:47]CreateOFDProtocolMessage done [23:04:47]OFDSenderStorePacket 112111 [23:04:47]StoreOFDPacket docnum=112111 [23:04:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 84 07 01 73 FE 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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 11 07 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B5 01 00 35 04 06 00 95 88 46 EB 44 49 BE BC 88 24 85 E2 2D 2D [23:04:47]CheckFolder [23:04:47]dirname=/storage/ofd_packets [23:04:47]CheckFolder done [23:04:47]ProducePacketName [23:04:47]name=ofd_packets/00112111 [23:04:47]NVStorageSaveData ofd_packets/00112111 [23:04:47]File name is /storage/ofd_packets/00112111 [23:04:47]Write 301 bytes [23:04:47]NVStorageSaveData done [23:04:47]OFDSenderStorePacket done [23:04:47]KKMCreateOFDPacket done [23:04:47]NVStorageSaveData kkm_last_timestamp [23:04:47]File name is /storage/kkm_last_timestamp [23:04:47]Write 4 bytes [23:04:47]NVStorageSaveData done [23:04:47]ExternCall_PrintAddStr [23:04:47]wPrintStart [23:04:47]Write to MH i2c: 01 00 00 FE 0C 0A [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 07 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 07 00 FE 0C 00 00 00 00 00 FF 0F 1F [23:04:47]RasterBufferAndPrint [23:04:47]line 小褔械褌 N : (1)320771 [23:04:47]line 袠袧袧: 02508201610067 [23:04:47]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [23:04:47]line 袩袪袨袛袗袞袗 [23:04:47]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [23:04:47]line 孝芯胁邪褉: 2710124130 [23:04:47]line 袗懈-92-袣-5 [23:04:47]line 9.790 * 66.40 [23:04:47]line = 650.06 [23:04:47]line 袧袛小 12% 袧小袩 1% [23:04:47]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [23:04:47]line 袨袣袪校袚袥袝袧袠袝: -0.06 [23:04:47]line 袠孝袨袚袨: 650.00 [23:04:47]line 袙薪械褋械薪芯: 650.00 [23:04:47]line 小袛袗效袗: 0.00 [23:04:47]line 袧小袩 1% : 5.75 [23:04:47]line 袧袛小 12% : 69.03 [23:04:47]line 袧邪谢懈褔薪褘屑懈: 650.00 [23:04:47]line 袘械蟹薪邪谢.: 0.00 [23:04:47]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [23:04:47]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [23:04:47]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [23:04:47]line 效械泻 279 21.06.2024 23:04 [23:04:47]line 小屑械薪邪: 390 肖肖袛: 1.0 [23:04:47]line 袟袧袦: 0300000198 [23:04:47]line 袪袧袦: 0000000000092771 [23:04:47]line 袙械褉褋懈褟 袣袣袦: 001 [23:04:47]line 肖袦: 0000000000875083 [23:04:47]line 肖袛: 112111 [23:04:47]line 肖袩袛: 164412537914441 [23:04:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T230449&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112111&fm=164412537914441&tin=02508201610067®Number=0000000000092771&sum=65000 [23:04:47]OFD Sender: Processing packet 112111 [packets to send 38, broken 37] [23:04:47]ProducePacketName [23:04:47]name=ofd_packets/00112111 [23:04:47]OFD Sender: To server: 嚂鰌G, [23:04:47]CommunicateWithHost lk.salyk.kg:30040 [23:04:47]ConnectInit lk.salyk.kg [23:04:47]written 0, free lines is 4095 [23:04:47]Connected sock=10 [23:04:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C2 84 07 01 73 FE 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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 11 07 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B5 01 00 35 04 06 00 95 88 46 EB 44 49 BE BC 88 24 85 E2 2D 2D [23:04:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F2 D2 47 00 36 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B5 01 00 F4 03 04 00 2F 9E 75 66 B6 04 01 00 00 1C 7F 3F 6B E0 ED 17 9F [23:04:47]CommunicateWithHost err = 0 [23:04:47]CheckOFDResponse [23:04:47]1017 (14) - 77093643461234 [23:04:47]1041 (16) - 0000000000875083 [23:04:47]1040 (4) - 112111 [23:04:47]1012 (4) - 21.06.2024 15:37 [23:04:47]1206 (1) - 0 [23:04:47]OFD Sender: Remove packet 112111 [23:04:47]ProducePacketName [23:04:47]name=ofd_packets/00112111 [23:04:47]NVStorageDeleteData [23:04:48]Write to MH i2c: 01 00 00 29 0D 36 [23:04:48]Write i2c OK [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: 01 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: 01 07 00 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: 01 07 00 29 0D 00 00 00 00 00 D6 0C 1F [23:04:48]RasterBufferAndPrint [23:04:48]line [23:04:48]line [23:04:48]line [23:04:48]line [23:04:48]line [23:04:48]written 0, free lines is 3293 [23:04:48]MH_Cut [23:04:48]Write to MH i2c: D1 01 00 30 0D 01 0F [23:04:48]Write i2c OK [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: D1 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: D1 01 00 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: D1 01 00 30 0D 00 0E [23:04:48]Write to MH i2c: 01 00 00 31 0D 3E [23:04:48]Write i2c OK [23:04:48]MH_I2C_Read... [23:04:48]OFD Sender: No OFD packet to send [23:04:48]*** Cut start [23:04:48]*** Partial cut [23:04:48]*** CUTSNS_PIN = 1 [23:04:48]*** CUTSNS_PIN = 0 [23:04:49]*** Brake cut motor [23:04:49]Read from MH i2c: 01 [23:04:49]MH_I2C_Read... [23:04:49]*** Stop cut motor [23:04:49]*** Cut end [23:04:49]Read from MH i2c: 01 07 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: 01 07 00 31 0D 00 00 00 00 00 FF 0F 53 [23:04:49]process_action close_receipt done [23:04:49]requested_data is exist [23:04:49]produce_requested_data [23:04:49]requested_item fm.sn is exist - process it [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 11 00 00 [23:04:49]Write to MH i2c: E2 08 00 32 0D 80 11 00 00 00 00 00 00 B9 [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 17 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 17 00 32 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0B [23:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:04:49]wFMCommunicate OK [23:04:49]requested_item fd.num is exist - process it [23:04:49]SAM_PROTO_GetFieldsCounters [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 13 00 00 [23:04:49]Write to MH i2c: E2 08 00 33 0D 80 13 00 00 00 00 00 00 BC [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 62 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 62 00 33 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [23:04:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:49]wFMCommunicate OK [23:04:49]SAM_PROTO_GetFieldsCounters done [23:04:49]requested_item shift.num is exist - process it [23:04:49]requested_item shift.opened is exist - process it [23:04:49]req_shift_opened [23:04:49]FM_GetShiftState [23:04:49]SAM_PROTO_GetShiftState [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 13 01 00 [23:04:49]Write to MH i2c: E2 08 00 34 0D 80 13 01 00 00 00 00 00 BE [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 0E 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 0E 00 34 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 3B [23:04:49]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:04:49]wFMCommunicate OK [23:04:49]SAM_PROTO_GetShiftState done [23:04:49]FM_GetShiftState done [23:04:49]req_shift_opened done [23:04:49]requested_item shift.open_date is exist - process it [23:04:49]req_shift_open_date [23:04:49]req_shift_open_date done [23:04:49]produce_requested_data done [23:04:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112111,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:04:49]process_action_free close_receipt [23:04:49]json_value_free [23:04:49]json_value_free done [23:04:49]process_json_proto returns [23:04:49]Send response to host [23:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112111,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:04:49]free response buf [23:04:49]execute_script done [23:04:49]execute_script returns [23:04:49]free content buf [23:04:49]Sock 9.Close socket [23:04:49]Sock 9.Thread stoped [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:05]accept exits with 7 [23:08:05]New connection [23:08:05]New thread 3066813796 created [23:08:05]Thread 3066957156 joined [23:08:05]Waiting for new connection... [23:08:05] Sock 7.Parse request [23:08:05]Sock 7.Check first char [23:08:05]Sock 7.First char is OK [23:08:05]request: POST /json_proto HTTP/1.0 [23:08:05]Method: POST [23:08:05]URL: /json_proto [23:08:05]Method is POST - this is cgi request [23:08:05]url: /json_proto [23:08:05]query_string will be loaded in cgi processing [23:08:05]execute_cgi json_proto POST (null) [23:08:05]execute_cgi path=json_proto method=POST [23:08:05]POST find Content-Length [23:08:05]Host: 172.17.59.68:8080 [23:08:05]Content-Length: 808 [23:08:05]Content-Type: application/json [23:08:05] [23:08:05]POST finish read [23:08:05]Found Content-Length = 808 [23:08:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:05]execute_script... [23:08: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)320772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:05]POST & json_proto [23:08:05]process_json_proto [23:08:05]json parsed OK: [23:08:05]protocol is kg_v1.0 [23:08:05]action value=close_receipt [23:08:05]process_action close_receipt [23:08:05]cmd_close_receipt [23:08:05]MH_GetDate [23:08:05]Write to MH i2c: F0 00 00 35 0D 31 [23:08:05]Write i2c OK [23:08:05]MH_I2C_Read... [23:08:05]Read from MH i2c: F0 [23:08:05]MH_I2C_Read... [23:08:05]Read from MH i2c: F0 09 00 [23:08:05]MH_I2C_Read... [23:08:05]Read from MH i2c: F0 09 00 35 0D 00 D9 07 76 66 BC EC 60 65 63 [23:08:05]GetLastDocTimeStamp 1719011089 [23:08:05]current date 1719011289 [23:08:05]FM_GetShiftState [23:08:05]SAM_PROTO_GetShiftState [23:08:05]wFMCommunicate request_size=4 [23:08:05]MH_SAM_APDU [23:08:05]CAPDU: 80 13 01 00 [23:08:05]Write to MH i2c: E2 08 00 36 0D 80 13 01 00 00 00 00 00 C0 [23:08:05]Write i2c OK [23:08:05]MH_I2C_Read... [23:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:05]Read from MH i2c: E2 [23:08:05]MH_I2C_Read... [23:08:05]Read from MH i2c: E2 0E 00 [23:08:05]MH_I2C_Read... [23:08:05]Read from MH i2c: E2 0E 00 36 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 3D [23:08:05]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:08:05]wFMCommunicate OK [23:08:05]SAM_PROTO_GetShiftState done [23:08:05]FM_GetShiftState done [23:08:05]opened in 1718933695 [23:08:05]opened+sec_in_day 1719020095 [23:08:05]quantity*price = 100064 [23:08:05]sum+1 = 100066 [23:08:05]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 1000.65 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 1000.65 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 280 21.06.2024 23:08 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112112 肖袩袛: 145805886937187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T230809&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112112&fm=145805886937187&tin=02508201610067®Number=0000000000092771&sum=100065 [23:08:06]StoreToDocumentArchive [23:08:06]shift 390 fd 112112 [23:08:06]save to /storage/0390/doc_00112112 [23:08:06]save last doc name /storage/0390/doc_00112112 to /storage/kkm_last_doc_name [23:08:06]save OK [23:08:06]Clear old archive folders... [23:08:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:08:06]tlvbuf is 0111E7A0 [23:08:06]SAM_PROTO_ClearQueue [23:08:06]wFMCommunicate request_size=4 [23:08:06]MH_SAM_APDU [23:08:06]CAPDU: 80 09 00 00 [23:08:06]Write to MH i2c: E2 08 00 43 0D 80 09 00 00 00 00 00 00 C2 [23:08:06]Write i2c OK [23:08:06]MH_I2C_Read... [23:08:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:06]Read from MH i2c: E2 [23:08:06]MH_I2C_Read... [23:08:06]Read from MH i2c: E2 03 00 [23:08:06]MH_I2C_Read... [23:08:06]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [23:08:06]RAPDU: 90 00 [23:08:06]wFMCommunicate OK [23:08:06]SAM_PROTO_ClearQueue done [23:08:06]KKMCreateOFDPacket [23:08:06]OFDProtocolAddRootSTLVToBuf [23:08:06]FM_MakeSignedData [23:08:06]FM_MakeSignedData [23:08:06]SAM_PROTO_SignData [23:08:06]wFMCommunicate request_size=4 [23:08:06]MH_SAM_APDU [23:08:06]CAPDU: 80 0D 01 02 [23:08:06]Write to MH i2c: E2 08 00 44 0D 80 0D 01 02 00 00 00 00 CA [23:08:06]Write i2c OK [23:08:06]MH_I2C_Read... [23:08:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:06]Read from MH i2c: E2 [23:08:06]MH_I2C_Read... [23:08:06]Read from MH i2c: E2 03 00 [23:08:06]MH_I2C_Read... [23:08:06]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [23:08:06]RAPDU: 90 00 [23:08:06]wFMCommunicate OK [23:08:06]wFMCommunicate request_size=255 [23:08:06]MH_SAM_APDU [23:08: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 D9 07 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B5 01 00 35 04 06 00 84 [23:08:06]Write to MH i2c: E2 02 01 45 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 D9 07 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B5 01 00 35 04 06 00 84 00 00 D6 [23:08:06]Write i2c OK [23:08:06]MH_I2C_Read... [23:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:06]Read from MH i2c: E2 [23:08:06]MH_I2C_Read... [23:08:06]Read from MH i2c: E2 03 00 [23:08:06]MH_I2C_Read... [23:08:06]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [23:08:06]RAPDU: 90 00 [23:08:06]wFMCommunicate OK [23:08:06]wFMCommunicate request_size=10 [23:08:06]MH_SAM_APDU [23:08:06]CAPDU: 80 0D 02 02 05 9C 14 18 D8 63 [23:08:07]Write to MH i2c: E2 0D 00 46 0D 80 0D 02 02 05 00 9C 14 18 D8 63 00 00 DA [23:08:07]Write i2c OK [23:08:07]MH_I2C_Read... [23:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:07]Read from MH i2c: E2 [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: E2 03 00 [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: E2 03 00 46 0D 00 90 00 C7 [23:08:07]RAPDU: 90 00 [23:08:07]wFMCommunicate OK [23:08:07]wFMCommunicate request_size=4 [23:08:07]MH_SAM_APDU [23:08:07]CAPDU: 80 0D 03 02 [23:08:07]Write to MH i2c: E2 08 00 47 0D 80 0D 03 02 00 00 00 00 CF [23:08:07]Write i2c OK [23:08:07]MH_I2C_Read... [23:08:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:07]Read from MH i2c: E2 [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: E2 0B 00 [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: E2 0B 00 47 0D 00 D4 07 E0 73 96 98 CF AB 90 00 A6 [23:08:07]RAPDU: D4 07 E0 73 96 98 CF AB 90 00 [23:08:07]wFMCommunicate OK [23:08:07]SAM_PROTO_SignData done [23:08:07]FM_MakeSignedData done [23:08:07]CreateOFDProtocolMessage [23:08:07]wFMCommunicate request_size=4 [23:08:07]MH_SAM_APDU [23:08:07]CAPDU: 80 11 00 00 [23:08:07]Write to MH i2c: E2 08 00 48 0D 80 11 00 00 00 00 00 00 CF [23:08:07]Write i2c OK [23:08:07]MH_I2C_Read... [23:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:07]Read from MH i2c: E2 [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: E2 17 00 [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: E2 17 00 48 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 21 [23:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:08:07]wFMCommunicate OK [23:08:07]CreateOFDProtocolMessage done [23:08:07]OFDSenderStorePacket 112112 [23:08:07]StoreOFDPacket docnum=112112 [23:08:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2C 8B 07 01 20 74 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 D9 07 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B5 01 00 35 04 06 00 84 9C 14 18 D8 63 D4 07 E0 73 96 98 CF AB [23:08:07]CheckFolder [23:08:07]dirname=/storage/ofd_packets [23:08:07]CheckFolder done [23:08:07]ProducePacketName [23:08:07]name=ofd_packets/00112112 [23:08:07]NVStorageSaveData ofd_packets/00112112 [23:08:07]File name is /storage/ofd_packets/00112112 [23:08:07]Write 301 bytes [23:08:07]NVStorageSaveData done [23:08:07]OFDSenderStorePacket done [23:08:07]KKMCreateOFDPacket done [23:08:07]NVStorageSaveData kkm_last_timestamp [23:08:07]File name is /storage/kkm_last_timestamp [23:08:07]Write 4 bytes [23:08:07]NVStorageSaveData done [23:08:07]ExternCall_PrintAddStr [23:08:07]wPrintStart [23:08:07]Write to MH i2c: 01 00 00 49 0D 56 [23:08:07]Write i2c OK [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: 01 [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: 01 07 00 [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: 01 07 00 49 0D 00 00 00 00 00 FF 0F 6B [23:08:07]RasterBufferAndPrint [23:08:07]line 小褔械褌 N : (1)320772 [23:08:07]line 袠袧袧: 02508201610067 [23:08:07]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [23:08:07]line 袩袪袨袛袗袞袗 [23:08:07]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [23:08:07]line 孝芯胁邪褉: 2710124130 [23:08:07]line 袗懈-92-袣-5 [23:08:07]line 15.070 * 66.40 [23:08:07]line = 1000.65 [23:08:07]line 袧袛小 12% 袧小袩 1% [23:08:07]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [23:08:07]line 袠孝袨袚袨: 1000.65 [23:08:07]line 袧小袩 1% : 8.85 [23:08:07]line 袧袛小 12% : 106.26 [23:08:07]line 袧邪谢懈褔薪褘屑懈: 0.00 [23:08:07]line 袘械蟹薪邪谢.: 1000.65 [23:08:07]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [23:08:07]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [23:08:07]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [23:08:07]line 效械泻 280 21.06.2024 23:08 [23:08:07]line 小屑械薪邪: 390 肖肖袛: 1.0 [23:08:07]line 袟袧袦: 0300000198 [23:08:07]line 袪袧袦: 0000000000092771 [23:08:07]line 袙械褉褋懈褟 袣袣袦: 001 [23:08:07]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [23:08:07]line 肖袦: 0000000000875083 [23:08:07]line 肖袛: 112112 [23:08:07]line 肖袩袛: 145805886937187 [23:08:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T230809&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112112&fm=145805886937187&tin=02508201610067®Number=0000000000092771&sum=100065 [23:08:07]written 0, free lines is 4095 [23:08:07]OFD Sender: Processing packet 112112 [packets to send 38, broken 37] [23:08:07]ProducePacketName [23:08:07]name=ofd_packets/00112112 [23:08:07]OFD Sender: To server: 嚂鰌G, [23:08:07]CommunicateWithHost lk.salyk.kg:30040 [23:08:07]ConnectInit lk.salyk.kg [23:08:07]Connected sock=10 [23:08:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2C 8B 07 01 20 74 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 D9 07 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B5 01 00 35 04 06 00 84 9C 14 18 D8 63 D4 07 E0 73 96 98 CF AB [23:08:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F 38 47 00 B4 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 30 38 37 35 30 38 33 10 04 04 00 F0 B5 01 00 F4 03 04 00 F7 9E 75 66 B6 04 01 00 00 BD 69 EE 2D CA 4A F4 BC [23:08:07]CommunicateWithHost err = 0 [23:08:07]CheckOFDResponse [23:08:07]1017 (14) - 77093643461234 [23:08:07]1041 (16) - 0000000000875083 [23:08:07]1040 (4) - 112112 [23:08:07]1012 (4) - 21.06.2024 15:40 [23:08:07]1206 (1) - 0 [23:08:07]OFD Sender: Remove packet 112112 [23:08:07]ProducePacketName [23:08:07]name=ofd_packets/00112112 [23:08:07]NVStorageDeleteData [23:08:07]Write to MH i2c: 01 00 00 73 0D 80 [23:08:07]Write i2c OK [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: 01 [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: 01 07 00 [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: 01 07 00 73 0D 00 00 00 00 00 E6 0C 79 [23:08:07]RasterBufferAndPrint [23:08:07]line [23:08:07]line [23:08:07]line [23:08:07]line [23:08:07]line [23:08:07]written 0, free lines is 3309 [23:08:07]MH_Cut [23:08:07]Write to MH i2c: D1 01 00 7A 0D 01 59 [23:08:07]Write i2c OK [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: D1 [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: D1 01 00 [23:08:07]MH_I2C_Read... [23:08:07]Read from MH i2c: D1 01 00 7A 0D 00 58 [23:08:07]Write to MH i2c: 01 00 00 7B 0D 88 [23:08:07]Write i2c OK [23:08:07]MH_I2C_Read... [23:08:08]OFD Sender: No OFD packet to send [23:08:08]*** Cut start [23:08:08]*** Partial cut [23:08:08]*** CUTSNS_PIN = 1 [23:08:08]*** CUTSNS_PIN = 0 [23:08:08]*** Brake cut motor [23:08:09]Read from MH i2c: 01 [23:08:09]MH_I2C_Read... [23:08:09]*** Stop cut motor [23:08:09]*** Cut end [23:08:09]Read from MH i2c: 01 07 00 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: 01 07 00 7B 0D 00 00 00 00 00 FF 0F 9D [23:08:09]process_action close_receipt done [23:08:09]requested_data is exist [23:08:09]produce_requested_data [23:08:09]requested_item fm.sn is exist - process it [23:08:09]wFMCommunicate request_size=4 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 11 00 00 [23:08:09]Write to MH i2c: E2 08 00 7C 0D 80 11 00 00 00 00 00 00 03 [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:09]Read from MH i2c: E2 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 17 00 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 17 00 7C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 55 [23:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:08:09]wFMCommunicate OK [23:08:09]requested_item fd.num is exist - process it [23:08:09]SAM_PROTO_GetFieldsCounters [23:08:09]wFMCommunicate request_size=4 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 13 00 00 [23:08:09]Write to MH i2c: E2 08 00 7D 0D 80 13 00 00 00 00 00 00 06 [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:09]Read from MH i2c: E2 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 62 00 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 62 00 7D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [23:08:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F0 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:08:09]wFMCommunicate OK [23:08:09]SAM_PROTO_GetFieldsCounters done [23:08:09]requested_item shift.num is exist - process it [23:08:09]requested_item shift.opened is exist - process it [23:08:09]req_shift_opened [23:08:09]FM_GetShiftState [23:08:09]SAM_PROTO_GetShiftState [23:08:09]wFMCommunicate request_size=4 [23:08:09]MH_SAM_APDU [23:08:09]CAPDU: 80 13 01 00 [23:08:09]Write to MH i2c: E2 08 00 7E 0D 80 13 01 00 00 00 00 00 08 [23:08:09]Write i2c OK [23:08:09]MH_I2C_Read... [23:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:09]Read from MH i2c: E2 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 0E 00 [23:08:09]MH_I2C_Read... [23:08:09]Read from MH i2c: E2 0E 00 7E 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 85 [23:08:09]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:08:09]wFMCommunicate OK [23:08:09]SAM_PROTO_GetShiftState done [23:08:09]FM_GetShiftState done [23:08:09]req_shift_opened done [23:08:09]requested_item shift.open_date is exist - process it [23:08:09]req_shift_open_date [23:08:09]req_shift_open_date done [23:08:09]produce_requested_data done [23:08:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112112,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:08:09]process_action_free close_receipt [23:08:09]json_value_free [23:08:09]json_value_free done [23:08:09]process_json_proto returns [23:08:09]Send response to host [23:08:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112112,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:08:09]free response buf [23:08:09]execute_script done [23:08:09]execute_script returns [23:08:09]free content buf [23:08:09]Sock 7.Close socket [23:08:09]Sock 7.Thread stoped [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:25]accept exits with 9 [23:20:25]New connection [23:20:25]New thread 3066957156 created [23:20:25]Thread 3066813796 joined [23:20:25]Waiting for new connection... [23:20:25] Sock 9.Parse request [23:20:25]Sock 9.Check first char [23:20:25]Sock 9.First char is OK [23:20:25]request: POST /json_proto HTTP/1.0 [23:20:25]Method: POST [23:20:25]URL: /json_proto [23:20:25]Method is POST - this is cgi request [23:20:25]url: /json_proto [23:20:25]query_string will be loaded in cgi processing [23:20:25]execute_cgi json_proto POST (null) [23:20:25]execute_cgi path=json_proto method=POST [23:20:25]POST find Content-Length [23:20:25]Host: 172.17.59.68:8080 [23:20:25]Content-Length: 640 [23:20:25]Content-Type: application/json [23:20:25] [23:20:25]POST finish read [23:20:25]Found Content-Length = 640 [23:20:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:25]execute_script... [23:20: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)320773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:25]POST & json_proto [23:20:25]process_json_proto [23:20:25]json parsed OK: [23:20:25]protocol is kg_v1.0 [23:20:25]action value=close_receipt [23:20:25]process_action close_receipt [23:20:25]cmd_close_receipt [23:20:25]MH_GetDate [23:20:25]Write to MH i2c: F0 00 00 7F 0D 7B [23:20:25]Write i2c OK [23:20:25]MH_I2C_Read... [23:20:25]Read from MH i2c: F0 [23:20:25]MH_I2C_Read... [23:20:25]Read from MH i2c: F0 09 00 [23:20:25]MH_I2C_Read... [23:20:25]Read from MH i2c: F0 09 00 7F 0D 00 BE 0A 76 66 BC EC 60 65 95 [23:20:25]GetLastDocTimeStamp 1719011289 [23:20:25]current date 1719012030 [23:20:25]FM_GetShiftState [23:20:25]SAM_PROTO_GetShiftState [23:20:25]wFMCommunicate request_size=4 [23:20:25]MH_SAM_APDU [23:20:25]CAPDU: 80 13 01 00 [23:20:25]Write to MH i2c: E2 08 00 80 0D 80 13 01 00 00 00 00 00 0A [23:20:25]Write i2c OK [23:20:25]MH_I2C_Read... [23:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:25]Read from MH i2c: E2 [23:20:25]MH_I2C_Read... [23:20:25]Read from MH i2c: E2 0E 00 [23:20:25]MH_I2C_Read... [23:20:25]Read from MH i2c: E2 0E 00 80 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 87 [23:20:25]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:20:25]wFMCommunicate OK [23:20:25]SAM_PROTO_GetShiftState done [23:20:25]FM_GetShiftState done [23:20:25]opened in 1718933695 [23:20:25]opened+sec_in_day 1719020095 [23:20:25]quantity*price = 66400 [23:20:25]sum+1 = 66401 [23:20:25]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 664.00 袧小袩 1% : 5.88 袧袛小 12% : 70.51 袧邪谢懈褔薪褘屑懈: 664.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 281 21.06.2024 23:20 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112113 肖袩袛: 216705762063860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T232030&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112113&fm=216705762063860&tin=02508201610067®Number=0000000000092771&sum=66400 [23:20:26]StoreToDocumentArchive [23:20:26]shift 390 fd 112113 [23:20:26]save to /storage/0390/doc_00112113 [23:20:26]save last doc name /storage/0390/doc_00112113 to /storage/kkm_last_doc_name [23:20:26]save OK [23:20:26]Clear old archive folders... [23:20:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:26]tlvbuf is 01140060 [23:20:26]SAM_PROTO_ClearQueue [23:20:26]wFMCommunicate request_size=4 [23:20:26]MH_SAM_APDU [23:20:26]CAPDU: 80 09 00 00 [23:20:26]Write to MH i2c: E2 08 00 8D 0D 80 09 00 00 00 00 00 00 0C [23:20:26]Write i2c OK [23:20:26]MH_I2C_Read... [23:20:26]Read from MH i2c: E2 [23:20:26]MH_I2C_Read... [23:20:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:26]Read from MH i2c: E2 03 00 [23:20:26]MH_I2C_Read... [23:20:26]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [23:20:26]RAPDU: 90 00 [23:20:26]wFMCommunicate OK [23:20:26]SAM_PROTO_ClearQueue done [23:20:26]KKMCreateOFDPacket [23:20:26]OFDProtocolAddRootSTLVToBuf [23:20:26]FM_MakeSignedData [23:20:26]FM_MakeSignedData [23:20:26]SAM_PROTO_SignData [23:20:26]wFMCommunicate request_size=4 [23:20:26]MH_SAM_APDU [23:20:26]CAPDU: 80 0D 01 02 [23:20:26]Write to MH i2c: E2 08 00 8E 0D 80 0D 01 02 00 00 00 00 14 [23:20:26]Write i2c OK [23:20:26]MH_I2C_Read... [23:20:26]Read from MH i2c: E2 [23:20:26]MH_I2C_Read... [23:20:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:26]Read from MH i2c: E2 03 00 [23:20:26]MH_I2C_Read... [23:20:26]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [23:20:26]RAPDU: 90 00 [23:20:26]wFMCommunicate OK [23:20:26]wFMCommunicate request_size=255 [23:20:26]MH_SAM_APDU [23:20: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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 19 01 00 00 F4 03 04 00 BE 0A 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B5 01 00 35 04 06 00 C5 [23:20:26]Write to MH i2c: E2 02 01 8F 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 19 01 00 00 F4 03 04 00 BE 0A 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B5 01 00 35 04 06 00 C5 00 00 2F [23:20:26]Write i2c OK [23:20:26]MH_I2C_Read... [23:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:27]Read from MH i2c: E2 [23:20:27]MH_I2C_Read... [23:20:27]Read from MH i2c: E2 03 00 [23:20:27]MH_I2C_Read... [23:20:27]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [23:20:27]RAPDU: 90 00 [23:20:27]wFMCommunicate OK [23:20:27]wFMCommunicate request_size=10 [23:20:27]MH_SAM_APDU [23:20:27]CAPDU: 80 0D 02 02 05 17 BD F7 F5 F4 [23:20:27]Write to MH i2c: E2 0D 00 90 0D 80 0D 02 02 05 00 17 BD F7 F5 F4 00 00 D5 [23:20:27]Write i2c OK [23:20:27]MH_I2C_Read... [23:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:27]Read from MH i2c: E2 [23:20:27]MH_I2C_Read... [23:20:27]Read from MH i2c: E2 03 00 [23:20:27]MH_I2C_Read... [23:20:27]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [23:20:27]RAPDU: 90 00 [23:20:27]wFMCommunicate OK [23:20:27]wFMCommunicate request_size=4 [23:20:27]MH_SAM_APDU [23:20:27]CAPDU: 80 0D 03 02 [23:20:27]Write to MH i2c: E2 08 00 91 0D 80 0D 03 02 00 00 00 00 19 [23:20:27]Write i2c OK [23:20:27]MH_I2C_Read... [23:20:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:27]Read from MH i2c: E2 [23:20:27]MH_I2C_Read... [23:20:27]Read from MH i2c: E2 0B 00 [23:20:27]MH_I2C_Read... [23:20:27]Read from MH i2c: E2 0B 00 91 0D 00 BB 5C D6 30 31 4B D3 B0 90 00 36 [23:20:27]RAPDU: BB 5C D6 30 31 4B D3 B0 90 00 [23:20:27]wFMCommunicate OK [23:20:27]SAM_PROTO_SignData done [23:20:27]FM_MakeSignedData done [23:20:27]CreateOFDProtocolMessage [23:20:27]wFMCommunicate request_size=4 [23:20:27]MH_SAM_APDU [23:20:27]CAPDU: 80 11 00 00 [23:20:27]Write to MH i2c: E2 08 00 92 0D 80 11 00 00 00 00 00 00 19 [23:20:27]Write i2c OK [23:20:27]MH_I2C_Read... [23:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:27]Read from MH i2c: E2 [23:20:27]MH_I2C_Read... [23:20:27]Read from MH i2c: E2 17 00 [23:20:27]MH_I2C_Read... [23:20:27]Read from MH i2c: E2 17 00 92 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6B [23:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:20:27]wFMCommunicate OK [23:20:27]CreateOFDProtocolMessage done [23:20:27]OFDSenderStorePacket 112113 [23:20:27]StoreOFDPacket docnum=112113 [23:20:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C0 79 07 01 26 0E 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 19 01 00 00 F4 03 04 00 BE 0A 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B5 01 00 35 04 06 00 C5 17 BD F7 F5 F4 BB 5C D6 30 31 4B D3 B0 [23:20:27]CheckFolder [23:20:27]dirname=/storage/ofd_packets [23:20:27]CheckFolder done [23:20:27]ProducePacketName [23:20:27]name=ofd_packets/00112113 [23:20:27]NVStorageSaveData ofd_packets/00112113 [23:20:27]File name is /storage/ofd_packets/00112113 [23:20:27]Write 301 bytes [23:20:27]NVStorageSaveData done [23:20:27]OFDSenderStorePacket done [23:20:27]KKMCreateOFDPacket done [23:20:27]NVStorageSaveData kkm_last_timestamp [23:20:27]File name is /storage/kkm_last_timestamp [23:20:27]Write 4 bytes [23:20:27]NVStorageSaveData done [23:20:27]ExternCall_PrintAddStr [23:20:27]wPrintStart [23:20:27]Write to MH i2c: 01 00 00 93 0D A0 [23:20:27]Write i2c OK [23:20:27]MH_I2C_Read... [23:20:27]Read from MH i2c: 01 [23:20:27]MH_I2C_Read... [23:20:27]Read from MH i2c: 01 07 00 [23:20:27]MH_I2C_Read... [23:20:27]Read from MH i2c: 01 07 00 93 0D 00 00 00 00 00 FF 0F B5 [23:20:27]RasterBufferAndPrint [23:20:27]line 小褔械褌 N : (1)320773 [23:20:27]line 袠袧袧: 02508201610067 [23:20:27]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [23:20:27]line 袩袪袨袛袗袞袗 [23:20:27]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [23:20:27]line 孝芯胁邪褉: 2710124130 [23:20:27]line 袗懈-92-袣-5 [23:20:27]line 10.000 * 66.40 [23:20:27]line = 664.00 [23:20:27]line 袧袛小 12% 袧小袩 1% [23:20:27]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [23:20:27]line 袠孝袨袚袨: 664.00 [23:20:27]line 袧小袩 1% : 5.88 [23:20:27]line 袧袛小 12% : 70.51 [23:20:27]line 袧邪谢懈褔薪褘屑懈: 664.00 [23:20:27]line 袘械蟹薪邪谢.: 0.00 [23:20:27]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [23:20:27]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [23:20:27]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [23:20:27]line 效械泻 281 21.06.2024 23:20 [23:20:27]line 小屑械薪邪: 390 肖肖袛: 1.0 [23:20:27]line 袟袧袦: 0300000198 [23:20:27]line 袪袧袦: 0000000000092771 [23:20:27]line 袙械褉褋懈褟 袣袣袦: 001 [23:20:27]line 肖袦: 0000000000875083 [23:20:27]line 肖袛: 112113 [23:20:27]line 肖袩袛: 216705762063860 [23:20:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T232030&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112113&fm=216705762063860&tin=02508201610067®Number=0000000000092771&sum=66400 [23:20:27]OFD Sender: Processing packet 112113 [packets to send 38, broken 37] [23:20:27]ProducePacketName [23:20:27]name=ofd_packets/00112113 [23:20:27]OFD Sender: To server: 嚂鰌G, [23:20:27]CommunicateWithHost lk.salyk.kg:30040 [23:20:27]ConnectInit lk.salyk.kg [23:20:27]written 0, free lines is 4095 [23:20:27]Connected sock=7 [23:20:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C0 79 07 01 26 0E 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 19 01 00 00 F4 03 04 00 BE 0A 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B5 01 00 35 04 06 00 C5 17 BD F7 F5 F4 BB 5C D6 30 31 4B D3 B0 [23:20:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 10 F0 47 00 8A 62 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 30 38 37 35 30 38 33 10 04 04 00 F1 B5 01 00 F4 03 04 00 DB A1 75 66 B6 04 01 00 00 F7 87 B4 DF 86 03 C1 9C [23:20:27]CommunicateWithHost err = 0 [23:20:27]CheckOFDResponse [23:20:27]1017 (14) - 77093643461234 [23:20:27]1041 (16) - 0000000000875083 [23:20:27]1040 (4) - 112113 [23:20:27]1012 (4) - 21.06.2024 15:52 [23:20:27]1206 (1) - 0 [23:20:27]OFD Sender: Remove packet 112113 [23:20:27]ProducePacketName [23:20:27]name=ofd_packets/00112113 [23:20:27]NVStorageDeleteData [23:20:28]Write to MH i2c: 01 00 00 BB 0D C8 [23:20:28]Write i2c OK [23:20:28]MH_I2C_Read... [23:20:28]Read from MH i2c: 01 [23:20:28]MH_I2C_Read... [23:20:28]Read from MH i2c: 01 07 00 [23:20:28]MH_I2C_Read... [23:20:28]Read from MH i2c: 01 07 00 BB 0D 00 00 00 00 00 05 0D E1 [23:20:28]RasterBufferAndPrint [23:20:28]line [23:20:28]line [23:20:28]line [23:20:28]line [23:20:28]line [23:20:28]written 0, free lines is 3340 [23:20:28]MH_Cut [23:20:28]Write to MH i2c: D1 01 00 C2 0D 01 A1 [23:20:28]Write i2c OK [23:20:28]MH_I2C_Read... [23:20:28]Read from MH i2c: D1 [23:20:28]MH_I2C_Read... [23:20:28]Read from MH i2c: D1 01 00 [23:20:28]MH_I2C_Read... [23:20:28]Read from MH i2c: D1 01 00 C2 0D 00 A0 [23:20:28]Write to MH i2c: 01 00 00 C3 0D D0 [23:20:28]Write i2c OK [23:20:28]MH_I2C_Read... [23:20:28]OFD Sender: No OFD packet to send [23:20:28]*** Cut start [23:20:28]*** Partial cut [23:20:28]*** CUTSNS_PIN = 1 [23:20:28]*** CUTSNS_PIN = 0 [23:20:28]*** Brake cut motor [23:20:29]Read from MH i2c: 01 [23:20:29]MH_I2C_Read... [23:20:29]*** Stop cut motor [23:20:29]*** Cut end [23:20:29]Read from MH i2c: 01 07 00 [23:20:29]MH_I2C_Read... [23:20:29]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 FF 0F E5 [23:20:29]process_action close_receipt done [23:20:29]requested_data is exist [23:20:29]produce_requested_data [23:20:29]requested_item fm.sn is exist - process it [23:20:29]wFMCommunicate request_size=4 [23:20:29]MH_SAM_APDU [23:20:29]CAPDU: 80 11 00 00 [23:20:29]Write to MH i2c: E2 08 00 C4 0D 80 11 00 00 00 00 00 00 4B [23:20:29]Write i2c OK [23:20:29]MH_I2C_Read... [23:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:29]Read from MH i2c: E2 [23:20:29]MH_I2C_Read... [23:20:29]Read from MH i2c: E2 17 00 [23:20:29]MH_I2C_Read... [23:20:29]Read from MH i2c: E2 17 00 C4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9D [23:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:20:29]wFMCommunicate OK [23:20:29]requested_item fd.num is exist - process it [23:20:29]SAM_PROTO_GetFieldsCounters [23:20:29]wFMCommunicate request_size=4 [23:20:29]MH_SAM_APDU [23:20:29]CAPDU: 80 13 00 00 [23:20:29]Write to MH i2c: E2 08 00 C5 0D 80 13 00 00 00 00 00 00 4E [23:20:29]Write i2c OK [23:20:29]MH_I2C_Read... [23:20:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:29]Read from MH i2c: E2 [23:20:29]MH_I2C_Read... [23:20:29]Read from MH i2c: E2 62 00 [23:20:29]MH_I2C_Read... [23:20:29]Read from MH i2c: E2 62 00 C5 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F1 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [23:20:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F1 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:29]wFMCommunicate OK [23:20:29]SAM_PROTO_GetFieldsCounters done [23:20:29]requested_item shift.num is exist - process it [23:20:29]requested_item shift.opened is exist - process it [23:20:29]req_shift_opened [23:20:29]FM_GetShiftState [23:20:29]SAM_PROTO_GetShiftState [23:20:29]wFMCommunicate request_size=4 [23:20:29]MH_SAM_APDU [23:20:29]CAPDU: 80 13 01 00 [23:20:29]Write to MH i2c: E2 08 00 C6 0D 80 13 01 00 00 00 00 00 50 [23:20:29]Write i2c OK [23:20:29]MH_I2C_Read... [23:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:29]Read from MH i2c: E2 [23:20:29]MH_I2C_Read... [23:20:29]Read from MH i2c: E2 0E 00 [23:20:29]MH_I2C_Read... [23:20:29]Read from MH i2c: E2 0E 00 C6 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 CD [23:20:29]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:20:29]wFMCommunicate OK [23:20:29]SAM_PROTO_GetShiftState done [23:20:29]FM_GetShiftState done [23:20:29]req_shift_opened done [23:20:29]requested_item shift.open_date is exist - process it [23:20:29]req_shift_open_date [23:20:29]req_shift_open_date done [23:20:29]produce_requested_data done [23:20:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112113,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:20:29]process_action_free close_receipt [23:20:29]json_value_free [23:20:29]json_value_free done [23:20:29]process_json_proto returns [23:20:29]Send response to host [23:20:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112113,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:20:29]free response buf [23:20:29]execute_script done [23:20:29]execute_script returns [23:20:29]free content buf [23:20:29]Sock 9.Close socket [23:20:29]Sock 9.Thread stoped [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]accept exits with 10 [23:24:08]New connection [23:24:08]New thread 3066813796 created [23:24:08]Thread 3066957156 joined [23:24:08]Waiting for new connection... [23:24:08] Sock 10.Parse request [23:24:08]Sock 10.Check first char [23:24:08]Sock 10.First char is OK [23:24:08]request: POST /json_proto HTTP/1.0 [23:24:08]Method: POST [23:24:08]URL: /json_proto [23:24:08]Method is POST - this is cgi request [23:24:08]url: /json_proto [23:24:08]query_string will be loaded in cgi processing [23:24:08]execute_cgi json_proto POST (null) [23:24:08]execute_cgi path=json_proto method=POST [23:24:08]POST find Content-Length [23:24:08]Host: 172.17.59.68:8080 [23:24:08]Content-Length: 805 [23:24:08]Content-Type: application/json [23:24:08] [23:24:08]POST finish read [23:24:08]Found Content-Length = 805 [23:24:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:08]execute_script... [23:24: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)320774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:08]POST & json_proto [23:24:08]process_json_proto [23:24:08]json parsed OK: [23:24:08]protocol is kg_v1.0 [23:24:08]action value=close_receipt [23:24:08]process_action close_receipt [23:24:08]cmd_close_receipt [23:24:08]MH_GetDate [23:24:08]Write to MH i2c: F0 00 00 C7 0D C3 [23:24:08]Write i2c OK [23:24:08]MH_I2C_Read... [23:24:08]Read from MH i2c: F0 [23:24:08]MH_I2C_Read... [23:24:08]Read from MH i2c: F0 09 00 [23:24:08]MH_I2C_Read... [23:24:08]Read from MH i2c: F0 09 00 C7 0D 00 9C 0B 76 66 BC EC 60 65 BC [23:24:08]GetLastDocTimeStamp 1719012030 [23:24:08]current date 1719012252 [23:24:08]FM_GetShiftState [23:24:08]SAM_PROTO_GetShiftState [23:24:08]wFMCommunicate request_size=4 [23:24:08]MH_SAM_APDU [23:24:08]CAPDU: 80 13 01 00 [23:24:08]Write to MH i2c: E2 08 00 C8 0D 80 13 01 00 00 00 00 00 52 [23:24:08]Write i2c OK [23:24:08]MH_I2C_Read... [23:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:08]Read from MH i2c: E2 [23:24:08]MH_I2C_Read... [23:24:08]Read from MH i2c: E2 0E 00 [23:24:08]MH_I2C_Read... [23:24:08]Read from MH i2c: E2 0E 00 C8 0D 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 CF [23:24:08]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:24:08]wFMCommunicate OK [23:24:08]SAM_PROTO_GetShiftState done [23:24:08]FM_GetShiftState done [23:24:08]opened in 1718933695 [23:24:08]opened+sec_in_day 1719020095 [23:24:08]quantity*price = 30012 [23:24:08]sum+1 = 30014 [23:24:08]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 300.13 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 300.13 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 282 21.06.2024 23:24 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112114 肖袩袛: 102980512262874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T232412&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112114&fm=102980512262874&tin=02508201610067®Number=0000000000092771&sum=30013 [23:24:09]StoreToDocumentArchive [23:24:09]shift 390 fd 112114 [23:24:09]save to /storage/0390/doc_00112114 [23:24:09]save last doc name /storage/0390/doc_00112114 to /storage/kkm_last_doc_name [23:24:09]save OK [23:24:09]Clear old archive folders... [23:24:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:24:09]tlvbuf is 01179940 [23:24:09]SAM_PROTO_ClearQueue [23:24:09]wFMCommunicate request_size=4 [23:24:09]MH_SAM_APDU [23:24:09]CAPDU: 80 09 00 00 [23:24:09]Write to MH i2c: E2 08 00 D5 0D 80 09 00 00 00 00 00 00 54 [23:24:09]Write i2c OK [23:24:09]MH_I2C_Read... [23:24:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:09]Read from MH i2c: E2 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: E2 03 00 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [23:24:09]RAPDU: 90 00 [23:24:09]wFMCommunicate OK [23:24:09]SAM_PROTO_ClearQueue done [23:24:09]KKMCreateOFDPacket [23:24:09]OFDProtocolAddRootSTLVToBuf [23:24:09]FM_MakeSignedData [23:24:09]FM_MakeSignedData [23:24:09]SAM_PROTO_SignData [23:24:09]wFMCommunicate request_size=4 [23:24:09]MH_SAM_APDU [23:24:09]CAPDU: 80 0D 01 02 [23:24:09]Write to MH i2c: E2 08 00 D6 0D 80 0D 01 02 00 00 00 00 5C [23:24:09]Write i2c OK [23:24:09]MH_I2C_Read... [23:24:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:09]Read from MH i2c: E2 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: E2 03 00 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: E2 03 00 D6 0D 00 90 00 57 [23:24:09]RAPDU: 90 00 [23:24:09]wFMCommunicate OK [23:24:09]wFMCommunicate request_size=255 [23:24:09]MH_SAM_APDU [23:24: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 9C 0B 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B5 01 00 35 04 06 00 5D [23:24:09]Write to MH i2c: E2 02 01 D7 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 9C 0B 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B5 01 00 35 04 06 00 5D 00 00 F2 [23:24:09]Write i2c OK [23:24:09]MH_I2C_Read... [23:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:09]Read from MH i2c: E2 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: E2 03 00 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [23:24:09]RAPDU: 90 00 [23:24:09]wFMCommunicate OK [23:24:09]wFMCommunicate request_size=10 [23:24:09]MH_SAM_APDU [23:24:09]CAPDU: 80 0D 02 02 05 A9 04 DA 2A DA [23:24:09]Write to MH i2c: E2 0D 00 D8 0D 80 0D 02 02 05 00 A9 04 DA 2A DA 00 00 F4 [23:24:09]Write i2c OK [23:24:09]MH_I2C_Read... [23:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:09]Read from MH i2c: E2 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: E2 03 00 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [23:24:09]RAPDU: 90 00 [23:24:09]wFMCommunicate OK [23:24:09]wFMCommunicate request_size=4 [23:24:09]MH_SAM_APDU [23:24:09]CAPDU: 80 0D 03 02 [23:24:09]Write to MH i2c: E2 08 00 D9 0D 80 0D 03 02 00 00 00 00 61 [23:24:09]Write i2c OK [23:24:09]MH_I2C_Read... [23:24:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:09]Read from MH i2c: E2 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: E2 0B 00 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: E2 0B 00 D9 0D 00 88 03 C7 82 73 D4 C0 8C 90 00 C9 [23:24:09]RAPDU: 88 03 C7 82 73 D4 C0 8C 90 00 [23:24:09]wFMCommunicate OK [23:24:09]SAM_PROTO_SignData done [23:24:09]FM_MakeSignedData done [23:24:09]CreateOFDProtocolMessage [23:24:09]wFMCommunicate request_size=4 [23:24:09]MH_SAM_APDU [23:24:09]CAPDU: 80 11 00 00 [23:24:09]Write to MH i2c: E2 08 00 DA 0D 80 11 00 00 00 00 00 00 61 [23:24:09]Write i2c OK [23:24:09]MH_I2C_Read... [23:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:09]Read from MH i2c: E2 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: E2 17 00 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: E2 17 00 DA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B3 [23:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:24:09]wFMCommunicate OK [23:24:09]CreateOFDProtocolMessage done [23:24:09]OFDSenderStorePacket 112114 [23:24:09]StoreOFDPacket docnum=112114 [23:24:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 56 85 07 01 70 13 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 9C 0B 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B5 01 00 35 04 06 00 5D A9 04 DA 2A DA 88 03 C7 82 73 D4 C0 8C [23:24:09]CheckFolder [23:24:09]dirname=/storage/ofd_packets [23:24:09]CheckFolder done [23:24:09]ProducePacketName [23:24:09]name=ofd_packets/00112114 [23:24:09]NVStorageSaveData ofd_packets/00112114 [23:24:09]File name is /storage/ofd_packets/00112114 [23:24:09]Write 301 bytes [23:24:09]NVStorageSaveData done [23:24:09]OFDSenderStorePacket done [23:24:09]KKMCreateOFDPacket done [23:24:09]NVStorageSaveData kkm_last_timestamp [23:24:09]File name is /storage/kkm_last_timestamp [23:24:09]Write 4 bytes [23:24:09]NVStorageSaveData done [23:24:09]ExternCall_PrintAddStr [23:24:09]wPrintStart [23:24:09]Write to MH i2c: 01 00 00 DB 0D E8 [23:24:09]Write i2c OK [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: 01 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: 01 07 00 [23:24:09]MH_I2C_Read... [23:24:09]Read from MH i2c: 01 07 00 DB 0D 00 00 00 00 00 FF 0F FD [23:24:09]RasterBufferAndPrint [23:24:09]line 小褔械褌 N : (1)320774 [23:24:09]line 袠袧袧: 02508201610067 [23:24:09]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [23:24:09]line 袩袪袨袛袗袞袗 [23:24:09]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [23:24:09]line 孝芯胁邪褉: 2710124130 [23:24:09]line 袗懈-92-袣-5 [23:24:09]line 4.520 * 66.40 [23:24:09]line = 300.13 [23:24:09]line 袧袛小 12% 袧小袩 1% [23:24:09]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [23:24:09]line 袠孝袨袚袨: 300.13 [23:24:09]line 袧小袩 1% : 2.66 [23:24:09]line 袧袛小 12% : 31.87 [23:24:09]line 袧邪谢懈褔薪褘屑懈: 0.00 [23:24:09]line 袘械蟹薪邪谢.: 300.13 [23:24:09]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [23:24:09]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [23:24:09]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [23:24:09]line 效械泻 282 21.06.2024 23:24 [23:24:09]line 小屑械薪邪: 390 肖肖袛: 1.0 [23:24:09]line 袟袧袦: 0300000198 [23:24:09]line 袪袧袦: 0000000000092771 [23:24:09]line 袙械褉褋懈褟 袣袣袦: 001 [23:24:09]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [23:24:09]line 肖袦: 0000000000875083 [23:24:09]line 肖袛: 112114 [23:24:09]line 肖袩袛: 102980512262874 [23:24:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T232412&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112114&fm=102980512262874&tin=02508201610067®Number=0000000000092771&sum=30013 [23:24:10]written 0, free lines is 4095 [23:24:10]OFD Sender: Processing packet 112114 [packets to send 38, broken 37] [23:24:10]ProducePacketName [23:24:10]name=ofd_packets/00112114 [23:24:10]OFD Sender: To server: 嚂鰌G, [23:24:10]CommunicateWithHost lk.salyk.kg:30040 [23:24:10]ConnectInit lk.salyk.kg [23:24:10]Connected sock=9 [23:24:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 56 85 07 01 70 13 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 9C 0B 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B5 01 00 35 04 06 00 5D A9 04 DA 2A DA 88 03 C7 82 73 D4 C0 8C [23:24:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 96 32 47 00 99 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 30 38 37 35 30 38 33 10 04 04 00 F2 B5 01 00 F4 03 04 00 BA A2 75 66 B6 04 01 00 00 40 9E B0 2C 8B 39 26 21 [23:24:10]CommunicateWithHost err = 0 [23:24:10]CheckOFDResponse [23:24:10]1017 (14) - 77093643461234 [23:24:10]1041 (16) - 0000000000875083 [23:24:10]1040 (4) - 112114 [23:24:10]1012 (4) - 21.06.2024 15:56 [23:24:10]1206 (1) - 0 [23:24:10]OFD Sender: Remove packet 112114 [23:24:10]ProducePacketName [23:24:10]name=ofd_packets/00112114 [23:24:10]NVStorageDeleteData [23:24:10]Write to MH i2c: 01 00 00 05 0E 13 [23:24:10]Write i2c OK [23:24:10]MH_I2C_Read... [23:24:10]Read from MH i2c: 01 [23:24:10]MH_I2C_Read... [23:24:10]Read from MH i2c: 01 07 00 [23:24:10]MH_I2C_Read... [23:24:10]Read from MH i2c: 01 07 00 05 0E 00 00 00 00 00 E4 0C 0A [23:24:10]RasterBufferAndPrint [23:24:10]line [23:24:10]line [23:24:10]line [23:24:10]line [23:24:10]line [23:24:10]written 0, free lines is 3307 [23:24:10]MH_Cut [23:24:10]Write to MH i2c: D1 01 00 0C 0E 01 EC [23:24:10]Write i2c OK [23:24:10]MH_I2C_Read... [23:24:10]Read from MH i2c: D1 [23:24:10]MH_I2C_Read... [23:24:10]Read from MH i2c: D1 01 00 [23:24:10]MH_I2C_Read... [23:24:10]Read from MH i2c: D1 01 00 0C 0E 00 EB [23:24:10]Write to MH i2c: 01 00 00 0D 0E 1B [23:24:10]Write i2c OK [23:24:10]MH_I2C_Read... [23:24:10]OFD Sender: No OFD packet to send [23:24:11]*** Cut start [23:24:11]*** Partial cut [23:24:11]*** CUTSNS_PIN = 1 [23:24:11]*** CUTSNS_PIN = 0 [23:24:11]*** Brake cut motor [23:24:11]Read from MH i2c: 01 [23:24:11]MH_I2C_Read... [23:24:11]*** Stop cut motor [23:24:11]*** Cut end [23:24:11]Read from MH i2c: 01 07 00 [23:24:11]MH_I2C_Read... [23:24:11]Read from MH i2c: 01 07 00 0D 0E 00 00 00 00 00 FF 0F 30 [23:24:11]process_action close_receipt done [23:24:11]requested_data is exist [23:24:11]produce_requested_data [23:24:11]requested_item fm.sn is exist - process it [23:24:11]wFMCommunicate request_size=4 [23:24:11]MH_SAM_APDU [23:24:11]CAPDU: 80 11 00 00 [23:24:11]Write to MH i2c: E2 08 00 0E 0E 80 11 00 00 00 00 00 00 96 [23:24:11]Write i2c OK [23:24:11]MH_I2C_Read... [23:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:12]Read from MH i2c: E2 [23:24:12]MH_I2C_Read... [23:24:12]Read from MH i2c: E2 17 00 [23:24:12]MH_I2C_Read... [23:24:12]Read from MH i2c: E2 17 00 0E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E8 [23:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:24:12]wFMCommunicate OK [23:24:12]requested_item fd.num is exist - process it [23:24:12]SAM_PROTO_GetFieldsCounters [23:24:12]wFMCommunicate request_size=4 [23:24:12]MH_SAM_APDU [23:24:12]CAPDU: 80 13 00 00 [23:24:12]Write to MH i2c: E2 08 00 0F 0E 80 13 00 00 00 00 00 00 99 [23:24:12]Write i2c OK [23:24:12]MH_I2C_Read... [23:24:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:24:12]Read from MH i2c: E2 [23:24:12]MH_I2C_Read... [23:24:12]Read from MH i2c: E2 62 00 [23:24:12]MH_I2C_Read... [23:24:12]Read from MH i2c: E2 62 00 0F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [23:24:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F2 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:24:12]wFMCommunicate OK [23:24:12]SAM_PROTO_GetFieldsCounters done [23:24:12]requested_item shift.num is exist - process it [23:24:12]requested_item shift.opened is exist - process it [23:24:12]req_shift_opened [23:24:12]FM_GetShiftState [23:24:12]SAM_PROTO_GetShiftState [23:24:12]wFMCommunicate request_size=4 [23:24:12]MH_SAM_APDU [23:24:12]CAPDU: 80 13 01 00 [23:24:12]Write to MH i2c: E2 08 00 10 0E 80 13 01 00 00 00 00 00 9B [23:24:12]Write i2c OK [23:24:12]MH_I2C_Read... [23:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:12]Read from MH i2c: E2 [23:24:12]MH_I2C_Read... [23:24:12]Read from MH i2c: E2 0E 00 [23:24:12]MH_I2C_Read... [23:24:12]Read from MH i2c: E2 0E 00 10 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 18 [23:24:12]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:24:12]wFMCommunicate OK [23:24:12]SAM_PROTO_GetShiftState done [23:24:12]FM_GetShiftState done [23:24:12]req_shift_opened done [23:24:12]requested_item shift.open_date is exist - process it [23:24:12]req_shift_open_date [23:24:12]req_shift_open_date done [23:24:12]produce_requested_data done [23:24:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112114,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:24:12]process_action_free close_receipt [23:24:12]json_value_free [23:24:12]json_value_free done [23:24:12]process_json_proto returns [23:24:12]Send response to host [23:24:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112114,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:24:12]free response buf [23:24:12]execute_script done [23:24:12]execute_script returns [23:24:12]free content buf [23:24:12]Sock 10.Close socket [23:24:12]Sock 10.Thread stoped [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:01]accept exits with 7 [23:28:01]New connection [23:28:01]New thread 3066957156 created [23:28:01]Thread 3066813796 joined [23:28:01]Waiting for new connection... [23:28:01] Sock 7.Parse request [23:28:01]Sock 7.Check first char [23:28:01]Sock 7.First char is OK [23:28:01]request: POST /json_proto HTTP/1.0 [23:28:01]Method: POST [23:28:01]URL: /json_proto [23:28:01]Method is POST - this is cgi request [23:28:01]url: /json_proto [23:28:01]query_string will be loaded in cgi processing [23:28:01]execute_cgi json_proto POST (null) [23:28:01]execute_cgi path=json_proto method=POST [23:28:01]POST find Content-Length [23:28:01]Host: 172.17.59.68:8080 [23:28:01]Content-Length: 677 [23:28:01]Content-Type: application/json [23:28:01] [23:28:01]POST finish read [23:28:01]Found Content-Length = 677 [23:28:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.370, "sum" : 290.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:28:01]execute_script... [23:28:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.370, "sum" : 290.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:28:01]POST & json_proto [23:28:01]process_json_proto [23:28:01]json parsed OK: [23:28:01]protocol is kg_v1.0 [23:28:01]action value=close_receipt [23:28:01]process_action close_receipt [23:28:01]cmd_close_receipt [23:28:01]MH_GetDate [23:28:01]Write to MH i2c: F0 00 00 11 0E 0E [23:28:01]Write i2c OK [23:28:01]MH_I2C_Read... [23:28:01]Read from MH i2c: F0 [23:28:01]MH_I2C_Read... [23:28:01]Read from MH i2c: F0 09 00 [23:28:01]MH_I2C_Read... [23:28:01]Read from MH i2c: F0 09 00 11 0E 00 86 0C 76 66 BC EC 60 65 F2 [23:28:01]GetLastDocTimeStamp 1719012252 [23:28:01]current date 1719012486 [23:28:01]FM_GetShiftState [23:28:01]SAM_PROTO_GetShiftState [23:28:01]wFMCommunicate request_size=4 [23:28:01]MH_SAM_APDU [23:28:01]CAPDU: 80 13 01 00 [23:28:01]Write to MH i2c: E2 08 00 12 0E 80 13 01 00 00 00 00 00 9D [23:28:01]Write i2c OK [23:28:01]MH_I2C_Read... [23:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:01]Read from MH i2c: E2 [23:28:01]MH_I2C_Read... [23:28:01]Read from MH i2c: E2 0E 00 [23:28:01]MH_I2C_Read... [23:28:01]Read from MH i2c: E2 0E 00 12 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1A [23:28:01]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:28:01]wFMCommunicate OK [23:28:01]SAM_PROTO_GetShiftState done [23:28:01]FM_GetShiftState done [23:28:01]opened in 1718933695 [23:28:01]opened+sec_in_day 1719020095 [23:28:01]quantity*price = 29016 [23:28:01]sum+1 = 29018 [23:28:01]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.17 袠孝袨袚袨: 290.00 袙薪械褋械薪芯: 290.00 小袛袗效袗: 0.00 袧小袩 1% : 2.57 袧袛小 12% : 30.81 袧邪谢懈褔薪褘屑懈: 290.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 283 21.06.2024 23:28 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112115 肖袩袛: 88317857074720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T232806&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112115&fm=88317857074720&tin=02508201610067®Number=0000000000092771&sum=29000 [23:28:03]StoreToDocumentArchive [23:28:03]shift 390 fd 112115 [23:28:03]save to /storage/0390/doc_00112115 [23:28:03]save last doc name /storage/0390/doc_00112115 to /storage/kkm_last_doc_name [23:28:03]save OK [23:28:03]Clear old archive folders... [23:28:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:28:03]tlvbuf is 01121B20 [23:28:03]SAM_PROTO_ClearQueue [23:28:03]wFMCommunicate request_size=4 [23:28:03]MH_SAM_APDU [23:28:03]CAPDU: 80 09 00 00 [23:28:03]Write to MH i2c: E2 08 00 1F 0E 80 09 00 00 00 00 00 00 9F [23:28:03]Write i2c OK [23:28:03]MH_I2C_Read... [23:28:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:28:03]Read from MH i2c: E2 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: E2 03 00 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [23:28:03]RAPDU: 90 00 [23:28:03]wFMCommunicate OK [23:28:03]SAM_PROTO_ClearQueue done [23:28:03]KKMCreateOFDPacket [23:28:03]OFDProtocolAddRootSTLVToBuf [23:28:03]FM_MakeSignedData [23:28:03]FM_MakeSignedData [23:28:03]SAM_PROTO_SignData [23:28:03]wFMCommunicate request_size=4 [23:28:03]MH_SAM_APDU [23:28:03]CAPDU: 80 0D 01 02 [23:28:03]Write to MH i2c: E2 08 00 20 0E 80 0D 01 02 00 00 00 00 A7 [23:28:03]Write i2c OK [23:28:03]MH_I2C_Read... [23:28:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:28:03]Read from MH i2c: E2 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: E2 03 00 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: E2 03 00 20 0E 00 90 00 A2 [23:28:03]RAPDU: 90 00 [23:28:03]wFMCommunicate OK [23:28:03]wFMCommunicate request_size=255 [23:28:03]MH_SAM_APDU [23:28:03]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 12 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 59 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 86 0C 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B5 01 00 35 04 06 00 50 [23:28:03]Write to MH i2c: E2 02 01 21 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 12 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 59 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 86 0C 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B5 01 00 35 04 06 00 50 00 00 3A [23:28:03]Write i2c OK [23:28:03]MH_I2C_Read... [23:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:28:03]Read from MH i2c: E2 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: E2 03 00 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: E2 03 00 21 0E 00 90 00 A3 [23:28:03]RAPDU: 90 00 [23:28:03]wFMCommunicate OK [23:28:03]wFMCommunicate request_size=10 [23:28:03]MH_SAM_APDU [23:28:03]CAPDU: 80 0D 02 02 05 53 1A 7F 8E 20 [23:28:03]Write to MH i2c: E2 0D 00 22 0E 80 0D 02 02 05 00 53 1A 7F 8E 20 00 00 4E [23:28:03]Write i2c OK [23:28:03]MH_I2C_Read... [23:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:28:03]Read from MH i2c: E2 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: E2 03 00 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [23:28:03]RAPDU: 90 00 [23:28:03]wFMCommunicate OK [23:28:03]wFMCommunicate request_size=4 [23:28:03]MH_SAM_APDU [23:28:03]CAPDU: 80 0D 03 02 [23:28:03]Write to MH i2c: E2 08 00 23 0E 80 0D 03 02 00 00 00 00 AC [23:28:03]Write i2c OK [23:28:03]MH_I2C_Read... [23:28:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:28:03]Read from MH i2c: E2 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: E2 0B 00 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: E2 0B 00 23 0E 00 EC 58 50 06 46 B3 2D 7F 90 00 EC [23:28:03]RAPDU: EC 58 50 06 46 B3 2D 7F 90 00 [23:28:03]wFMCommunicate OK [23:28:03]SAM_PROTO_SignData done [23:28:03]FM_MakeSignedData done [23:28:03]CreateOFDProtocolMessage [23:28:03]wFMCommunicate request_size=4 [23:28:03]MH_SAM_APDU [23:28:03]CAPDU: 80 11 00 00 [23:28:03]Write to MH i2c: E2 08 00 24 0E 80 11 00 00 00 00 00 00 AC [23:28:03]Write i2c OK [23:28:03]MH_I2C_Read... [23:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:03]Read from MH i2c: E2 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: E2 17 00 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: E2 17 00 24 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FE [23:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:28:03]wFMCommunicate OK [23:28:03]CreateOFDProtocolMessage done [23:28:03]OFDSenderStorePacket 112115 [23:28:03]StoreOFDPacket docnum=112115 [23:28:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EA 0A 07 01 5C 7C 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 12 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 59 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 86 0C 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B5 01 00 35 04 06 00 50 53 1A 7F 8E 20 EC 58 50 06 46 B3 2D 7F [23:28:03]CheckFolder [23:28:03]dirname=/storage/ofd_packets [23:28:03]CheckFolder done [23:28:03]ProducePacketName [23:28:03]name=ofd_packets/00112115 [23:28:03]NVStorageSaveData ofd_packets/00112115 [23:28:03]File name is /storage/ofd_packets/00112115 [23:28:03]Write 301 bytes [23:28:03]NVStorageSaveData done [23:28:03]OFDSenderStorePacket done [23:28:03]KKMCreateOFDPacket done [23:28:03]NVStorageSaveData kkm_last_timestamp [23:28:03]File name is /storage/kkm_last_timestamp [23:28:03]Write 4 bytes [23:28:03]NVStorageSaveData done [23:28:03]ExternCall_PrintAddStr [23:28:03]wPrintStart [23:28:03]Write to MH i2c: 01 00 00 25 0E 33 [23:28:03]Write i2c OK [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: 01 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: 01 07 00 [23:28:03]MH_I2C_Read... [23:28:03]Read from MH i2c: 01 07 00 25 0E 00 00 00 00 00 FF 0F 48 [23:28:03]RasterBufferAndPrint [23:28:03]line 小褔械褌 N : (1)320776 [23:28:03]line 袠袧袧: 02508201610067 [23:28:03]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [23:28:03]line 袩袪袨袛袗袞袗 [23:28:03]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [23:28:03]line 孝芯胁邪褉: 2710124130 [23:28:03]line 袗懈-92-袣-5 [23:28:03]line 4.370 * 66.40 [23:28:03]line = 290.17 [23:28:03]line 袧袛小 12% 袧小袩 1% [23:28:03]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [23:28:03]line 袨袣袪校袚袥袝袧袠袝: -0.17 [23:28:03]line 袠孝袨袚袨: 290.00 [23:28:03]line 袙薪械褋械薪芯: 290.00 [23:28:03]line 小袛袗效袗: 0.00 [23:28:03]line 袧小袩 1% : 2.57 [23:28:03]line 袧袛小 12% : 30.81 [23:28:03]line 袧邪谢懈褔薪褘屑懈: 290.00 [23:28:03]line 袘械蟹薪邪谢.: 0.00 [23:28:03]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [23:28:03]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [23:28:03]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [23:28:03]line 效械泻 283 21.06.2024 23:28 [23:28:03]line 小屑械薪邪: 390 肖肖袛: 1.0 [23:28:03]line 袟袧袦: 0300000198 [23:28:03]line 袪袧袦: 0000000000092771 [23:28:03]line 袙械褉褋懈褟 袣袣袦: 001 [23:28:03]line 肖袦: 0000000000875083 [23:28:03]line 肖袛: 112115 [23:28:03]line 肖袩袛: 88317857074720 [23:28:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T232806&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112115&fm=88317857074720&tin=02508201610067®Number=0000000000092771&sum=29000 [23:28:03]OFD Sender: Processing packet 112115 [packets to send 38, broken 37] [23:28:03]ProducePacketName [23:28:03]name=ofd_packets/00112115 [23:28:03]OFD Sender: To server: 嚂鰌G, [23:28:03]CommunicateWithHost lk.salyk.kg:30040 [23:28:03]ConnectInit lk.salyk.kg [23:28:03]written 0, free lines is 4095 [23:28:04]Connected sock=10 [23:28:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EA 0A 07 01 5C 7C 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 12 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 59 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 86 0C 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B5 01 00 35 04 06 00 50 53 1A 7F 8E 20 EC 58 50 06 46 B3 2D 7F [23:28:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1D 31 47 00 B8 64 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 30 38 37 35 30 38 33 10 04 04 00 F3 B5 01 00 F4 03 04 00 A4 A3 75 66 B6 04 01 00 00 17 5F C4 30 3E 44 AE F8 [23:28:04]CommunicateWithHost err = 0 [23:28:04]CheckOFDResponse [23:28:04]1017 (14) - 77093643461234 [23:28:04]1041 (16) - 0000000000875083 [23:28:04]1040 (4) - 112115 [23:28:04]1012 (4) - 21.06.2024 16:00 [23:28:04]1206 (1) - 0 [23:28:04]OFD Sender: Remove packet 112115 [23:28:04]ProducePacketName [23:28:04]name=ofd_packets/00112115 [23:28:04]NVStorageDeleteData [23:28:04]Write to MH i2c: 01 00 00 50 0E 5E [23:28:04]Write i2c OK [23:28:04]MH_I2C_Read... [23:28:04]Read from MH i2c: 01 [23:28:04]MH_I2C_Read... [23:28:04]Read from MH i2c: 01 07 00 [23:28:04]MH_I2C_Read... [23:28:04]Read from MH i2c: 01 07 00 50 0E 00 00 00 00 00 DA 0C 4B [23:28:04]RasterBufferAndPrint [23:28:04]line [23:28:04]line [23:28:04]line [23:28:04]line [23:28:04]line [23:28:04]written 0, free lines is 3298 [23:28:04]MH_Cut [23:28:04]Write to MH i2c: D1 01 00 57 0E 01 37 [23:28:04]Write i2c OK [23:28:04]MH_I2C_Read... [23:28:04]Read from MH i2c: D1 [23:28:04]MH_I2C_Read... [23:28:04]Read from MH i2c: D1 01 00 [23:28:04]MH_I2C_Read... [23:28:04]Read from MH i2c: D1 01 00 57 0E 00 36 [23:28:04]Write to MH i2c: 01 00 00 58 0E 66 [23:28:04]Write i2c OK [23:28:04]MH_I2C_Read... [23:28:04]OFD Sender: No OFD packet to send [23:28:05]*** Cut start [23:28:05]*** Partial cut [23:28:05]*** CUTSNS_PIN = 1 [23:28:05]*** CUTSNS_PIN = 0 [23:28:05]*** Brake cut motor [23:28:05]Read from MH i2c: 01 [23:28:05]MH_I2C_Read... [23:28:05]*** Stop cut motor [23:28:05]*** Cut end [23:28:05]Read from MH i2c: 01 07 00 [23:28:05]MH_I2C_Read... [23:28:05]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 FF 0F 7B [23:28:05]process_action close_receipt done [23:28:05]requested_data is exist [23:28:05]produce_requested_data [23:28:05]requested_item fm.sn is exist - process it [23:28:05]wFMCommunicate request_size=4 [23:28:05]MH_SAM_APDU [23:28:05]CAPDU: 80 11 00 00 [23:28:05]Write to MH i2c: E2 08 00 59 0E 80 11 00 00 00 00 00 00 E1 [23:28:05]Write i2c OK [23:28:05]MH_I2C_Read... [23:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:05]Read from MH i2c: E2 [23:28:05]MH_I2C_Read... [23:28:05]Read from MH i2c: E2 17 00 [23:28:05]MH_I2C_Read... [23:28:05]Read from MH i2c: E2 17 00 59 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 33 [23:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:28:05]wFMCommunicate OK [23:28:05]requested_item fd.num is exist - process it [23:28:05]SAM_PROTO_GetFieldsCounters [23:28:05]wFMCommunicate request_size=4 [23:28:05]MH_SAM_APDU [23:28:05]CAPDU: 80 13 00 00 [23:28:05]Write to MH i2c: E2 08 00 5A 0E 80 13 00 00 00 00 00 00 E4 [23:28:05]Write i2c OK [23:28:05]MH_I2C_Read... [23:28:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:28:05]Read from MH i2c: E2 [23:28:05]MH_I2C_Read... [23:28:05]Read from MH i2c: E2 62 00 [23:28:05]MH_I2C_Read... [23:28:05]Read from MH i2c: E2 62 00 5A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [23:28:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:28:05]wFMCommunicate OK [23:28:05]SAM_PROTO_GetFieldsCounters done [23:28:05]requested_item shift.num is exist - process it [23:28:05]requested_item shift.opened is exist - process it [23:28:05]req_shift_opened [23:28:05]FM_GetShiftState [23:28:05]SAM_PROTO_GetShiftState [23:28:05]wFMCommunicate request_size=4 [23:28:05]MH_SAM_APDU [23:28:05]CAPDU: 80 13 01 00 [23:28:05]Write to MH i2c: E2 08 00 5B 0E 80 13 01 00 00 00 00 00 E6 [23:28:05]Write i2c OK [23:28:05]MH_I2C_Read... [23:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:05]Read from MH i2c: E2 [23:28:05]MH_I2C_Read... [23:28:05]Read from MH i2c: E2 0E 00 [23:28:05]MH_I2C_Read... [23:28:05]Read from MH i2c: E2 0E 00 5B 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 63 [23:28:05]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:28:05]wFMCommunicate OK [23:28:05]SAM_PROTO_GetShiftState done [23:28:05]FM_GetShiftState done [23:28:05]req_shift_opened done [23:28:05]requested_item shift.open_date is exist - process it [23:28:05]req_shift_open_date [23:28:05]req_shift_open_date done [23:28:05]produce_requested_data done [23:28:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112115,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:28:05]process_action_free close_receipt [23:28:05]json_value_free [23:28:05]json_value_free done [23:28:05]process_json_proto returns [23:28:05]Send response to host [23:28:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112115,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:28:05]free response buf [23:28:05]execute_script done [23:28:05]execute_script returns [23:28:05]free content buf [23:28:05]Sock 7.Close socket [23:28:05]Sock 7.Thread stoped [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:18]accept exits with 9 [23:28:18]New connection [23:28:18]New thread 3066813796 created [23:28:18]Thread 3066957156 joined [23:28:18]Waiting for new connection... [23:28:18] Sock 9.Parse request [23:28:18]Sock 9.Check first char [23:28:18]Sock 9.First char is OK [23:28:18]request: POST /json_proto HTTP/1.0 [23:28:18]Method: POST [23:28:18]URL: /json_proto [23:28:18]Method is POST - this is cgi request [23:28:18]url: /json_proto [23:28:18]query_string will be loaded in cgi processing [23:28:18]execute_cgi json_proto POST (null) [23:28:18]execute_cgi path=json_proto method=POST [23:28:18]POST find Content-Length [23:28:18]Host: 172.17.59.68:8080 [23:28:18]Content-Length: 1198 [23:28:18]Content-Type: application/json [23:28:18] [23:28:18]POST finish read [23:28:18]Found Content-Length = 1198 [23:28:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320775\u000A21.06.2024 21:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 41.160 x 72.90\u000A\u0418\u0422\u041E\u0413: 3000.56\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:28:18]execute_script... [23:28:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)320775\u000A21.06.2024 21:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 41.160 x 72.90\u000A\u0418\u0422\u041E\u0413: 3000.56\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:28:18]POST & json_proto [23:28:18]process_json_proto [23:28:18]json parsed OK: [23:28:18]protocol is kg_v1.0 [23:28:18]action value=print_text [23:28:18]process_action print_text [23:28:18]cmd_print_text [23:28:18]ExternCall_PrintAddStr [23:28:18]wPrintStart [23:28:18]Write to MH i2c: 01 00 00 5C 0E 6A [23:28:18]Write i2c OK [23:28:18]MH_I2C_Read... [23:28:18]Read from MH i2c: 01 [23:28:18]MH_I2C_Read... [23:28:18]Read from MH i2c: 01 07 00 [23:28:18]MH_I2C_Read... [23:28:18]Read from MH i2c: 01 07 00 5C 0E 00 00 00 00 00 FF 0F 7F [23:28:18]RasterBufferAndPrint [23:28:18]line *****孝袨袙袗袪袧蝎袡 效袝袣***** [23:28:18]line 袗袟小 65 [23:28:18]line 袩邪褉褌薪械褉 薪械褎褌褜 [23:28:18]line 02508201610067 [23:28:18]line 袣邪褋褋懈褉 : 袞邪薪褘谐褍谢芯胁 袣. [23:28:18]line 小褔械褌 N : (1)320775 [23:28:18]line 21.06.2024 21:55 [23:28:18]line 袩袪袨袛袗袞袗 [23:28:18]line 孝袪袣 (袦袪袣, 袚袧袣): 22 [23:28:18]line 袙懈写 袚小袦 : 2710194210 [23:28:18]line 袛孝-袣-5 [23:28:18]line 41.160 x 72.90 [23:28:18]line 袠孝袨袚: 3000.56 [23:28:18]line 孝懈锌 芯锌谢邪褌褘: 孝邪谢芯薪褘: 孝芯锌谢懈胁薪邪褟 袣邪褉褌邪 [23:28:18]line 01591 [23:28:18]line ______________________ [23:28:18]line (锌芯写锌懈褋褜) [23:28:18]written 0, free lines is 4095 [23:28:18]Write to MH i2c: 01 00 00 70 0E 7E [23:28:18]Write i2c OK [23:28:18]MH_I2C_Read... [23:28:18]Read from MH i2c: 01 [23:28:18]MH_I2C_Read... [23:28:18]Read from MH i2c: 01 07 00 [23:28:18]MH_I2C_Read... [23:28:18]Read from MH i2c: 01 07 00 70 0E 00 00 00 00 00 0F 0E A2 [23:28:18]RasterBufferAndPrint [23:28:18]line [23:28:18]line [23:28:18]line [23:28:18]line [23:28:18]line [23:28:18]written 0, free lines is 3600 [23:28:18]MH_Cut [23:28:18]Write to MH i2c: D1 01 00 77 0E 01 57 [23:28:18]Write i2c OK [23:28:18]MH_I2C_Read... [23:28:18]Read from MH i2c: D1 [23:28:18]MH_I2C_Read... [23:28:18]Read from MH i2c: D1 01 00 [23:28:18]MH_I2C_Read... [23:28:18]Read from MH i2c: D1 01 00 77 0E 00 56 [23:28:18]Write to MH i2c: 01 00 00 78 0E 86 [23:28:18]Write i2c OK [23:28:18]MH_I2C_Read... [23:28:19]*** Cut start [23:28:19]*** Partial cut [23:28:19]*** CUTSNS_PIN = 1 [23:28:19]*** CUTSNS_PIN = 0 [23:28:19]*** Brake cut motor [23:28:19]Read from MH i2c: 01 [23:28:19]MH_I2C_Read... [23:28:19]Read from MH i2c: 01 07 00 [23:28:19]MH_I2C_Read... [23:28:19]OFD Sender: No OFD packet to send [23:28:19]*** Stop cut motor [23:28:19]*** Cut end [23:28:19]Read from MH i2c: 01 07 00 78 0E 00 00 00 00 00 FF 0F 9B [23:28:19]process_action print_text done [23:28:19]requested_data is exist [23:28:19]produce_requested_data [23:28:19]requested_item fm.sn is exist - process it [23:28:19]wFMCommunicate request_size=4 [23:28:19]MH_SAM_APDU [23:28:19]CAPDU: 80 11 00 00 [23:28:19]Write to MH i2c: E2 08 00 79 0E 80 11 00 00 00 00 00 00 01 [23:28:19]Write i2c OK [23:28:19]MH_I2C_Read... [23:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:19]Read from MH i2c: E2 [23:28:19]MH_I2C_Read... [23:28:19]Read from MH i2c: E2 17 00 [23:28:19]MH_I2C_Read... [23:28:19]Read from MH i2c: E2 17 00 79 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 53 [23:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:28:19]wFMCommunicate OK [23:28:19]requested_item fd.num is exist - process it [23:28:19]SAM_PROTO_GetFieldsCounters [23:28:19]wFMCommunicate request_size=4 [23:28:19]MH_SAM_APDU [23:28:19]CAPDU: 80 13 00 00 [23:28:19]Write to MH i2c: E2 08 00 7A 0E 80 13 00 00 00 00 00 00 04 [23:28:19]Write i2c OK [23:28:19]MH_I2C_Read... [23:28:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:28:19]Read from MH i2c: E2 [23:28:19]MH_I2C_Read... [23:28:19]Read from MH i2c: E2 62 00 [23:28:19]MH_I2C_Read... [23:28:19]Read from MH i2c: E2 62 00 7A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [23:28:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F3 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:28:19]wFMCommunicate OK [23:28:19]SAM_PROTO_GetFieldsCounters done [23:28:19]requested_item shift.num is exist - process it [23:28:19]requested_item shift.opened is exist - process it [23:28:19]req_shift_opened [23:28:19]FM_GetShiftState [23:28:19]SAM_PROTO_GetShiftState [23:28:19]wFMCommunicate request_size=4 [23:28:19]MH_SAM_APDU [23:28:19]CAPDU: 80 13 01 00 [23:28:19]Write to MH i2c: E2 08 00 7B 0E 80 13 01 00 00 00 00 00 06 [23:28:19]Write i2c OK [23:28:19]MH_I2C_Read... [23:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:20]Read from MH i2c: E2 [23:28:20]MH_I2C_Read... [23:28:20]Read from MH i2c: E2 0E 00 [23:28:20]MH_I2C_Read... [23:28:20]Read from MH i2c: E2 0E 00 7B 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 83 [23:28:20]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:28:20]wFMCommunicate OK [23:28:20]SAM_PROTO_GetShiftState done [23:28:20]FM_GetShiftState done [23:28:20]req_shift_opened done [23:28:20]requested_item shift.open_date is exist - process it [23:28:20]req_shift_open_date [23:28:20]req_shift_open_date done [23:28:20]produce_requested_data done [23:28:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112115,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:28:20]process_action_free print_text [23:28:20]json_value_free [23:28:20]json_value_free done [23:28:20]process_json_proto returns [23:28:20]Send response to host [23:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112115,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:28:20]free response buf [23:28:20]execute_script done [23:28:20]execute_script returns [23:28:20]free content buf [23:28:20]Sock 9.Close socket [23:28:20]Sock 9.Thread stoped [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]accept exits with 7 [23:32:29]New connection [23:32:29]New thread 3066957156 created [23:32:29]Thread 3066813796 joined [23:32:29]Waiting for new connection... [23:32:29] Sock 7.Parse request [23:32:29]Sock 7.Check first char [23:32:29]Sock 7.First char is OK [23:32:29]request: POST /json_proto HTTP/1.0 [23:32:29]Method: POST [23:32:29]URL: /json_proto [23:32:29]Method is POST - this is cgi request [23:32:29]url: /json_proto [23:32:29]query_string will be loaded in cgi processing [23:32:29]execute_cgi json_proto POST (null) [23:32:29]execute_cgi path=json_proto method=POST [23:32:29]POST find Content-Length [23:32:29]Host: 172.17.59.68:8080 [23:32:29]Content-Length: 678 [23:32:29]Content-Type: application/json [23:32:29] [23:32:29]POST finish read [23:32:29]Found Content-Length = 678 [23:32:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.700, "sum" : 710.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:29]execute_script... [23:32:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.700, "sum" : 710.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:32:29]POST & json_proto [23:32:29]process_json_proto [23:32:29]json parsed OK: [23:32:29]protocol is kg_v1.0 [23:32:29]action value=close_receipt [23:32:29]process_action close_receipt [23:32:29]cmd_close_receipt [23:32:29]MH_GetDate [23:32:29]Write to MH i2c: F0 00 00 7C 0E 79 [23:32:29]Write i2c OK [23:32:29]MH_I2C_Read... [23:32:29]Read from MH i2c: F0 [23:32:29]MH_I2C_Read... [23:32:29]Read from MH i2c: F0 09 00 [23:32:29]MH_I2C_Read... [23:32:29]Read from MH i2c: F0 09 00 7C 0E 00 92 0D 76 66 BC EC 60 65 6A [23:32:29]GetLastDocTimeStamp 1719012486 [23:32:29]current date 1719012754 [23:32:29]FM_GetShiftState [23:32:29]SAM_PROTO_GetShiftState [23:32:29]wFMCommunicate request_size=4 [23:32:29]MH_SAM_APDU [23:32:29]CAPDU: 80 13 01 00 [23:32:29]Write to MH i2c: E2 08 00 7D 0E 80 13 01 00 00 00 00 00 08 [23:32:29]Write i2c OK [23:32:29]MH_I2C_Read... [23:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:29]Read from MH i2c: E2 [23:32:29]MH_I2C_Read... [23:32:29]Read from MH i2c: E2 0E 00 [23:32:29]MH_I2C_Read... [23:32:29]Read from MH i2c: E2 0E 00 7D 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 85 [23:32:29]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:32:29]wFMCommunicate OK [23:32:29]SAM_PROTO_GetShiftState done [23:32:29]FM_GetShiftState done [23:32:29]opened in 1718933695 [23:32:29]opened+sec_in_day 1719020095 [23:32:29]quantity*price = 71048 [23:32:29]sum+1 = 71049 [23:32:29]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.48 袠孝袨袚袨: 710.00 袙薪械褋械薪芯: 710.00 小袛袗效袗: 0.00 袧小袩 1% : 6.29 袧袛小 12% : 75.45 袧邪谢懈褔薪褘屑懈: 710.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 284 21.06.2024 23:32 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112116 肖袩袛: 25762781340637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T233234&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112116&fm=25762781340637&tin=02508201610067®Number=0000000000092771&sum=71000 [23:32:30]StoreToDocumentArchive [23:32:30]shift 390 fd 112116 [23:32:30]save to /storage/0390/doc_00112116 [23:32:30]save last doc name /storage/0390/doc_00112116 to /storage/kkm_last_doc_name [23:32:30]save OK [23:32:30]Clear old archive folders... [23:32:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:32:30]tlvbuf is 01179E20 [23:32:30]SAM_PROTO_ClearQueue [23:32:30]wFMCommunicate request_size=4 [23:32:30]MH_SAM_APDU [23:32:30]CAPDU: 80 09 00 00 [23:32:30]Write to MH i2c: E2 08 00 8A 0E 80 09 00 00 00 00 00 00 0A [23:32:30]Write i2c OK [23:32:30]MH_I2C_Read... [23:32:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:32:30]Read from MH i2c: E2 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 03 00 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 03 00 8A 0E 00 90 00 0C [23:32:30]RAPDU: 90 00 [23:32:30]wFMCommunicate OK [23:32:30]SAM_PROTO_ClearQueue done [23:32:30]KKMCreateOFDPacket [23:32:30]OFDProtocolAddRootSTLVToBuf [23:32:30]FM_MakeSignedData [23:32:30]FM_MakeSignedData [23:32:30]SAM_PROTO_SignData [23:32:30]wFMCommunicate request_size=4 [23:32:30]MH_SAM_APDU [23:32:30]CAPDU: 80 0D 01 02 [23:32:30]Write to MH i2c: E2 08 00 8B 0E 80 0D 01 02 00 00 00 00 12 [23:32:30]Write i2c OK [23:32:30]MH_I2C_Read... [23:32:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:32:30]Read from MH i2c: E2 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 03 00 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 03 00 8B 0E 00 90 00 0D [23:32:30]RAPDU: 90 00 [23:32:30]wFMCommunicate OK [23:32:30]wFMCommunicate request_size=255 [23:32:30]MH_SAM_APDU [23:32:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 88 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 92 0D 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B5 01 00 35 04 06 00 17 [23:32:30]Write to MH i2c: E2 02 01 8C 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 CC 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 88 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 92 0D 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B5 01 00 35 04 06 00 17 00 00 81 [23:32:30]Write i2c OK [23:32:30]MH_I2C_Read... [23:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:30]Read from MH i2c: E2 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 03 00 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 03 00 8C 0E 00 90 00 0E [23:32:30]RAPDU: 90 00 [23:32:30]wFMCommunicate OK [23:32:30]wFMCommunicate request_size=10 [23:32:30]MH_SAM_APDU [23:32:30]CAPDU: 80 0D 02 02 05 6E 5D 6E 23 DD [23:32:30]Write to MH i2c: E2 0D 00 8D 0E 80 0D 02 02 05 00 6E 5D 6E 23 DD 00 00 58 [23:32:30]Write i2c OK [23:32:30]MH_I2C_Read... [23:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:32:30]Read from MH i2c: E2 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 03 00 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 03 00 8D 0E 00 90 00 0F [23:32:30]RAPDU: 90 00 [23:32:30]wFMCommunicate OK [23:32:30]wFMCommunicate request_size=4 [23:32:30]MH_SAM_APDU [23:32:30]CAPDU: 80 0D 03 02 [23:32:30]Write to MH i2c: E2 08 00 8E 0E 80 0D 03 02 00 00 00 00 17 [23:32:30]Write i2c OK [23:32:30]MH_I2C_Read... [23:32:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:32:30]Read from MH i2c: E2 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 0B 00 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 0B 00 8E 0E 00 7F 3E E4 06 B7 5C 72 6D 90 00 B1 [23:32:30]RAPDU: 7F 3E E4 06 B7 5C 72 6D 90 00 [23:32:30]wFMCommunicate OK [23:32:30]SAM_PROTO_SignData done [23:32:30]FM_MakeSignedData done [23:32:30]CreateOFDProtocolMessage [23:32:30]wFMCommunicate request_size=4 [23:32:30]MH_SAM_APDU [23:32:30]CAPDU: 80 11 00 00 [23:32:30]Write to MH i2c: E2 08 00 8F 0E 80 11 00 00 00 00 00 00 17 [23:32:30]Write i2c OK [23:32:30]MH_I2C_Read... [23:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:30]Read from MH i2c: E2 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 17 00 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: E2 17 00 8F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 69 [23:32:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:32:30]wFMCommunicate OK [23:32:30]CreateOFDProtocolMessage done [23:32:30]OFDSenderStorePacket 112116 [23:32:30]StoreOFDPacket docnum=112116 [23:32:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 03 0B 07 01 87 31 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 CC 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 88 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 92 0D 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B5 01 00 35 04 06 00 17 6E 5D 6E 23 DD 7F 3E E4 06 B7 5C 72 6D [23:32:30]CheckFolder [23:32:30]dirname=/storage/ofd_packets [23:32:30]CheckFolder done [23:32:30]ProducePacketName [23:32:30]name=ofd_packets/00112116 [23:32:30]NVStorageSaveData ofd_packets/00112116 [23:32:30]File name is /storage/ofd_packets/00112116 [23:32:30]Write 301 bytes [23:32:30]NVStorageSaveData done [23:32:30]OFDSenderStorePacket done [23:32:30]KKMCreateOFDPacket done [23:32:30]NVStorageSaveData kkm_last_timestamp [23:32:30]File name is /storage/kkm_last_timestamp [23:32:30]Write 4 bytes [23:32:30]NVStorageSaveData done [23:32:30]ExternCall_PrintAddStr [23:32:30]wPrintStart [23:32:30]Write to MH i2c: 01 00 00 90 0E 9E [23:32:30]Write i2c OK [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: 01 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: 01 07 00 [23:32:30]MH_I2C_Read... [23:32:30]Read from MH i2c: 01 07 00 90 0E 00 00 00 00 00 FF 0F B3 [23:32:30]RasterBufferAndPrint [23:32:30]line 小褔械褌 N : (1)320777 [23:32:30]line 袠袧袧: 02508201610067 [23:32:30]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [23:32:30]line 袩袪袨袛袗袞袗 [23:32:30]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [23:32:30]line 孝芯胁邪褉: 2710124130 [23:32:30]line 袗懈-92-袣-5 [23:32:30]line 10.700 * 66.40 [23:32:30]line = 710.48 [23:32:30]line 袧袛小 12% 袧小袩 1% [23:32:30]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [23:32:30]line 袨袣袪校袚袥袝袧袠袝: -0.48 [23:32:30]line 袠孝袨袚袨: 710.00 [23:32:30]line 袙薪械褋械薪芯: 710.00 [23:32:30]line 小袛袗效袗: 0.00 [23:32:30]line 袧小袩 1% : 6.29 [23:32:30]line 袧袛小 12% : 75.45 [23:32:30]line 袧邪谢懈褔薪褘屑懈: 710.00 [23:32:30]line 袘械蟹薪邪谢.: 0.00 [23:32:30]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [23:32:30]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [23:32:30]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [23:32:30]line 效械泻 284 21.06.2024 23:32 [23:32:30]line 小屑械薪邪: 390 肖肖袛: 1.0 [23:32:30]line 袟袧袦: 0300000198 [23:32:30]line 袪袧袦: 0000000000092771 [23:32:30]line 袙械褉褋懈褟 袣袣袦: 001 [23:32:30]line 肖袦: 0000000000875083 [23:32:30]line 肖袛: 112116 [23:32:30]line 肖袩袛: 25762781340637 [23:32:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T233234&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112116&fm=25762781340637&tin=02508201610067®Number=0000000000092771&sum=71000 [23:32:31]OFD Sender: Processing packet 112116 [packets to send 38, broken 37] [23:32:31]ProducePacketName [23:32:31]name=ofd_packets/00112116 [23:32:31]OFD Sender: To server: 嚂鰌G, [23:32:31]CommunicateWithHost lk.salyk.kg:30040 [23:32:31]ConnectInit lk.salyk.kg [23:32:31]written 0, free lines is 4095 [23:32:31]Write to MH i2c: 01 00 00 BB 0E C9 [23:32:31]Write i2c OK [23:32:31]MH_I2C_Read... [23:32:31]Read from MH i2c: 01 [23:32:31]MH_I2C_Read... [23:32:31]Read from MH i2c: 01 07 00 [23:32:31]MH_I2C_Read... [23:32:31]Read from MH i2c: 01 07 00 BB 0E 00 00 00 00 00 D1 0C AD [23:32:31]RasterBufferAndPrint [23:32:31]line [23:32:31]line [23:32:31]line [23:32:31]line [23:32:31]line [23:32:31]written 0, free lines is 3285 [23:32:31]MH_Cut [23:32:31]Write to MH i2c: D1 01 00 C2 0E 01 A2 [23:32:31]Write i2c OK [23:32:31]MH_I2C_Read... [23:32:31]Read from MH i2c: D1 [23:32:31]MH_I2C_Read... [23:32:31]Read from MH i2c: D1 01 00 [23:32:31]MH_I2C_Read... [23:32:31]Read from MH i2c: D1 01 00 C2 0E 00 A1 [23:32:31]Write to MH i2c: 01 00 00 C3 0E D1 [23:32:31]Write i2c OK [23:32:31]MH_I2C_Read... [23:32:32]*** Cut start [23:32:32]*** Partial cut [23:32:32]*** CUTSNS_PIN = 1 [23:32:32]*** CUTSNS_PIN = 0 [23:32:32]*** Brake cut motor [23:32:32]Read from MH i2c: 01 [23:32:32]MH_I2C_Read... [23:32:32]*** Stop cut motor [23:32:32]*** Cut end [23:32:32]Read from MH i2c: 01 07 00 [23:32:32]MH_I2C_Read... [23:32:32]Read from MH i2c: 01 07 00 C3 0E 00 00 00 00 00 FF 0F E6 [23:32:32]process_action close_receipt done [23:32:32]requested_data is exist [23:32:32]produce_requested_data [23:32:32]requested_item fm.sn is exist - process it [23:32:32]wFMCommunicate request_size=4 [23:32:32]MH_SAM_APDU [23:32:32]CAPDU: 80 11 00 00 [23:32:32]Write to MH i2c: E2 08 00 C4 0E 80 11 00 00 00 00 00 00 4C [23:32:32]Write i2c OK [23:32:32]MH_I2C_Read... [23:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:32:33]Read from MH i2c: E2 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 17 00 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 17 00 C4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [23:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:32:33]wFMCommunicate OK [23:32:33]requested_item fd.num is exist - process it [23:32:33]SAM_PROTO_GetFieldsCounters [23:32:33]wFMCommunicate request_size=4 [23:32:33]MH_SAM_APDU [23:32:33]CAPDU: 80 13 00 00 [23:32:33]Write to MH i2c: E2 08 00 C5 0E 80 13 00 00 00 00 00 00 4F [23:32:33]Write i2c OK [23:32:33]MH_I2C_Read... [23:32:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:32:33]Read from MH i2c: E2 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 62 00 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 62 00 C5 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F4 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [23:32:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F4 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:32:33]wFMCommunicate OK [23:32:33]SAM_PROTO_GetFieldsCounters done [23:32:33]requested_item shift.num is exist - process it [23:32:33]requested_item shift.opened is exist - process it [23:32:33]req_shift_opened [23:32:33]FM_GetShiftState [23:32:33]SAM_PROTO_GetShiftState [23:32:33]wFMCommunicate request_size=4 [23:32:33]MH_SAM_APDU [23:32:33]CAPDU: 80 13 01 00 [23:32:33]Write to MH i2c: E2 08 00 C6 0E 80 13 01 00 00 00 00 00 51 [23:32:33]Write i2c OK [23:32:33]MH_I2C_Read... [23:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:32:33]Read from MH i2c: E2 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 0E 00 [23:32:33]MH_I2C_Read... [23:32:33]Read from MH i2c: E2 0E 00 C6 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 CE [23:32:33]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:32:33]wFMCommunicate OK [23:32:33]SAM_PROTO_GetShiftState done [23:32:33]FM_GetShiftState done [23:32:33]req_shift_opened done [23:32:33]requested_item shift.open_date is exist - process it [23:32:33]req_shift_open_date [23:32:33]req_shift_open_date done [23:32:33]produce_requested_data done [23:32:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112116,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:32:33]process_action_free close_receipt [23:32:33]json_value_free [23:32:33]json_value_free done [23:32:33]process_json_proto returns [23:32:33]Send response to host [23:32:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112116,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:32:33]free response buf [23:32:33]execute_script done [23:32:33]execute_script returns [23:32:33]free content buf [23:32:33]Sock 7.Close socket [23:32:33]Sock 7.Thread stoped [23:34:40]ConnectInit Can't connect to host [23:34:40]CommunicateWithHost connect error [23:34:40]CommunicateWithHost err = -1 [23:34:40]OFD Sender: Server communicate error [23:34:45]OFD Sender: Processing packet 112116 [packets to send 38, broken 37] [23:34:45]ProducePacketName [23:34:45]name=ofd_packets/00112116 [23:34:45]OFD Sender: To server: 嚂鰌G, [23:34:45]CommunicateWithHost lk.salyk.kg:30040 [23:34:45]ConnectInit lk.salyk.kg [23:34:45]Connected sock=7 [23:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 03 0B 07 01 87 31 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 CC 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 88 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 92 0D 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B5 01 00 35 04 06 00 17 6E 5D 6E 23 DD 7F 3E E4 06 B7 5C 72 6D [23:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8C AA 47 00 A1 6F 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 30 38 37 35 30 38 33 10 04 04 00 F4 B5 01 00 F4 03 04 00 35 A5 75 66 B6 04 01 00 00 DF 60 88 94 C4 EA 15 AB [23:34:45]CommunicateWithHost err = 0 [23:34:45]CheckOFDResponse [23:34:45]1017 (14) - 77093643461234 [23:34:45]1041 (16) - 0000000000875083 [23:34:45]1040 (4) - 112116 [23:34:45]1012 (4) - 21.06.2024 16:07 [23:34:45]1206 (1) - 0 [23:34:45]OFD Sender: Remove packet 112116 [23:34:45]ProducePacketName [23:34:45]name=ofd_packets/00112116 [23:34:45]NVStorageDeleteData [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:23]accept exits with 9 [23:37:23]New connection [23:37:23]New thread 3066813796 created [23:37:23]Thread 3066957156 joined [23:37:23]Waiting for new connection... [23:37:23] Sock 9.Parse request [23:37:23]Sock 9.Check first char [23:37:23]Sock 9.First char is OK [23:37:23]request: POST /json_proto HTTP/1.0 [23:37:23]Method: POST [23:37:23]URL: /json_proto [23:37:23]Method is POST - this is cgi request [23:37:23]url: /json_proto [23:37:23]query_string will be loaded in cgi processing [23:37:23]execute_cgi json_proto POST (null) [23:37:23]execute_cgi path=json_proto method=POST [23:37:23]POST find Content-Length [23:37:23]Host: 172.17.59.68:8080 [23:37:23]Content-Length: 677 [23:37:23]Content-Type: application/json [23:37:23] [23:37:23]POST finish read [23:37:23]Found Content-Length = 677 [23:37:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.780, "sum" : 450.19, "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" ] } } [23:37:23]execute_script... [23:37: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)320778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.780, "sum" : 450.19, "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" ] } } [23:37:23]POST & json_proto [23:37:23]process_json_proto [23:37:23]json parsed OK: [23:37:23]protocol is kg_v1.0 [23:37:23]action value=close_receipt [23:37:23]process_action close_receipt [23:37:23]cmd_close_receipt [23:37:23]MH_GetDate [23:37:23]Write to MH i2c: F0 00 00 C7 0E C4 [23:37:23]Write i2c OK [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: F0 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: F0 09 00 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: F0 09 00 C7 0E 00 B8 0E 76 66 BC EC 60 65 DC [23:37:23]GetLastDocTimeStamp 1719012754 [23:37:23]current date 1719013048 [23:37:23]FM_GetShiftState [23:37:23]SAM_PROTO_GetShiftState [23:37:23]wFMCommunicate request_size=4 [23:37:23]MH_SAM_APDU [23:37:23]CAPDU: 80 13 01 00 [23:37:23]Write to MH i2c: E2 08 00 C8 0E 80 13 01 00 00 00 00 00 53 [23:37:23]Write i2c OK [23:37:23]MH_I2C_Read... [23:37:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:23]Read from MH i2c: E2 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 0E 00 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 0E 00 C8 0E 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 D0 [23:37:23]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:37:23]wFMCommunicate OK [23:37:23]SAM_PROTO_GetShiftState done [23:37:23]FM_GetShiftState done [23:37:23]opened in 1718933695 [23:37:23]opened+sec_in_day 1719020095 [23:37:23]quantity*price = 45019 [23:37:23]sum+1 = 45020 [23:37:23]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.19 袠孝袨袚袨: 450.00 袙薪械褋械薪芯: 450.00 小袛袗效袗: 0.00 袧小袩 1% : 3.98 袧袛小 12% : 47.81 袧邪谢懈褔薪褘屑懈: 450.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 285 21.06.2024 23:37 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112117 肖袩袛: 256623574420372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T233728&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112117&fm=256623574420372&tin=02508201610067®Number=0000000000092771&sum=45000 [23:37:25]StoreToDocumentArchive [23:37:25]shift 390 fd 112117 [23:37:25]save to /storage/0390/doc_00112117 [23:37:25]save last doc name /storage/0390/doc_00112117 to /storage/kkm_last_doc_name [23:37:25]save OK [23:37:25]Clear old archive folders... [23:37:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:37:25]tlvbuf is 01175070 [23:37:25]SAM_PROTO_ClearQueue [23:37:25]wFMCommunicate request_size=4 [23:37:25]MH_SAM_APDU [23:37:25]CAPDU: 80 09 00 00 [23:37:25]Write to MH i2c: E2 08 00 D5 0E 80 09 00 00 00 00 00 00 55 [23:37:25]Write i2c OK [23:37:25]MH_I2C_Read... [23:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:25]Read from MH i2c: E2 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 03 00 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 03 00 D5 0E 00 90 00 57 [23:37:25]RAPDU: 90 00 [23:37:25]wFMCommunicate OK [23:37:25]SAM_PROTO_ClearQueue done [23:37:25]KKMCreateOFDPacket [23:37:25]OFDProtocolAddRootSTLVToBuf [23:37:25]FM_MakeSignedData [23:37:25]FM_MakeSignedData [23:37:25]SAM_PROTO_SignData [23:37:25]wFMCommunicate request_size=4 [23:37:25]MH_SAM_APDU [23:37:25]CAPDU: 80 0D 01 02 [23:37:25]Write to MH i2c: E2 08 00 D6 0E 80 0D 01 02 00 00 00 00 5D [23:37:25]Write i2c OK [23:37:25]MH_I2C_Read... [23:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:25]Read from MH i2c: E2 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 03 00 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 03 00 D6 0E 00 90 00 58 [23:37:25]RAPDU: 90 00 [23:37:25]wFMCommunicate OK [23:37:25]wFMCommunicate request_size=255 [23:37:25]MH_SAM_APDU [23:37:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 1D 01 00 00 F4 03 04 00 B8 0E 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B5 01 00 35 04 06 00 E9 [23:37:25]Write to MH i2c: E2 02 01 D7 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 1D 01 00 00 F4 03 04 00 B8 0E 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B5 01 00 35 04 06 00 E9 00 00 A7 [23:37:25]Write i2c OK [23:37:25]MH_I2C_Read... [23:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:25]Read from MH i2c: E2 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 03 00 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 03 00 D7 0E 00 90 00 59 [23:37:25]RAPDU: 90 00 [23:37:25]wFMCommunicate OK [23:37:25]wFMCommunicate request_size=10 [23:37:25]MH_SAM_APDU [23:37:25]CAPDU: 80 0D 02 02 05 65 D4 FE 8B 94 [23:37:25]Write to MH i2c: E2 0D 00 D8 0E 80 0D 02 02 05 00 65 D4 FE 8B 94 00 00 C0 [23:37:25]Write i2c OK [23:37:25]MH_I2C_Read... [23:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:25]Read from MH i2c: E2 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 03 00 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 03 00 D8 0E 00 90 00 5A [23:37:25]RAPDU: 90 00 [23:37:25]wFMCommunicate OK [23:37:25]wFMCommunicate request_size=4 [23:37:25]MH_SAM_APDU [23:37:25]CAPDU: 80 0D 03 02 [23:37:25]Write to MH i2c: E2 08 00 D9 0E 80 0D 03 02 00 00 00 00 62 [23:37:25]Write i2c OK [23:37:25]MH_I2C_Read... [23:37:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:25]Read from MH i2c: E2 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 0B 00 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 0B 00 D9 0E 00 58 78 2F 5C D0 9A 9A 7B 90 00 3D [23:37:25]RAPDU: 58 78 2F 5C D0 9A 9A 7B 90 00 [23:37:25]wFMCommunicate OK [23:37:25]SAM_PROTO_SignData done [23:37:25]FM_MakeSignedData done [23:37:25]CreateOFDProtocolMessage [23:37:25]wFMCommunicate request_size=4 [23:37:25]MH_SAM_APDU [23:37:25]CAPDU: 80 11 00 00 [23:37:25]Write to MH i2c: E2 08 00 DA 0E 80 11 00 00 00 00 00 00 62 [23:37:25]Write i2c OK [23:37:25]MH_I2C_Read... [23:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:25]Read from MH i2c: E2 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 17 00 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 17 00 DA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B4 [23:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:37:25]wFMCommunicate OK [23:37:25]CreateOFDProtocolMessage done [23:37:25]OFDSenderStorePacket 112117 [23:37:25]StoreOFDPacket docnum=112117 [23:37:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 64 A6 07 01 C5 83 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 1D 01 00 00 F4 03 04 00 B8 0E 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B5 01 00 35 04 06 00 E9 65 D4 FE 8B 94 58 78 2F 5C D0 9A 9A 7B [23:37:25]CheckFolder [23:37:25]dirname=/storage/ofd_packets [23:37:25]CheckFolder done [23:37:25]ProducePacketName [23:37:25]name=ofd_packets/00112117 [23:37:25]NVStorageSaveData ofd_packets/00112117 [23:37:25]File name is /storage/ofd_packets/00112117 [23:37:25]Write 301 bytes [23:37:25]NVStorageSaveData done [23:37:25]OFDSenderStorePacket done [23:37:25]KKMCreateOFDPacket done [23:37:25]NVStorageSaveData kkm_last_timestamp [23:37:25]File name is /storage/kkm_last_timestamp [23:37:25]Write 4 bytes [23:37:25]NVStorageSaveData done [23:37:25]ExternCall_PrintAddStr [23:37:25]wPrintStart [23:37:25]Write to MH i2c: 01 00 00 DB 0E E9 [23:37:25]Write i2c OK [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: 01 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: 01 07 00 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: 01 07 00 DB 0E 00 00 00 00 00 FF 0F FE [23:37:25]RasterBufferAndPrint [23:37:25]line 小褔械褌 N : (1)320778 [23:37:25]line 袠袧袧: 02508201610067 [23:37:25]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [23:37:25]line 袩袪袨袛袗袞袗 [23:37:25]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [23:37:25]line 孝芯胁邪褉: 2710124130 [23:37:25]line 袗懈-92-袣-5 [23:37:25]line 6.780 * 66.40 [23:37:25]line = 450.19 [23:37:25]line 袧袛小 12% 袧小袩 1% [23:37:25]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [23:37:25]line 袨袣袪校袚袥袝袧袠袝: -0.19 [23:37:25]line 袠孝袨袚袨: 450.00 [23:37:25]line 袙薪械褋械薪芯: 450.00 [23:37:25]line 小袛袗效袗: 0.00 [23:37:25]line 袧小袩 1% : 3.98 [23:37:25]line 袧袛小 12% : 47.81 [23:37:25]line 袧邪谢懈褔薪褘屑懈: 450.00 [23:37:25]line 袘械蟹薪邪谢.: 0.00 [23:37:25]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [23:37:25]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [23:37:25]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [23:37:25]line 效械泻 285 21.06.2024 23:37 [23:37:25]line 小屑械薪邪: 390 肖肖袛: 1.0 [23:37:25]line 袟袧袦: 0300000198 [23:37:25]line 袪袧袦: 0000000000092771 [23:37:25]line 袙械褉褋懈褟 袣袣袦: 001 [23:37:25]line 肖袦: 0000000000875083 [23:37:25]line 肖袛: 112117 [23:37:25]line 肖袩袛: 256623574420372 [23:37:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T233728&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112117&fm=256623574420372&tin=02508201610067®Number=0000000000092771&sum=45000 [23:37:25]OFD Sender: Processing packet 112117 [packets to send 38, broken 37] [23:37:25]ProducePacketName [23:37:25]name=ofd_packets/00112117 [23:37:25]OFD Sender: To server: 嚂鰌G, [23:37:25]CommunicateWithHost lk.salyk.kg:30040 [23:37:25]ConnectInit lk.salyk.kg [23:37:25]written 0, free lines is 4095 [23:37:26]Connected sock=10 [23:37:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 64 A6 07 01 C5 83 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 1D 01 00 00 F4 03 04 00 B8 0E 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B5 01 00 35 04 06 00 E9 65 D4 FE 8B 94 58 78 2F 5C D0 9A 9A 7B [23:37:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C7 18 47 00 A2 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 30 38 37 35 30 38 33 10 04 04 00 F5 B5 01 00 F4 03 04 00 D6 A5 75 66 B6 04 01 00 00 A7 59 5D 51 A9 BD 82 05 [23:37:26]CommunicateWithHost err = 0 [23:37:26]CheckOFDResponse [23:37:26]1017 (14) - 77093643461234 [23:37:26]1041 (16) - 0000000000875083 [23:37:26]1040 (4) - 112117 [23:37:26]1012 (4) - 21.06.2024 16:09 [23:37:26]1206 (1) - 0 [23:37:26]OFD Sender: Remove packet 112117 [23:37:26]ProducePacketName [23:37:26]name=ofd_packets/00112117 [23:37:26]NVStorageDeleteData [23:37:26]Write to MH i2c: 01 00 00 06 0F 15 [23:37:26]Write i2c OK [23:37:26]MH_I2C_Read... [23:37:26]Read from MH i2c: 01 [23:37:26]MH_I2C_Read... [23:37:26]Read from MH i2c: 01 07 00 [23:37:26]MH_I2C_Read... [23:37:26]Read from MH i2c: 01 07 00 06 0F 00 00 00 00 00 D4 0C FC [23:37:26]RasterBufferAndPrint [23:37:26]line [23:37:26]line [23:37:26]line [23:37:26]line [23:37:26]line [23:37:26]written 0, free lines is 3292 [23:37:26]MH_Cut [23:37:26]Write to MH i2c: D1 01 00 0D 0F 01 EE [23:37:26]Write i2c OK [23:37:26]MH_I2C_Read... [23:37:26]Read from MH i2c: D1 [23:37:26]MH_I2C_Read... [23:37:26]Read from MH i2c: D1 01 00 [23:37:26]MH_I2C_Read... [23:37:26]Read from MH i2c: D1 01 00 0D 0F 00 ED [23:37:26]Write to MH i2c: 01 00 00 0E 0F 1D [23:37:26]Write i2c OK [23:37:26]MH_I2C_Read... [23:37:26]OFD Sender: No OFD packet to send [23:37:27]*** Cut start [23:37:27]*** Partial cut [23:37:27]*** CUTSNS_PIN = 1 [23:37:27]*** CUTSNS_PIN = 0 [23:37:27]*** Brake cut motor [23:37:27]Read from MH i2c: 01 [23:37:27]MH_I2C_Read... [23:37:27]*** Stop cut motor [23:37:27]*** Cut end [23:37:27]Read from MH i2c: 01 07 00 [23:37:27]MH_I2C_Read... [23:37:27]Read from MH i2c: 01 07 00 0E 0F 00 00 00 00 00 FF 0F 32 [23:37:27]process_action close_receipt done [23:37:27]requested_data is exist [23:37:27]produce_requested_data [23:37:27]requested_item fm.sn is exist - process it [23:37:27]wFMCommunicate request_size=4 [23:37:27]MH_SAM_APDU [23:37:27]CAPDU: 80 11 00 00 [23:37:27]Write to MH i2c: E2 08 00 0F 0F 80 11 00 00 00 00 00 00 98 [23:37:27]Write i2c OK [23:37:27]MH_I2C_Read... [23:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:27]Read from MH i2c: E2 [23:37:27]MH_I2C_Read... [23:37:27]Read from MH i2c: E2 17 00 [23:37:27]MH_I2C_Read... [23:37:27]Read from MH i2c: E2 17 00 0F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EA [23:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:37:27]wFMCommunicate OK [23:37:27]requested_item fd.num is exist - process it [23:37:27]SAM_PROTO_GetFieldsCounters [23:37:27]wFMCommunicate request_size=4 [23:37:27]MH_SAM_APDU [23:37:27]CAPDU: 80 13 00 00 [23:37:27]Write to MH i2c: E2 08 00 10 0F 80 13 00 00 00 00 00 00 9B [23:37:27]Write i2c OK [23:37:27]MH_I2C_Read... [23:37:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:27]Read from MH i2c: E2 [23:37:27]MH_I2C_Read... [23:37:27]Read from MH i2c: E2 62 00 [23:37:27]MH_I2C_Read... [23:37:27]Read from MH i2c: E2 62 00 10 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F5 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [23:37:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F5 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:27]wFMCommunicate OK [23:37:27]SAM_PROTO_GetFieldsCounters done [23:37:27]requested_item shift.num is exist - process it [23:37:27]requested_item shift.opened is exist - process it [23:37:27]req_shift_opened [23:37:27]FM_GetShiftState [23:37:27]SAM_PROTO_GetShiftState [23:37:27]wFMCommunicate request_size=4 [23:37:27]MH_SAM_APDU [23:37:27]CAPDU: 80 13 01 00 [23:37:27]Write to MH i2c: E2 08 00 11 0F 80 13 01 00 00 00 00 00 9D [23:37:27]Write i2c OK [23:37:27]MH_I2C_Read... [23:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:27]Read from MH i2c: E2 [23:37:27]MH_I2C_Read... [23:37:27]Read from MH i2c: E2 0E 00 [23:37:27]MH_I2C_Read... [23:37:27]Read from MH i2c: E2 0E 00 11 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1A [23:37:27]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:37:27]wFMCommunicate OK [23:37:27]SAM_PROTO_GetShiftState done [23:37:27]FM_GetShiftState done [23:37:27]req_shift_opened done [23:37:27]requested_item shift.open_date is exist - process it [23:37:27]req_shift_open_date [23:37:27]req_shift_open_date done [23:37:27]produce_requested_data done [23:37:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112117,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:37:27]process_action_free close_receipt [23:37:27]json_value_free [23:37:27]json_value_free done [23:37:27]process_json_proto returns [23:37:27]Send response to host [23:37:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112117,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:37:27]free response buf [23:37:27]execute_script done [23:37:27]execute_script returns [23:37:27]free content buf [23:37:27]Sock 9.Close socket [23:37:27]Sock 9.Thread stoped [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:02]accept exits with 7 [23:40:02]New connection [23:40:02]New thread 3066957156 created [23:40:02]Thread 3066813796 joined [23:40:02]Waiting for new connection... [23:40:02] Sock 7.Parse request [23:40:02]Sock 7.Check first char [23:40:02]Sock 7.First char is OK [23:40:02]request: POST /json_proto HTTP/1.0 [23:40:02]Method: POST [23:40:02]URL: /json_proto [23:40:02]Method is POST - this is cgi request [23:40:02]url: /json_proto [23:40:02]query_string will be loaded in cgi processing [23:40:02]execute_cgi json_proto POST (null) [23:40:02]execute_cgi path=json_proto method=POST [23:40:02]POST find Content-Length [23:40:02]Host: 172.17.59.68:8080 [23:40:02]Content-Length: 677 [23:40:02]Content-Type: application/json [23:40:02] [23:40:02]POST finish read [23:40:02]Found Content-Length = 677 [23:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:02]execute_script... [23:40: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)320779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:02]POST & json_proto [23:40:02]process_json_proto [23:40:02]json parsed OK: [23:40:02]protocol is kg_v1.0 [23:40:02]action value=close_receipt [23:40:02]process_action close_receipt [23:40:02]cmd_close_receipt [23:40:02]MH_GetDate [23:40:02]Write to MH i2c: F0 00 00 12 0F 10 [23:40:02]Write i2c OK [23:40:02]MH_I2C_Read... [23:40:02]Read from MH i2c: F0 [23:40:02]MH_I2C_Read... [23:40:02]Read from MH i2c: F0 09 00 [23:40:02]MH_I2C_Read... [23:40:02]Read from MH i2c: F0 09 00 12 0F 00 57 0F 76 66 BC EC 60 65 C8 [23:40:02]GetLastDocTimeStamp 1719013048 [23:40:02]current date 1719013207 [23:40:02]FM_GetShiftState [23:40:02]SAM_PROTO_GetShiftState [23:40:02]wFMCommunicate request_size=4 [23:40:02]MH_SAM_APDU [23:40:02]CAPDU: 80 13 01 00 [23:40:02]Write to MH i2c: E2 08 00 13 0F 80 13 01 00 00 00 00 00 9F [23:40:02]Write i2c OK [23:40:02]MH_I2C_Read... [23:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:02]Read from MH i2c: E2 [23:40:02]MH_I2C_Read... [23:40:02]Read from MH i2c: E2 0E 00 [23:40:02]MH_I2C_Read... [23:40:02]Read from MH i2c: E2 0E 00 13 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 1C [23:40:02]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:40:02]wFMCommunicate OK [23:40:02]SAM_PROTO_GetShiftState done [23:40:02]FM_GetShiftState done [23:40:02]opened in 1718933695 [23:40:02]opened+sec_in_day 1719020095 [23:40:02]quantity*price = 30012 [23:40:02]sum+1 = 30014 [23:40:02]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.13 袠孝袨袚袨: 300.00 袙薪械褋械薪芯: 300.00 小袛袗效袗: 0.00 袧小袩 1% : 2.66 袧袛小 12% : 31.87 袧邪谢懈褔薪褘屑懈: 300.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 286 21.06.2024 23:40 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112118 肖袩袛: 275606639977428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234007&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112118&fm=275606639977428&tin=02508201610067®Number=0000000000092771&sum=30000 [23:40:03]StoreToDocumentArchive [23:40:03]shift 390 fd 112118 [23:40:03]save to /storage/0390/doc_00112118 [23:40:03]save last doc name /storage/0390/doc_00112118 to /storage/kkm_last_doc_name [23:40:03]save OK [23:40:03]Clear old archive folders... [23:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:40:03]tlvbuf is 011245A0 [23:40:03]SAM_PROTO_ClearQueue [23:40:03]wFMCommunicate request_size=4 [23:40:03]MH_SAM_APDU [23:40:03]CAPDU: 80 09 00 00 [23:40:03]Write to MH i2c: E2 08 00 20 0F 80 09 00 00 00 00 00 00 A1 [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 20 0F 00 90 00 A3 [23:40:03]RAPDU: 90 00 [23:40:03]wFMCommunicate OK [23:40:03]SAM_PROTO_ClearQueue done [23:40:03]KKMCreateOFDPacket [23:40:03]OFDProtocolAddRootSTLVToBuf [23:40:03]FM_MakeSignedData [23:40:03]FM_MakeSignedData [23:40:03]SAM_PROTO_SignData [23:40:03]wFMCommunicate request_size=4 [23:40:03]MH_SAM_APDU [23:40:03]CAPDU: 80 0D 01 02 [23:40:03]Write to MH i2c: E2 08 00 21 0F 80 0D 01 02 00 00 00 00 A9 [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 21 0F 00 90 00 A4 [23:40:03]RAPDU: 90 00 [23:40:03]wFMCommunicate OK [23:40:03]wFMCommunicate request_size=255 [23:40:03]MH_SAM_APDU [23:40:03]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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 1E 01 00 00 F4 03 04 00 57 0F 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B5 01 00 35 04 06 00 FA [23:40:03]Write to MH i2c: E2 02 01 22 0F 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 1E 01 00 00 F4 03 04 00 57 0F 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B5 01 00 35 04 06 00 FA 00 00 89 [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 22 0F 00 90 00 A5 [23:40:03]RAPDU: 90 00 [23:40:03]wFMCommunicate OK [23:40:03]wFMCommunicate request_size=10 [23:40:03]MH_SAM_APDU [23:40:03]CAPDU: 80 0D 02 02 05 A9 AB DF A3 D4 [23:40:03]Write to MH i2c: E2 0D 00 23 0F 80 0D 02 02 05 00 A9 AB DF A3 D4 00 00 60 [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 03 00 23 0F 00 90 00 A6 [23:40:03]RAPDU: 90 00 [23:40:03]wFMCommunicate OK [23:40:03]wFMCommunicate request_size=4 [23:40:03]MH_SAM_APDU [23:40:03]CAPDU: 80 0D 03 02 [23:40:03]Write to MH i2c: E2 08 00 24 0F 80 0D 03 02 00 00 00 00 AE [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 0B 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 0B 00 24 0F 00 C7 A7 6A 4C 6C CC 1B 89 90 00 AF [23:40:03]RAPDU: C7 A7 6A 4C 6C CC 1B 89 90 00 [23:40:03]wFMCommunicate OK [23:40:03]SAM_PROTO_SignData done [23:40:03]FM_MakeSignedData done [23:40:03]CreateOFDProtocolMessage [23:40:03]wFMCommunicate request_size=4 [23:40:03]MH_SAM_APDU [23:40:03]CAPDU: 80 11 00 00 [23:40:03]Write to MH i2c: E2 08 00 25 0F 80 11 00 00 00 00 00 00 AE [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:03]Read from MH i2c: E2 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 17 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: E2 17 00 25 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 00 [23:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:40:03]wFMCommunicate OK [23:40:03]CreateOFDProtocolMessage done [23:40:03]OFDSenderStorePacket 112118 [23:40:03]StoreOFDPacket docnum=112118 [23:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 60 07 01 C3 0F 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 1E 01 00 00 F4 03 04 00 57 0F 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B5 01 00 35 04 06 00 FA A9 AB DF A3 D4 C7 A7 6A 4C 6C CC 1B 89 [23:40:03]CheckFolder [23:40:03]dirname=/storage/ofd_packets [23:40:03]CheckFolder done [23:40:03]ProducePacketName [23:40:03]name=ofd_packets/00112118 [23:40:03]NVStorageSaveData ofd_packets/00112118 [23:40:03]File name is /storage/ofd_packets/00112118 [23:40:03]Write 301 bytes [23:40:03]NVStorageSaveData done [23:40:03]OFDSenderStorePacket done [23:40:03]KKMCreateOFDPacket done [23:40:03]NVStorageSaveData kkm_last_timestamp [23:40:03]File name is /storage/kkm_last_timestamp [23:40:03]Write 4 bytes [23:40:03]NVStorageSaveData done [23:40:03]ExternCall_PrintAddStr [23:40:03]wPrintStart [23:40:03]Write to MH i2c: 01 00 00 26 0F 35 [23:40:03]Write i2c OK [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: 01 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: 01 07 00 [23:40:03]MH_I2C_Read... [23:40:03]Read from MH i2c: 01 07 00 26 0F 00 00 00 00 00 FF 0F 4A [23:40:03]RasterBufferAndPrint [23:40:03]line 小褔械褌 N : (1)320779 [23:40:03]line 袠袧袧: 02508201610067 [23:40:03]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [23:40:03]line 袩袪袨袛袗袞袗 [23:40:03]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [23:40:03]line 孝芯胁邪褉: 2710124130 [23:40:03]line 袗懈-92-袣-5 [23:40:03]line 4.520 * 66.40 [23:40:03]line = 300.13 [23:40:03]line 袧袛小 12% 袧小袩 1% [23:40:03]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [23:40:03]line 袨袣袪校袚袥袝袧袠袝: -0.13 [23:40:03]line 袠孝袨袚袨: 300.00 [23:40:03]line 袙薪械褋械薪芯: 300.00 [23:40:03]line 小袛袗效袗: 0.00 [23:40:03]line 袧小袩 1% : 2.66 [23:40:03]line 袧袛小 12% : 31.87 [23:40:03]line 袧邪谢懈褔薪褘屑懈: 300.00 [23:40:03]line 袘械蟹薪邪谢.: 0.00 [23:40:03]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [23:40:03]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [23:40:03]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [23:40:03]line 效械泻 286 21.06.2024 23:40 [23:40:03]line 小屑械薪邪: 390 肖肖袛: 1.0 [23:40:04]line 袟袧袦: 0300000198 [23:40:04]line 袪袧袦: 0000000000092771 [23:40:04]line 袙械褉褋懈褟 袣袣袦: 001 [23:40:04]line 肖袦: 0000000000875083 [23:40:04]line 肖袛: 112118 [23:40:04]line 肖袩袛: 275606639977428 [23:40:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234007&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112118&fm=275606639977428&tin=02508201610067®Number=0000000000092771&sum=30000 [23:40:04]OFD Sender: Processing packet 112118 [packets to send 38, broken 37] [23:40:04]ProducePacketName [23:40:04]name=ofd_packets/00112118 [23:40:04]OFD Sender: To server: 嚂鰌G, [23:40:04]CommunicateWithHost lk.salyk.kg:30040 [23:40:04]ConnectInit lk.salyk.kg [23:40:04]written 0, free lines is 4095 [23:40:04]Connected sock=10 [23:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 60 07 01 C3 0F 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 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 1E 01 00 00 F4 03 04 00 57 0F 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B5 01 00 35 04 06 00 FA A9 AB DF A3 D4 C7 A7 6A 4C 6C CC 1B 89 [23:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3D 59 47 00 DB 30 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 30 38 37 35 30 38 33 10 04 04 00 F6 B5 01 00 F4 03 04 00 74 A6 75 66 B6 04 01 00 00 1A D9 D6 33 21 02 26 32 [23:40:04]CommunicateWithHost err = 0 [23:40:04]CheckOFDResponse [23:40:04]1017 (14) - 77093643461234 [23:40:04]1041 (16) - 0000000000875083 [23:40:04]1040 (4) - 112118 [23:40:04]1012 (4) - 21.06.2024 16:12 [23:40:04]1206 (1) - 0 [23:40:04]OFD Sender: Remove packet 112118 [23:40:04]ProducePacketName [23:40:04]name=ofd_packets/00112118 [23:40:04]NVStorageDeleteData [23:40:04]Write to MH i2c: 01 00 00 51 0F 60 [23:40:04]Write i2c OK [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: 01 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: 01 07 00 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: 01 07 00 51 0F 00 00 00 00 00 E1 0C 54 [23:40:04]RasterBufferAndPrint [23:40:04]line [23:40:04]line [23:40:04]line [23:40:04]line [23:40:04]line [23:40:04]written 0, free lines is 3303 [23:40:04]MH_Cut [23:40:04]Write to MH i2c: D1 01 00 58 0F 01 39 [23:40:04]Write i2c OK [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: D1 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: D1 01 00 [23:40:04]MH_I2C_Read... [23:40:04]Read from MH i2c: D1 01 00 58 0F 00 38 [23:40:04]Write to MH i2c: 01 00 00 59 0F 68 [23:40:04]Write i2c OK [23:40:04]MH_I2C_Read... [23:40:04]OFD Sender: No OFD packet to send [23:40:05]*** Cut start [23:40:05]*** Partial cut [23:40:05]*** CUTSNS_PIN = 1 [23:40:05]*** CUTSNS_PIN = 0 [23:40:05]*** Brake cut motor [23:40:05]Read from MH i2c: 01 [23:40:05]MH_I2C_Read... [23:40:05]*** Stop cut motor [23:40:05]*** Cut end [23:40:05]Read from MH i2c: 01 07 00 [23:40:05]MH_I2C_Read... [23:40:05]Read from MH i2c: 01 07 00 59 0F 00 00 00 00 00 FF 0F 7D [23:40:05]process_action close_receipt done [23:40:05]requested_data is exist [23:40:05]produce_requested_data [23:40:05]requested_item fm.sn is exist - process it [23:40:05]wFMCommunicate request_size=4 [23:40:05]MH_SAM_APDU [23:40:05]CAPDU: 80 11 00 00 [23:40:05]Write to MH i2c: E2 08 00 5A 0F 80 11 00 00 00 00 00 00 E3 [23:40:05]Write i2c OK [23:40:05]MH_I2C_Read... [23:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:05]Read from MH i2c: E2 [23:40:05]MH_I2C_Read... [23:40:05]Read from MH i2c: E2 17 00 [23:40:05]MH_I2C_Read... [23:40:05]Read from MH i2c: E2 17 00 5A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 35 [23:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:40:05]wFMCommunicate OK [23:40:05]requested_item fd.num is exist - process it [23:40:05]SAM_PROTO_GetFieldsCounters [23:40:05]wFMCommunicate request_size=4 [23:40:05]MH_SAM_APDU [23:40:05]CAPDU: 80 13 00 00 [23:40:05]Write to MH i2c: E2 08 00 5B 0F 80 13 00 00 00 00 00 00 E6 [23:40:05]Write i2c OK [23:40:05]MH_I2C_Read... [23:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:06]Read from MH i2c: E2 [23:40:06]MH_I2C_Read... [23:40:06]Read from MH i2c: E2 62 00 [23:40:06]MH_I2C_Read... [23:40:06]Read from MH i2c: E2 62 00 5B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F6 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [23:40:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F6 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:40:06]wFMCommunicate OK [23:40:06]SAM_PROTO_GetFieldsCounters done [23:40:06]requested_item shift.num is exist - process it [23:40:06]requested_item shift.opened is exist - process it [23:40:06]req_shift_opened [23:40:06]FM_GetShiftState [23:40:06]SAM_PROTO_GetShiftState [23:40:06]wFMCommunicate request_size=4 [23:40:06]MH_SAM_APDU [23:40:06]CAPDU: 80 13 01 00 [23:40:06]Write to MH i2c: E2 08 00 5C 0F 80 13 01 00 00 00 00 00 E8 [23:40:06]Write i2c OK [23:40:06]MH_I2C_Read... [23:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:06]Read from MH i2c: E2 [23:40:06]MH_I2C_Read... [23:40:06]Read from MH i2c: E2 0E 00 [23:40:06]MH_I2C_Read... [23:40:06]Read from MH i2c: E2 0E 00 5C 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 65 [23:40:06]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:40:06]wFMCommunicate OK [23:40:06]SAM_PROTO_GetShiftState done [23:40:06]FM_GetShiftState done [23:40:06]req_shift_opened done [23:40:06]requested_item shift.open_date is exist - process it [23:40:06]req_shift_open_date [23:40:06]req_shift_open_date done [23:40:06]produce_requested_data done [23:40:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112118,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:40:06]process_action_free close_receipt [23:40:06]json_value_free [23:40:06]json_value_free done [23:40:06]process_json_proto returns [23:40:06]Send response to host [23:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112118,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:40:06]free response buf [23:40:06]execute_script done [23:40:06]execute_script returns [23:40:06]free content buf [23:40:06]Sock 7.Close socket [23:40:06]Sock 7.Thread stoped [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:08]accept exits with 9 [23:42:08]New connection [23:42:08]New thread 3066813796 created [23:42:08]Thread 3066957156 joined [23:42:08]Waiting for new connection... [23:42:08] Sock 9.Parse request [23:42:08]Sock 9.Check first char [23:42:08]Sock 9.First char is OK [23:42:08]request: POST /json_proto HTTP/1.0 [23:42:08]Method: POST [23:42:08]URL: /json_proto [23:42:08]Method is POST - this is cgi request [23:42:08]url: /json_proto [23:42:08]query_string will be loaded in cgi processing [23:42:08]execute_cgi json_proto POST (null) [23:42:08]execute_cgi path=json_proto method=POST [23:42:08]POST find Content-Length [23:42:08]Host: 172.17.59.68:8080 [23:42:08]Content-Length: 805 [23:42:08]Content-Type: application/json [23:42:08] [23:42:08]POST finish read [23:42:08]Found Content-Length = 805 [23:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 100.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:08]execute_script... [23:42: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)320780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 100.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:08]POST & json_proto [23:42:08]process_json_proto [23:42:08]json parsed OK: [23:42:08]protocol is kg_v1.0 [23:42:08]action value=close_receipt [23:42:08]process_action close_receipt [23:42:08]cmd_close_receipt [23:42:08]MH_GetDate [23:42:08]Write to MH i2c: F0 00 00 5D 0F 5B [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: F0 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: F0 09 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: F0 09 00 5D 0F 00 D5 0F 76 66 BC EC 60 65 91 [23:42:08]GetLastDocTimeStamp 1719013207 [23:42:08]current date 1719013333 [23:42:08]FM_GetShiftState [23:42:08]SAM_PROTO_GetShiftState [23:42:08]wFMCommunicate request_size=4 [23:42:08]MH_SAM_APDU [23:42:08]CAPDU: 80 13 01 00 [23:42:08]Write to MH i2c: E2 08 00 5E 0F 80 13 01 00 00 00 00 00 EA [23:42:08]Write i2c OK [23:42:08]MH_I2C_Read... [23:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:08]Read from MH i2c: E2 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 0E 00 [23:42:08]MH_I2C_Read... [23:42:08]Read from MH i2c: E2 0E 00 5E 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 67 [23:42:08]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:42:08]wFMCommunicate OK [23:42:08]SAM_PROTO_GetShiftState done [23:42:08]FM_GetShiftState done [23:42:08]opened in 1718933695 [23:42:08]opened+sec_in_day 1719020095 [23:42:08]quantity*price = 10026 [23:42:08]sum+1 = 10027 [23:42:08]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 100.26 袧小袩 1% : 0.89 袧袛小 12% : 10.65 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 100.26 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 287 21.06.2024 23:42 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112119 肖袩袛: 234253761194037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234213&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112119&fm=234253761194037&tin=02508201610067®Number=0000000000092771&sum=10026 [23:42:09]StoreToDocumentArchive [23:42:09]shift 390 fd 112119 [23:42:09]save to /storage/0390/doc_00112119 [23:42:09]save last doc name /storage/0390/doc_00112119 to /storage/kkm_last_doc_name [23:42:09]save OK [23:42:09]Clear old archive folders... [23:42:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:42:09]tlvbuf is 01153050 [23:42:09]SAM_PROTO_ClearQueue [23:42:09]wFMCommunicate request_size=4 [23:42:09]MH_SAM_APDU [23:42:09]CAPDU: 80 09 00 00 [23:42:09]Write to MH i2c: E2 08 00 6B 0F 80 09 00 00 00 00 00 00 EC [23:42:09]Write i2c OK [23:42:09]MH_I2C_Read... [23:42:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:09]Read from MH i2c: E2 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 03 00 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 03 00 6B 0F 00 90 00 EE [23:42:09]RAPDU: 90 00 [23:42:09]wFMCommunicate OK [23:42:09]SAM_PROTO_ClearQueue done [23:42:09]KKMCreateOFDPacket [23:42:09]OFDProtocolAddRootSTLVToBuf [23:42:09]FM_MakeSignedData [23:42:09]FM_MakeSignedData [23:42:09]SAM_PROTO_SignData [23:42:09]wFMCommunicate request_size=4 [23:42:09]MH_SAM_APDU [23:42:09]CAPDU: 80 0D 01 02 [23:42:09]Write to MH i2c: E2 08 00 6C 0F 80 0D 01 02 00 00 00 00 F4 [23:42:09]Write i2c OK [23:42:09]MH_I2C_Read... [23:42:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:09]Read from MH i2c: E2 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 03 00 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 03 00 6C 0F 00 90 00 EF [23:42:09]RAPDU: 90 00 [23:42:09]wFMCommunicate OK [23:42:09]wFMCommunicate request_size=255 [23:42:09]MH_SAM_APDU [23:42: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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 D5 0F 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B5 01 00 35 04 06 00 D5 [23:42:09]Write to MH i2c: E2 02 01 6D 0F 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 D5 0F 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B5 01 00 35 04 06 00 D5 00 00 54 [23:42:09]Write i2c OK [23:42:09]MH_I2C_Read... [23:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:09]Read from MH i2c: E2 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 03 00 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 03 00 6D 0F 00 90 00 F0 [23:42:09]RAPDU: 90 00 [23:42:09]wFMCommunicate OK [23:42:09]wFMCommunicate request_size=10 [23:42:09]MH_SAM_APDU [23:42:09]CAPDU: 80 0D 02 02 05 0D 74 39 28 35 [23:42:09]Write to MH i2c: E2 0D 00 6E 0F 80 0D 02 02 05 00 0D 74 39 28 35 00 00 18 [23:42:09]Write i2c OK [23:42:09]MH_I2C_Read... [23:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:09]Read from MH i2c: E2 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 03 00 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 03 00 6E 0F 00 90 00 F1 [23:42:09]RAPDU: 90 00 [23:42:09]wFMCommunicate OK [23:42:09]wFMCommunicate request_size=4 [23:42:09]MH_SAM_APDU [23:42:09]CAPDU: 80 0D 03 02 [23:42:09]Write to MH i2c: E2 08 00 6F 0F 80 0D 03 02 00 00 00 00 F9 [23:42:09]Write i2c OK [23:42:09]MH_I2C_Read... [23:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:09]Read from MH i2c: E2 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 0B 00 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 0B 00 6F 0F 00 EB E5 95 5F 24 E3 57 03 90 00 1F [23:42:09]RAPDU: EB E5 95 5F 24 E3 57 03 90 00 [23:42:09]wFMCommunicate OK [23:42:09]SAM_PROTO_SignData done [23:42:09]FM_MakeSignedData done [23:42:09]CreateOFDProtocolMessage [23:42:09]wFMCommunicate request_size=4 [23:42:09]MH_SAM_APDU [23:42:09]CAPDU: 80 11 00 00 [23:42:09]Write to MH i2c: E2 08 00 70 0F 80 11 00 00 00 00 00 00 F9 [23:42:09]Write i2c OK [23:42:09]MH_I2C_Read... [23:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:09]Read from MH i2c: E2 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 17 00 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: E2 17 00 70 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4B [23:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:42:09]wFMCommunicate OK [23:42:09]CreateOFDProtocolMessage done [23:42:09]OFDSenderStorePacket 112119 [23:42:09]StoreOFDPacket docnum=112119 [23:42:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4E 83 07 01 BE 27 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 D5 0F 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B5 01 00 35 04 06 00 D5 0D 74 39 28 35 EB E5 95 5F 24 E3 57 03 [23:42:09]CheckFolder [23:42:09]dirname=/storage/ofd_packets [23:42:09]CheckFolder done [23:42:09]ProducePacketName [23:42:09]name=ofd_packets/00112119 [23:42:09]NVStorageSaveData ofd_packets/00112119 [23:42:09]File name is /storage/ofd_packets/00112119 [23:42:09]Write 301 bytes [23:42:09]NVStorageSaveData done [23:42:09]OFDSenderStorePacket done [23:42:09]KKMCreateOFDPacket done [23:42:09]NVStorageSaveData kkm_last_timestamp [23:42:09]File name is /storage/kkm_last_timestamp [23:42:09]Write 4 bytes [23:42:09]NVStorageSaveData done [23:42:09]ExternCall_PrintAddStr [23:42:09]wPrintStart [23:42:09]Write to MH i2c: 01 00 00 71 0F 80 [23:42:09]Write i2c OK [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: 01 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: 01 07 00 [23:42:09]MH_I2C_Read... [23:42:09]Read from MH i2c: 01 07 00 71 0F 00 00 00 00 00 FF 0F 95 [23:42:09]RasterBufferAndPrint [23:42:09]line 小褔械褌 N : (1)320780 [23:42:09]line 袠袧袧: 02508201610067 [23:42:09]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [23:42:09]line 袩袪袨袛袗袞袗 [23:42:09]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [23:42:09]line 孝芯胁邪褉: 2710124130 [23:42:09]line 袗懈-92-袣-5 [23:42:09]line 1.510 * 66.40 [23:42:09]line = 100.26 [23:42:09]line 袧袛小 12% 袧小袩 1% [23:42:09]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [23:42:09]line 袠孝袨袚袨: 100.26 [23:42:09]line 袧小袩 1% : 0.89 [23:42:09]line 袧袛小 12% : 10.65 [23:42:09]line 袧邪谢懈褔薪褘屑懈: 0.00 [23:42:09]line 袘械蟹薪邪谢.: 100.26 [23:42:09]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [23:42:09]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [23:42:09]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [23:42:09]line 效械泻 287 21.06.2024 23:42 [23:42:09]line 小屑械薪邪: 390 肖肖袛: 1.0 [23:42:09]line 袟袧袦: 0300000198 [23:42:09]line 袪袧袦: 0000000000092771 [23:42:09]line 袙械褉褋懈褟 袣袣袦: 001 [23:42:10]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [23:42:10]line 肖袦: 0000000000875083 [23:42:10]line 肖袛: 112119 [23:42:10]line 肖袩袛: 234253761194037 [23:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234213&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112119&fm=234253761194037&tin=02508201610067®Number=0000000000092771&sum=10026 [23:42:10]OFD Sender: Processing packet 112119 [packets to send 38, broken 37] [23:42:10]ProducePacketName [23:42:10]name=ofd_packets/00112119 [23:42:10]OFD Sender: To server: 嚂鰌G, [23:42:10]CommunicateWithHost lk.salyk.kg:30040 [23:42:10]ConnectInit lk.salyk.kg [23:42:10]written 0, free lines is 4095 [23:42:10]Connected sock=10 [23:42:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4E 83 07 01 BE 27 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 D5 0F 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B5 01 00 35 04 06 00 D5 0D 74 39 28 35 EB E5 95 5F 24 E3 57 03 [23:42:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CD 77 47 00 29 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 30 38 37 35 30 38 33 10 04 04 00 F7 B5 01 00 F4 03 04 00 F2 A6 75 66 B6 04 01 00 00 79 BC 3D A3 13 05 2F B1 [23:42:10]CommunicateWithHost err = 0 [23:42:10]CheckOFDResponse [23:42:10]1017 (14) - 77093643461234 [23:42:10]1041 (16) - 0000000000875083 [23:42:10]1040 (4) - 112119 [23:42:10]1012 (4) - 21.06.2024 16:14 [23:42:10]1206 (1) - 0 [23:42:10]OFD Sender: Remove packet 112119 [23:42:10]ProducePacketName [23:42:10]name=ofd_packets/00112119 [23:42:10]NVStorageDeleteData [23:42:10]Write to MH i2c: 01 00 00 9B 0F AA [23:42:10]Write i2c OK [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: 01 [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: 01 07 00 [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: 01 07 00 9B 0F 00 00 00 00 00 E8 0C A5 [23:42:10]RasterBufferAndPrint [23:42:10]line [23:42:10]line [23:42:10]line [23:42:10]line [23:42:10]line [23:42:10]written 0, free lines is 3310 [23:42:10]MH_Cut [23:42:10]Write to MH i2c: D1 01 00 A2 0F 01 83 [23:42:10]Write i2c OK [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: D1 [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: D1 01 00 [23:42:10]MH_I2C_Read... [23:42:10]Read from MH i2c: D1 01 00 A2 0F 00 82 [23:42:10]Write to MH i2c: 01 00 00 A3 0F B2 [23:42:10]Write i2c OK [23:42:10]MH_I2C_Read... [23:42:11]OFD Sender: No OFD packet to send [23:42:11]*** Cut start [23:42:11]*** Partial cut [23:42:11]*** CUTSNS_PIN = 1 [23:42:11]*** CUTSNS_PIN = 0 [23:42:11]*** Brake cut motor [23:42:11]Read from MH i2c: 01 [23:42:12]MH_I2C_Read... [23:42:12]*** Stop cut motor [23:42:12]*** Cut end [23:42:12]Read from MH i2c: 01 07 00 [23:42:12]MH_I2C_Read... [23:42:12]Read from MH i2c: 01 07 00 A3 0F 00 00 00 00 00 FF 0F C7 [23:42:12]process_action close_receipt done [23:42:12]requested_data is exist [23:42:12]produce_requested_data [23:42:12]requested_item fm.sn is exist - process it [23:42:12]wFMCommunicate request_size=4 [23:42:12]MH_SAM_APDU [23:42:12]CAPDU: 80 11 00 00 [23:42:12]Write to MH i2c: E2 08 00 A4 0F 80 11 00 00 00 00 00 00 2D [23:42:12]Write i2c OK [23:42:12]MH_I2C_Read... [23:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:12]Read from MH i2c: E2 [23:42:12]MH_I2C_Read... [23:42:12]Read from MH i2c: E2 17 00 [23:42:12]MH_I2C_Read... [23:42:12]Read from MH i2c: E2 17 00 A4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7F [23:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:42:12]wFMCommunicate OK [23:42:12]requested_item fd.num is exist - process it [23:42:12]SAM_PROTO_GetFieldsCounters [23:42:12]wFMCommunicate request_size=4 [23:42:12]MH_SAM_APDU [23:42:12]CAPDU: 80 13 00 00 [23:42:12]Write to MH i2c: E2 08 00 A5 0F 80 13 00 00 00 00 00 00 30 [23:42:12]Write i2c OK [23:42:12]MH_I2C_Read... [23:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:12]Read from MH i2c: E2 [23:42:12]MH_I2C_Read... [23:42:12]Read from MH i2c: E2 62 00 [23:42:12]MH_I2C_Read... [23:42:12]Read from MH i2c: E2 62 00 A5 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F7 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [23:42:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F7 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:42:12]wFMCommunicate OK [23:42:12]SAM_PROTO_GetFieldsCounters done [23:42:12]requested_item shift.num is exist - process it [23:42:12]requested_item shift.opened is exist - process it [23:42:12]req_shift_opened [23:42:12]FM_GetShiftState [23:42:12]SAM_PROTO_GetShiftState [23:42:12]wFMCommunicate request_size=4 [23:42:12]MH_SAM_APDU [23:42:12]CAPDU: 80 13 01 00 [23:42:12]Write to MH i2c: E2 08 00 A6 0F 80 13 01 00 00 00 00 00 32 [23:42:12]Write i2c OK [23:42:12]MH_I2C_Read... [23:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:12]Read from MH i2c: E2 [23:42:12]MH_I2C_Read... [23:42:12]Read from MH i2c: E2 0E 00 [23:42:12]MH_I2C_Read... [23:42:12]Read from MH i2c: E2 0E 00 A6 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 AF [23:42:12]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:42:12]wFMCommunicate OK [23:42:12]SAM_PROTO_GetShiftState done [23:42:12]FM_GetShiftState done [23:42:12]req_shift_opened done [23:42:12]requested_item shift.open_date is exist - process it [23:42:12]req_shift_open_date [23:42:12]req_shift_open_date done [23:42:12]produce_requested_data done [23:42:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112119,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:42:12]process_action_free close_receipt [23:42:12]json_value_free [23:42:12]json_value_free done [23:42:12]process_json_proto returns [23:42:12]Send response to host [23:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112119,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:42:12]free response buf [23:42:12]execute_script done [23:42:12]execute_script returns [23:42:12]free content buf [23:42:12]Sock 9.Close socket [23:42:12]Sock 9.Thread stoped [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:13]accept exits with 7 [23:47:13]New connection [23:47:13]New thread 3066957156 created [23:47:13]Thread 3066813796 joined [23:47:13]Waiting for new connection... [23:47:13] Sock 7.Parse request [23:47:13]Sock 7.Check first char [23:47:13]Sock 7.First char is OK [23:47:13]request: POST /json_proto HTTP/1.0 [23:47:13]Method: POST [23:47:13]URL: /json_proto [23:47:13]Method is POST - this is cgi request [23:47:13]url: /json_proto [23:47:13]query_string will be loaded in cgi processing [23:47:13]execute_cgi json_proto POST (null) [23:47:13]execute_cgi path=json_proto method=POST [23:47:13]POST find Content-Length [23:47:13]Host: 172.17.59.68:8080 [23:47:13]Content-Length: 674 [23:47:13]Content-Type: application/json [23:47:13] [23:47:13]POST finish read [23:47:13]Found Content-Length = 674 [23:47:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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" ] } } [23:47:13]execute_script... [23:47: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)320782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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" ] } } [23:47:13]POST & json_proto [23:47:13]process_json_proto [23:47:13]json parsed OK: [23:47:13]protocol is kg_v1.0 [23:47:13]action value=close_receipt [23:47:13]process_action close_receipt [23:47:13]cmd_close_receipt [23:47:13]MH_GetDate [23:47:13]Write to MH i2c: F0 00 00 A7 0F A5 [23:47:13]Write i2c OK [23:47:13]MH_I2C_Read... [23:47:13]Read from MH i2c: F0 [23:47:13]MH_I2C_Read... [23:47:13]Read from MH i2c: F0 09 00 [23:47:13]MH_I2C_Read... [23:47:13]Read from MH i2c: F0 09 00 A7 0F 00 07 11 76 66 BC EC 60 65 0F [23:47:13]GetLastDocTimeStamp 1719013333 [23:47:13]current date 1719013639 [23:47:13]FM_GetShiftState [23:47:13]SAM_PROTO_GetShiftState [23:47:13]wFMCommunicate request_size=4 [23:47:13]MH_SAM_APDU [23:47:13]CAPDU: 80 13 01 00 [23:47:13]Write to MH i2c: E2 08 00 A8 0F 80 13 01 00 00 00 00 00 34 [23:47:13]Write i2c OK [23:47:13]MH_I2C_Read... [23:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:14]Read from MH i2c: E2 [23:47:14]MH_I2C_Read... [23:47:14]Read from MH i2c: E2 0E 00 [23:47:14]MH_I2C_Read... [23:47:14]Read from MH i2c: E2 0E 00 A8 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 B1 [23:47:14]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:47:14]wFMCommunicate OK [23:47:14]SAM_PROTO_GetShiftState done [23:47:14]FM_GetShiftState done [23:47:14]opened in 1718933695 [23:47:14]opened+sec_in_day 1719020095 [23:47:14]quantity*price = 70056 [23:47:14]sum+1 = 70058 [23:47:14]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.57 袠孝袨袚袨: 700.00 袙薪械褋械薪芯: 700.00 小袛袗效袗: 0.00 袧小袩 1% : 6.20 袧袛小 12% : 74.40 袧邪谢懈褔薪褘屑懈: 700.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 288 21.06.2024 23:47 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112120 肖袩袛: 267649456947802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234719&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112120&fm=267649456947802&tin=02508201610067®Number=0000000000092771&sum=70000 [23:47:15]StoreToDocumentArchive [23:47:15]shift 390 fd 112120 [23:47:15]save to /storage/0390/doc_00112120 [23:47:15]save last doc name /storage/0390/doc_00112120 to /storage/kkm_last_doc_name [23:47:15]save OK [23:47:15]Clear old archive folders... [23:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:47:15]tlvbuf is 0111E520 [23:47:15]SAM_PROTO_ClearQueue [23:47:15]wFMCommunicate request_size=4 [23:47:15]MH_SAM_APDU [23:47:15]CAPDU: 80 09 00 00 [23:47:15]Write to MH i2c: E2 08 00 B5 0F 80 09 00 00 00 00 00 00 36 [23:47:15]Write i2c OK [23:47:15]MH_I2C_Read... [23:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:15]Read from MH i2c: E2 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 03 00 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 03 00 B5 0F 00 90 00 38 [23:47:15]RAPDU: 90 00 [23:47:15]wFMCommunicate OK [23:47:15]SAM_PROTO_ClearQueue done [23:47:15]KKMCreateOFDPacket [23:47:15]OFDProtocolAddRootSTLVToBuf [23:47:15]FM_MakeSignedData [23:47:15]FM_MakeSignedData [23:47:15]SAM_PROTO_SignData [23:47:15]wFMCommunicate request_size=4 [23:47:15]MH_SAM_APDU [23:47:15]CAPDU: 80 0D 01 02 [23:47:15]Write to MH i2c: E2 08 00 B6 0F 80 0D 01 02 00 00 00 00 3E [23:47:15]Write i2c OK [23:47:15]MH_I2C_Read... [23:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:15]Read from MH i2c: E2 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 03 00 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 03 00 B6 0F 00 90 00 39 [23:47:15]RAPDU: 90 00 [23:47:15]wFMCommunicate OK [23:47:15]wFMCommunicate request_size=255 [23:47:15]MH_SAM_APDU [23:47:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 20 01 00 00 F4 03 04 00 07 11 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B5 01 00 35 04 06 00 F3 6C FE CE [23:47:15]Write to MH i2c: E2 02 01 B7 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 20 01 00 00 F4 03 04 00 07 11 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B5 01 00 35 04 06 00 F3 6C FE CE 00 00 AF [23:47:15]Write i2c OK [23:47:15]MH_I2C_Read... [23:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:15]Read from MH i2c: E2 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 03 00 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 03 00 B7 0F 00 90 00 3A [23:47:15]RAPDU: 90 00 [23:47:15]wFMCommunicate OK [23:47:15]wFMCommunicate request_size=7 [23:47:15]MH_SAM_APDU [23:47:15]CAPDU: 80 0D 02 02 02 42 5A [23:47:15]Write to MH i2c: E2 0A 00 B8 0F 80 0D 02 02 02 00 42 5A 00 00 E1 [23:47:15]Write i2c OK [23:47:15]MH_I2C_Read... [23:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:15]Read from MH i2c: E2 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 03 00 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 03 00 B8 0F 00 90 00 3B [23:47:15]RAPDU: 90 00 [23:47:15]wFMCommunicate OK [23:47:15]wFMCommunicate request_size=4 [23:47:15]MH_SAM_APDU [23:47:15]CAPDU: 80 0D 03 02 [23:47:15]Write to MH i2c: E2 08 00 B9 0F 80 0D 03 02 00 00 00 00 43 [23:47:15]Write i2c OK [23:47:15]MH_I2C_Read... [23:47:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:15]Read from MH i2c: E2 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 0B 00 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 0B 00 B9 0F 00 42 09 B9 A3 18 22 6F 90 90 00 24 [23:47:15]RAPDU: 42 09 B9 A3 18 22 6F 90 90 00 [23:47:15]wFMCommunicate OK [23:47:15]SAM_PROTO_SignData done [23:47:15]FM_MakeSignedData done [23:47:15]CreateOFDProtocolMessage [23:47:15]wFMCommunicate request_size=4 [23:47:15]MH_SAM_APDU [23:47:15]CAPDU: 80 11 00 00 [23:47:15]Write to MH i2c: E2 08 00 BA 0F 80 11 00 00 00 00 00 00 43 [23:47:15]Write i2c OK [23:47:15]MH_I2C_Read... [23:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:15]Read from MH i2c: E2 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 17 00 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 17 00 BA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 95 [23:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:47:15]wFMCommunicate OK [23:47:15]CreateOFDProtocolMessage done [23:47:15]OFDSenderStorePacket 112120 [23:47:15]StoreOFDPacket docnum=112120 [23:47:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 97 C3 04 01 84 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 20 01 00 00 F4 03 04 00 07 11 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B5 01 00 35 04 06 00 F3 6C FE CE 42 5A 42 09 B9 A3 18 22 6F 90 [23:47:15]CheckFolder [23:47:15]dirname=/storage/ofd_packets [23:47:15]CheckFolder done [23:47:15]ProducePacketName [23:47:15]name=ofd_packets/00112120 [23:47:15]NVStorageSaveData ofd_packets/00112120 [23:47:15]File name is /storage/ofd_packets/00112120 [23:47:15]Write 298 bytes [23:47:15]NVStorageSaveData done [23:47:15]OFDSenderStorePacket done [23:47:15]KKMCreateOFDPacket done [23:47:15]NVStorageSaveData kkm_last_timestamp [23:47:15]File name is /storage/kkm_last_timestamp [23:47:15]Write 4 bytes [23:47:15]NVStorageSaveData done [23:47:15]ExternCall_PrintAddStr [23:47:15]wPrintStart [23:47:15]Write to MH i2c: 01 00 00 BB 0F CA [23:47:15]Write i2c OK [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: 01 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: 01 07 00 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: 01 07 00 BB 0F 00 00 00 00 00 FF 0F DF [23:47:15]RasterBufferAndPrint [23:47:15]line 小褔械褌 N : (1)320782 [23:47:15]line 袠袧袧: 02508201610067 [23:47:15]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [23:47:15]line 袩袪袨袛袗袞袗 [23:47:15]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [23:47:15]line 孝芯胁邪褉: 2710194210 [23:47:15]line 袛孝-袣-5 [23:47:15]line 9.610 * 72.90 [23:47:15]line = 700.57 [23:47:15]line 袧袛小 12% 袧小袩 1% [23:47:15]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [23:47:15]line 袨袣袪校袚袥袝袧袠袝: -0.57 [23:47:15]line 袠孝袨袚袨: 700.00 [23:47:15]line 袙薪械褋械薪芯: 700.00 [23:47:15]line 小袛袗效袗: 0.00 [23:47:15]line 袧小袩 1% : 6.20 [23:47:15]line 袧袛小 12% : 74.40 [23:47:15]line 袧邪谢懈褔薪褘屑懈: 700.00 [23:47:15]line 袘械蟹薪邪谢.: 0.00 [23:47:15]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [23:47:15]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [23:47:15]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [23:47:15]line 效械泻 288 21.06.2024 23:47 [23:47:15]line 小屑械薪邪: 390 肖肖袛: 1.0 [23:47:15]line 袟袧袦: 0300000198 [23:47:15]line 袪袧袦: 0000000000092771 [23:47:15]line 袙械褉褋懈褟 袣袣袦: 001 [23:47:15]line 肖袦: 0000000000875083 [23:47:15]line 肖袛: 112120 [23:47:15]line 肖袩袛: 267649456947802 [23:47:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T234719&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112120&fm=267649456947802&tin=02508201610067®Number=0000000000092771&sum=70000 [23:47:15]OFD Sender: Processing packet 112120 [packets to send 38, broken 37] [23:47:15]ProducePacketName [23:47:15]name=ofd_packets/00112120 [23:47:15]OFD Sender: To server: 嚂鰌G, [23:47:15]CommunicateWithHost lk.salyk.kg:30040 [23:47:15]ConnectInit lk.salyk.kg [23:47:15]written 0, free lines is 4095 [23:47:16]Connected sock=10 [23:47:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 97 C3 04 01 84 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 20 01 00 00 F4 03 04 00 07 11 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B5 01 00 35 04 06 00 F3 6C FE CE 42 5A 42 09 B9 A3 18 22 6F 90 [23:47:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 37 D4 47 00 0F 49 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 30 38 37 35 30 38 33 10 04 04 00 F8 B5 01 00 F4 03 04 00 24 A8 75 66 B6 04 01 00 00 86 75 8B 25 E1 28 E8 FC [23:47:16]CommunicateWithHost err = 0 [23:47:16]CheckOFDResponse [23:47:16]1017 (14) - 77093643461234 [23:47:16]1041 (16) - 0000000000875083 [23:47:16]1040 (4) - 112120 [23:47:16]1012 (4) - 21.06.2024 16:19 [23:47:16]1206 (1) - 0 [23:47:16]OFD Sender: Remove packet 112120 [23:47:16]ProducePacketName [23:47:16]name=ofd_packets/00112120 [23:47:16]NVStorageDeleteData [23:47:16]Write to MH i2c: 01 00 00 E6 0F F5 [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: 01 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: 01 07 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: 01 07 00 E6 0F 00 00 00 00 00 D4 0C DC [23:47:16]RasterBufferAndPrint [23:47:16]line [23:47:16]line [23:47:16]line [23:47:16]line [23:47:16]line [23:47:16]written 0, free lines is 3292 [23:47:16]MH_Cut [23:47:16]Write to MH i2c: D1 01 00 ED 0F 01 CE [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: D1 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: D1 01 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: D1 01 00 ED 0F 00 CD [23:47:16]Write to MH i2c: 01 00 00 EE 0F FD [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]OFD Sender: No OFD packet to send [23:47:17]*** Cut start [23:47:17]*** Partial cut [23:47:17]*** CUTSNS_PIN = 1 [23:47:17]*** CUTSNS_PIN = 0 [23:47:17]*** Brake cut motor [23:47:17]Read from MH i2c: 01 [23:47:17]MH_I2C_Read... [23:47:17]*** Stop cut motor [23:47:17]*** Cut end [23:47:17]Read from MH i2c: 01 07 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: 01 07 00 EE 0F 00 00 00 00 00 FF 0F 12 [23:47:17]process_action close_receipt done [23:47:17]requested_data is exist [23:47:17]produce_requested_data [23:47:17]requested_item fm.sn is exist - process it [23:47:17]wFMCommunicate request_size=4 [23:47:17]MH_SAM_APDU [23:47:17]CAPDU: 80 11 00 00 [23:47:17]Write to MH i2c: E2 08 00 EF 0F 80 11 00 00 00 00 00 00 78 [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:17]Read from MH i2c: E2 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 17 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 17 00 EF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CA [23:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:47:17]wFMCommunicate OK [23:47:17]requested_item fd.num is exist - process it [23:47:17]SAM_PROTO_GetFieldsCounters [23:47:17]wFMCommunicate request_size=4 [23:47:17]MH_SAM_APDU [23:47:17]CAPDU: 80 13 00 00 [23:47:17]Write to MH i2c: E2 08 00 F0 0F 80 13 00 00 00 00 00 00 7B [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:17]Read from MH i2c: E2 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 62 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 62 00 F0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F8 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [23:47:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F8 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:17]wFMCommunicate OK [23:47:17]SAM_PROTO_GetFieldsCounters done [23:47:17]requested_item shift.num is exist - process it [23:47:17]requested_item shift.opened is exist - process it [23:47:17]req_shift_opened [23:47:17]FM_GetShiftState [23:47:17]SAM_PROTO_GetShiftState [23:47:17]wFMCommunicate request_size=4 [23:47:17]MH_SAM_APDU [23:47:17]CAPDU: 80 13 01 00 [23:47:17]Write to MH i2c: E2 08 00 F1 0F 80 13 01 00 00 00 00 00 7D [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:17]Read from MH i2c: E2 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 0E 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 0E 00 F1 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 FA [23:47:17]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:47:17]wFMCommunicate OK [23:47:17]SAM_PROTO_GetShiftState done [23:47:17]FM_GetShiftState done [23:47:17]req_shift_opened done [23:47:17]requested_item shift.open_date is exist - process it [23:47:17]req_shift_open_date [23:47:17]req_shift_open_date done [23:47:17]produce_requested_data done [23:47:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112120,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:47:17]process_action_free close_receipt [23:47:17]json_value_free [23:47:18]json_value_free done [23:47:18]process_json_proto returns [23:47:18]Send response to host [23:47:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112120,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:47:18]free response buf [23:47:18]execute_script done [23:47:18]execute_script returns [23:47:18]free content buf [23:47:18]Sock 7.Close socket [23:47:18]Sock 7.Thread stoped [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:53:59]accept exits with 9 [23:53:59]New connection [23:53:59]New thread 3066813796 created [23:53:59]Thread 3066957156 joined [23:53:59]Waiting for new connection... [23:53:59] Sock 9.Parse request [23:53:59]Sock 9.Check first char [23:53:59]Sock 9.First char is OK [23:53:59]request: POST /json_proto HTTP/1.0 [23:53:59]Method: POST [23:53:59]URL: /json_proto [23:53:59]Method is POST - this is cgi request [23:53:59]url: /json_proto [23:53:59]query_string will be loaded in cgi processing [23:53:59]execute_cgi json_proto POST (null) [23:53:59]execute_cgi path=json_proto method=POST [23:53:59]POST find Content-Length [23:53:59]Host: 172.17.59.68:8080 [23:53:59]Content-Length: 682 [23:53:59]Content-Type: application/json [23:53:59] [23:53:59]POST finish read [23:53:59]Found Content-Length = 682 [23:53:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 60.250, "sum" : 4000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [23:53:59]execute_script... [23:53:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 60.250, "sum" : 4000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [23:53:59]POST & json_proto [23:53:59]process_json_proto [23:53:59]json parsed OK: [23:53:59]protocol is kg_v1.0 [23:53:59]action value=close_receipt [23:53:59]process_action close_receipt [23:53:59]cmd_close_receipt [23:53:59]MH_GetDate [23:53:59]Write to MH i2c: F0 00 00 F2 0F F0 [23:53:59]Write i2c OK [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: F0 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: F0 09 00 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: F0 09 00 F2 0F 00 9C 12 76 66 BC EC 60 65 F0 [23:53:59]GetLastDocTimeStamp 1719013639 [23:53:59]current date 1719014044 [23:53:59]FM_GetShiftState [23:53:59]SAM_PROTO_GetShiftState [23:53:59]wFMCommunicate request_size=4 [23:53:59]MH_SAM_APDU [23:53:59]CAPDU: 80 13 01 00 [23:53:59]Write to MH i2c: E2 08 00 F3 0F 80 13 01 00 00 00 00 00 7F [23:53:59]Write i2c OK [23:53:59]MH_I2C_Read... [23:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:59]Read from MH i2c: E2 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 0E 00 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 0E 00 F3 0F 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 FC [23:53:59]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:53:59]wFMCommunicate OK [23:53:59]SAM_PROTO_GetShiftState done [23:53:59]FM_GetShiftState done [23:53:59]opened in 1718933695 [23:53:59]opened+sec_in_day 1719020095 [23:53:59]quantity*price = 400060 [23:53:59]sum+1 = 400061 [23:53:59]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.60 袠孝袨袚袨: 4000.00 袙薪械褋械薪芯: 4000.00 小袛袗效袗: 0.00 袧小袩 1% : 35.40 袧袛小 12% : 424.84 袧邪谢懈褔薪褘屑懈: 4000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 289 21.06.2024 23:54 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112121 肖袩袛: 203362032608830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T235404&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112121&fm=203362032608830&tin=02508201610067®Number=0000000000092771&sum=400000 [23:54:00]StoreToDocumentArchive [23:54:00]shift 390 fd 112121 [23:54:00]save to /storage/0390/doc_00112121 [23:54:00]save last doc name /storage/0390/doc_00112121 to /storage/kkm_last_doc_name [23:54:00]save OK [23:54:00]Clear old archive folders... [23:54:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:54:00]tlvbuf is 01178FD0 [23:54:00]SAM_PROTO_ClearQueue [23:54:00]wFMCommunicate request_size=4 [23:54:00]MH_SAM_APDU [23:54:00]CAPDU: 80 09 00 00 [23:54:00]Write to MH i2c: E2 08 00 00 10 80 09 00 00 00 00 00 00 82 [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 03 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 03 00 00 10 00 90 00 84 [23:54:00]RAPDU: 90 00 [23:54:00]wFMCommunicate OK [23:54:00]SAM_PROTO_ClearQueue done [23:54:00]KKMCreateOFDPacket [23:54:00]OFDProtocolAddRootSTLVToBuf [23:54:00]FM_MakeSignedData [23:54:00]FM_MakeSignedData [23:54:00]SAM_PROTO_SignData [23:54:00]wFMCommunicate request_size=4 [23:54:00]MH_SAM_APDU [23:54:00]CAPDU: 80 0D 01 02 [23:54:00]Write to MH i2c: E2 08 00 01 10 80 0D 01 02 00 00 00 00 8A [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 03 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 03 00 01 10 00 90 00 85 [23:54:00]RAPDU: 90 00 [23:54:00]wFMCommunicate OK [23:54:00]wFMCommunicate request_size=255 [23:54:00]MH_SAM_APDU [23:54:00]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 EB 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC 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 F4 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 21 01 00 00 F4 03 04 00 9C 12 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B5 01 00 35 04 06 00 B8 [23:54:00]Write to MH i2c: E2 02 01 02 10 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 EB 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC 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 F4 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 21 01 00 00 F4 03 04 00 9C 12 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B5 01 00 35 04 06 00 B8 00 00 12 [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 03 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 03 00 02 10 00 90 00 86 [23:54:00]RAPDU: 90 00 [23:54:00]wFMCommunicate OK [23:54:00]wFMCommunicate request_size=10 [23:54:00]MH_SAM_APDU [23:54:00]CAPDU: 80 0D 02 02 05 F4 E9 B6 E6 3E [23:54:00]Write to MH i2c: E2 0D 00 03 10 80 0D 02 02 05 00 F4 E9 B6 E6 3E 00 00 4E [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 03 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 03 00 03 10 00 90 00 87 [23:54:00]RAPDU: 90 00 [23:54:00]wFMCommunicate OK [23:54:00]wFMCommunicate request_size=4 [23:54:00]MH_SAM_APDU [23:54:00]CAPDU: 80 0D 03 02 [23:54:00]Write to MH i2c: E2 08 00 04 10 80 0D 03 02 00 00 00 00 8F [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 0B 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 0B 00 04 10 00 F8 35 DF 79 08 40 78 56 90 00 2B [23:54:00]RAPDU: F8 35 DF 79 08 40 78 56 90 00 [23:54:00]wFMCommunicate OK [23:54:00]SAM_PROTO_SignData done [23:54:00]FM_MakeSignedData done [23:54:00]CreateOFDProtocolMessage [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 05 10 80 11 00 00 00 00 00 00 8F [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 05 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E1 [23:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:54:00]wFMCommunicate OK [23:54:00]CreateOFDProtocolMessage done [23:54:00]OFDSenderStorePacket 112121 [23:54:00]StoreOFDPacket docnum=112121 [23:54:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3C 89 07 01 0B 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 5A EB 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC 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 F4 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 21 01 00 00 F4 03 04 00 9C 12 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B5 01 00 35 04 06 00 B8 F4 E9 B6 E6 3E F8 35 DF 79 08 40 78 56 [23:54:00]CheckFolder [23:54:00]dirname=/storage/ofd_packets [23:54:00]CheckFolder done [23:54:00]ProducePacketName [23:54:00]name=ofd_packets/00112121 [23:54:00]NVStorageSaveData ofd_packets/00112121 [23:54:00]File name is /storage/ofd_packets/00112121 [23:54:00]Write 301 bytes [23:54:00]NVStorageSaveData done [23:54:00]OFDSenderStorePacket done [23:54:00]KKMCreateOFDPacket done [23:54:00]NVStorageSaveData kkm_last_timestamp [23:54:00]File name is /storage/kkm_last_timestamp [23:54:00]Write 4 bytes [23:54:00]NVStorageSaveData done [23:54:00]ExternCall_PrintAddStr [23:54:00]wPrintStart [23:54:00]Write to MH i2c: 01 00 00 06 10 16 [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: 01 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: 01 07 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: 01 07 00 06 10 00 00 00 00 00 FF 0F 2B [23:54:00]RasterBufferAndPrint [23:54:00]line 小褔械褌 N : (1)320783 [23:54:00]line 袠袧袧: 02508201610067 [23:54:00]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [23:54:00]line 袩袪袨袛袗袞袗 [23:54:00]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [23:54:00]line 孝芯胁邪褉: 2710124130 [23:54:00]line 袗懈-92-袣-5 [23:54:00]line 60.250 * 66.40 [23:54:00]line = 4000.60 [23:54:00]line 袧袛小 12% 袧小袩 1% [23:54:00]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [23:54:00]line 袨袣袪校袚袥袝袧袠袝: -0.60 [23:54:00]line 袠孝袨袚袨: 4000.00 [23:54:00]line 袙薪械褋械薪芯: 4000.00 [23:54:00]line 小袛袗效袗: 0.00 [23:54:00]line 袧小袩 1% : 35.40 [23:54:00]line 袧袛小 12% : 424.84 [23:54:00]line 袧邪谢懈褔薪褘屑懈: 4000.00 [23:54:00]line 袘械蟹薪邪谢.: 0.00 [23:54:00]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [23:54:00]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [23:54:00]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [23:54:00]line 效械泻 289 21.06.2024 23:54 [23:54:00]line 小屑械薪邪: 390 肖肖袛: 1.0 [23:54:00]line 袟袧袦: 0300000198 [23:54:00]line 袪袧袦: 0000000000092771 [23:54:00]line 袙械褉褋懈褟 袣袣袦: 001 [23:54:00]line 肖袦: 0000000000875083 [23:54:00]line 肖袛: 112121 [23:54:00]line 肖袩袛: 203362032608830 [23:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T235404&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112121&fm=203362032608830&tin=02508201610067®Number=0000000000092771&sum=400000 [23:54:01]OFD Sender: Processing packet 112121 [packets to send 38, broken 37] [23:54:01]ProducePacketName [23:54:01]name=ofd_packets/00112121 [23:54:01]OFD Sender: To server: 嚂鰌G, [23:54:01]CommunicateWithHost lk.salyk.kg:30040 [23:54:01]ConnectInit lk.salyk.kg [23:54:01]written 0, free lines is 4095 [23:54:01]Connected sock=7 [23:54:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3C 89 07 01 0B 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 5A EB 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BC 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 F4 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 21 01 00 00 F4 03 04 00 9C 12 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B5 01 00 35 04 06 00 B8 F4 E9 B6 E6 3E F8 35 DF 79 08 40 78 56 [23:54:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3B C6 47 00 3E CC 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 30 38 37 35 30 38 33 10 04 04 00 F9 B5 01 00 F4 03 04 00 B9 A9 75 66 B6 04 01 00 00 28 22 10 B2 2C 5D F6 15 [23:54:01]CommunicateWithHost err = 0 [23:54:01]CheckOFDResponse [23:54:01]1017 (14) - 77093643461234 [23:54:01]1041 (16) - 0000000000875083 [23:54:01]1040 (4) - 112121 [23:54:01]1012 (4) - 21.06.2024 16:26 [23:54:01]1206 (1) - 0 [23:54:01]OFD Sender: Remove packet 112121 [23:54:01]ProducePacketName [23:54:01]name=ofd_packets/00112121 [23:54:01]NVStorageDeleteData [23:54:01]Write to MH i2c: 01 00 00 31 10 41 [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: 01 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: 01 07 00 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: 01 07 00 31 10 00 00 00 00 00 D5 0C 29 [23:54:01]RasterBufferAndPrint [23:54:01]line [23:54:01]line [23:54:01]line [23:54:01]line [23:54:01]line [23:54:01]written 0, free lines is 3294 [23:54:01]MH_Cut [23:54:01]Write to MH i2c: D1 01 00 38 10 01 1A [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: D1 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: D1 01 00 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: D1 01 00 38 10 00 19 [23:54:01]Write to MH i2c: 01 00 00 39 10 49 [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:02]OFD Sender: No OFD packet to send [23:54:02]*** Cut start [23:54:02]*** Partial cut [23:54:02]*** CUTSNS_PIN = 1 [23:54:02]*** CUTSNS_PIN = 0 [23:54:02]*** Brake cut motor [23:54:03]Read from MH i2c: 01 [23:54:03]MH_I2C_Read... [23:54:03]*** Stop cut motor [23:54:03]*** Cut end [23:54:03]Read from MH i2c: 01 07 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: 01 07 00 39 10 00 00 00 00 00 FF 0F 5E [23:54:03]process_action close_receipt done [23:54:03]requested_data is exist [23:54:03]produce_requested_data [23:54:03]requested_item fm.sn is exist - process it [23:54:03]wFMCommunicate request_size=4 [23:54:03]MH_SAM_APDU [23:54:03]CAPDU: 80 11 00 00 [23:54:03]Write to MH i2c: E2 08 00 3A 10 80 11 00 00 00 00 00 00 C4 [23:54:03]Write i2c OK [23:54:03]MH_I2C_Read... [23:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:03]Read from MH i2c: E2 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 17 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 17 00 3A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 16 [23:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:54:03]wFMCommunicate OK [23:54:03]requested_item fd.num is exist - process it [23:54:03]SAM_PROTO_GetFieldsCounters [23:54:03]wFMCommunicate request_size=4 [23:54:03]MH_SAM_APDU [23:54:03]CAPDU: 80 13 00 00 [23:54:03]Write to MH i2c: E2 08 00 3B 10 80 13 00 00 00 00 00 00 C7 [23:54:03]Write i2c OK [23:54:03]MH_I2C_Read... [23:54:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:03]Read from MH i2c: E2 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 62 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 62 00 3B 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F9 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [23:54:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F9 B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:03]wFMCommunicate OK [23:54:03]SAM_PROTO_GetFieldsCounters done [23:54:03]requested_item shift.num is exist - process it [23:54:03]requested_item shift.opened is exist - process it [23:54:03]req_shift_opened [23:54:03]FM_GetShiftState [23:54:03]SAM_PROTO_GetShiftState [23:54:03]wFMCommunicate request_size=4 [23:54:03]MH_SAM_APDU [23:54:03]CAPDU: 80 13 01 00 [23:54:03]Write to MH i2c: E2 08 00 3C 10 80 13 01 00 00 00 00 00 C9 [23:54:03]Write i2c OK [23:54:03]MH_I2C_Read... [23:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:03]Read from MH i2c: E2 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 0E 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 0E 00 3C 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 46 [23:54:03]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:54:03]wFMCommunicate OK [23:54:03]SAM_PROTO_GetShiftState done [23:54:03]FM_GetShiftState done [23:54:03]req_shift_opened done [23:54:03]requested_item shift.open_date is exist - process it [23:54:03]req_shift_open_date [23:54:03]req_shift_open_date done [23:54:03]produce_requested_data done [23:54:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112121,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:54:03]process_action_free close_receipt [23:54:03]json_value_free [23:54:03]json_value_free done [23:54:03]process_json_proto returns [23:54:03]Send response to host [23:54:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112121,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:54:03]free response buf [23:54:03]execute_script done [23:54:03]execute_script returns [23:54:03]free content buf [23:54:03]Sock 9.Close socket [23:54:03]Sock 9.Thread stoped [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [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:52]accept exits with 10 [23:55:52]New connection [23:55:52]New thread 3066957156 created [23:55:52]Thread 3066813796 joined [23:55:52]Waiting for new connection... [23:55:52] Sock 10.Parse request [23:55:52]Sock 10.Check first char [23:55:52]Sock 10.First char is OK [23:55:52]request: POST /json_proto HTTP/1.0 [23:55:52]Method: POST [23:55:52]URL: /json_proto [23:55:52]Method is POST - this is cgi request [23:55:52]url: /json_proto [23:55:52]query_string will be loaded in cgi processing [23:55:52]execute_cgi json_proto POST (null) [23:55:52]execute_cgi path=json_proto method=POST [23:55:52]POST find Content-Length [23:55:52]Host: 172.17.59.68:8080 [23:55:52]Content-Length: 677 [23:55:52]Content-Type: application/json [23:55:52] [23:55:52]POST finish read [23:55:52]Found Content-Length = 677 [23:55:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:52]execute_script... [23:55: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)320784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:52]POST & json_proto [23:55:52]process_json_proto [23:55:52]json parsed OK: [23:55:52]protocol is kg_v1.0 [23:55:52]action value=close_receipt [23:55:52]process_action close_receipt [23:55:52]cmd_close_receipt [23:55:52]MH_GetDate [23:55:52]Write to MH i2c: F0 00 00 3D 10 3C [23:55:52]Write i2c OK [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: F0 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: F0 09 00 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: F0 09 00 3D 10 00 0E 13 76 66 BC EC 60 65 AF [23:55:52]GetLastDocTimeStamp 1719014044 [23:55:52]current date 1719014158 [23:55:52]FM_GetShiftState [23:55:52]SAM_PROTO_GetShiftState [23:55:52]wFMCommunicate request_size=4 [23:55:52]MH_SAM_APDU [23:55:52]CAPDU: 80 13 01 00 [23:55:52]Write to MH i2c: E2 08 00 3E 10 80 13 01 00 00 00 00 00 CB [23:55:52]Write i2c OK [23:55:52]MH_I2C_Read... [23:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:52]Read from MH i2c: E2 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 0E 00 [23:55:52]MH_I2C_Read... [23:55:52]Read from MH i2c: E2 0E 00 3E 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 48 [23:55:52]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:55:52]wFMCommunicate OK [23:55:52]SAM_PROTO_GetShiftState done [23:55:52]FM_GetShiftState done [23:55:52]opened in 1718933695 [23:55:52]opened+sec_in_day 1719020095 [23:55:52]quantity*price = 32004 [23:55:52]sum+1 = 32006 [23:55:52]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.05 袠孝袨袚袨: 320.00 袙薪械褋械薪芯: 320.00 小袛袗效袗: 0.00 袧小袩 1% : 2.83 袧袛小 12% : 33.99 袧邪谢懈褔薪褘屑懈: 320.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 290 21.06.2024 23:55 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112122 肖袩袛: 209690298915886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T235558&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112122&fm=209690298915886&tin=02508201610067®Number=0000000000092771&sum=32000 [23:55:53]StoreToDocumentArchive [23:55:53]shift 390 fd 112122 [23:55:53]save to /storage/0390/doc_00112122 [23:55:53]save last doc name /storage/0390/doc_00112122 to /storage/kkm_last_doc_name [23:55:53]save OK [23:55:53]Clear old archive folders... [23:55:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:55:53]tlvbuf is 01179E80 [23:55:53]SAM_PROTO_ClearQueue [23:55:53]wFMCommunicate request_size=4 [23:55:53]MH_SAM_APDU [23:55:53]CAPDU: 80 09 00 00 [23:55:53]Write to MH i2c: E2 08 00 4B 10 80 09 00 00 00 00 00 00 CD [23:55:53]Write i2c OK [23:55:53]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 4B 10 00 90 00 CF [23:55:54]RAPDU: 90 00 [23:55:54]wFMCommunicate OK [23:55:54]SAM_PROTO_ClearQueue done [23:55:54]KKMCreateOFDPacket [23:55:54]OFDProtocolAddRootSTLVToBuf [23:55:54]FM_MakeSignedData [23:55:54]FM_MakeSignedData [23:55:54]SAM_PROTO_SignData [23:55:54]wFMCommunicate request_size=4 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 0D 01 02 [23:55:54]Write to MH i2c: E2 08 00 4C 10 80 0D 01 02 00 00 00 00 D5 [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 4C 10 00 90 00 D0 [23:55:54]RAPDU: 90 00 [23:55:54]wFMCommunicate OK [23:55:54]wFMCommunicate request_size=255 [23:55:54]MH_SAM_APDU [23:55: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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 0E 13 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B5 01 00 35 04 06 00 BE [23:55:54]Write to MH i2c: E2 02 01 4D 10 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 0E 13 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B5 01 00 35 04 06 00 BE 00 00 CF [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 4D 10 00 90 00 D1 [23:55:54]RAPDU: 90 00 [23:55:54]wFMCommunicate OK [23:55:54]wFMCommunicate request_size=10 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 0D 02 02 05 B6 53 C7 9C 2E [23:55:54]Write to MH i2c: E2 0D 00 4E 10 80 0D 02 02 05 00 B6 53 C7 9C 2E 00 00 7C [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 03 00 4E 10 00 90 00 D2 [23:55:54]RAPDU: 90 00 [23:55:54]wFMCommunicate OK [23:55:54]wFMCommunicate request_size=4 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 0D 03 02 [23:55:54]Write to MH i2c: E2 08 00 4F 10 80 0D 03 02 00 00 00 00 DA [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 0B 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 0B 00 4F 10 00 51 37 19 3F 4D 52 68 F6 90 00 B8 [23:55:54]RAPDU: 51 37 19 3F 4D 52 68 F6 90 00 [23:55:54]wFMCommunicate OK [23:55:54]SAM_PROTO_SignData done [23:55:54]FM_MakeSignedData done [23:55:54]CreateOFDProtocolMessage [23:55:54]wFMCommunicate request_size=4 [23:55:54]MH_SAM_APDU [23:55:54]CAPDU: 80 11 00 00 [23:55:54]Write to MH i2c: E2 08 00 50 10 80 11 00 00 00 00 00 00 DA [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:54]Read from MH i2c: E2 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 17 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: E2 17 00 50 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2C [23:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:55:54]wFMCommunicate OK [23:55:54]CreateOFDProtocolMessage done [23:55:54]OFDSenderStorePacket 112122 [23:55:54]StoreOFDPacket docnum=112122 [23:55:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DB 7C 07 01 0D 2D 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 0E 13 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B5 01 00 35 04 06 00 BE B6 53 C7 9C 2E 51 37 19 3F 4D 52 68 F6 [23:55:54]CheckFolder [23:55:54]dirname=/storage/ofd_packets [23:55:54]CheckFolder done [23:55:54]ProducePacketName [23:55:54]name=ofd_packets/00112122 [23:55:54]NVStorageSaveData ofd_packets/00112122 [23:55:54]File name is /storage/ofd_packets/00112122 [23:55:54]Write 301 bytes [23:55:54]NVStorageSaveData done [23:55:54]OFDSenderStorePacket done [23:55:54]KKMCreateOFDPacket done [23:55:54]NVStorageSaveData kkm_last_timestamp [23:55:54]File name is /storage/kkm_last_timestamp [23:55:54]Write 4 bytes [23:55:54]NVStorageSaveData done [23:55:54]ExternCall_PrintAddStr [23:55:54]wPrintStart [23:55:54]Write to MH i2c: 01 00 00 51 10 61 [23:55:54]Write i2c OK [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: 01 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: 01 07 00 [23:55:54]MH_I2C_Read... [23:55:54]Read from MH i2c: 01 07 00 51 10 00 00 00 00 00 FF 0F 76 [23:55:54]RasterBufferAndPrint [23:55:54]line 小褔械褌 N : (1)320784 [23:55:54]line 袠袧袧: 02508201610067 [23:55:54]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [23:55:54]line 袩袪袨袛袗袞袗 [23:55:54]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [23:55:54]line 孝芯胁邪褉: 2710124130 [23:55:54]line 袗懈-92-袣-5 [23:55:54]line 4.820 * 66.40 [23:55:54]line = 320.05 [23:55:54]line 袧袛小 12% 袧小袩 1% [23:55:54]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [23:55:54]line 袨袣袪校袚袥袝袧袠袝: -0.05 [23:55:54]line 袠孝袨袚袨: 320.00 [23:55:54]line 袙薪械褋械薪芯: 320.00 [23:55:54]line 小袛袗效袗: 0.00 [23:55:54]line 袧小袩 1% : 2.83 [23:55:54]line 袧袛小 12% : 33.99 [23:55:54]line 袧邪谢懈褔薪褘屑懈: 320.00 [23:55:54]line 袘械蟹薪邪谢.: 0.00 [23:55:54]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [23:55:54]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [23:55:54]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [23:55:54]line 效械泻 290 21.06.2024 23:55 [23:55:54]line 小屑械薪邪: 390 肖肖袛: 1.0 [23:55:54]line 袟袧袦: 0300000198 [23:55:54]line 袪袧袦: 0000000000092771 [23:55:54]line 袙械褉褋懈褟 袣袣袦: 001 [23:55:54]line 肖袦: 0000000000875083 [23:55:54]line 肖袛: 112122 [23:55:54]line 肖袩袛: 209690298915886 [23:55:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T235558&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112122&fm=209690298915886&tin=02508201610067®Number=0000000000092771&sum=32000 [23:55:54]OFD Sender: Processing packet 112122 [packets to send 38, broken 37] [23:55:54]ProducePacketName [23:55:54]name=ofd_packets/00112122 [23:55:54]OFD Sender: To server: 嚂鰌G, [23:55:54]CommunicateWithHost lk.salyk.kg:30040 [23:55:54]ConnectInit lk.salyk.kg [23:55:54]written 0, free lines is 4095 [23:55:55]Write to MH i2c: 01 00 00 7C 10 8C [23:55:55]Write i2c OK [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: 01 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: 01 07 00 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: 01 07 00 7C 10 00 00 00 00 00 D7 0C 76 [23:55:55]RasterBufferAndPrint [23:55:55]line [23:55:55]line [23:55:55]line [23:55:55]line [23:55:55]line [23:55:55]written 0, free lines is 3290 [23:55:55]MH_Cut [23:55:55]Write to MH i2c: D1 01 00 83 10 01 65 [23:55:55]Write i2c OK [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: D1 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: D1 01 00 [23:55:55]MH_I2C_Read... [23:55:55]Read from MH i2c: D1 01 00 83 10 00 64 [23:55:55]Write to MH i2c: 01 00 00 84 10 94 [23:55:55]Write i2c OK [23:55:55]MH_I2C_Read... [23:55:56]*** Cut start [23:55:56]*** Partial cut [23:55:56]*** CUTSNS_PIN = 1 [23:55:56]*** CUTSNS_PIN = 0 [23:55:56]*** Brake cut motor [23:55:56]Read from MH i2c: 01 [23:55:56]MH_I2C_Read... [23:55:56]*** Stop cut motor [23:55:56]*** Cut end [23:55:56]Read from MH i2c: 01 07 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: 01 07 00 84 10 00 00 00 00 00 FF 0F A9 [23:55:56]process_action close_receipt done [23:55:56]requested_data is exist [23:55:56]produce_requested_data [23:55:56]requested_item fm.sn is exist - process it [23:55:56]wFMCommunicate request_size=4 [23:55:56]MH_SAM_APDU [23:55:56]CAPDU: 80 11 00 00 [23:55:56]Write to MH i2c: E2 08 00 85 10 80 11 00 00 00 00 00 00 0F [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:56]Read from MH i2c: E2 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 17 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 17 00 85 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [23:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:55:56]wFMCommunicate OK [23:55:56]requested_item fd.num is exist - process it [23:55:56]SAM_PROTO_GetFieldsCounters [23:55:56]wFMCommunicate request_size=4 [23:55:56]MH_SAM_APDU [23:55:56]CAPDU: 80 13 00 00 [23:55:56]Write to MH i2c: E2 08 00 86 10 80 13 00 00 00 00 00 00 12 [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:56]Read from MH i2c: E2 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 62 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 62 00 86 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [23:55:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FA B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:56]wFMCommunicate OK [23:55:56]SAM_PROTO_GetFieldsCounters done [23:55:56]requested_item shift.num is exist - process it [23:55:56]requested_item shift.opened is exist - process it [23:55:56]req_shift_opened [23:55:56]FM_GetShiftState [23:55:56]SAM_PROTO_GetShiftState [23:55:56]wFMCommunicate request_size=4 [23:55:56]MH_SAM_APDU [23:55:56]CAPDU: 80 13 01 00 [23:55:56]Write to MH i2c: E2 08 00 87 10 80 13 01 00 00 00 00 00 14 [23:55:56]Write i2c OK [23:55:56]MH_I2C_Read... [23:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:56]Read from MH i2c: E2 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 0E 00 [23:55:56]MH_I2C_Read... [23:55:56]Read from MH i2c: E2 0E 00 87 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 91 [23:55:56]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [23:55:56]wFMCommunicate OK [23:55:56]SAM_PROTO_GetShiftState done [23:55:56]FM_GetShiftState done [23:55:56]req_shift_opened done [23:55:56]requested_item shift.open_date is exist - process it [23:55:56]req_shift_open_date [23:55:56]req_shift_open_date done [23:55:56]produce_requested_data done [23:55:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112122,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [23:55:56]process_action_free close_receipt [23:55:56]json_value_free [23:55:56]json_value_free done [23:55:56]process_json_proto returns [23:55:56]Send response to host [23:55:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112122,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [23:55:56]free response buf [23:55:56]execute_script done [23:55:56]execute_script returns [23:55:56]free content buf [23:55:56]Sock 10.Close socket [23:55:56]Sock 10.Thread stoped [23:58:08]ConnectInit Can't connect to host [23:58:08]CommunicateWithHost connect error [23:58:08]CommunicateWithHost err = -1 [23:58:08]OFD Sender: Server communicate error [23:58:13]OFD Sender: Processing packet 112122 [packets to send 38, broken 37] [23:58:13]ProducePacketName [23:58:13]name=ofd_packets/00112122 [23:58:13]OFD Sender: To server: 嚂鰌G, [23:58:13]CommunicateWithHost lk.salyk.kg:30040 [23:58:13]ConnectInit lk.salyk.kg [23:58:13]Connected sock=9 [23:58:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DB 7C 07 01 0D 2D 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 0E 13 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B5 01 00 35 04 06 00 BE B6 53 C7 9C 2E 51 37 19 3F 4D 52 68 F6 [23:58:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 00 91 47 00 D5 5D 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 30 38 37 35 30 38 33 10 04 04 00 FA B5 01 00 F4 03 04 00 B5 AA 75 66 B6 04 01 00 00 14 D0 EA 6D D7 18 6D 7A [23:58:13]CommunicateWithHost err = 0 [23:58:13]CheckOFDResponse [23:58:13]1017 (14) - 77093643461234 [23:58:13]1041 (16) - 0000000000875083 [23:58:13]1040 (4) - 112122 [23:58:13]1012 (4) - 21.06.2024 16:30 [23:58:13]1206 (1) - 0 [23:58:13]OFD Sender: Remove packet 112122 [23:58:13]ProducePacketName [23:58:13]name=ofd_packets/00112122 [23:58:13]NVStorageDeleteData [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:55]accept exits with 7 [00:01:55]New connection [00:01:55]New thread 3066813796 created [00:01:55]Thread 3066957156 joined [00:01:55]Waiting for new connection... [00:01:55] Sock 7.Parse request [00:01:55]Sock 7.Check first char [00:01:55]Sock 7.First char is OK [00:01:55]request: POST /json_proto HTTP/1.0 [00:01:55]Method: POST [00:01:55]URL: /json_proto [00:01:55]Method is POST - this is cgi request [00:01:55]url: /json_proto [00:01:55]query_string will be loaded in cgi processing [00:01:55]execute_cgi json_proto POST (null) [00:01:55]execute_cgi path=json_proto method=POST [00:01:55]POST find Content-Length [00:01:55]Host: 172.17.59.68:8080 [00:01:55]Content-Length: 677 [00:01:55]Content-Type: application/json [00:01:55] [00:01:55]POST finish read [00:01:55]Found Content-Length = 677 [00:01:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [00:01:55]execute_script... [00:01: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)320785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "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" ] } } [00:01:55]POST & json_proto [00:01:55]process_json_proto [00:01:55]json parsed OK: [00:01:55]protocol is kg_v1.0 [00:01:55]action value=close_receipt [00:01:55]process_action close_receipt [00:01:55]cmd_close_receipt [00:01:55]MH_GetDate [00:01:55]Write to MH i2c: F0 00 00 88 10 87 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: F0 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: F0 09 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: F0 09 00 88 10 00 79 14 76 66 BC EC 60 65 66 [00:01:55]GetLastDocTimeStamp 1719014158 [00:01:55]current date 1719014521 [00:01:55]FM_GetShiftState [00:01:55]SAM_PROTO_GetShiftState [00:01:55]wFMCommunicate request_size=4 [00:01:55]MH_SAM_APDU [00:01:55]CAPDU: 80 13 01 00 [00:01:55]Write to MH i2c: E2 08 00 89 10 80 13 01 00 00 00 00 00 16 [00:01:55]Write i2c OK [00:01:55]MH_I2C_Read... [00:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:55]Read from MH i2c: E2 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 0E 00 [00:01:55]MH_I2C_Read... [00:01:55]Read from MH i2c: E2 0E 00 89 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 93 [00:01:55]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:01:55]wFMCommunicate OK [00:01:55]SAM_PROTO_GetShiftState done [00:01:55]FM_GetShiftState done [00:01:55]opened in 1718933695 [00:01:55]opened+sec_in_day 1719020095 [00:01:55]quantity*price = 50065 [00:01:55]sum+1 = 50067 [00:01:55]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.66 袠孝袨袚袨: 500.00 袙薪械褋械薪芯: 500.00 小袛袗效袗: 0.00 袧小袩 1% : 4.43 袧袛小 12% : 53.17 袧邪谢懈褔薪褘屑懈: 500.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 291 22.06.2024 00:02 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112123 肖袩袛: 14584600325824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T000201&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112123&fm=14584600325824&tin=02508201610067®Number=0000000000092771&sum=50000 [00:01:56]StoreToDocumentArchive [00:01:56]shift 390 fd 112123 [00:01:56]save to /storage/0390/doc_00112123 [00:01:56]save last doc name /storage/0390/doc_00112123 to /storage/kkm_last_doc_name [00:01:56]save OK [00:01:56]Clear old archive folders... [00:01:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:01:56]tlvbuf is 01179010 [00:01:56]SAM_PROTO_ClearQueue [00:01:56]wFMCommunicate request_size=4 [00:01:56]MH_SAM_APDU [00:01:56]CAPDU: 80 09 00 00 [00:01:56]Write to MH i2c: E2 08 00 96 10 80 09 00 00 00 00 00 00 18 [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:56]Read from MH i2c: E2 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 03 00 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 03 00 96 10 00 90 00 1A [00:01:56]RAPDU: 90 00 [00:01:56]wFMCommunicate OK [00:01:56]SAM_PROTO_ClearQueue done [00:01:56]KKMCreateOFDPacket [00:01:56]OFDProtocolAddRootSTLVToBuf [00:01:56]FM_MakeSignedData [00:01:56]FM_MakeSignedData [00:01:56]SAM_PROTO_SignData [00:01:56]wFMCommunicate request_size=4 [00:01:56]MH_SAM_APDU [00:01:56]CAPDU: 80 0D 01 02 [00:01:56]Write to MH i2c: E2 08 00 97 10 80 0D 01 02 00 00 00 00 20 [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:56]Read from MH i2c: E2 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 03 00 [00:01:56]MH_I2C_Read... [00:01:56]Read from MH i2c: E2 03 00 97 10 00 90 00 1B [00:01:56]RAPDU: 90 00 [00:01:56]wFMCommunicate OK [00:01:56]wFMCommunicate request_size=255 [00:01:56]MH_SAM_APDU [00:01:56]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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 23 01 00 00 F4 03 04 00 79 14 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B5 01 00 35 04 06 00 0D [00:01:56]Write to MH i2c: E2 02 01 98 10 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 23 01 00 00 F4 03 04 00 79 14 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B5 01 00 35 04 06 00 0D 00 00 A6 [00:01:56]Write i2c OK [00:01:56]MH_I2C_Read... [00:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:57]Read from MH i2c: E2 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 03 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 03 00 98 10 00 90 00 1C [00:01:57]RAPDU: 90 00 [00:01:57]wFMCommunicate OK [00:01:57]wFMCommunicate request_size=10 [00:01:57]MH_SAM_APDU [00:01:57]CAPDU: 80 0D 02 02 05 43 BD EB EE C0 [00:01:57]Write to MH i2c: E2 0D 00 99 10 80 0D 02 02 05 00 43 BD EB EE C0 00 00 C6 [00:01:57]Write i2c OK [00:01:57]MH_I2C_Read... [00:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:57]Read from MH i2c: E2 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 03 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 03 00 99 10 00 90 00 1D [00:01:57]RAPDU: 90 00 [00:01:57]wFMCommunicate OK [00:01:57]wFMCommunicate request_size=4 [00:01:57]MH_SAM_APDU [00:01:57]CAPDU: 80 0D 03 02 [00:01:57]Write to MH i2c: E2 08 00 9A 10 80 0D 03 02 00 00 00 00 25 [00:01:57]Write i2c OK [00:01:57]MH_I2C_Read... [00:01:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:57]Read from MH i2c: E2 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 0B 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 0B 00 9A 10 00 19 B0 1B 9C 7E 6A 17 B0 90 00 55 [00:01:57]RAPDU: 19 B0 1B 9C 7E 6A 17 B0 90 00 [00:01:57]wFMCommunicate OK [00:01:57]SAM_PROTO_SignData done [00:01:57]FM_MakeSignedData done [00:01:57]CreateOFDProtocolMessage [00:01:57]wFMCommunicate request_size=4 [00:01:57]MH_SAM_APDU [00:01:57]CAPDU: 80 11 00 00 [00:01:57]Write to MH i2c: E2 08 00 9B 10 80 11 00 00 00 00 00 00 25 [00:01:57]Write i2c OK [00:01:57]MH_I2C_Read... [00:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:57]Read from MH i2c: E2 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 17 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: E2 17 00 9B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [00:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:01:57]wFMCommunicate OK [00:01:57]CreateOFDProtocolMessage done [00:01:57]OFDSenderStorePacket 112123 [00:01:57]StoreOFDPacket docnum=112123 [00:01:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 36 45 07 01 6C D7 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 23 01 00 00 F4 03 04 00 79 14 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B5 01 00 35 04 06 00 0D 43 BD EB EE C0 19 B0 1B 9C 7E 6A 17 B0 [00:01:57]CheckFolder [00:01:57]dirname=/storage/ofd_packets [00:01:57]CheckFolder done [00:01:57]ProducePacketName [00:01:57]name=ofd_packets/00112123 [00:01:57]NVStorageSaveData ofd_packets/00112123 [00:01:57]File name is /storage/ofd_packets/00112123 [00:01:57]Write 301 bytes [00:01:57]NVStorageSaveData done [00:01:57]OFDSenderStorePacket done [00:01:57]KKMCreateOFDPacket done [00:01:57]NVStorageSaveData kkm_last_timestamp [00:01:57]File name is /storage/kkm_last_timestamp [00:01:57]Write 4 bytes [00:01:57]NVStorageSaveData done [00:01:57]ExternCall_PrintAddStr [00:01:57]wPrintStart [00:01:57]Write to MH i2c: 01 00 00 9C 10 AC [00:01:57]Write i2c OK [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: 01 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: 01 07 00 [00:01:57]MH_I2C_Read... [00:01:57]Read from MH i2c: 01 07 00 9C 10 00 00 00 00 00 FF 0F C1 [00:01:57]RasterBufferAndPrint [00:01:57]line 小褔械褌 N : (1)320785 [00:01:57]line 袠袧袧: 02508201610067 [00:01:57]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [00:01:57]line 袩袪袨袛袗袞袗 [00:01:57]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [00:01:57]line 孝芯胁邪褉: 2710124130 [00:01:57]line 袗懈-92-袣-5 [00:01:57]line 7.540 * 66.40 [00:01:57]line = 500.66 [00:01:57]line 袧袛小 12% 袧小袩 1% [00:01:57]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [00:01:57]line 袨袣袪校袚袥袝袧袠袝: -0.66 [00:01:57]line 袠孝袨袚袨: 500.00 [00:01:57]line 袙薪械褋械薪芯: 500.00 [00:01:57]line 小袛袗效袗: 0.00 [00:01:57]line 袧小袩 1% : 4.43 [00:01:57]line 袧袛小 12% : 53.17 [00:01:57]line 袧邪谢懈褔薪褘屑懈: 500.00 [00:01:57]line 袘械蟹薪邪谢.: 0.00 [00:01:57]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [00:01:57]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [00:01:57]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [00:01:57]line 效械泻 291 22.06.2024 00:02 [00:01:57]line 小屑械薪邪: 390 肖肖袛: 1.0 [00:01:57]line 袟袧袦: 0300000198 [00:01:57]line 袪袧袦: 0000000000092771 [00:01:57]line 袙械褉褋懈褟 袣袣袦: 001 [00:01:57]line 肖袦: 0000000000875083 [00:01:57]line 肖袛: 112123 [00:01:57]line 肖袩袛: 14584600325824 [00:01:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T000201&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112123&fm=14584600325824&tin=02508201610067®Number=0000000000092771&sum=50000 [00:01:57]OFD Sender: Processing packet 112123 [packets to send 38, broken 37] [00:01:57]ProducePacketName [00:01:57]name=ofd_packets/00112123 [00:01:57]OFD Sender: To server: 嚂鰌G, [00:01:57]CommunicateWithHost lk.salyk.kg:30040 [00:01:57]ConnectInit lk.salyk.kg [00:01:57]written 0, free lines is 4095 [00:01:57]Connected sock=10 [00:01:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 36 45 07 01 6C D7 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 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 C5 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 23 01 00 00 F4 03 04 00 79 14 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B5 01 00 35 04 06 00 0D 43 BD EB EE C0 19 B0 1B 9C 7E 6A 17 B0 [00:01:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6D 05 47 00 B4 27 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 30 38 37 35 30 38 33 10 04 04 00 FB B5 01 00 F4 03 04 00 95 AB 75 66 B6 04 01 00 00 3E E8 8C B6 69 82 87 73 [00:01:57]CommunicateWithHost err = 0 [00:01:57]CheckOFDResponse [00:01:57]1017 (14) - 77093643461234 [00:01:57]1041 (16) - 0000000000875083 [00:01:57]1040 (4) - 112123 [00:01:57]1012 (4) - 21.06.2024 16:34 [00:01:57]1206 (1) - 0 [00:01:57]OFD Sender: Remove packet 112123 [00:01:57]ProducePacketName [00:01:57]name=ofd_packets/00112123 [00:01:57]NVStorageDeleteData [00:01:58]Write to MH i2c: 01 00 00 C7 10 D7 [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: 01 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: 01 07 00 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: 01 07 00 C7 10 00 00 00 00 00 CD 0C B7 [00:01:58]RasterBufferAndPrint [00:01:58]line [00:01:58]line [00:01:58]line [00:01:58]line [00:01:58]line [00:01:58]written 0, free lines is 3283 [00:01:58]MH_Cut [00:01:58]Write to MH i2c: D1 01 00 CE 10 01 B0 [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: D1 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: D1 01 00 [00:01:58]MH_I2C_Read... [00:01:58]Read from MH i2c: D1 01 00 CE 10 00 AF [00:01:58]Write to MH i2c: 01 00 00 CF 10 DF [00:01:58]Write i2c OK [00:01:58]MH_I2C_Read... [00:01:58]OFD Sender: No OFD packet to send [00:01:58]*** Cut start [00:01:58]*** Partial cut [00:01:58]*** CUTSNS_PIN = 1 [00:01:58]*** CUTSNS_PIN = 0 [00:01:59]*** Brake cut motor [00:01:59]Read from MH i2c: 01 [00:01:59]MH_I2C_Read... [00:01:59]*** Stop cut motor [00:01:59]*** Cut end [00:01:59]Read from MH i2c: 01 07 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: 01 07 00 CF 10 00 00 00 00 00 FF 0F F4 [00:01:59]process_action close_receipt done [00:01:59]requested_data is exist [00:01:59]produce_requested_data [00:01:59]requested_item fm.sn is exist - process it [00:01:59]wFMCommunicate request_size=4 [00:01:59]MH_SAM_APDU [00:01:59]CAPDU: 80 11 00 00 [00:01:59]Write to MH i2c: E2 08 00 D0 10 80 11 00 00 00 00 00 00 5A [00:01:59]Write i2c OK [00:01:59]MH_I2C_Read... [00:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:59]Read from MH i2c: E2 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 17 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 17 00 D0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AC [00:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:01:59]wFMCommunicate OK [00:01:59]requested_item fd.num is exist - process it [00:01:59]SAM_PROTO_GetFieldsCounters [00:01:59]wFMCommunicate request_size=4 [00:01:59]MH_SAM_APDU [00:01:59]CAPDU: 80 13 00 00 [00:01:59]Write to MH i2c: E2 08 00 D1 10 80 13 00 00 00 00 00 00 5D [00:01:59]Write i2c OK [00:01:59]MH_I2C_Read... [00:01:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:59]Read from MH i2c: E2 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 62 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 62 00 D1 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [00:01:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FB B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:59]wFMCommunicate OK [00:01:59]SAM_PROTO_GetFieldsCounters done [00:01:59]requested_item shift.num is exist - process it [00:01:59]requested_item shift.opened is exist - process it [00:01:59]req_shift_opened [00:01:59]FM_GetShiftState [00:01:59]SAM_PROTO_GetShiftState [00:01:59]wFMCommunicate request_size=4 [00:01:59]MH_SAM_APDU [00:01:59]CAPDU: 80 13 01 00 [00:01:59]Write to MH i2c: E2 08 00 D2 10 80 13 01 00 00 00 00 00 5F [00:01:59]Write i2c OK [00:01:59]MH_I2C_Read... [00:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:59]Read from MH i2c: E2 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 0E 00 [00:01:59]MH_I2C_Read... [00:01:59]Read from MH i2c: E2 0E 00 D2 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 DC [00:01:59]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:01:59]wFMCommunicate OK [00:01:59]SAM_PROTO_GetShiftState done [00:01:59]FM_GetShiftState done [00:01:59]req_shift_opened done [00:01:59]requested_item shift.open_date is exist - process it [00:01:59]req_shift_open_date [00:01:59]req_shift_open_date done [00:01:59]produce_requested_data done [00:01:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112123,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [00:01:59]process_action_free close_receipt [00:01:59]json_value_free [00:01:59]json_value_free done [00:01:59]process_json_proto returns [00:01:59]Send response to host [00:01:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112123,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [00:01:59]free response buf [00:01:59]execute_script done [00:01:59]execute_script returns [00:01:59]free content buf [00:01:59]Sock 7.Close socket [00:01:59]Sock 7.Thread stoped [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]accept exits with 9 [00:09:28]New connection [00:09:28]New thread 3066957156 created [00:09:28]Thread 3066813796 joined [00:09:28]Waiting for new connection... [00:09:28] Sock 9.Parse request [00:09:28]Sock 9.Check first char [00:09:28]Sock 9.First char is OK [00:09:28]request: POST /json_proto HTTP/1.0 [00:09:28]Method: POST [00:09:28]URL: /json_proto [00:09:28]Method is POST - this is cgi request [00:09:28]url: /json_proto [00:09:28]query_string will be loaded in cgi processing [00:09:28]execute_cgi json_proto POST (null) [00:09:28]execute_cgi path=json_proto method=POST [00:09:28]POST find Content-Length [00:09:28]Host: 172.17.59.68:8080 [00:09:28]Content-Length: 640 [00:09:28]Content-Type: application/json [00:09:28] [00:09:28]POST finish read [00:09:28]Found Content-Length = 640 [00:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:28]execute_script... [00:09: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 : (1)320786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:28]POST & json_proto [00:09:28]process_json_proto [00:09:28]json parsed OK: [00:09:28]protocol is kg_v1.0 [00:09:28]action value=close_receipt [00:09:28]process_action close_receipt [00:09:28]cmd_close_receipt [00:09:28]MH_GetDate [00:09:28]Write to MH i2c: F0 00 00 D3 10 D2 [00:09:28]Write i2c OK [00:09:28]MH_I2C_Read... [00:09:28]Read from MH i2c: F0 [00:09:28]MH_I2C_Read... [00:09:28]Read from MH i2c: F0 09 00 [00:09:28]MH_I2C_Read... [00:09:28]Read from MH i2c: F0 09 00 D3 10 00 3E 16 76 66 BC EC 60 65 78 [00:09:28]GetLastDocTimeStamp 1719014521 [00:09:28]current date 1719014974 [00:09:28]FM_GetShiftState [00:09:28]SAM_PROTO_GetShiftState [00:09:28]wFMCommunicate request_size=4 [00:09:28]MH_SAM_APDU [00:09:28]CAPDU: 80 13 01 00 [00:09:28]Write to MH i2c: E2 08 00 D4 10 80 13 01 00 00 00 00 00 61 [00:09:28]Write i2c OK [00:09:28]MH_I2C_Read... [00:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:28]Read from MH i2c: E2 [00:09:28]MH_I2C_Read... [00:09:28]Read from MH i2c: E2 0E 00 [00:09:28]MH_I2C_Read... [00:09:28]Read from MH i2c: E2 0E 00 D4 10 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 DE [00:09:28]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:09:28]wFMCommunicate OK [00:09:28]SAM_PROTO_GetShiftState done [00:09:28]FM_GetShiftState done [00:09:28]opened in 1718933695 [00:09:28]opened+sec_in_day 1719020095 [00:09:28]quantity*price = 66400 [00:09:28]sum+1 = 66401 [00:09:28]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 664.00 袧小袩 1% : 5.88 袧袛小 12% : 70.51 袧邪谢懈褔薪褘屑懈: 664.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 292 22.06.2024 00:09 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112124 肖袩袛: 206019251632821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T000934&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112124&fm=206019251632821&tin=02508201610067®Number=0000000000092771&sum=66400 [00:09:29]StoreToDocumentArchive [00:09:29]shift 390 fd 112124 [00:09:29]save to /storage/0390/doc_00112124 [00:09:29]save last doc name /storage/0390/doc_00112124 to /storage/kkm_last_doc_name [00:09:29]save OK [00:09:29]Clear old archive folders... [00:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:09:29]tlvbuf is 01158B80 [00:09:29]SAM_PROTO_ClearQueue [00:09:29]wFMCommunicate request_size=4 [00:09:29]MH_SAM_APDU [00:09:29]CAPDU: 80 09 00 00 [00:09:29]Write to MH i2c: E2 08 00 E1 10 80 09 00 00 00 00 00 00 63 [00:09:29]Write i2c OK [00:09:29]MH_I2C_Read... [00:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:29]Read from MH i2c: E2 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 03 00 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 03 00 E1 10 00 90 00 65 [00:09:29]RAPDU: 90 00 [00:09:29]wFMCommunicate OK [00:09:29]SAM_PROTO_ClearQueue done [00:09:29]KKMCreateOFDPacket [00:09:29]OFDProtocolAddRootSTLVToBuf [00:09:29]FM_MakeSignedData [00:09:29]FM_MakeSignedData [00:09:29]SAM_PROTO_SignData [00:09:29]wFMCommunicate request_size=4 [00:09:29]MH_SAM_APDU [00:09:29]CAPDU: 80 0D 01 02 [00:09:29]Write to MH i2c: E2 08 00 E2 10 80 0D 01 02 00 00 00 00 6B [00:09:29]Write i2c OK [00:09:29]MH_I2C_Read... [00:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:29]Read from MH i2c: E2 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 03 00 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 03 00 E2 10 00 90 00 66 [00:09:29]RAPDU: 90 00 [00:09:29]wFMCommunicate OK [00:09:29]wFMCommunicate request_size=255 [00:09:29]MH_SAM_APDU [00:09:29]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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 24 01 00 00 F4 03 04 00 3E 16 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B5 01 00 35 04 06 00 BB [00:09:29]Write to MH i2c: E2 02 01 E3 10 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 24 01 00 00 F4 03 04 00 3E 16 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B5 01 00 35 04 06 00 BB 00 00 1E [00:09:29]Write i2c OK [00:09:29]MH_I2C_Read... [00:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:30]Read from MH i2c: E2 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 03 00 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 03 00 E3 10 00 90 00 67 [00:09:30]RAPDU: 90 00 [00:09:30]wFMCommunicate OK [00:09:30]wFMCommunicate request_size=10 [00:09:30]MH_SAM_APDU [00:09:30]CAPDU: 80 0D 02 02 05 5F 98 4F 7A B5 [00:09:30]Write to MH i2c: E2 0D 00 E4 10 80 0D 02 02 05 00 5F 98 4F 7A B5 00 00 ED [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:30]Read from MH i2c: E2 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 03 00 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 03 00 E4 10 00 90 00 68 [00:09:30]RAPDU: 90 00 [00:09:30]wFMCommunicate OK [00:09:30]wFMCommunicate request_size=4 [00:09:30]MH_SAM_APDU [00:09:30]CAPDU: 80 0D 03 02 [00:09:30]Write to MH i2c: E2 08 00 E5 10 80 0D 03 02 00 00 00 00 70 [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:30]Read from MH i2c: E2 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 0B 00 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 0B 00 E5 10 00 EB E6 5D 92 BA 88 7D 51 90 00 41 [00:09:30]RAPDU: EB E6 5D 92 BA 88 7D 51 90 00 [00:09:30]wFMCommunicate OK [00:09:30]SAM_PROTO_SignData done [00:09:30]FM_MakeSignedData done [00:09:30]CreateOFDProtocolMessage [00:09:30]wFMCommunicate request_size=4 [00:09:30]MH_SAM_APDU [00:09:30]CAPDU: 80 11 00 00 [00:09:30]Write to MH i2c: E2 08 00 E6 10 80 11 00 00 00 00 00 00 70 [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:30]Read from MH i2c: E2 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 17 00 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 17 00 E6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C2 [00:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:09:30]wFMCommunicate OK [00:09:30]CreateOFDProtocolMessage done [00:09:30]OFDSenderStorePacket 112124 [00:09:30]StoreOFDPacket docnum=112124 [00:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C9 13 07 01 7B 73 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 24 01 00 00 F4 03 04 00 3E 16 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B5 01 00 35 04 06 00 BB 5F 98 4F 7A B5 EB E6 5D 92 BA 88 7D 51 [00:09:30]CheckFolder [00:09:30]dirname=/storage/ofd_packets [00:09:30]CheckFolder done [00:09:30]ProducePacketName [00:09:30]name=ofd_packets/00112124 [00:09:30]NVStorageSaveData ofd_packets/00112124 [00:09:30]File name is /storage/ofd_packets/00112124 [00:09:30]Write 301 bytes [00:09:30]NVStorageSaveData done [00:09:30]OFDSenderStorePacket done [00:09:30]KKMCreateOFDPacket done [00:09:30]NVStorageSaveData kkm_last_timestamp [00:09:30]File name is /storage/kkm_last_timestamp [00:09:30]Write 4 bytes [00:09:30]NVStorageSaveData done [00:09:30]ExternCall_PrintAddStr [00:09:30]wPrintStart [00:09:30]Write to MH i2c: 01 00 00 E7 10 F7 [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: 01 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: 01 07 00 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: 01 07 00 E7 10 00 00 00 00 00 FF 0F 0C [00:09:30]RasterBufferAndPrint [00:09:30]line 小褔械褌 N : (1)320786 [00:09:30]line 袠袧袧: 02508201610067 [00:09:30]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [00:09:30]line 袩袪袨袛袗袞袗 [00:09:30]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [00:09:30]line 孝芯胁邪褉: 2710124130 [00:09:30]line 袗懈-92-袣-5 [00:09:30]line 10.000 * 66.40 [00:09:30]line = 664.00 [00:09:30]line 袧袛小 12% 袧小袩 1% [00:09:30]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [00:09:30]line 袠孝袨袚袨: 664.00 [00:09:30]line 袧小袩 1% : 5.88 [00:09:30]line 袧袛小 12% : 70.51 [00:09:30]line 袧邪谢懈褔薪褘屑懈: 664.00 [00:09:30]line 袘械蟹薪邪谢.: 0.00 [00:09:30]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [00:09:30]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [00:09:30]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [00:09:30]line 效械泻 292 22.06.2024 00:09 [00:09:30]line 小屑械薪邪: 390 肖肖袛: 1.0 [00:09:30]line 袟袧袦: 0300000198 [00:09:30]line 袪袧袦: 0000000000092771 [00:09:30]line 袙械褉褋懈褟 袣袣袦: 001 [00:09:30]line 肖袦: 0000000000875083 [00:09:30]line 肖袛: 112124 [00:09:30]line 肖袩袛: 206019251632821 [00:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T000934&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112124&fm=206019251632821&tin=02508201610067®Number=0000000000092771&sum=66400 [00:09:30]OFD Sender: Processing packet 112124 [packets to send 38, broken 37] [00:09:30]ProducePacketName [00:09:30]name=ofd_packets/00112124 [00:09:30]OFD Sender: To server: 嚂鰌G, [00:09:30]CommunicateWithHost lk.salyk.kg:30040 [00:09:30]ConnectInit lk.salyk.kg [00:09:30]written 0, free lines is 4095 [00:09:30]Connected sock=10 [00:09:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C9 13 07 01 7B 73 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 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 24 01 00 00 F4 03 04 00 3E 16 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B5 01 00 35 04 06 00 BB 5F 98 4F 7A B5 EB E6 5D 92 BA 88 7D 51 [00:09:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8E 0E 47 00 07 47 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 30 38 37 35 30 38 33 10 04 04 00 FC B5 01 00 F4 03 04 00 5A AD 75 66 B6 04 01 00 00 E7 E5 CD 4A 5A A4 DB E7 [00:09:30]CommunicateWithHost err = 0 [00:09:30]CheckOFDResponse [00:09:30]1017 (14) - 77093643461234 [00:09:30]1041 (16) - 0000000000875083 [00:09:30]1040 (4) - 112124 [00:09:30]1012 (4) - 21.06.2024 16:42 [00:09:30]1206 (1) - 0 [00:09:30]OFD Sender: Remove packet 112124 [00:09:30]ProducePacketName [00:09:30]name=ofd_packets/00112124 [00:09:30]NVStorageDeleteData [00:09:30]Write to MH i2c: 01 00 00 0F 11 20 [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: 01 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: 01 07 00 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: 01 07 00 0F 11 00 00 00 00 00 0F 0D 43 [00:09:30]RasterBufferAndPrint [00:09:30]line [00:09:30]line [00:09:30]line [00:09:30]line [00:09:30]line [00:09:30]written 0, free lines is 3349 [00:09:30]MH_Cut [00:09:30]Write to MH i2c: D1 01 00 16 11 01 F9 [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: D1 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: D1 01 00 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: D1 01 00 16 11 00 F8 [00:09:31]Write to MH i2c: 01 00 00 17 11 28 [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:31]OFD Sender: No OFD packet to send [00:09:31]*** Cut start [00:09:31]*** Partial cut [00:09:31]*** CUTSNS_PIN = 1 [00:09:31]*** CUTSNS_PIN = 0 [00:09:31]*** Brake cut motor [00:09:32]Read from MH i2c: 01 [00:09:32]MH_I2C_Read... [00:09:32]*** Stop cut motor [00:09:32]Read from MH i2c: 01 07 00 [00:09:32]MH_I2C_Read... [00:09:32]*** Cut end [00:09:32]Read from MH i2c: 01 07 00 17 11 00 00 00 00 00 FF 0F 3D [00:09:32]process_action close_receipt done [00:09:32]requested_data is exist [00:09:32]produce_requested_data [00:09:32]requested_item fm.sn is exist - process it [00:09:32]wFMCommunicate request_size=4 [00:09:32]MH_SAM_APDU [00:09:32]CAPDU: 80 11 00 00 [00:09:32]Write to MH i2c: E2 08 00 18 11 80 11 00 00 00 00 00 00 A3 [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:32]Read from MH i2c: E2 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 17 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 17 00 18 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F5 [00:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:09:32]wFMCommunicate OK [00:09:32]requested_item fd.num is exist - process it [00:09:32]SAM_PROTO_GetFieldsCounters [00:09:32]wFMCommunicate request_size=4 [00:09:32]MH_SAM_APDU [00:09:32]CAPDU: 80 13 00 00 [00:09:32]Write to MH i2c: E2 08 00 19 11 80 13 00 00 00 00 00 00 A6 [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:32]Read from MH i2c: E2 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 62 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 62 00 19 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [00:09:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FC B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:32]wFMCommunicate OK [00:09:32]SAM_PROTO_GetFieldsCounters done [00:09:32]requested_item shift.num is exist - process it [00:09:32]requested_item shift.opened is exist - process it [00:09:32]req_shift_opened [00:09:32]FM_GetShiftState [00:09:32]SAM_PROTO_GetShiftState [00:09:32]wFMCommunicate request_size=4 [00:09:32]MH_SAM_APDU [00:09:32]CAPDU: 80 13 01 00 [00:09:32]Write to MH i2c: E2 08 00 1A 11 80 13 01 00 00 00 00 00 A8 [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:32]Read from MH i2c: E2 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 0E 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: E2 0E 00 1A 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 25 [00:09:32]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:09:32]wFMCommunicate OK [00:09:32]SAM_PROTO_GetShiftState done [00:09:32]FM_GetShiftState done [00:09:32]req_shift_opened done [00:09:32]requested_item shift.open_date is exist - process it [00:09:32]req_shift_open_date [00:09:32]req_shift_open_date done [00:09:32]produce_requested_data done [00:09:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112124,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [00:09:32]process_action_free close_receipt [00:09:32]json_value_free [00:09:32]json_value_free done [00:09:32]process_json_proto returns [00:09:32]Send response to host [00:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112124,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [00:09:32]free response buf [00:09:32]execute_script done [00:09:32]execute_script returns [00:09:32]free content buf [00:09:32]Sock 9.Close socket [00:09:32]Sock 9.Thread stoped [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:31]OFD Sender: No OFD packet to send [00:16:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:14]accept exits with 7 [00:17:14]New connection [00:17:14]New thread 3066813796 created [00:17:14]Thread 3066957156 joined [00:17:14]Waiting for new connection... [00:17:14] Sock 7.Parse request [00:17:14]Sock 7.Check first char [00:17:14]Sock 7.First char is OK [00:17:14]request: POST /json_proto HTTP/1.0 [00:17:14]Method: POST [00:17:14]URL: /json_proto [00:17:14]Method is POST - this is cgi request [00:17:14]url: /json_proto [00:17:14]query_string will be loaded in cgi processing [00:17:14]execute_cgi json_proto POST (null) [00:17:14]execute_cgi path=json_proto method=POST [00:17:14]POST find Content-Length [00:17:14]Host: 172.17.59.68:8080 [00:17:14]Content-Length: 808 [00:17:14]Content-Type: application/json [00:17:14] [00:17:14]POST finish read [00:17:14]Found Content-Length = 808 [00:17:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:14]execute_script... [00:17: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)320787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:14]POST & json_proto [00:17:14]process_json_proto [00:17:14]json parsed OK: [00:17:14]protocol is kg_v1.0 [00:17:14]action value=close_receipt [00:17:14]process_action close_receipt [00:17:14]cmd_close_receipt [00:17:14]MH_GetDate [00:17:14]Write to MH i2c: F0 00 00 1B 11 1B [00:17:14]Write i2c OK [00:17:14]MH_I2C_Read... [00:17:14]Read from MH i2c: F0 [00:17:14]MH_I2C_Read... [00:17:14]Read from MH i2c: F0 09 00 [00:17:14]MH_I2C_Read... [00:17:14]Read from MH i2c: F0 09 00 1B 11 00 10 18 76 66 BC EC 60 65 95 [00:17:14]GetLastDocTimeStamp 1719014974 [00:17:14]current date 1719015440 [00:17:14]FM_GetShiftState [00:17:14]SAM_PROTO_GetShiftState [00:17:14]wFMCommunicate request_size=4 [00:17:14]MH_SAM_APDU [00:17:14]CAPDU: 80 13 01 00 [00:17:14]Write to MH i2c: E2 08 00 1C 11 80 13 01 00 00 00 00 00 AA [00:17:14]Write i2c OK [00:17:14]MH_I2C_Read... [00:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:14]Read from MH i2c: E2 [00:17:14]MH_I2C_Read... [00:17:14]Read from MH i2c: E2 0E 00 [00:17:14]MH_I2C_Read... [00:17:14]Read from MH i2c: E2 0E 00 1C 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 27 [00:17:14]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:17:14]wFMCommunicate OK [00:17:14]SAM_PROTO_GetShiftState done [00:17:14]FM_GetShiftState done [00:17:14]opened in 1718933695 [00:17:14]opened+sec_in_day 1719020095 [00:17:14]quantity*price = 100064 [00:17:14]sum+1 = 100066 [00:17:14]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 1000.65 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 1000.65 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 293 22.06.2024 00:17 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112125 肖袩袛: 83343384862671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T001720&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112125&fm=83343384862671&tin=02508201610067®Number=0000000000092771&sum=100065 [00:17:16]StoreToDocumentArchive [00:17:16]shift 390 fd 112125 [00:17:16]save to /storage/0390/doc_00112125 [00:17:16]save last doc name /storage/0390/doc_00112125 to /storage/kkm_last_doc_name [00:17:16]save OK [00:17:16]Clear old archive folders... [00:17:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:17:16]tlvbuf is 0114B650 [00:17:16]SAM_PROTO_ClearQueue [00:17:16]wFMCommunicate request_size=4 [00:17:16]MH_SAM_APDU [00:17:16]CAPDU: 80 09 00 00 [00:17:16]Write to MH i2c: E2 08 00 29 11 80 09 00 00 00 00 00 00 AC [00:17:16]Write i2c OK [00:17:16]MH_I2C_Read... [00:17:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:16]Read from MH i2c: E2 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 03 00 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 03 00 29 11 00 90 00 AE [00:17:16]RAPDU: 90 00 [00:17:16]wFMCommunicate OK [00:17:16]SAM_PROTO_ClearQueue done [00:17:16]KKMCreateOFDPacket [00:17:16]OFDProtocolAddRootSTLVToBuf [00:17:16]FM_MakeSignedData [00:17:16]FM_MakeSignedData [00:17:16]SAM_PROTO_SignData [00:17:16]wFMCommunicate request_size=4 [00:17:16]MH_SAM_APDU [00:17:16]CAPDU: 80 0D 01 02 [00:17:16]Write to MH i2c: E2 08 00 2A 11 80 0D 01 02 00 00 00 00 B4 [00:17:16]Write i2c OK [00:17:16]MH_I2C_Read... [00:17:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:16]Read from MH i2c: E2 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 03 00 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 03 00 2A 11 00 90 00 AF [00:17:16]RAPDU: 90 00 [00:17:16]wFMCommunicate OK [00:17:16]wFMCommunicate request_size=255 [00:17:16]MH_SAM_APDU [00:17: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 10 18 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B5 01 00 35 04 06 00 4B [00:17:16]Write to MH i2c: E2 02 01 2B 11 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 10 18 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B5 01 00 35 04 06 00 4B 00 00 E9 [00:17:16]Write i2c OK [00:17:16]MH_I2C_Read... [00:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:16]Read from MH i2c: E2 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 03 00 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 03 00 2B 11 00 90 00 B0 [00:17:16]RAPDU: 90 00 [00:17:16]wFMCommunicate OK [00:17:16]wFMCommunicate request_size=10 [00:17:16]MH_SAM_APDU [00:17:16]CAPDU: 80 0D 02 02 05 CC E4 D9 5F CF [00:17:16]Write to MH i2c: E2 0D 00 2C 11 80 0D 02 02 05 00 CC E4 D9 5F CF 00 00 78 [00:17:16]Write i2c OK [00:17:16]MH_I2C_Read... [00:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:16]Read from MH i2c: E2 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 03 00 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 03 00 2C 11 00 90 00 B1 [00:17:16]RAPDU: 90 00 [00:17:16]wFMCommunicate OK [00:17:16]wFMCommunicate request_size=4 [00:17:16]MH_SAM_APDU [00:17:16]CAPDU: 80 0D 03 02 [00:17:16]Write to MH i2c: E2 08 00 2D 11 80 0D 03 02 00 00 00 00 B9 [00:17:16]Write i2c OK [00:17:16]MH_I2C_Read... [00:17:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:16]Read from MH i2c: E2 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 0B 00 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 0B 00 2D 11 00 AE 75 DE 1D 07 86 8F FD 90 00 F1 [00:17:16]RAPDU: AE 75 DE 1D 07 86 8F FD 90 00 [00:17:16]wFMCommunicate OK [00:17:16]SAM_PROTO_SignData done [00:17:16]FM_MakeSignedData done [00:17:16]CreateOFDProtocolMessage [00:17:16]wFMCommunicate request_size=4 [00:17:16]MH_SAM_APDU [00:17:16]CAPDU: 80 11 00 00 [00:17:16]Write to MH i2c: E2 08 00 2E 11 80 11 00 00 00 00 00 00 B9 [00:17:16]Write i2c OK [00:17:16]MH_I2C_Read... [00:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:16]Read from MH i2c: E2 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 17 00 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: E2 17 00 2E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0B [00:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:17:16]wFMCommunicate OK [00:17:16]CreateOFDProtocolMessage done [00:17:16]OFDSenderStorePacket 112125 [00:17:16]StoreOFDPacket docnum=112125 [00:17:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 C4 07 01 11 39 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 10 18 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B5 01 00 35 04 06 00 4B CC E4 D9 5F CF AE 75 DE 1D 07 86 8F FD [00:17:16]CheckFolder [00:17:16]dirname=/storage/ofd_packets [00:17:16]CheckFolder done [00:17:16]ProducePacketName [00:17:16]name=ofd_packets/00112125 [00:17:16]NVStorageSaveData ofd_packets/00112125 [00:17:16]File name is /storage/ofd_packets/00112125 [00:17:16]Write 301 bytes [00:17:16]NVStorageSaveData done [00:17:16]OFDSenderStorePacket done [00:17:16]KKMCreateOFDPacket done [00:17:16]NVStorageSaveData kkm_last_timestamp [00:17:16]File name is /storage/kkm_last_timestamp [00:17:16]Write 4 bytes [00:17:16]NVStorageSaveData done [00:17:16]ExternCall_PrintAddStr [00:17:16]wPrintStart [00:17:16]Write to MH i2c: 01 00 00 2F 11 40 [00:17:16]Write i2c OK [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: 01 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: 01 07 00 [00:17:16]MH_I2C_Read... [00:17:16]Read from MH i2c: 01 07 00 2F 11 00 00 00 00 00 FF 0F 55 [00:17:16]RasterBufferAndPrint [00:17:16]line 小褔械褌 N : (1)320787 [00:17:16]line 袠袧袧: 02508201610067 [00:17:16]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [00:17:16]line 袩袪袨袛袗袞袗 [00:17:16]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [00:17:16]line 孝芯胁邪褉: 2710124130 [00:17:16]line 袗懈-92-袣-5 [00:17:16]line 15.070 * 66.40 [00:17:16]line = 1000.65 [00:17:16]line 袧袛小 12% 袧小袩 1% [00:17:16]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [00:17:16]line 袠孝袨袚袨: 1000.65 [00:17:16]line 袧小袩 1% : 8.85 [00:17:16]line 袧袛小 12% : 106.26 [00:17:16]line 袧邪谢懈褔薪褘屑懈: 0.00 [00:17:16]line 袘械蟹薪邪谢.: 1000.65 [00:17:16]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [00:17:16]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [00:17:16]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [00:17:16]line 效械泻 293 22.06.2024 00:17 [00:17:16]line 小屑械薪邪: 390 肖肖袛: 1.0 [00:17:16]line 袟袧袦: 0300000198 [00:17:16]line 袪袧袦: 0000000000092771 [00:17:16]line 袙械褉褋懈褟 袣袣袦: 001 [00:17:16]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [00:17:16]line 肖袦: 0000000000875083 [00:17:16]line 肖袛: 112125 [00:17:16]line 肖袩袛: 83343384862671 [00:17:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T001720&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112125&fm=83343384862671&tin=02508201610067®Number=0000000000092771&sum=100065 [00:17:16]OFD Sender: Processing packet 112125 [packets to send 38, broken 37] [00:17:16]ProducePacketName [00:17:16]name=ofd_packets/00112125 [00:17:16]OFD Sender: To server: 嚂鰌G, [00:17:16]CommunicateWithHost lk.salyk.kg:30040 [00:17:16]ConnectInit lk.salyk.kg [00:17:16]written 0, free lines is 4095 [00:17:16]Connected sock=10 [00:17:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 C4 07 01 11 39 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 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 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 10 18 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B5 01 00 35 04 06 00 4B CC E4 D9 5F CF AE 75 DE 1D 07 86 8F FD [00:17:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3C 6B 47 00 35 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 30 38 37 35 30 38 33 10 04 04 00 FD B5 01 00 F4 03 04 00 2D AF 75 66 B6 04 01 00 00 DF 70 A0 B5 C3 81 9D 6A [00:17:17]CommunicateWithHost err = 0 [00:17:17]CheckOFDResponse [00:17:17]1017 (14) - 77093643461234 [00:17:17]1041 (16) - 0000000000875083 [00:17:17]1040 (4) - 112125 [00:17:17]1012 (4) - 21.06.2024 16:49 [00:17:17]1206 (1) - 0 [00:17:17]OFD Sender: Remove packet 112125 [00:17:17]ProducePacketName [00:17:17]name=ofd_packets/00112125 [00:17:17]NVStorageDeleteData [00:17:17]Write to MH i2c: 01 00 00 59 11 6A [00:17:17]Write i2c OK [00:17:17]MH_I2C_Read... [00:17:17]Read from MH i2c: 01 [00:17:17]MH_I2C_Read... [00:17:17]Read from MH i2c: 01 07 00 [00:17:17]MH_I2C_Read... [00:17:17]Read from MH i2c: 01 07 00 59 11 00 00 00 00 00 EE 0C 6B [00:17:17]RasterBufferAndPrint [00:17:17]line [00:17:17]line [00:17:17]line [00:17:17]line [00:17:17]line [00:17:17]written 0, free lines is 3317 [00:17:17]MH_Cut [00:17:17]Write to MH i2c: D1 01 00 60 11 01 43 [00:17:17]Write i2c OK [00:17:17]MH_I2C_Read... [00:17:17]Read from MH i2c: D1 [00:17:17]MH_I2C_Read... [00:17:17]Read from MH i2c: D1 01 00 [00:17:17]MH_I2C_Read... [00:17:17]Read from MH i2c: D1 01 00 60 11 00 42 [00:17:17]Write to MH i2c: 01 00 00 61 11 72 [00:17:17]Write i2c OK [00:17:17]MH_I2C_Read... [00:17:17]OFD Sender: No OFD packet to send [00:17:18]*** Cut start [00:17:18]*** Partial cut [00:17:18]*** CUTSNS_PIN = 1 [00:17:18]*** CUTSNS_PIN = 0 [00:17:18]*** Brake cut motor [00:17:18]Read from MH i2c: 01 [00:17:18]MH_I2C_Read... [00:17:18]*** Stop cut motor [00:17:18]*** Cut end [00:17:18]Read from MH i2c: 01 07 00 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: 01 07 00 61 11 00 00 00 00 00 FF 0F 87 [00:17:18]process_action close_receipt done [00:17:18]requested_data is exist [00:17:18]produce_requested_data [00:17:18]requested_item fm.sn is exist - process it [00:17:18]wFMCommunicate request_size=4 [00:17:18]MH_SAM_APDU [00:17:18]CAPDU: 80 11 00 00 [00:17:18]Write to MH i2c: E2 08 00 62 11 80 11 00 00 00 00 00 00 ED [00:17:18]Write i2c OK [00:17:18]MH_I2C_Read... [00:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:18]Read from MH i2c: E2 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: E2 17 00 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: E2 17 00 62 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3F [00:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:17:18]wFMCommunicate OK [00:17:18]requested_item fd.num is exist - process it [00:17:18]SAM_PROTO_GetFieldsCounters [00:17:18]wFMCommunicate request_size=4 [00:17:18]MH_SAM_APDU [00:17:18]CAPDU: 80 13 00 00 [00:17:18]Write to MH i2c: E2 08 00 63 11 80 13 00 00 00 00 00 00 F0 [00:17:18]Write i2c OK [00:17:18]MH_I2C_Read... [00:17:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:18]Read from MH i2c: E2 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: E2 62 00 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: E2 62 00 63 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FD B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [00:17:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FD B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:18]wFMCommunicate OK [00:17:18]SAM_PROTO_GetFieldsCounters done [00:17:18]requested_item shift.num is exist - process it [00:17:18]requested_item shift.opened is exist - process it [00:17:18]req_shift_opened [00:17:18]FM_GetShiftState [00:17:18]SAM_PROTO_GetShiftState [00:17:18]wFMCommunicate request_size=4 [00:17:18]MH_SAM_APDU [00:17:18]CAPDU: 80 13 01 00 [00:17:18]Write to MH i2c: E2 08 00 64 11 80 13 01 00 00 00 00 00 F2 [00:17:18]Write i2c OK [00:17:18]MH_I2C_Read... [00:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:18]Read from MH i2c: E2 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: E2 0E 00 [00:17:18]MH_I2C_Read... [00:17:18]Read from MH i2c: E2 0E 00 64 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 6F [00:17:18]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:17:18]wFMCommunicate OK [00:17:18]SAM_PROTO_GetShiftState done [00:17:18]FM_GetShiftState done [00:17:18]req_shift_opened done [00:17:18]requested_item shift.open_date is exist - process it [00:17:18]req_shift_open_date [00:17:18]req_shift_open_date done [00:17:18]produce_requested_data done [00:17:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112125,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [00:17:18]process_action_free close_receipt [00:17:18]json_value_free [00:17:18]json_value_free done [00:17:18]process_json_proto returns [00:17:18]Send response to host [00:17:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112125,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [00:17:18]free response buf [00:17:18]execute_script done [00:17:18]execute_script returns [00:17:18]free content buf [00:17:18]Sock 7.Close socket [00:17:18]Sock 7.Thread stoped [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:39]accept exits with 9 [00:23:39]New connection [00:23:39]New thread 3066957156 created [00:23:39]Thread 3066813796 joined [00:23:39]Waiting for new connection... [00:23:39] Sock 9.Parse request [00:23:39]Sock 9.Check first char [00:23:39]Sock 9.First char is OK [00:23:39]request: POST /json_proto HTTP/1.0 [00:23:39]Method: POST [00:23:39]URL: /json_proto [00:23:39]Method is POST - this is cgi request [00:23:39]url: /json_proto [00:23:39]query_string will be loaded in cgi processing [00:23:39]execute_cgi json_proto POST (null) [00:23:39]execute_cgi path=json_proto method=POST [00:23:39]POST find Content-Length [00:23:39]Host: 172.17.59.68:8080 [00:23:39]Content-Length: 682 [00:23:39]Content-Type: application/json [00:23:39] [00:23:39]POST finish read [00:23:39]Found Content-Length = 682 [00:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 28.620, "sum" : 1900.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:39]execute_script... [00:23: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)320788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 28.620, "sum" : 1900.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:39]POST & json_proto [00:23:39]process_json_proto [00:23:39]json parsed OK: [00:23:39]protocol is kg_v1.0 [00:23:39]action value=close_receipt [00:23:39]process_action close_receipt [00:23:39]cmd_close_receipt [00:23:39]MH_GetDate [00:23:39]Write to MH i2c: F0 00 00 65 11 65 [00:23:39]Write i2c OK [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: F0 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: F0 09 00 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: F0 09 00 65 11 00 91 19 76 66 BC EC 60 65 61 [00:23:39]GetLastDocTimeStamp 1719015440 [00:23:39]current date 1719015825 [00:23:39]FM_GetShiftState [00:23:39]SAM_PROTO_GetShiftState [00:23:39]wFMCommunicate request_size=4 [00:23:39]MH_SAM_APDU [00:23:39]CAPDU: 80 13 01 00 [00:23:39]Write to MH i2c: E2 08 00 66 11 80 13 01 00 00 00 00 00 F4 [00:23:39]Write i2c OK [00:23:39]MH_I2C_Read... [00:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:39]Read from MH i2c: E2 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: E2 0E 00 [00:23:39]MH_I2C_Read... [00:23:39]Read from MH i2c: E2 0E 00 66 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 71 [00:23:39]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:23:39]wFMCommunicate OK [00:23:39]SAM_PROTO_GetShiftState done [00:23:39]FM_GetShiftState done [00:23:39]opened in 1718933695 [00:23:39]opened+sec_in_day 1719020095 [00:23:39]quantity*price = 190036 [00:23:39]sum+1 = 190038 [00:23:39]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.37 袠孝袨袚袨: 1900.00 袙薪械褋械薪芯: 1900.00 小袛袗效袗: 0.00 袧小袩 1% : 16.82 袧袛小 12% : 201.81 袧邪谢懈褔薪褘屑懈: 1900.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 294 22.06.2024 00:23 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112126 肖袩袛: 129641997796087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T002345&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112126&fm=129641997796087&tin=02508201610067®Number=0000000000092771&sum=190000 [00:23:40]StoreToDocumentArchive [00:23:40]shift 390 fd 112126 [00:23:40]save to /storage/0390/doc_00112126 [00:23:40]save last doc name /storage/0390/doc_00112126 to /storage/kkm_last_doc_name [00:23:40]save OK [00:23:40]Clear old archive folders... [00:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:23:40]tlvbuf is B6EA94B0 [00:23:40]SAM_PROTO_ClearQueue [00:23:40]wFMCommunicate request_size=4 [00:23:40]MH_SAM_APDU [00:23:40]CAPDU: 80 09 00 00 [00:23:40]Write to MH i2c: E2 08 00 73 11 80 09 00 00 00 00 00 00 F6 [00:23:40]Write i2c OK [00:23:40]MH_I2C_Read... [00:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:40]Read from MH i2c: E2 [00:23:40]MH_I2C_Read... [00:23:40]Read from MH i2c: E2 03 00 [00:23:40]MH_I2C_Read... [00:23:40]Read from MH i2c: E2 03 00 73 11 00 90 00 F8 [00:23:40]RAPDU: 90 00 [00:23:40]wFMCommunicate OK [00:23:40]SAM_PROTO_ClearQueue done [00:23:40]KKMCreateOFDPacket [00:23:40]OFDProtocolAddRootSTLVToBuf [00:23:40]FM_MakeSignedData [00:23:40]FM_MakeSignedData [00:23:40]SAM_PROTO_SignData [00:23:40]wFMCommunicate request_size=4 [00:23:40]MH_SAM_APDU [00:23:40]CAPDU: 80 0D 01 02 [00:23:40]Write to MH i2c: E2 08 00 74 11 80 0D 01 02 00 00 00 00 FE [00:23:40]Write i2c OK [00:23:40]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 74 11 00 90 00 F9 [00:23:41]RAPDU: 90 00 [00:23:41]wFMCommunicate OK [00:23:41]wFMCommunicate request_size=255 [00:23:41]MH_SAM_APDU [00:23: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 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 91 19 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B5 01 00 35 04 06 00 75 [00:23:41]Write to MH i2c: E2 02 01 75 11 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 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 91 19 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B5 01 00 35 04 06 00 75 00 00 D1 [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 75 11 00 90 00 FA [00:23:41]RAPDU: 90 00 [00:23:41]wFMCommunicate OK [00:23:41]wFMCommunicate request_size=10 [00:23:41]MH_SAM_APDU [00:23:41]CAPDU: 80 0D 02 02 05 E8 A1 3A 02 F7 [00:23:41]Write to MH i2c: E2 0D 00 76 11 80 0D 02 02 05 00 E8 A1 3A 02 F7 00 00 C7 [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 03 00 76 11 00 90 00 FB [00:23:41]RAPDU: 90 00 [00:23:41]wFMCommunicate OK [00:23:41]wFMCommunicate request_size=4 [00:23:41]MH_SAM_APDU [00:23:41]CAPDU: 80 0D 03 02 [00:23:41]Write to MH i2c: E2 08 00 77 11 80 0D 03 02 00 00 00 00 03 [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 0B 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 0B 00 77 11 00 21 08 AA A9 AA 45 D4 84 90 00 C7 [00:23:41]RAPDU: 21 08 AA A9 AA 45 D4 84 90 00 [00:23:41]wFMCommunicate OK [00:23:41]SAM_PROTO_SignData done [00:23:41]FM_MakeSignedData done [00:23:41]CreateOFDProtocolMessage [00:23:41]wFMCommunicate request_size=4 [00:23:41]MH_SAM_APDU [00:23:41]CAPDU: 80 11 00 00 [00:23:41]Write to MH i2c: E2 08 00 78 11 80 11 00 00 00 00 00 00 03 [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:41]Read from MH i2c: E2 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 17 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: E2 17 00 78 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 55 [00:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:23:41]wFMCommunicate OK [00:23:41]CreateOFDProtocolMessage done [00:23:41]OFDSenderStorePacket 112126 [00:23:41]StoreOFDPacket docnum=112126 [00:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 06 75 07 01 D8 F3 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 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 91 19 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B5 01 00 35 04 06 00 75 E8 A1 3A 02 F7 21 08 AA A9 AA 45 D4 84 [00:23:41]CheckFolder [00:23:41]dirname=/storage/ofd_packets [00:23:41]CheckFolder done [00:23:41]ProducePacketName [00:23:41]name=ofd_packets/00112126 [00:23:41]NVStorageSaveData ofd_packets/00112126 [00:23:41]File name is /storage/ofd_packets/00112126 [00:23:41]Write 301 bytes [00:23:41]NVStorageSaveData done [00:23:41]OFDSenderStorePacket done [00:23:41]KKMCreateOFDPacket done [00:23:41]NVStorageSaveData kkm_last_timestamp [00:23:41]File name is /storage/kkm_last_timestamp [00:23:41]Write 4 bytes [00:23:41]NVStorageSaveData done [00:23:41]ExternCall_PrintAddStr [00:23:41]wPrintStart [00:23:41]Write to MH i2c: 01 00 00 79 11 8A [00:23:41]Write i2c OK [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: 01 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: 01 07 00 [00:23:41]MH_I2C_Read... [00:23:41]Read from MH i2c: 01 07 00 79 11 00 00 00 00 00 FF 0F 9F [00:23:41]RasterBufferAndPrint [00:23:41]line 小褔械褌 N : (1)320788 [00:23:41]line 袠袧袧: 02508201610067 [00:23:41]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [00:23:41]line 袩袪袨袛袗袞袗 [00:23:41]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [00:23:41]line 孝芯胁邪褉: 2710124130 [00:23:41]line 袗懈-92-袣-5 [00:23:41]line 28.620 * 66.40 [00:23:41]line = 1900.37 [00:23:41]line 袧袛小 12% 袧小袩 1% [00:23:41]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [00:23:41]line 袨袣袪校袚袥袝袧袠袝: -0.37 [00:23:41]line 袠孝袨袚袨: 1900.00 [00:23:41]line 袙薪械褋械薪芯: 1900.00 [00:23:41]line 小袛袗效袗: 0.00 [00:23:41]line 袧小袩 1% : 16.82 [00:23:41]line 袧袛小 12% : 201.81 [00:23:41]line 袧邪谢懈褔薪褘屑懈: 1900.00 [00:23:41]line 袘械蟹薪邪谢.: 0.00 [00:23:41]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [00:23:41]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [00:23:41]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [00:23:41]line 效械泻 294 22.06.2024 00:23 [00:23:41]line 小屑械薪邪: 390 肖肖袛: 1.0 [00:23:41]line 袟袧袦: 0300000198 [00:23:41]line 袪袧袦: 0000000000092771 [00:23:41]line 袙械褉褋懈褟 袣袣袦: 001 [00:23:41]line 肖袦: 0000000000875083 [00:23:41]line 肖袛: 112126 [00:23:41]line 肖袩袛: 129641997796087 [00:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T002345&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112126&fm=129641997796087&tin=02508201610067®Number=0000000000092771&sum=190000 [00:23:41]OFD Sender: Processing packet 112126 [packets to send 38, broken 37] [00:23:41]ProducePacketName [00:23:41]name=ofd_packets/00112126 [00:23:41]OFD Sender: To server: 嚂鰌G, [00:23:41]CommunicateWithHost lk.salyk.kg:30040 [00:23:41]ConnectInit lk.salyk.kg [00:23:41]written 0, free lines is 4095 [00:23:41]Connected sock=10 [00:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 06 75 07 01 D8 F3 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 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 91 19 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B5 01 00 35 04 06 00 75 E8 A1 3A 02 F7 21 08 AA A9 AA 45 D4 84 [00:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 72 C7 47 00 61 8C 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 30 38 37 35 30 38 33 10 04 04 00 FE B5 01 00 F4 03 04 00 AE B0 75 66 B6 04 01 00 00 E8 B3 2F E5 6D CC 42 FE [00:23:42]CommunicateWithHost err = 0 [00:23:42]CheckOFDResponse [00:23:42]1017 (14) - 77093643461234 [00:23:42]1041 (16) - 0000000000875083 [00:23:42]1040 (4) - 112126 [00:23:42]1012 (4) - 21.06.2024 16:56 [00:23:42]1206 (1) - 0 [00:23:42]OFD Sender: Remove packet 112126 [00:23:42]ProducePacketName [00:23:42]name=ofd_packets/00112126 [00:23:42]NVStorageDeleteData [00:23:42]Write to MH i2c: 01 00 00 A4 11 B5 [00:23:42]Write i2c OK [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: 01 [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: 01 07 00 [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: 01 07 00 A4 11 00 00 00 00 00 E6 0C AE [00:23:42]RasterBufferAndPrint [00:23:42]line [00:23:42]line [00:23:42]line [00:23:42]line [00:23:42]line [00:23:42]written 0, free lines is 3309 [00:23:42]MH_Cut [00:23:42]Write to MH i2c: D1 01 00 AB 11 01 8E [00:23:42]Write i2c OK [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: D1 [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: D1 01 00 [00:23:42]MH_I2C_Read... [00:23:42]Read from MH i2c: D1 01 00 AB 11 00 8D [00:23:42]Write to MH i2c: 01 00 00 AC 11 BD [00:23:42]Write i2c OK [00:23:42]MH_I2C_Read... [00:23:42]OFD Sender: No OFD packet to send [00:23:43]*** Cut start [00:23:43]*** Partial cut [00:23:43]*** CUTSNS_PIN = 1 [00:23:43]*** CUTSNS_PIN = 0 [00:23:43]*** Brake cut motor [00:23:43]Read from MH i2c: 01 [00:23:43]MH_I2C_Read... [00:23:43]*** Stop cut motor [00:23:43]*** Cut end [00:23:43]Read from MH i2c: 01 07 00 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: 01 07 00 AC 11 00 00 00 00 00 FF 0F D2 [00:23:43]process_action close_receipt done [00:23:43]requested_data is exist [00:23:43]produce_requested_data [00:23:43]requested_item fm.sn is exist - process it [00:23:43]wFMCommunicate request_size=4 [00:23:43]MH_SAM_APDU [00:23:43]CAPDU: 80 11 00 00 [00:23:43]Write to MH i2c: E2 08 00 AD 11 80 11 00 00 00 00 00 00 38 [00:23:43]Write i2c OK [00:23:43]MH_I2C_Read... [00:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:43]Read from MH i2c: E2 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 17 00 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 17 00 AD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8A [00:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:23:43]wFMCommunicate OK [00:23:43]requested_item fd.num is exist - process it [00:23:43]SAM_PROTO_GetFieldsCounters [00:23:43]wFMCommunicate request_size=4 [00:23:43]MH_SAM_APDU [00:23:43]CAPDU: 80 13 00 00 [00:23:43]Write to MH i2c: E2 08 00 AE 11 80 13 00 00 00 00 00 00 3B [00:23:43]Write i2c OK [00:23:43]MH_I2C_Read... [00:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:43]Read from MH i2c: E2 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 62 00 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 62 00 AE 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FE B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [00:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FE B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:43]wFMCommunicate OK [00:23:43]SAM_PROTO_GetFieldsCounters done [00:23:43]requested_item shift.num is exist - process it [00:23:43]requested_item shift.opened is exist - process it [00:23:43]req_shift_opened [00:23:43]FM_GetShiftState [00:23:43]SAM_PROTO_GetShiftState [00:23:43]wFMCommunicate request_size=4 [00:23:43]MH_SAM_APDU [00:23:43]CAPDU: 80 13 01 00 [00:23:43]Write to MH i2c: E2 08 00 AF 11 80 13 01 00 00 00 00 00 3D [00:23:43]Write i2c OK [00:23:43]MH_I2C_Read... [00:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:43]Read from MH i2c: E2 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 0E 00 [00:23:43]MH_I2C_Read... [00:23:43]Read from MH i2c: E2 0E 00 AF 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 BA [00:23:43]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:23:43]wFMCommunicate OK [00:23:43]SAM_PROTO_GetShiftState done [00:23:43]FM_GetShiftState done [00:23:43]req_shift_opened done [00:23:43]requested_item shift.open_date is exist - process it [00:23:43]req_shift_open_date [00:23:43]req_shift_open_date done [00:23:43]produce_requested_data done [00:23:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112126,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [00:23:43]process_action_free close_receipt [00:23:43]json_value_free [00:23:43]json_value_free done [00:23:43]process_json_proto returns [00:23:43]Send response to host [00:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112126,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [00:23:43]free response buf [00:23:43]execute_script done [00:23:43]execute_script returns [00:23:43]free content buf [00:23:43]Sock 9.Close socket [00:23:43]Sock 9.Thread stoped [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B6 C0 07 01 10 90 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 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 27 01 00 00 F4 03 04 00 CB 1A 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B5 01 00 35 04 06 00 13 37 0D 02 11 BD A4 32 C2 B5 DE E1 3F F5 [00:28:54]CheckFolder [00:28:54]dirname=/storage/ofd_packets [00:28:54]CheckFolder done [00:28:54]ProducePacketName [00:28:54]name=ofd_packets/00112127 [00:28:54]NVStorageSaveData ofd_packets/00112127 [00:28:54]File name is /storage/ofd_packets/00112127 [00:28:54]Write 301 bytes [00:28:54]NVStorageSaveData done [00:28:54]OFDSenderStorePacket done [00:28:54]KKMCreateOFDPacket done [00:28:54]NVStorageSaveData kkm_last_timestamp [00:28:54]File name is /storage/kkm_last_timestamp [00:28:54]Write 4 bytes [00:28:54]NVStorageSaveData done [00:28:54]ExternCall_PrintAddStr [00:28:54]wPrintStart [00:28:54]Write to MH i2c: 01 00 00 C4 11 D5 [00:28:54]Write i2c OK [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: 01 [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: 01 07 00 [00:28:54]MH_I2C_Read... [00:28:54]Read from MH i2c: 01 07 00 C4 11 00 00 00 00 00 FF 0F EA [00:28:54]RasterBufferAndPrint [00:28:54]line 小褔械褌 N : (1)320789 [00:28:54]line 袠袧袧: 02508201610067 [00:28:54]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [00:28:54]line 袩袪袨袛袗袞袗 [00:28:54]line 孝袪袣 (袦袪袣, 袚袧袣) : 12 [00:28:54]line 孝芯胁邪褉: 2710124500 [00:28:54]line 袗懈-95-袣-5 [00:28:54]line 20.300 * 73.90 [00:28:54]line = 1500.17 [00:28:54]line 袧袛小 12% 袧小袩 1% [00:28:54]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [00:28:54]line 袨袣袪校袚袥袝袧袠袝: -0.17 [00:28:54]line 袠孝袨袚袨: 1500.00 [00:28:54]line 袙薪械褋械薪芯: 1500.00 [00:28:54]line 小袛袗效袗: 0.00 [00:28:54]line 袧小袩 1% : 13.28 [00:28:54]line 袧袛小 12% : 159.31 [00:28:54]line 袧邪谢懈褔薪褘屑懈: 1500.00 [00:28:54]line 袘械蟹薪邪谢.: 0.00 [00:28:54]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [00:28:54]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [00:28:54]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [00:28:54]line 效械泻 295 22.06.2024 00:28 [00:28:54]line 小屑械薪邪: 390 肖肖袛: 1.0 [00:28:54]line 袟袧袦: 0300000198 [00:28:54]line 袪袧袦: 0000000000092771 [00:28:54]line 袙械褉褋懈褟 袣袣袦: 001 [00:28:54]line 肖袦: 0000000000875083 [00:28:54]line 肖袛: 112127 [00:28:54]line 肖袩袛: 21127162368445 [00:28:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T002859&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112127&fm=21127162368445&tin=02508201610067®Number=0000000000092771&sum=150000 [00:28:55]OFD Sender: Processing packet 112127 [packets to send 38, broken 37] [00:28:55]ProducePacketName [00:28:55]name=ofd_packets/00112127 [00:28:55]OFD Sender: To server: 嚂鰌G, [00:28:55]CommunicateWithHost lk.salyk.kg:30040 [00:28:55]ConnectInit lk.salyk.kg [00:28:55]written 0, free lines is 4095 [00:28:55]Write to MH i2c: 01 00 00 EF 11 00 [00:28:55]Write i2c OK [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: 01 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: 01 07 00 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: 01 07 00 EF 11 00 00 00 00 00 CF 0C E2 [00:28:55]RasterBufferAndPrint [00:28:55]line [00:28:55]line [00:28:55]line [00:28:55]line [00:28:55]line [00:28:55]written 0, free lines is 3286 [00:28:55]MH_Cut [00:28:55]Write to MH i2c: D1 01 00 F6 11 01 D9 [00:28:55]Write i2c OK [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: D1 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: D1 01 00 [00:28:55]MH_I2C_Read... [00:28:55]Read from MH i2c: D1 01 00 F6 11 00 D8 [00:28:55]Write to MH i2c: 01 00 00 F7 11 08 [00:28:55]Write i2c OK [00:28:55]MH_I2C_Read... [00:28:56]*** Cut start [00:28:56]*** Partial cut [00:28:56]*** CUTSNS_PIN = 1 [00:28:56]*** CUTSNS_PIN = 0 [00:28:56]*** Brake cut motor [00:28:57]Read from MH i2c: 01 [00:28:57]MH_I2C_Read... [00:28:57]*** Stop cut motor [00:28:57]Read from MH i2c: *** Cut end [00:28:57]01 07 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: 01 07 00 F7 11 00 00 00 00 00 FF 0F 1D [00:28:57]process_action close_receipt done [00:28:57]requested_data is exist [00:28:57]produce_requested_data [00:28:57]requested_item fm.sn is exist - process it [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 11 00 00 [00:28:57]Write to MH i2c: E2 08 00 F8 11 80 11 00 00 00 00 00 00 83 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 17 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 17 00 F8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D5 [00:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:28:57]wFMCommunicate OK [00:28:57]requested_item fd.num is exist - process it [00:28:57]SAM_PROTO_GetFieldsCounters [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 13 00 00 [00:28:57]Write to MH i2c: E2 08 00 F9 11 80 13 00 00 00 00 00 00 86 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 62 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 62 00 F9 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [00:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FF B5 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:57]wFMCommunicate OK [00:28:57]SAM_PROTO_GetFieldsCounters done [00:28:57]requested_item shift.num is exist - process it [00:28:57]requested_item shift.opened is exist - process it [00:28:57]req_shift_opened [00:28:57]FM_GetShiftState [00:28:57]SAM_PROTO_GetShiftState [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 13 01 00 [00:28:57]Write to MH i2c: E2 08 00 FA 11 80 13 01 00 00 00 00 00 88 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 0E 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 0E 00 FA 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 05 [00:28:57]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:28:57]wFMCommunicate OK [00:28:57]SAM_PROTO_GetShiftState done [00:28:57]FM_GetShiftState done [00:28:57]req_shift_opened done [00:28:57]requested_item shift.open_date is exist - process it [00:28:57]req_shift_open_date [00:28:57]req_shift_open_date done [00:28:57]produce_requested_data done [00:28:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112127,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [00:28:57]process_action_free close_receipt [00:28:57]json_value_free [00:28:57]json_value_free done [00:28:57]process_json_proto returns [00:28:57]Send response to host [00:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112127,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [00:28:57]free response buf [00:28:57]execute_script done [00:28:57]execute_script returns [00:28:57]free content buf [00:28:57]Sock 7.Close socket [00:28:57]Sock 7.Thread stoped [00:29:00]ConnectInit Can't take IP for lk.salyk.kg [00:29:00]CommunicateWithHost connect error [00:29:00]CommunicateWithHost err = -1 [00:29:00]OFD Sender: Server communicate error [00:29:05]OFD Sender: Processing packet 112127 [packets to send 38, broken 37] [00:29:05]ProducePacketName [00:29:05]name=ofd_packets/00112127 [00:29:05]OFD Sender: To server: 嚂鰌G, [00:29:05]CommunicateWithHost lk.salyk.kg:30040 [00:29:05]ConnectInit lk.salyk.kg [00:29:08]Connected sock=7 [00:29:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B6 C0 07 01 10 90 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 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 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 27 01 00 00 F4 03 04 00 CB 1A 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B5 01 00 35 04 06 00 13 37 0D 02 11 BD A4 32 C2 B5 DE E1 3F F5 [00:29:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F 54 47 00 77 EF 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 30 38 37 35 30 38 33 10 04 04 00 FF B5 01 00 F4 03 04 00 F4 B1 75 66 B6 04 01 00 00 C4 5A 4F 4A 79 5D 51 0C [00:29:08]CommunicateWithHost err = 0 [00:29:08]CheckOFDResponse [00:29:08]1017 (14) - 77093643461234 [00:29:08]1041 (16) - 0000000000875083 [00:29:08]1040 (4) - 112127 [00:29:08]1012 (4) - 21.06.2024 17:01 [00:29:08]1206 (1) - 0 [00:29:08]OFD Sender: Remove packet 112127 [00:29:08]ProducePacketName [00:29:08]name=ofd_packets/00112127 [00:29:08]NVStorageDeleteData [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:18]recv_with_timeout no data received [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: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:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [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:35]ConnectInit Can't connect to host [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:53]accept exits with 7 [00:28:53]New connection [00:28:53]New thread 3066813796 created [00:28:53]Thread 3066957156 joined [00:28:53]Waiting for new connection... [00:28:53] Sock 7.Parse request [00:28:53]Sock 7.Check first char [00:28:53]Sock 7.First char is OK [00:28:53]request: POST /json_proto HTTP/1.0 [00:28:53]Method: POST [00:28:53]URL: /json_proto [00:28:53]Method is POST - this is cgi request [00:28:53]url: /json_proto [00:28:53]query_string will be loaded in cgi processing [00:28:53]execute_cgi json_proto POST (null) [00:28:53]execute_cgi path=json_proto method=POST [00:28:53]POST find Content-Length [00:28:53]Host: 172.17.59.68:8080 [00:28:53]Content-Length: 682 [00:28:53]Content-Type: application/json [00:28:53] [00:28:53]POST finish read [00:28:53]Found Content-Length = 682 [00:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" :[00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:11]accept exits with 10 [00:52:11]New connection [00:52:11]New thread 3066957156 created [00:52:11]Thread 3066813796 joined [00:52:11]Waiting for new connection... [00:52:11] Sock 10.Parse request [00:52:11]Sock 10.Check first char [00:52:11]Sock 10.First char is OK [00:52:11]request: POST /json_proto HTTP/1.0 [00:52:11]Method: POST [00:52:11]URL: /json_proto [00:52:11]Method is POST - this is cgi request [00:52:11]url: /json_proto [00:52:11]query_string will be loaded in cgi processing [00:52:11]execute_cgi json_proto POST (null) [00:52:11]execute_cgi path=json_proto method=POST [00:52:11]POST find Content-Length [00:52:11]Host: 172.17.59.68:8080 [00:52:11]Content-Length: 682 [00:52:11]Content-Type: application/json [00:52:11] [00:52:11]POST finish read [00:52:11]Found Content-Length = 682 [00:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:52:11]execute_script... [00:52: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 : (1)320790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:52:11]POST & json_proto [00:52:11]process_json_proto [00:52:11]json parsed OK: [00:52:11]protocol is kg_v1.0 [00:52:11]action value=close_receipt [00:52:11]process_action close_receipt [00:52:11]cmd_close_receipt [00:52:11]MH_GetDate [00:52:11]Write to MH i2c: F0 00 00 FB 11 FB [00:52:11]Write i2c OK [00:52:11]MH_I2C_Read... [00:52:11]Read from MH i2c: F0 [00:52:11]MH_I2C_Read... [00:52:11]Read from MH i2c: F0 09 00 [00:52:11]MH_I2C_Read... [00:52:11]Read from MH i2c: F0 09 00 FB 11 00 42 20 76 66 BC EC 60 65 AF [00:52:11]GetLastDocTimeStamp 1719016139 [00:52:11]current date 1719017538 [00:52:11]FM_GetShiftState [00:52:11]SAM_PROTO_GetShiftState [00:52:11]wFMCommunicate request_size=4 [00:52:11]MH_SAM_APDU [00:52:11]CAPDU: 80 13 01 00 [00:52:11]Write to MH i2c: E2 08 00 FC 11 80 13 01 00 00 00 00 00 8A [00:52:11]Write i2c OK [00:52:11]MH_I2C_Read... [00:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:11]Read from MH i2c: E2 [00:52:11]MH_I2C_Read... [00:52:11]Read from MH i2c: E2 0E 00 [00:52:11]MH_I2C_Read... [00:52:11]Read from MH i2c: E2 0E 00 FC 11 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 07 [00:52:11]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:52:11]wFMCommunicate OK [00:52:11]SAM_PROTO_GetShiftState done [00:52:11]FM_GetShiftState done [00:52:11]opened in 1718933695 [00:52:11]opened+sec_in_day 1719020095 [00:52:11]quantity*price = 100064 [00:52:11]sum+1 = 100066 [00:52:11]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.65 袠孝袨袚袨: 1000.00 袙薪械褋械薪芯: 1000.00 小袛袗效袗: 0.00 袧小袩 1% : 8.85 袧袛小 12% : 106.26 袧邪谢懈褔薪褘屑懈: 1000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 296 22.06.2024 00:52 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112128 肖袩袛: 133859965235607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T005218&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112128&fm=133859965235607&tin=02508201610067®Number=0000000000092771&sum=100000 [00:52:12]StoreToDocumentArchive [00:52:12]shift 390 fd 112128 [00:52:12]save to /storage/0390/doc_00112128 [00:52:12]save last doc name /storage/0390/doc_00112128 to /storage/kkm_last_doc_name [00:52:12]save OK [00:52:12]Clear old archive folders... [00:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:52:12]tlvbuf is 01121A60 [00:52:12]SAM_PROTO_ClearQueue [00:52:12]wFMCommunicate request_size=4 [00:52:12]MH_SAM_APDU [00:52:12]CAPDU: 80 09 00 00 [00:52:12]Write to MH i2c: E2 08 00 09 12 80 09 00 00 00 00 00 00 8D [00:52:12]Write i2c OK [00:52:12]MH_I2C_Read... [00:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:52:12]Read from MH i2c: E2 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 03 00 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 03 00 09 12 00 90 00 8F [00:52:12]RAPDU: 90 00 [00:52:12]wFMCommunicate OK [00:52:12]SAM_PROTO_ClearQueue done [00:52:12]KKMCreateOFDPacket [00:52:12]OFDProtocolAddRootSTLVToBuf [00:52:12]FM_MakeSignedData [00:52:12]FM_MakeSignedData [00:52:12]SAM_PROTO_SignData [00:52:12]wFMCommunicate request_size=4 [00:52:12]MH_SAM_APDU [00:52:12]CAPDU: 80 0D 01 02 [00:52:12]Write to MH i2c: E2 08 00 0A 12 80 0D 01 02 00 00 00 00 95 [00:52:12]Write i2c OK [00:52:12]MH_I2C_Read... [00:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:52:12]Read from MH i2c: E2 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 03 00 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 03 00 0A 12 00 90 00 90 [00:52:12]RAPDU: 90 00 [00:52:12]wFMCommunicate OK [00:52:12]wFMCommunicate request_size=255 [00:52:12]MH_SAM_APDU [00:52: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 28 01 00 00 F4 03 04 00 42 20 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B6 01 00 35 04 06 00 79 [00:52:12]Write to MH i2c: E2 02 01 0B 12 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 28 01 00 00 F4 03 04 00 42 20 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B6 01 00 35 04 06 00 79 00 00 B7 [00:52:12]Write i2c OK [00:52:12]MH_I2C_Read... [00:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:13]Read from MH i2c: E2 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: E2 03 00 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: E2 03 00 0B 12 00 90 00 91 [00:52:13]RAPDU: 90 00 [00:52:13]wFMCommunicate OK [00:52:13]wFMCommunicate request_size=10 [00:52:13]MH_SAM_APDU [00:52:13]CAPDU: 80 0D 02 02 05 BE B3 AD 71 97 [00:52:13]Write to MH i2c: E2 0D 00 0C 12 80 0D 02 02 05 00 BE B3 AD 71 97 00 00 C8 [00:52:13]Write i2c OK [00:52:13]MH_I2C_Read... [00:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:13]Read from MH i2c: E2 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: E2 03 00 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: E2 03 00 0C 12 00 90 00 92 [00:52:13]RAPDU: 90 00 [00:52:13]wFMCommunicate OK [00:52:13]wFMCommunicate request_size=4 [00:52:13]MH_SAM_APDU [00:52:13]CAPDU: 80 0D 03 02 [00:52:13]Write to MH i2c: E2 08 00 0D 12 80 0D 03 02 00 00 00 00 9A [00:52:13]Write i2c OK [00:52:13]MH_I2C_Read... [00:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:52:13]Read from MH i2c: E2 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: E2 0B 00 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: E2 0B 00 0D 12 00 E9 CE 1E DC 98 45 B2 60 90 00 3B [00:52:13]RAPDU: E9 CE 1E DC 98 45 B2 60 90 00 [00:52:13]wFMCommunicate OK [00:52:13]SAM_PROTO_SignData done [00:52:13]FM_MakeSignedData done [00:52:13]CreateOFDProtocolMessage [00:52:13]wFMCommunicate request_size=4 [00:52:13]MH_SAM_APDU [00:52:13]CAPDU: 80 11 00 00 [00:52:13]Write to MH i2c: E2 08 00 0E 12 80 11 00 00 00 00 00 00 9A [00:52:13]Write i2c OK [00:52:13]MH_I2C_Read... [00:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:13]Read from MH i2c: E2 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: E2 17 00 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: E2 17 00 0E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [00:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:52:13]wFMCommunicate OK [00:52:13]CreateOFDProtocolMessage done [00:52:13]OFDSenderStorePacket 112128 [00:52:13]StoreOFDPacket docnum=112128 [00:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A3 97 07 01 27 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 28 01 00 00 F4 03 04 00 42 20 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B6 01 00 35 04 06 00 79 BE B3 AD 71 97 E9 CE 1E DC 98 45 B2 60 [00:52:13]CheckFolder [00:52:13]dirname=/storage/ofd_packets [00:52:13]CheckFolder done [00:52:13]ProducePacketName [00:52:13]name=ofd_packets/00112128 [00:52:13]NVStorageSaveData ofd_packets/00112128 [00:52:13]File name is /storage/ofd_packets/00112128 [00:52:13]Write 301 bytes [00:52:13]NVStorageSaveData done [00:52:13]OFDSenderStorePacket done [00:52:13]KKMCreateOFDPacket done [00:52:13]NVStorageSaveData kkm_last_timestamp [00:52:13]File name is /storage/kkm_last_timestamp [00:52:13]Write 4 bytes [00:52:13]NVStorageSaveData done [00:52:13]ExternCall_PrintAddStr [00:52:13]wPrintStart [00:52:13]Write to MH i2c: 01 00 00 0F 12 21 [00:52:13]Write i2c OK [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: 01 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: 01 07 00 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: 01 07 00 0F 12 00 00 00 00 00 FF 0F 36 [00:52:13]RasterBufferAndPrint [00:52:13]line 小褔械褌 N : (1)320790 [00:52:13]line 袠袧袧: 02508201610067 [00:52:13]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [00:52:13]line 袩袪袨袛袗袞袗 [00:52:13]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [00:52:13]line 孝芯胁邪褉: 2710124130 [00:52:13]line 袗懈-92-袣-5 [00:52:13]line 15.070 * 66.40 [00:52:13]line = 1000.65 [00:52:13]line 袧袛小 12% 袧小袩 1% [00:52:13]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [00:52:13]line 袨袣袪校袚袥袝袧袠袝: -0.65 [00:52:13]line 袠孝袨袚袨: 1000.00 [00:52:13]line 袙薪械褋械薪芯: 1000.00 [00:52:13]line 小袛袗效袗: 0.00 [00:52:13]line 袧小袩 1% : 8.85 [00:52:13]line 袧袛小 12% : 106.26 [00:52:13]line 袧邪谢懈褔薪褘屑懈: 1000.00 [00:52:13]line 袘械蟹薪邪谢.: 0.00 [00:52:13]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [00:52:13]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [00:52:13]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [00:52:13]line 效械泻 296 22.06.2024 00:52 [00:52:13]line 小屑械薪邪: 390 肖肖袛: 1.0 [00:52:13]line 袟袧袦: 0300000198 [00:52:13]line 袪袧袦: 0000000000092771 [00:52:13]line 袙械褉褋懈褟 袣袣袦: 001 [00:52:13]line 肖袦: 0000000000875083 [00:52:13]line 肖袛: 112128 [00:52:13]line 肖袩袛: 133859965235607 [00:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T005218&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112128&fm=133859965235607&tin=02508201610067®Number=0000000000092771&sum=100000 [00:52:13]OFD Sender: Processing packet 112128 [packets to send 38, broken 37] [00:52:13]ProducePacketName [00:52:13]name=ofd_packets/00112128 [00:52:13]OFD Sender: To server: 嚂鰌G, [00:52:13]CommunicateWithHost lk.salyk.kg:30040 [00:52:13]ConnectInit lk.salyk.kg [00:52:13]written 0, free lines is 4095 [00:52:13]Connected sock=9 [00:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A3 97 07 01 27 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 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 82 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 28 01 00 00 F4 03 04 00 42 20 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B6 01 00 35 04 06 00 79 BE B3 AD 71 97 E9 CE 1E DC 98 45 B2 60 [00:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2D 9E 47 00 42 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 30 38 37 35 30 38 33 10 04 04 00 00 B6 01 00 F4 03 04 00 5D B7 75 66 B6 04 01 00 00 FD 77 EE 57 8B 11 23 F0 [00:52:13]CommunicateWithHost err = 0 [00:52:13]CheckOFDResponse [00:52:13]1017 (14) - 77093643461234 [00:52:13]1041 (16) - 0000000000875083 [00:52:13]1040 (4) - 112128 [00:52:13]1012 (4) - 21.06.2024 17:24 [00:52:13]1206 (1) - 0 [00:52:13]OFD Sender: Remove packet 112128 [00:52:13]ProducePacketName [00:52:13]name=ofd_packets/00112128 [00:52:13]NVStorageDeleteData [00:52:14]Write to MH i2c: 01 00 00 3A 12 4C [00:52:14]Write i2c OK [00:52:14]MH_I2C_Read... [00:52:14]Read from MH i2c: 01 [00:52:14]MH_I2C_Read... [00:52:14]Read from MH i2c: 01 07 00 [00:52:14]MH_I2C_Read... [00:52:14]Read from MH i2c: 01 07 00 3A 12 00 00 00 00 00 CD 0C 2C [00:52:14]RasterBufferAndPrint [00:52:14]line [00:52:14]line [00:52:14]line [00:52:14]line [00:52:14]line [00:52:14]written 0, free lines is 3284 [00:52:14]MH_Cut [00:52:14]Write to MH i2c: D1 01 00 41 12 01 25 [00:52:14]Write i2c OK [00:52:14]MH_I2C_Read... [00:52:14]Read from MH i2c: D1 [00:52:14]MH_I2C_Read... [00:52:14]Read from MH i2c: D1 01 00 [00:52:14]MH_I2C_Read... [00:52:14]Read from MH i2c: D1 01 00 41 12 00 24 [00:52:14]Write to MH i2c: 01 00 00 42 12 54 [00:52:14]Write i2c OK [00:52:14]MH_I2C_Read... [00:52:14]OFD Sender: No OFD packet to send [00:52:14]*** Cut start [00:52:14]*** Partial cut [00:52:14]*** CUTSNS_PIN = 1 [00:52:14]*** CUTSNS_PIN = 0 [00:52:15]*** Brake cut motor [00:52:15]Read from MH i2c: 01 [00:52:15]MH_I2C_Read... [00:52:15]*** Stop cut motor [00:52:15]*** Cut end [00:52:15]Read from MH i2c: 01 07 00 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 FF 0F 69 [00:52:15]process_action close_receipt done [00:52:15]requested_data is exist [00:52:15]produce_requested_data [00:52:15]requested_item fm.sn is exist - process it [00:52:15]wFMCommunicate request_size=4 [00:52:15]MH_SAM_APDU [00:52:15]CAPDU: 80 11 00 00 [00:52:15]Write to MH i2c: E2 08 00 43 12 80 11 00 00 00 00 00 00 CF [00:52:15]Write i2c OK [00:52:15]MH_I2C_Read... [00:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:15]Read from MH i2c: E2 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: E2 17 00 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: E2 17 00 43 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 21 [00:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:52:15]wFMCommunicate OK [00:52:15]requested_item fd.num is exist - process it [00:52:15]SAM_PROTO_GetFieldsCounters [00:52:15]wFMCommunicate request_size=4 [00:52:15]MH_SAM_APDU [00:52:15]CAPDU: 80 13 00 00 [00:52:15]Write to MH i2c: E2 08 00 44 12 80 13 00 00 00 00 00 00 D2 [00:52:15]Write i2c OK [00:52:15]MH_I2C_Read... [00:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:15]Read from MH i2c: E2 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: E2 62 00 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: E2 62 00 44 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 00 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [00:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 00 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:52:15]wFMCommunicate OK [00:52:15]SAM_PROTO_GetFieldsCounters done [00:52:15]requested_item shift.num is exist - process it [00:52:15]requested_item shift.opened is exist - process it [00:52:15]req_shift_opened [00:52:15]FM_GetShiftState [00:52:15]SAM_PROTO_GetShiftState [00:52:15]wFMCommunicate request_size=4 [00:52:15]MH_SAM_APDU [00:52:15]CAPDU: 80 13 01 00 [00:52:15]Write to MH i2c: E2 08 00 45 12 80 13 01 00 00 00 00 00 D4 [00:52:15]Write i2c OK [00:52:15]MH_I2C_Read... [00:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:15]Read from MH i2c: E2 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: E2 0E 00 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: E2 0E 00 45 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 51 [00:52:15]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:52:15]wFMCommunicate OK [00:52:15]SAM_PROTO_GetShiftState done [00:52:15]FM_GetShiftState done [00:52:15]req_shift_opened done [00:52:15]requested_item shift.open_date is exist - process it [00:52:15]req_shift_open_date [00:52:15]req_shift_open_date done [00:52:15]produce_requested_data done [00:52:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112128,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [00:52:15]process_action_free close_receipt [00:52:15]json_value_free [00:52:15]json_value_free done [00:52:15]process_json_proto returns [00:52:15]Send response to host [00:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112128,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [00:52:15]free response buf [00:52:15]execute_script done [00:52:15]execute_script returns [00:52:15]free content buf [00:52:15]Sock 10.Close socket [00:52:15]Sock 10.Thread stoped [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]accept exits with 7 [00:52:54]New connection [00:52:54]New thread 3066813796 created [00:52:54]Thread 3066957156 joined [00:52:54]Waiting for new connection... [00:52:54] Sock 7.Parse request [00:52:54]Sock 7.Check first char [00:52:54]Sock 7.First char is OK [00:52:54]request: POST /json_proto HTTP/1.0 [00:52:54]Method: POST [00:52:54]URL: /json_proto [00:52:54]Method is POST - this is cgi request [00:52:54]url: /json_proto [00:52:54]query_string will be loaded in cgi processing [00:52:54]execute_cgi json_proto POST (null) [00:52:54]execute_cgi path=json_proto method=POST [00:52:54]POST find Content-Length [00:52:54]Host: 172.17.59.68:8080 [00:52:54]Content-Length: 806 [00:52:54]Content-Type: application/json [00:52:54] [00:52:54]POST finish read [00:52:54]Found Content-Length = 806 [00:52:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:54]execute_script... [00:52: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 : (1)320791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:54]POST & json_proto [00:52:54]process_json_proto [00:52:54]json parsed OK: [00:52:54]protocol is kg_v1.0 [00:52:54]action value=close_receipt [00:52:54]process_action close_receipt [00:52:54]cmd_close_receipt [00:52:54]MH_GetDate [00:52:54]Write to MH i2c: F0 00 00 46 12 47 [00:52:54]Write i2c OK [00:52:54]MH_I2C_Read... [00:52:54]Read from MH i2c: F0 [00:52:54]MH_I2C_Read... [00:52:54]Read from MH i2c: F0 09 00 [00:52:54]MH_I2C_Read... [00:52:54]Read from MH i2c: F0 09 00 46 12 00 6D 20 76 66 BC EC 60 65 26 [00:52:54]GetLastDocTimeStamp 1719017538 [00:52:54]current date 1719017581 [00:52:54]FM_GetShiftState [00:52:54]SAM_PROTO_GetShiftState [00:52:54]wFMCommunicate request_size=4 [00:52:54]MH_SAM_APDU [00:52:54]CAPDU: 80 13 01 00 [00:52:54]Write to MH i2c: E2 08 00 47 12 80 13 01 00 00 00 00 00 D6 [00:52:54]Write i2c OK [00:52:54]MH_I2C_Read... [00:52:54]OFD Sender: No OFD packet to send [00:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:54]Read from MH i2c: E2 [00:52:54]MH_I2C_Read... [00:52:54]Read from MH i2c: E2 0E 00 [00:52:54]MH_I2C_Read... [00:52:54]Read from MH i2c: E2 0E 00 47 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 53 [00:52:54]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:52:54]wFMCommunicate OK [00:52:54]SAM_PROTO_GetShiftState done [00:52:54]FM_GetShiftState done [00:52:54]opened in 1718933695 [00:52:54]opened+sec_in_day 1719020095 [00:52:54]quantity*price = 66400 [00:52:54]sum+1 = 66401 [00:52:54]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 664.00 袧小袩 1% : 5.88 袧袛小 12% : 70.51 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 664.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 297 22.06.2024 00:53 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112129 肖袩袛: 261760730075058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T005301&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112129&fm=261760730075058&tin=02508201610067®Number=0000000000092771&sum=66400 [00:52:55]StoreToDocumentArchive [00:52:55]shift 390 fd 112129 [00:52:55]save to /storage/0390/doc_00112129 [00:52:55]save last doc name /storage/0390/doc_00112129 to /storage/kkm_last_doc_name [00:52:55]save OK [00:52:55]Clear old archive folders... [00:52:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:52:55]tlvbuf is 0117D850 [00:52:55]SAM_PROTO_ClearQueue [00:52:55]wFMCommunicate request_size=4 [00:52:55]MH_SAM_APDU [00:52:55]CAPDU: 80 09 00 00 [00:52:55]Write to MH i2c: E2 08 00 54 12 80 09 00 00 00 00 00 00 D8 [00:52:55]Write i2c OK [00:52:55]MH_I2C_Read... [00:52:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:52:55]Read from MH i2c: E2 [00:52:55]MH_I2C_Read... [00:52:55]Read from MH i2c: E2 03 00 [00:52:55]MH_I2C_Read... [00:52:55]Read from MH i2c: E2 03 00 54 12 00 90 00 DA [00:52:55]RAPDU: 90 00 [00:52:55]wFMCommunicate OK [00:52:55]SAM_PROTO_ClearQueue done [00:52:55]KKMCreateOFDPacket [00:52:55]OFDProtocolAddRootSTLVToBuf [00:52:55]FM_MakeSignedData [00:52:55]FM_MakeSignedData [00:52:55]SAM_PROTO_SignData [00:52:55]wFMCommunicate request_size=4 [00:52:55]MH_SAM_APDU [00:52:55]CAPDU: 80 0D 01 02 [00:52:55]Write to MH i2c: E2 08 00 55 12 80 0D 01 02 00 00 00 00 E0 [00:52:55]Write i2c OK [00:52:55]MH_I2C_Read... [00:52:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:52:55]Read from MH i2c: E2 [00:52:55]MH_I2C_Read... [00:52:55]Read from MH i2c: E2 03 00 [00:52:55]MH_I2C_Read... [00:52:55]Read from MH i2c: E2 03 00 55 12 00 90 00 DB [00:52:55]RAPDU: 90 00 [00:52:55]wFMCommunicate OK [00:52:55]wFMCommunicate request_size=255 [00:52:55]MH_SAM_APDU [00:52:55]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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 6D 20 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B6 01 00 35 04 06 00 EE [00:52:55]Write to MH i2c: E2 02 01 56 12 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 6D 20 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B6 01 00 35 04 06 00 EE 00 00 0A [00:52:55]Write i2c OK [00:52:55]MH_I2C_Read... [00:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:56]Read from MH i2c: E2 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: E2 03 00 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: E2 03 00 56 12 00 90 00 DC [00:52:56]RAPDU: 90 00 [00:52:56]wFMCommunicate OK [00:52:56]wFMCommunicate request_size=10 [00:52:56]MH_SAM_APDU [00:52:56]CAPDU: 80 0D 02 02 05 11 EB 55 0F B2 [00:52:56]Write to MH i2c: E2 0D 00 57 12 80 0D 02 02 05 00 11 EB 55 0F B2 00 00 FF [00:52:56]Write i2c OK [00:52:56]MH_I2C_Read... [00:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:56]Read from MH i2c: E2 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: E2 03 00 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: E2 03 00 57 12 00 90 00 DD [00:52:56]RAPDU: 90 00 [00:52:56]wFMCommunicate OK [00:52:56]wFMCommunicate request_size=4 [00:52:56]MH_SAM_APDU [00:52:56]CAPDU: 80 0D 03 02 [00:52:56]Write to MH i2c: E2 08 00 58 12 80 0D 03 02 00 00 00 00 E5 [00:52:56]Write i2c OK [00:52:56]MH_I2C_Read... [00:52:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:52:56]Read from MH i2c: E2 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: E2 0B 00 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: E2 0B 00 58 12 00 0E 03 5C EA C0 04 9B F3 90 00 8F [00:52:56]RAPDU: 0E 03 5C EA C0 04 9B F3 90 00 [00:52:56]wFMCommunicate OK [00:52:56]SAM_PROTO_SignData done [00:52:56]FM_MakeSignedData done [00:52:56]CreateOFDProtocolMessage [00:52:56]wFMCommunicate request_size=4 [00:52:56]MH_SAM_APDU [00:52:56]CAPDU: 80 11 00 00 [00:52:56]Write to MH i2c: E2 08 00 59 12 80 11 00 00 00 00 00 00 E5 [00:52:56]Write i2c OK [00:52:56]MH_I2C_Read... [00:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:56]Read from MH i2c: E2 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: E2 17 00 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: E2 17 00 59 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 37 [00:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:52:56]wFMCommunicate OK [00:52:56]CreateOFDProtocolMessage done [00:52:56]OFDSenderStorePacket 112129 [00:52:56]StoreOFDPacket docnum=112129 [00:52:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC A9 07 01 C0 78 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 6D 20 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B6 01 00 35 04 06 00 EE 11 EB 55 0F B2 0E 03 5C EA C0 04 9B F3 [00:52:56]CheckFolder [00:52:56]dirname=/storage/ofd_packets [00:52:56]CheckFolder done [00:52:56]ProducePacketName [00:52:56]name=ofd_packets/00112129 [00:52:56]NVStorageSaveData ofd_packets/00112129 [00:52:56]File name is /storage/ofd_packets/00112129 [00:52:56]Write 301 bytes [00:52:56]NVStorageSaveData done [00:52:56]OFDSenderStorePacket done [00:52:56]KKMCreateOFDPacket done [00:52:56]NVStorageSaveData kkm_last_timestamp [00:52:56]File name is /storage/kkm_last_timestamp [00:52:56]Write 4 bytes [00:52:56]NVStorageSaveData done [00:52:56]ExternCall_PrintAddStr [00:52:56]wPrintStart [00:52:56]Write to MH i2c: 01 00 00 5A 12 6C [00:52:56]Write i2c OK [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: 01 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: 01 07 00 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: 01 07 00 5A 12 00 00 00 00 00 FF 0F 81 [00:52:56]RasterBufferAndPrint [00:52:56]line 小褔械褌 N : (1)320791 [00:52:56]line 袠袧袧: 02508201610067 [00:52:56]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [00:52:56]line 袩袪袨袛袗袞袗 [00:52:56]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [00:52:56]line 孝芯胁邪褉: 2710124130 [00:52:56]line 袗懈-92-袣-5 [00:52:56]line 10.000 * 66.40 [00:52:56]line = 664.00 [00:52:56]line 袧袛小 12% 袧小袩 1% [00:52:56]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [00:52:56]line 袠孝袨袚袨: 664.00 [00:52:56]line 袧小袩 1% : 5.88 [00:52:56]line 袧袛小 12% : 70.51 [00:52:56]line 袧邪谢懈褔薪褘屑懈: 0.00 [00:52:56]line 袘械蟹薪邪谢.: 664.00 [00:52:56]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [00:52:56]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [00:52:56]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [00:52:56]line 效械泻 297 22.06.2024 00:53 [00:52:56]line 小屑械薪邪: 390 肖肖袛: 1.0 [00:52:56]line 袟袧袦: 0300000198 [00:52:56]line 袪袧袦: 0000000000092771 [00:52:56]line 袙械褉褋懈褟 袣袣袦: 001 [00:52:56]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [00:52:56]line 肖袦: 0000000000875083 [00:52:56]line 肖袛: 112129 [00:52:56]line 肖袩袛: 261760730075058 [00:52:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T005301&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112129&fm=261760730075058&tin=02508201610067®Number=0000000000092771&sum=66400 [00:52:56]OFD Sender: Processing packet 112129 [packets to send 38, broken 37] [00:52:56]ProducePacketName [00:52:56]name=ofd_packets/00112129 [00:52:56]OFD Sender: To server: 嚂鰌G, [00:52:56]CommunicateWithHost lk.salyk.kg:30040 [00:52:56]ConnectInit lk.salyk.kg [00:52:56]written 0, free lines is 4095 [00:52:56]Connected sock=10 [00:52:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC A9 07 01 C0 78 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 6D 20 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B6 01 00 35 04 06 00 EE 11 EB 55 0F B2 0E 03 5C EA C0 04 9B F3 [00:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B2 9B 47 00 D0 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 30 38 37 35 30 38 33 10 04 04 00 01 B6 01 00 F4 03 04 00 88 B7 75 66 B6 04 01 00 00 27 F2 B3 50 E7 94 EC F5 [00:52:56]CommunicateWithHost err = 0 [00:52:56]CheckOFDResponse [00:52:56]1017 (14) - 77093643461234 [00:52:56]1041 (16) - 0000000000875083 [00:52:56]1040 (4) - 112129 [00:52:56]1012 (4) - 21.06.2024 17:25 [00:52:56]1206 (1) - 0 [00:52:56]OFD Sender: Remove packet 112129 [00:52:56]ProducePacketName [00:52:56]name=ofd_packets/00112129 [00:52:56]NVStorageDeleteData [00:52:56]Write to MH i2c: 01 00 00 84 12 96 [00:52:56]Write i2c OK [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: 01 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: 01 07 00 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: 01 07 00 84 12 00 00 00 00 00 F1 0C 9A [00:52:56]RasterBufferAndPrint [00:52:56]line [00:52:56]line [00:52:56]line [00:52:56]line [00:52:56]line [00:52:56]written 0, free lines is 3319 [00:52:56]MH_Cut [00:52:56]Write to MH i2c: D1 01 00 8B 12 01 6F [00:52:56]Write i2c OK [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: D1 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: D1 01 00 [00:52:56]MH_I2C_Read... [00:52:56]Read from MH i2c: D1 01 00 8B 12 00 6E [00:52:56]Write to MH i2c: 01 00 00 8C 12 9E [00:52:56]Write i2c OK [00:52:56]MH_I2C_Read... [00:52:57]OFD Sender: No OFD packet to send [00:52:57]*** Cut start [00:52:57]*** Partial cut [00:52:57]*** CUTSNS_PIN = 1 [00:52:57]*** CUTSNS_PIN = 0 [00:52:57]*** Brake cut motor [00:52:58]Read from MH i2c: 01 [00:52:58]*** Stop cut motor [00:52:58]*** Cut end [00:52:58]MH_I2C_Read... [00:52:58]Read from MH i2c: 01 07 00 [00:52:58]MH_I2C_Read... [00:52:58]Read from MH i2c: 01 07 00 8C 12 00 00 00 00 00 FF 0F B3 [00:52:58]process_action close_receipt done [00:52:58]requested_data is exist [00:52:58]produce_requested_data [00:52:58]requested_item fm.sn is exist - process it [00:52:58]wFMCommunicate request_size=4 [00:52:58]MH_SAM_APDU [00:52:58]CAPDU: 80 11 00 00 [00:52:58]Write to MH i2c: E2 08 00 8D 12 80 11 00 00 00 00 00 00 19 [00:52:58]Write i2c OK [00:52:58]MH_I2C_Read... [00:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:58]Read from MH i2c: E2 [00:52:58]MH_I2C_Read... [00:52:58]Read from MH i2c: E2 17 00 [00:52:58]MH_I2C_Read... [00:52:58]Read from MH i2c: E2 17 00 8D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6B [00:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:52:58]wFMCommunicate OK [00:52:58]requested_item fd.num is exist - process it [00:52:58]SAM_PROTO_GetFieldsCounters [00:52:58]wFMCommunicate request_size=4 [00:52:58]MH_SAM_APDU [00:52:58]CAPDU: 80 13 00 00 [00:52:58]Write to MH i2c: E2 08 00 8E 12 80 13 00 00 00 00 00 00 1C [00:52:58]Write i2c OK [00:52:58]MH_I2C_Read... [00:52:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:58]Read from MH i2c: E2 [00:52:58]MH_I2C_Read... [00:52:58]Read from MH i2c: E2 62 00 [00:52:58]MH_I2C_Read... [00:52:58]Read from MH i2c: E2 62 00 8E 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 01 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [00:52:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 01 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:52:58]wFMCommunicate OK [00:52:58]SAM_PROTO_GetFieldsCounters done [00:52:58]requested_item shift.num is exist - process it [00:52:58]requested_item shift.opened is exist - process it [00:52:58]req_shift_opened [00:52:58]FM_GetShiftState [00:52:58]SAM_PROTO_GetShiftState [00:52:58]wFMCommunicate request_size=4 [00:52:58]MH_SAM_APDU [00:52:58]CAPDU: 80 13 01 00 [00:52:58]Write to MH i2c: E2 08 00 8F 12 80 13 01 00 00 00 00 00 1E [00:52:58]Write i2c OK [00:52:58]MH_I2C_Read... [00:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:58]Read from MH i2c: E2 [00:52:58]MH_I2C_Read... [00:52:58]Read from MH i2c: E2 0E 00 [00:52:58]MH_I2C_Read... [00:52:58]Read from MH i2c: E2 0E 00 8F 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 9B [00:52:58]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [00:52:58]wFMCommunicate OK [00:52:58]SAM_PROTO_GetShiftState done [00:52:58]FM_GetShiftState done [00:52:58]req_shift_opened done [00:52:58]requested_item shift.open_date is exist - process it [00:52:58]req_shift_open_date [00:52:58]req_shift_open_date done [00:52:58]produce_requested_data done [00:52:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112129,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [00:52:58]process_action_free close_receipt [00:52:58]json_value_free [00:52:58]json_value_free done [00:52:58]process_json_proto returns [00:52:58]Send response to host [00:52:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112129,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [00:52:58]free response buf [00:52:58]execute_script done [00:52:58]execute_script returns [00:52:58]free content buf [00:52:58]Sock 7.Close socket [00:52:58]Sock 7.Thread stoped [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:43]accept exits with 9 [01:06:43]New connection [01:06:43]New thread 3066957156 created [01:06:43]Thread 3066813796 joined [01:06:43]Waiting for new connection... [01:06:43] Sock 9.Parse request [01:06:43]Sock 9.Check first char [01:06:43]Sock 9.First char is OK [01:06:43]request: POST /json_proto HTTP/1.0 [01:06:43]Method: POST [01:06:43]URL: /json_proto [01:06:43]Method is POST - this is cgi request [01:06:43]url: /json_proto [01:06:43]query_string will be loaded in cgi processing [01:06:43]execute_cgi json_proto POST (null) [01:06:43]execute_cgi path=json_proto method=POST [01:06:43]POST find Content-Length [01:06:43]Host: 172.17.59.68:8080 [01:06:43]Content-Length: 679 [01:06:43]Content-Type: application/json [01:06:43] [01:06:43]POST finish read [01:06:43]Found Content-Length = 679 [01:06:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [01:06:43]execute_script... [01:06: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)320792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [01:06:43]POST & json_proto [01:06:43]process_json_proto [01:06:43]json parsed OK: [01:06:43]protocol is kg_v1.0 [01:06:43]action value=close_receipt [01:06:43]process_action close_receipt [01:06:43]cmd_close_receipt [01:06:43]MH_GetDate [01:06:43]Write to MH i2c: F0 00 00 90 12 91 [01:06:43]Write i2c OK [01:06:43]MH_I2C_Read... [01:06:43]Read from MH i2c: F0 [01:06:43]MH_I2C_Read... [01:06:43]Read from MH i2c: F0 09 00 [01:06:43]MH_I2C_Read... [01:06:43]Read from MH i2c: F0 09 00 90 12 00 AA 23 76 66 BC EC 60 65 B0 [01:06:43]GetLastDocTimeStamp 1719017581 [01:06:43]current date 1719018410 [01:06:43]FM_GetShiftState [01:06:43]SAM_PROTO_GetShiftState [01:06:43]wFMCommunicate request_size=4 [01:06:43]MH_SAM_APDU [01:06:43]CAPDU: 80 13 01 00 [01:06:43]Write to MH i2c: E2 08 00 91 12 80 13 01 00 00 00 00 00 20 [01:06:43]Write i2c OK [01:06:43]MH_I2C_Read... [01:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:43]Read from MH i2c: E2 [01:06:43]MH_I2C_Read... [01:06:43]Read from MH i2c: E2 0E 00 [01:06:43]MH_I2C_Read... [01:06:43]Read from MH i2c: E2 0E 00 91 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 9D [01:06:43]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [01:06:43]wFMCommunicate OK [01:06:43]SAM_PROTO_GetShiftState done [01:06:43]FM_GetShiftState done [01:06:43]opened in 1718933695 [01:06:43]opened+sec_in_day 1719020095 [01:06:43]quantity*price = 500021 [01:06:43]sum+1 = 500022 [01:06:43]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.21 袠孝袨袚袨: 5000.00 袙薪械褋械薪芯: 5000.00 小袛袗效袗: 0.00 袧小袩 1% : 44.25 袧袛小 12% : 531.00 袧邪谢懈褔薪褘屑懈: 5000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 298 22.06.2024 01:06 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112130 肖袩袛: 196859916896073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T010650&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112130&fm=196859916896073&tin=02508201610067®Number=0000000000092771&sum=500000 [01:06:44]StoreToDocumentArchive [01:06:44]shift 390 fd 112130 [01:06:44]save to /storage/0390/doc_00112130 [01:06:44]save last doc name /storage/0390/doc_00112130 to /storage/kkm_last_doc_name [01:06:44]save OK [01:06:44]Clear old archive folders... [01:06:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:06:44]tlvbuf is 011798F0 [01:06:44]SAM_PROTO_ClearQueue [01:06:44]wFMCommunicate request_size=4 [01:06:44]MH_SAM_APDU [01:06:44]CAPDU: 80 09 00 00 [01:06:44]Write to MH i2c: E2 08 00 9E 12 80 09 00 00 00 00 00 00 22 [01:06:44]Write i2c OK [01:06:44]MH_I2C_Read... [01:06:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:06:44]Read from MH i2c: E2 [01:06:44]MH_I2C_Read... [01:06:44]Read from MH i2c: E2 03 00 [01:06:44]MH_I2C_Read... [01:06:44]Read from MH i2c: E2 03 00 9E 12 00 90 00 24 [01:06:44]RAPDU: 90 00 [01:06:44]wFMCommunicate OK [01:06:44]SAM_PROTO_ClearQueue done [01:06:44]KKMCreateOFDPacket [01:06:44]OFDProtocolAddRootSTLVToBuf [01:06:44]FM_MakeSignedData [01:06:44]FM_MakeSignedData [01:06:44]SAM_PROTO_SignData [01:06:44]wFMCommunicate request_size=4 [01:06:44]MH_SAM_APDU [01:06:44]CAPDU: 80 0D 01 02 [01:06:44]Write to MH i2c: E2 08 00 9F 12 80 0D 01 02 00 00 00 00 2A [01:06:44]Write i2c OK [01:06:44]MH_I2C_Read... [01:06:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:06:44]Read from MH i2c: E2 [01:06:44]MH_I2C_Read... [01:06:44]Read from MH i2c: E2 03 00 [01:06:44]MH_I2C_Read... [01:06:44]Read from MH i2c: E2 03 00 9F 12 00 90 00 25 [01:06:44]RAPDU: 90 00 [01:06:44]wFMCommunicate OK [01:06:44]wFMCommunicate request_size=255 [01:06:44]MH_SAM_APDU [01:06:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 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 6C 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 2A 01 00 00 F4 03 04 00 AA 23 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B6 01 00 35 04 06 00 B3 0B 05 6A [01:06:44]Write to MH i2c: E2 02 01 A0 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 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 6C 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 2A 01 00 00 F4 03 04 00 AA 23 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B6 01 00 35 04 06 00 B3 0B 05 6A 00 00 5A [01:06:44]Write i2c OK [01:06:44]MH_I2C_Read... [01:06:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:45]Read from MH i2c: E2 [01:06:45]MH_I2C_Read... [01:06:45]Read from MH i2c: E2 03 00 [01:06:45]MH_I2C_Read... [01:06:45]Read from MH i2c: E2 03 00 A0 12 00 90 00 26 [01:06:45]RAPDU: 90 00 [01:06:45]wFMCommunicate OK [01:06:45]wFMCommunicate request_size=7 [01:06:45]MH_SAM_APDU [01:06:45]CAPDU: 80 0D 02 02 02 C7 49 [01:06:45]Write to MH i2c: E2 0A 00 A1 12 80 0D 02 02 02 00 C7 49 00 00 41 [01:06:45]Write i2c OK [01:06:45]MH_I2C_Read... [01:06:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:06:45]Read from MH i2c: E2 [01:06:45]MH_I2C_Read... [01:06:45]Read from MH i2c: E2 03 00 [01:06:45]MH_I2C_Read... [01:06:45]Read from MH i2c: E2 03 00 A1 12 00 90 00 27 [01:06:45]RAPDU: 90 00 [01:06:45]wFMCommunicate OK [01:06:45]wFMCommunicate request_size=4 [01:06:45]MH_SAM_APDU [01:06:45]CAPDU: 80 0D 03 02 [01:06:45]Write to MH i2c: E2 08 00 A2 12 80 0D 03 02 00 00 00 00 2F [01:06:45]Write i2c OK [01:06:45]MH_I2C_Read... [01:06:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:06:45]Read from MH i2c: E2 [01:06:45]MH_I2C_Read... [01:06:45]Read from MH i2c: E2 0B 00 [01:06:45]MH_I2C_Read... [01:06:45]Read from MH i2c: E2 0B 00 A2 12 00 94 21 B6 A9 66 6C 55 90 90 00 FB [01:06:45]RAPDU: 94 21 B6 A9 66 6C 55 90 90 00 [01:06:45]wFMCommunicate OK [01:06:45]SAM_PROTO_SignData done [01:06:45]FM_MakeSignedData done [01:06:45]CreateOFDProtocolMessage [01:06:45]wFMCommunicate request_size=4 [01:06:45]MH_SAM_APDU [01:06:45]CAPDU: 80 11 00 00 [01:06:45]Write to MH i2c: E2 08 00 A3 12 80 11 00 00 00 00 00 00 2F [01:06:45]Write i2c OK [01:06:45]MH_I2C_Read... [01:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:45]Read from MH i2c: E2 [01:06:45]MH_I2C_Read... [01:06:45]Read from MH i2c: E2 17 00 [01:06:45]MH_I2C_Read... [01:06:45]Read from MH i2c: E2 17 00 A3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 81 [01:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:06:45]wFMCommunicate OK [01:06:45]CreateOFDProtocolMessage done [01:06:45]OFDSenderStorePacket 112130 [01:06:45]StoreOFDPacket docnum=112130 [01:06:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 82 98 04 01 F0 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 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 6C 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 2A 01 00 00 F4 03 04 00 AA 23 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B6 01 00 35 04 06 00 B3 0B 05 6A C7 49 94 21 B6 A9 66 6C 55 90 [01:06:45]CheckFolder [01:06:45]dirname=/storage/ofd_packets [01:06:45]CheckFolder done [01:06:45]ProducePacketName [01:06:45]name=ofd_packets/00112130 [01:06:45]NVStorageSaveData ofd_packets/00112130 [01:06:45]File name is /storage/ofd_packets/00112130 [01:06:45]Write 298 bytes [01:06:45]NVStorageSaveData done [01:06:45]OFDSenderStorePacket done [01:06:45]KKMCreateOFDPacket done [01:06:45]NVStorageSaveData kkm_last_timestamp [01:06:45]File name is /storage/kkm_last_timestamp [01:06:45]Write 4 bytes [01:06:45]NVStorageSaveData done [01:06:45]ExternCall_PrintAddStr [01:06:45]wPrintStart [01:06:45]Write to MH i2c: 01 00 00 A4 12 B6 [01:06:45]Write i2c OK [01:06:45]MH_I2C_Read... [01:06:45]Read from MH i2c: 01 [01:06:45]MH_I2C_Read... [01:06:45]Read from MH i2c: 01 07 00 [01:06:45]MH_I2C_Read... [01:06:45]Read from MH i2c: 01 07 00 A4 12 00 00 00 00 00 FF 0F CB [01:06:45]RasterBufferAndPrint [01:06:45]line 小褔械褌 N : (1)320792 [01:06:45]line 袠袧袧: 02508201610067 [01:06:45]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [01:06:45]line 袩袪袨袛袗袞袗 [01:06:45]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [01:06:45]line 孝芯胁邪褉: 2710194210 [01:06:45]line 袛孝-袣-5 [01:06:45]line 68.590 * 72.90 [01:06:45]line = 5000.21 [01:06:45]line 袧袛小 12% 袧小袩 1% [01:06:45]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [01:06:45]line 袨袣袪校袚袥袝袧袠袝: -0.21 [01:06:45]line 袠孝袨袚袨: 5000.00 [01:06:45]line 袙薪械褋械薪芯: 5000.00 [01:06:45]line 小袛袗效袗: 0.00 [01:06:45]line 袧小袩 1% : 44.25 [01:06:45]line 袧袛小 12% : 531.00 [01:06:45]line 袧邪谢懈褔薪褘屑懈: 5000.00 [01:06:45]line 袘械蟹薪邪谢.: 0.00 [01:06:45]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [01:06:45]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [01:06:45]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [01:06:45]line 效械泻 298 22.06.2024 01:06 [01:06:45]line 小屑械薪邪: 390 肖肖袛: 1.0 [01:06:45]line 袟袧袦: 0300000198 [01:06:45]line 袪袧袦: 0000000000092771 [01:06:45]line 袙械褉褋懈褟 袣袣袦: 001 [01:06:45]line 肖袦: 0000000000875083 [01:06:45]line 肖袛: 112130 [01:06:45]line 肖袩袛: 196859916896073 [01:06:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T010650&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112130&fm=196859916896073&tin=02508201610067®Number=0000000000092771&sum=500000 [01:06:45]OFD Sender: Processing packet 112130 [packets to send 38, broken 37] [01:06:45]ProducePacketName [01:06:45]name=ofd_packets/00112130 [01:06:45]OFD Sender: To server: 嚂鰌G, [01:06:45]CommunicateWithHost lk.salyk.kg:30040 [01:06:45]ConnectInit lk.salyk.kg [01:06:45]written 0, free lines is 4095 [01:06:45]Connected sock=10 [01:06:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 82 98 04 01 F0 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 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 6C 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 2A 01 00 00 F4 03 04 00 AA 23 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B6 01 00 35 04 06 00 B3 0B 05 6A C7 49 94 21 B6 A9 66 6C 55 90 [01:06:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A8 C9 47 00 AB 55 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 30 38 37 35 30 38 33 10 04 04 00 02 B6 01 00 F4 03 04 00 C5 BA 75 66 B6 04 01 00 00 CC EC 4D 8B 77 C6 50 E8 [01:06:45]CommunicateWithHost err = 0 [01:06:45]CheckOFDResponse [01:06:45]1017 (14) - 77093643461234 [01:06:45]1041 (16) - 0000000000875083 [01:06:45]1040 (4) - 112130 [01:06:45]1012 (4) - 21.06.2024 17:39 [01:06:45]1206 (1) - 0 [01:06:45]OFD Sender: Remove packet 112130 [01:06:45]ProducePacketName [01:06:45]name=ofd_packets/00112130 [01:06:45]NVStorageDeleteData [01:06:46]Write to MH i2c: 01 00 00 CF 12 E1 [01:06:46]Write i2c OK [01:06:46]MH_I2C_Read... [01:06:46]Read from MH i2c: 01 [01:06:46]MH_I2C_Read... [01:06:46]Read from MH i2c: 01 07 00 [01:06:46]MH_I2C_Read... [01:06:46]Read from MH i2c: 01 07 00 CF 12 00 00 00 00 00 E4 0C D8 [01:06:46]RasterBufferAndPrint [01:06:46]line [01:06:46]line [01:06:46]line [01:06:46]line [01:06:46]line [01:06:46]written 0, free lines is 3306 [01:06:46]MH_Cut [01:06:46]Write to MH i2c: D1 01 00 D6 12 01 BA [01:06:46]Write i2c OK [01:06:46]MH_I2C_Read... [01:06:46]Read from MH i2c: D1 [01:06:46]MH_I2C_Read... [01:06:46]Read from MH i2c: D1 01 00 [01:06:46]MH_I2C_Read... [01:06:46]Read from MH i2c: D1 01 00 D6 12 00 B9 [01:06:46]Write to MH i2c: 01 00 00 D7 12 E9 [01:06:46]Write i2c OK [01:06:46]MH_I2C_Read... [01:06:46]OFD Sender: No OFD packet to send [01:06:46]*** Cut start [01:06:46]*** Partial cut [01:06:46]*** CUTSNS_PIN = 1 [01:06:46]*** CUTSNS_PIN = 0 [01:06:47]*** Brake cut motor [01:06:47]Read from MH i2c: 01 [01:06:47]MH_I2C_Read... [01:06:47]*** Stop cut motor [01:06:47]*** Cut end [01:06:47]Read from MH i2c: 01 07 00 [01:06:47]MH_I2C_Read... [01:06:47]Read from MH i2c: 01 07 00 D7 12 00 00 00 00 00 FF 0F FE [01:06:47]process_action close_receipt done [01:06:47]requested_data is exist [01:06:47]produce_requested_data [01:06:47]requested_item fm.sn is exist - process it [01:06:47]wFMCommunicate request_size=4 [01:06:47]MH_SAM_APDU [01:06:47]CAPDU: 80 11 00 00 [01:06:47]Write to MH i2c: E2 08 00 D8 12 80 11 00 00 00 00 00 00 64 [01:06:47]Write i2c OK [01:06:47]MH_I2C_Read... [01:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:06:47]Read from MH i2c: E2 [01:06:47]MH_I2C_Read... [01:06:47]Read from MH i2c: E2 17 00 [01:06:47]MH_I2C_Read... [01:06:47]Read from MH i2c: E2 17 00 D8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B6 [01:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:06:47]wFMCommunicate OK [01:06:47]requested_item fd.num is exist - process it [01:06:47]SAM_PROTO_GetFieldsCounters [01:06:47]wFMCommunicate request_size=4 [01:06:47]MH_SAM_APDU [01:06:47]CAPDU: 80 13 00 00 [01:06:47]Write to MH i2c: E2 08 00 D9 12 80 13 00 00 00 00 00 00 67 [01:06:47]Write i2c OK [01:06:47]MH_I2C_Read... [01:06:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:06:47]Read from MH i2c: E2 [01:06:47]MH_I2C_Read... [01:06:47]Read from MH i2c: E2 62 00 [01:06:47]MH_I2C_Read... [01:06:47]Read from MH i2c: E2 62 00 D9 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 02 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [01:06:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 02 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:06:47]wFMCommunicate OK [01:06:47]SAM_PROTO_GetFieldsCounters done [01:06:47]requested_item shift.num is exist - process it [01:06:47]requested_item shift.opened is exist - process it [01:06:47]req_shift_opened [01:06:47]FM_GetShiftState [01:06:47]SAM_PROTO_GetShiftState [01:06:47]wFMCommunicate request_size=4 [01:06:47]MH_SAM_APDU [01:06:47]CAPDU: 80 13 01 00 [01:06:47]Write to MH i2c: E2 08 00 DA 12 80 13 01 00 00 00 00 00 69 [01:06:47]Write i2c OK [01:06:47]MH_I2C_Read... [01:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:06:47]Read from MH i2c: E2 [01:06:47]MH_I2C_Read... [01:06:47]Read from MH i2c: E2 0E 00 [01:06:47]MH_I2C_Read... [01:06:47]Read from MH i2c: E2 0E 00 DA 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E6 [01:06:47]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [01:06:47]wFMCommunicate OK [01:06:47]SAM_PROTO_GetShiftState done [01:06:47]FM_GetShiftState done [01:06:47]req_shift_opened done [01:06:47]requested_item shift.open_date is exist - process it [01:06:47]req_shift_open_date [01:06:47]req_shift_open_date done [01:06:47]produce_requested_data done [01:06:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112130,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [01:06:47]process_action_free close_receipt [01:06:47]json_value_free [01:06:47]json_value_free done [01:06:47]process_json_proto returns [01:06:47]Send response to host [01:06:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112130,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [01:06:47]free response buf [01:06:47]execute_script done [01:06:47]execute_script returns [01:06:47]free content buf [01:06:47]Sock 9.Close socket [01:06:47]Sock 9.Thread stoped [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:17]accept exits with 7 [01:11:17]New connection [01:11:17]New thread 3066813796 created [01:11:17]Thread 3066957156 joined [01:11:17]Waiting for new connection... [01:11:17] Sock 7.Parse request [01:11:17]Sock 7.Check first char [01:11:17]Sock 7.First char is OK [01:11:17]request: POST /json_proto HTTP/1.0 [01:11:17]Method: POST [01:11:17]URL: /json_proto [01:11:17]Method is POST - this is cgi request [01:11:17]url: /json_proto [01:11:17]query_string will be loaded in cgi processing [01:11:17]execute_cgi json_proto POST (null) [01:11:17]execute_cgi path=json_proto method=POST [01:11:17]POST find Content-Length [01:11:17]Host: 172.17.59.68:8080 [01:11:17]Content-Length: 677 [01:11:17]Content-Type: application/json [01:11:17] [01:11:17]POST finish read [01:11:17]Found Content-Length = 677 [01:11:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:11:17]execute_script... [01:11: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)320793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:11:17]POST & json_proto [01:11:17]process_json_proto [01:11:17]json parsed OK: [01:11:17]protocol is kg_v1.0 [01:11:17]action value=close_receipt [01:11:17]process_action close_receipt [01:11:17]cmd_close_receipt [01:11:17]MH_GetDate [01:11:17]Write to MH i2c: F0 00 00 DB 12 DC [01:11:17]Write i2c OK [01:11:17]MH_I2C_Read... [01:11:17]Read from MH i2c: F0 [01:11:17]MH_I2C_Read... [01:11:17]Read from MH i2c: F0 09 00 [01:11:17]MH_I2C_Read... [01:11:17]Read from MH i2c: F0 09 00 DB 12 00 BC 24 76 66 BC EC 60 65 0E [01:11:17]GetLastDocTimeStamp 1719018410 [01:11:17]current date 1719018684 [01:11:17]FM_GetShiftState [01:11:17]SAM_PROTO_GetShiftState [01:11:17]wFMCommunicate request_size=4 [01:11:17]MH_SAM_APDU [01:11:17]CAPDU: 80 13 01 00 [01:11:17]Write to MH i2c: E2 08 00 DC 12 80 13 01 00 00 00 00 00 6B [01:11:17]Write i2c OK [01:11:17]MH_I2C_Read... [01:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:17]Read from MH i2c: E2 [01:11:17]MH_I2C_Read... [01:11:17]Read from MH i2c: E2 0E 00 [01:11:17]MH_I2C_Read... [01:11:17]Read from MH i2c: E2 0E 00 DC 12 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 E8 [01:11:17]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [01:11:17]wFMCommunicate OK [01:11:17]SAM_PROTO_GetShiftState done [01:11:17]FM_GetShiftState done [01:11:17]opened in 1718933695 [01:11:17]opened+sec_in_day 1719020095 [01:11:17]quantity*price = 20052 [01:11:17]sum+1 = 20054 [01:11:17]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.53 袠孝袨袚袨: 200.00 袙薪械褋械薪芯: 200.00 小袛袗效袗: 0.00 袧小袩 1% : 1.77 袧袛小 12% : 21.29 袧邪谢懈褔薪褘屑懈: 200.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 299 22.06.2024 01:11 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112131 肖袩袛: 268178379959514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T011124&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112131&fm=268178379959514&tin=02508201610067®Number=0000000000092771&sum=20000 [01:11:18]StoreToDocumentArchive [01:11:18]shift 390 fd 112131 [01:11:18]save to /storage/0390/doc_00112131 [01:11:18]save last doc name /storage/0390/doc_00112131 to /storage/kkm_last_doc_name [01:11:18]save OK [01:11:18]Clear old archive folders... [01:11:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:11:18]tlvbuf is 0111E760 [01:11:18]SAM_PROTO_ClearQueue [01:11:18]wFMCommunicate request_size=4 [01:11:18]MH_SAM_APDU [01:11:18]CAPDU: 80 09 00 00 [01:11:18]Write to MH i2c: E2 08 00 E9 12 80 09 00 00 00 00 00 00 6D [01:11:18]Write i2c OK [01:11:18]MH_I2C_Read... [01:11:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:11:18]Read from MH i2c: E2 [01:11:18]MH_I2C_Read... [01:11:18]Read from MH i2c: E2 03 00 [01:11:18]MH_I2C_Read... [01:11:18]Read from MH i2c: E2 03 00 E9 12 00 90 00 6F [01:11:18]RAPDU: 90 00 [01:11:18]wFMCommunicate OK [01:11:18]SAM_PROTO_ClearQueue done [01:11:18]KKMCreateOFDPacket [01:11:18]OFDProtocolAddRootSTLVToBuf [01:11:18]FM_MakeSignedData [01:11:18]FM_MakeSignedData [01:11:18]SAM_PROTO_SignData [01:11:18]wFMCommunicate request_size=4 [01:11:18]MH_SAM_APDU [01:11:18]CAPDU: 80 0D 01 02 [01:11:18]Write to MH i2c: E2 08 00 EA 12 80 0D 01 02 00 00 00 00 75 [01:11:18]Write i2c OK [01:11:18]MH_I2C_Read... [01:11:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:11:18]Read from MH i2c: E2 [01:11:18]MH_I2C_Read... [01:11:18]Read from MH i2c: E2 03 00 [01:11:18]MH_I2C_Read... [01:11:18]Read from MH i2c: E2 03 00 EA 12 00 90 00 70 [01:11:18]RAPDU: 90 00 [01:11:18]wFMCommunicate OK [01:11:18]wFMCommunicate request_size=255 [01:11:18]MH_SAM_APDU [01:11: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 BC 24 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B6 01 00 35 04 06 00 F3 [01:11:18]Write to MH i2c: E2 02 01 EB 12 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 BC 24 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B6 01 00 35 04 06 00 F3 00 00 04 [01:11:18]Write i2c OK [01:11:18]MH_I2C_Read... [01:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:19]Read from MH i2c: E2 [01:11:19]MH_I2C_Read... [01:11:19]Read from MH i2c: E2 03 00 [01:11:19]MH_I2C_Read... [01:11:19]Read from MH i2c: E2 03 00 EB 12 00 90 00 71 [01:11:19]RAPDU: 90 00 [01:11:19]wFMCommunicate OK [01:11:19]wFMCommunicate request_size=10 [01:11:19]MH_SAM_APDU [01:11:19]CAPDU: 80 0D 02 02 05 E8 25 12 EC DA [01:11:19]Write to MH i2c: E2 0D 00 EC 12 80 0D 02 02 05 00 E8 25 12 EC DA 00 00 67 [01:11:19]Write i2c OK [01:11:19]MH_I2C_Read... [01:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:19]Read from MH i2c: E2 [01:11:19]MH_I2C_Read... [01:11:19]Read from MH i2c: E2 03 00 [01:11:19]MH_I2C_Read... [01:11:19]Read from MH i2c: E2 03 00 EC 12 00 90 00 72 [01:11:19]RAPDU: 90 00 [01:11:19]wFMCommunicate OK [01:11:19]wFMCommunicate request_size=4 [01:11:19]MH_SAM_APDU [01:11:19]CAPDU: 80 0D 03 02 [01:11:19]Write to MH i2c: E2 08 00 ED 12 80 0D 03 02 00 00 00 00 7A [01:11:19]Write i2c OK [01:11:19]MH_I2C_Read... [01:11:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:11:19]Read from MH i2c: E2 [01:11:19]MH_I2C_Read... [01:11:19]Read from MH i2c: E2 0B 00 [01:11:19]MH_I2C_Read... [01:11:19]Read from MH i2c: E2 0B 00 ED 12 00 89 B6 27 EB 57 99 58 FA 90 00 0E [01:11:19]RAPDU: 89 B6 27 EB 57 99 58 FA 90 00 [01:11:19]wFMCommunicate OK [01:11:19]SAM_PROTO_SignData done [01:11:19]FM_MakeSignedData done [01:11:19]CreateOFDProtocolMessage [01:11:19]wFMCommunicate request_size=4 [01:11:19]MH_SAM_APDU [01:11:19]CAPDU: 80 11 00 00 [01:11:19]Write to MH i2c: E2 08 00 EE 12 80 11 00 00 00 00 00 00 7A [01:11:19]Write i2c OK [01:11:19]MH_I2C_Read... [01:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:19]Read from MH i2c: E2 [01:11:19]MH_I2C_Read... [01:11:19]Read from MH i2c: E2 17 00 [01:11:19]MH_I2C_Read... [01:11:19]Read from MH i2c: E2 17 00 EE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CC [01:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:11:19]wFMCommunicate OK [01:11:19]CreateOFDProtocolMessage done [01:11:19]OFDSenderStorePacket 112131 [01:11:19]StoreOFDPacket docnum=112131 [01:11:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2E C4 07 01 CF F7 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 BC 24 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B6 01 00 35 04 06 00 F3 E8 25 12 EC DA 89 B6 27 EB 57 99 58 FA [01:11:19]CheckFolder [01:11:19]dirname=/storage/ofd_packets [01:11:19]CheckFolder done [01:11:19]ProducePacketName [01:11:19]name=ofd_packets/00112131 [01:11:19]NVStorageSaveData ofd_packets/00112131 [01:11:19]File name is /storage/ofd_packets/00112131 [01:11:19]Write 301 bytes [01:11:19]NVStorageSaveData done [01:11:19]OFDSenderStorePacket done [01:11:19]KKMCreateOFDPacket done [01:11:19]NVStorageSaveData kkm_last_timestamp [01:11:19]File name is /storage/kkm_last_timestamp [01:11:19]Write 4 bytes [01:11:19]NVStorageSaveData done [01:11:19]ExternCall_PrintAddStr [01:11:19]wPrintStart [01:11:19]Write to MH i2c: 01 00 00 EF 12 01 [01:11:19]Write i2c OK [01:11:19]MH_I2C_Read... [01:11:19]Read from MH i2c: 01 [01:11:19]MH_I2C_Read... [01:11:19]Read from MH i2c: 01 07 00 [01:11:19]MH_I2C_Read... [01:11:19]Read from MH i2c: 01 07 00 EF 12 00 00 00 00 00 FF 0F 16 [01:11:19]RasterBufferAndPrint [01:11:19]line 小褔械褌 N : (1)320793 [01:11:19]line 袠袧袧: 02508201610067 [01:11:19]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [01:11:19]line 袩袪袨袛袗袞袗 [01:11:19]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [01:11:19]line 孝芯胁邪褉: 2710124130 [01:11:19]line 袗懈-92-袣-5 [01:11:19]line 3.020 * 66.40 [01:11:19]line = 200.53 [01:11:19]line 袧袛小 12% 袧小袩 1% [01:11:19]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [01:11:19]line 袨袣袪校袚袥袝袧袠袝: -0.53 [01:11:19]line 袠孝袨袚袨: 200.00 [01:11:19]line 袙薪械褋械薪芯: 200.00 [01:11:19]line 小袛袗效袗: 0.00 [01:11:19]line 袧小袩 1% : 1.77 [01:11:19]line 袧袛小 12% : 21.29 [01:11:19]line 袧邪谢懈褔薪褘屑懈: 200.00 [01:11:19]line 袘械蟹薪邪谢.: 0.00 [01:11:19]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [01:11:19]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [01:11:19]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [01:11:19]line 效械泻 299 22.06.2024 01:11 [01:11:19]line 小屑械薪邪: 390 肖肖袛: 1.0 [01:11:19]line 袟袧袦: 0300000198 [01:11:19]line 袪袧袦: 0000000000092771 [01:11:19]line 袙械褉褋懈褟 袣袣袦: 001 [01:11:19]line 肖袦: 0000000000875083 [01:11:19]line 肖袛: 112131 [01:11:19]line 肖袩袛: 268178379959514 [01:11:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T011124&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112131&fm=268178379959514&tin=02508201610067®Number=0000000000092771&sum=20000 [01:11:19]OFD Sender: Processing packet 112131 [packets to send 38, broken 37] [01:11:19]ProducePacketName [01:11:19]name=ofd_packets/00112131 [01:11:19]OFD Sender: To server: 嚂鰌G, [01:11:19]CommunicateWithHost lk.salyk.kg:30040 [01:11:19]ConnectInit lk.salyk.kg [01:11:19]written 0, free lines is 4095 [01:11:19]Connected sock=10 [01:11:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2E C4 07 01 CF F7 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 BC 24 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B6 01 00 35 04 06 00 F3 E8 25 12 EC DA 89 B6 27 EB 57 99 58 FA [01:11:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A4 71 47 00 22 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 30 38 37 35 30 38 33 10 04 04 00 03 B6 01 00 F4 03 04 00 D7 BB 75 66 B6 04 01 00 00 54 69 D8 2B 17 54 ED 55 [01:11:19]CommunicateWithHost err = 0 [01:11:19]CheckOFDResponse [01:11:19]1017 (14) - 77093643461234 [01:11:19]1041 (16) - 0000000000875083 [01:11:19]1040 (4) - 112131 [01:11:19]1012 (4) - 21.06.2024 17:43 [01:11:19]1206 (1) - 0 [01:11:19]OFD Sender: Remove packet 112131 [01:11:19]ProducePacketName [01:11:19]name=ofd_packets/00112131 [01:11:19]NVStorageDeleteData [01:11:20]Write to MH i2c: 01 00 00 1A 13 2D [01:11:20]Write i2c OK [01:11:20]MH_I2C_Read... [01:11:20]Read from MH i2c: 01 [01:11:20]MH_I2C_Read... [01:11:20]Read from MH i2c: 01 07 00 [01:11:20]MH_I2C_Read... [01:11:20]Read from MH i2c: 01 07 00 1A 13 00 00 00 00 00 F3 0C 33 [01:11:20]RasterBufferAndPrint [01:11:20]line [01:11:20]line [01:11:20]line [01:11:20]line [01:11:20]line [01:11:20]written 0, free lines is 3321 [01:11:20]MH_Cut [01:11:20]Write to MH i2c: D1 01 00 21 13 01 06 [01:11:20]Write i2c OK [01:11:20]MH_I2C_Read... [01:11:20]Read from MH i2c: D1 [01:11:20]MH_I2C_Read... [01:11:20]Read from MH i2c: D1 01 00 [01:11:20]MH_I2C_Read... [01:11:20]Read from MH i2c: D1 01 00 21 13 00 05 [01:11:20]Write to MH i2c: 01 00 00 22 13 35 [01:11:20]Write i2c OK [01:11:20]MH_I2C_Read... [01:11:20]OFD Sender: No OFD packet to send [01:11:20]*** Cut start [01:11:20]*** Partial cut [01:11:20]*** CUTSNS_PIN = 1 [01:11:20]*** CUTSNS_PIN = 0 [01:11:21]*** Brake cut motor [01:11:21]Read from MH i2c: 01 [01:11:21]MH_I2C_Read... [01:11:21]*** Stop cut motor [01:11:21]*** Cut end [01:11:21]Read from MH i2c: 01 07 00 [01:11:21]MH_I2C_Read... [01:11:21]Read from MH i2c: 01 07 00 22 13 00 00 00 00 00 FF 0F 4A [01:11:21]process_action close_receipt done [01:11:21]requested_data is exist [01:11:21]produce_requested_data [01:11:21]requested_item fm.sn is exist - process it [01:11:21]wFMCommunicate request_size=4 [01:11:21]MH_SAM_APDU [01:11:21]CAPDU: 80 11 00 00 [01:11:21]Write to MH i2c: E2 08 00 23 13 80 11 00 00 00 00 00 00 B0 [01:11:21]Write i2c OK [01:11:21]MH_I2C_Read... [01:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:21]Read from MH i2c: E2 [01:11:21]MH_I2C_Read... [01:11:21]Read from MH i2c: E2 17 00 [01:11:21]MH_I2C_Read... [01:11:21]Read from MH i2c: E2 17 00 23 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 02 [01:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:11:21]wFMCommunicate OK [01:11:21]requested_item fd.num is exist - process it [01:11:21]SAM_PROTO_GetFieldsCounters [01:11:21]wFMCommunicate request_size=4 [01:11:21]MH_SAM_APDU [01:11:21]CAPDU: 80 13 00 00 [01:11:21]Write to MH i2c: E2 08 00 24 13 80 13 00 00 00 00 00 00 B3 [01:11:21]Write i2c OK [01:11:21]MH_I2C_Read... [01:11:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:11:21]Read from MH i2c: E2 [01:11:21]MH_I2C_Read... [01:11:21]Read from MH i2c: E2 62 00 [01:11:21]MH_I2C_Read... [01:11:21]Read from MH i2c: E2 62 00 24 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 03 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [01:11:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 03 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:11:21]wFMCommunicate OK [01:11:21]SAM_PROTO_GetFieldsCounters done [01:11:21]requested_item shift.num is exist - process it [01:11:21]requested_item shift.opened is exist - process it [01:11:21]req_shift_opened [01:11:21]FM_GetShiftState [01:11:21]SAM_PROTO_GetShiftState [01:11:21]wFMCommunicate request_size=4 [01:11:21]MH_SAM_APDU [01:11:21]CAPDU: 80 13 01 00 [01:11:21]Write to MH i2c: E2 08 00 25 13 80 13 01 00 00 00 00 00 B5 [01:11:21]Write i2c OK [01:11:21]MH_I2C_Read... [01:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:21]Read from MH i2c: E2 [01:11:21]MH_I2C_Read... [01:11:21]Read from MH i2c: E2 0E 00 [01:11:21]MH_I2C_Read... [01:11:21]Read from MH i2c: E2 0E 00 25 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 32 [01:11:21]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [01:11:21]wFMCommunicate OK [01:11:21]SAM_PROTO_GetShiftState done [01:11:21]FM_GetShiftState done [01:11:21]req_shift_opened done [01:11:21]requested_item shift.open_date is exist - process it [01:11:21]req_shift_open_date [01:11:21]req_shift_open_date done [01:11:21]produce_requested_data done [01:11:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112131,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [01:11:21]process_action_free close_receipt [01:11:21]json_value_free [01:11:21]json_value_free done [01:11:21]process_json_proto returns [01:11:21]Send response to host [01:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112131,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [01:11:21]free response buf [01:11:21]execute_script done [01:11:21]execute_script returns [01:11:21]free content buf [01:11:21]Sock 7.Close socket [01:11:21]Sock 7.Thread stoped [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:16:58]accept exits with 9 [01:16:58]New connection [01:16:58]New thread 3066957156 created [01:16:58]Thread 3066813796 joined [01:16:58]Waiting for new connection... [01:16:58] Sock 9.Parse request [01:16:58]Sock 9.Check first char [01:16:58]Sock 9.First char is OK [01:16:58]request: POST /json_proto HTTP/1.0 [01:16:58]Method: POST [01:16:58]URL: /json_proto [01:16:58]Method is POST - this is cgi request [01:16:58]url: /json_proto [01:16:58]query_string will be loaded in cgi processing [01:16:58]execute_cgi json_proto POST (null) [01:16:58]execute_cgi path=json_proto method=POST [01:16:58]POST find Content-Length [01:16:58]Host: 172.17.59.68:8080 [01:16:58]Content-Length: 805 [01:16:58]Content-Type: application/json [01:16:58] [01:16:58]POST finish read [01:16:58]Found Content-Length = 805 [01:16:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.940, "sum" : 660.02, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 660.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:58]execute_script... [01:16: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)320794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.940, "sum" : 660.02, "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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 660.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:58]POST & json_proto [01:16:58]process_json_proto [01:16:58]json parsed OK: [01:16:58]protocol is kg_v1.0 [01:16:58]action value=close_receipt [01:16:58]process_action close_receipt [01:16:58]cmd_close_receipt [01:16:58]MH_GetDate [01:16:58]Write to MH i2c: F0 00 00 26 13 28 [01:16:58]Write i2c OK [01:16:58]MH_I2C_Read... [01:16:58]Read from MH i2c: F0 [01:16:58]MH_I2C_Read... [01:16:58]Read from MH i2c: F0 09 00 [01:16:58]MH_I2C_Read... [01:16:58]Read from MH i2c: F0 09 00 26 13 00 11 26 76 66 BC EC 60 65 B1 [01:16:58]GetLastDocTimeStamp 1719018684 [01:16:58]current date 1719019025 [01:16:58]FM_GetShiftState [01:16:58]SAM_PROTO_GetShiftState [01:16:58]wFMCommunicate request_size=4 [01:16:58]MH_SAM_APDU [01:16:58]CAPDU: 80 13 01 00 [01:16:58]Write to MH i2c: E2 08 00 27 13 80 13 01 00 00 00 00 00 B7 [01:16:58]Write i2c OK [01:16:58]MH_I2C_Read... [01:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:58]Read from MH i2c: E2 [01:16:58]MH_I2C_Read... [01:16:58]Read from MH i2c: E2 0E 00 [01:16:58]MH_I2C_Read... [01:16:58]Read from MH i2c: E2 0E 00 27 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 34 [01:16:58]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [01:16:58]wFMCommunicate OK [01:16:58]SAM_PROTO_GetShiftState done [01:16:58]FM_GetShiftState done [01:16:58]opened in 1718933695 [01:16:58]opened+sec_in_day 1719020095 [01:16:58]quantity*price = 66001 [01:16:58]sum+1 = 66003 [01:16:58]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袠孝袨袚袨: 660.02 袧小袩 1% : 5.84 袧袛小 12% : 70.09 袧邪谢懈褔薪褘屑懈: 0.00 袘械蟹薪邪谢.: 660.02 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 300 22.06.2024 01:17 小屑械薪邪: 390 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 肖袦: 0000000000875083 肖袛: 112132 肖袩袛: 36599078655529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T011705&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112132&fm=36599078655529&tin=02508201610067®Number=0000000000092771&sum=66002 [01:16:59]StoreToDocumentArchive [01:16:59]shift 390 fd 112132 [01:16:59]save to /storage/0390/doc_00112132 [01:16:59]save last doc name /storage/0390/doc_00112132 to /storage/kkm_last_doc_name [01:16:59]save OK [01:16:59]Clear old archive folders... [01:16:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:16:59]tlvbuf is 01121AF0 [01:16:59]SAM_PROTO_ClearQueue [01:16:59]wFMCommunicate request_size=4 [01:16:59]MH_SAM_APDU [01:16:59]CAPDU: 80 09 00 00 [01:16:59]Write to MH i2c: E2 08 00 34 13 80 09 00 00 00 00 00 00 B9 [01:16:59]Write i2c OK [01:16:59]MH_I2C_Read... [01:16:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:16:59]Read from MH i2c: E2 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: E2 03 00 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: E2 03 00 34 13 00 90 00 BB [01:16:59]RAPDU: 90 00 [01:16:59]wFMCommunicate OK [01:16:59]SAM_PROTO_ClearQueue done [01:16:59]KKMCreateOFDPacket [01:16:59]OFDProtocolAddRootSTLVToBuf [01:16:59]FM_MakeSignedData [01:16:59]FM_MakeSignedData [01:16:59]SAM_PROTO_SignData [01:16:59]wFMCommunicate request_size=4 [01:16:59]MH_SAM_APDU [01:16:59]CAPDU: 80 0D 01 02 [01:16:59]Write to MH i2c: E2 08 00 35 13 80 0D 01 02 00 00 00 00 C1 [01:16:59]Write i2c OK [01:16:59]MH_I2C_Read... [01:16:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:16:59]Read from MH i2c: E2 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: E2 03 00 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: E2 03 00 35 13 00 90 00 BC [01:16:59]RAPDU: 90 00 [01:16:59]wFMCommunicate OK [01:16:59]wFMCommunicate request_size=255 [01:16:59]MH_SAM_APDU [01:16:59]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 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 11 26 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B6 01 00 35 04 06 00 21 [01:16:59]Write to MH i2c: E2 02 01 36 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 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 11 26 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B6 01 00 35 04 06 00 21 00 00 B3 [01:16:59]Write i2c OK [01:16:59]MH_I2C_Read... [01:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:59]Read from MH i2c: E2 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: E2 03 00 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: E2 03 00 36 13 00 90 00 BD [01:16:59]RAPDU: 90 00 [01:16:59]wFMCommunicate OK [01:16:59]wFMCommunicate request_size=10 [01:16:59]MH_SAM_APDU [01:16:59]CAPDU: 80 0D 02 02 05 49 63 15 16 29 [01:16:59]Write to MH i2c: E2 0D 00 37 13 80 0D 02 02 05 00 49 63 15 16 29 00 00 CE [01:16:59]Write i2c OK [01:16:59]MH_I2C_Read... [01:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:59]Read from MH i2c: E2 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: E2 03 00 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: E2 03 00 37 13 00 90 00 BE [01:16:59]RAPDU: 90 00 [01:16:59]wFMCommunicate OK [01:16:59]wFMCommunicate request_size=4 [01:16:59]MH_SAM_APDU [01:16:59]CAPDU: 80 0D 03 02 [01:16:59]Write to MH i2c: E2 08 00 38 13 80 0D 03 02 00 00 00 00 C6 [01:16:59]Write i2c OK [01:16:59]MH_I2C_Read... [01:16:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:16:59]Read from MH i2c: E2 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: E2 0B 00 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: E2 0B 00 38 13 00 1D 1A DD C7 80 07 9D 23 90 00 E9 [01:16:59]RAPDU: 1D 1A DD C7 80 07 9D 23 90 00 [01:16:59]wFMCommunicate OK [01:16:59]SAM_PROTO_SignData done [01:16:59]FM_MakeSignedData done [01:16:59]CreateOFDProtocolMessage [01:16:59]wFMCommunicate request_size=4 [01:16:59]MH_SAM_APDU [01:16:59]CAPDU: 80 11 00 00 [01:16:59]Write to MH i2c: E2 08 00 39 13 80 11 00 00 00 00 00 00 C6 [01:16:59]Write i2c OK [01:16:59]MH_I2C_Read... [01:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:59]Read from MH i2c: E2 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: E2 17 00 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: E2 17 00 39 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 18 [01:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:16:59]wFMCommunicate OK [01:16:59]CreateOFDProtocolMessage done [01:16:59]OFDSenderStorePacket 112132 [01:16:59]StoreOFDPacket docnum=112132 [01:16:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B2 D9 07 01 06 87 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 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 11 26 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B6 01 00 35 04 06 00 21 49 63 15 16 29 1D 1A DD C7 80 07 9D 23 [01:16:59]CheckFolder [01:16:59]dirname=/storage/ofd_packets [01:16:59]CheckFolder done [01:16:59]ProducePacketName [01:16:59]name=ofd_packets/00112132 [01:16:59]NVStorageSaveData ofd_packets/00112132 [01:16:59]File name is /storage/ofd_packets/00112132 [01:16:59]Write 301 bytes [01:16:59]NVStorageSaveData done [01:16:59]OFDSenderStorePacket done [01:16:59]KKMCreateOFDPacket done [01:16:59]NVStorageSaveData kkm_last_timestamp [01:16:59]File name is /storage/kkm_last_timestamp [01:16:59]Write 4 bytes [01:16:59]NVStorageSaveData done [01:16:59]ExternCall_PrintAddStr [01:16:59]wPrintStart [01:16:59]Write to MH i2c: 01 00 00 3A 13 4D [01:16:59]Write i2c OK [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: 01 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: 01 07 00 [01:16:59]MH_I2C_Read... [01:16:59]Read from MH i2c: 01 07 00 3A 13 00 00 00 00 00 FF 0F 62 [01:16:59]RasterBufferAndPrint [01:16:59]line 小褔械褌 N : (1)320794 [01:16:59]line 袠袧袧: 02508201610067 [01:16:59]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [01:16:59]line 袩袪袨袛袗袞袗 [01:16:59]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [01:16:59]line 孝芯胁邪褉: 2710124130 [01:16:59]line 袗懈-92-袣-5 [01:16:59]line 9.940 * 66.40 [01:16:59]line = 660.02 [01:16:59]line 袧袛小 12% 袧小袩 1% [01:16:59]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [01:16:59]line 袠孝袨袚袨: 660.02 [01:16:59]line 袧小袩 1% : 5.84 [01:16:59]line 袧袛小 12% : 70.09 [01:16:59]line 袧邪谢懈褔薪褘屑懈: 0.00 [01:16:59]line 袘械蟹薪邪谢.: 660.02 [01:16:59]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [01:16:59]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [01:16:59]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [01:16:59]line 效械泻 300 22.06.2024 01:17 [01:16:59]line 小屑械薪邪: 390 肖肖袛: 1.0 [01:16:59]line 袟袧袦: 0300000198 [01:16:59]line 袪袧袦: 0000000000092771 [01:16:59]line 袙械褉褋懈褟 袣袣袦: 001 [01:16:59]line 袩谢邪褌械卸薪邪褟 褋懈褋褌械屑邪: 袨! 写械薪褜谐懈 [01:16:59]line 肖袦: 0000000000875083 [01:16:59]line 肖袛: 112132 [01:16:59]line 肖袩袛: 36599078655529 [01:16:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T011705&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112132&fm=36599078655529&tin=02508201610067®Number=0000000000092771&sum=66002 [01:17:00]written 0, free lines is 4095 [01:17:00]OFD Sender: Processing packet 112132 [packets to send 38, broken 37] [01:17:00]ProducePacketName [01:17:00]name=ofd_packets/00112132 [01:17:00]OFD Sender: To server: 嚂鰌G, [01:17:00]CommunicateWithHost lk.salyk.kg:30040 [01:17:00]ConnectInit lk.salyk.kg [01:17:00]Connected sock=11 [01:17:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B2 D9 07 01 06 87 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 D4 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D2 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D2 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 11 26 76 66 0E 04 04 00 86 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B6 01 00 35 04 06 00 21 49 63 15 16 29 1D 1A DD C7 80 07 9D 23 [01:17:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2A ED 47 00 04 C7 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 30 38 37 35 30 38 33 10 04 04 00 04 B6 01 00 F4 03 04 00 2C BD 75 66 B6 04 01 00 00 E8 9C F4 AD B2 4B BE D2 [01:17:00]CommunicateWithHost err = 0 [01:17:00]CheckOFDResponse [01:17:00]1017 (14) - 77093643461234 [01:17:00]1041 (16) - 0000000000875083 [01:17:00]1040 (4) - 112132 [01:17:00]1012 (4) - 21.06.2024 17:49 [01:17:00]1206 (1) - 0 [01:17:00]OFD Sender: Remove packet 112132 [01:17:00]ProducePacketName [01:17:00]name=ofd_packets/00112132 [01:17:00]NVStorageDeleteData [01:17:00]Write to MH i2c: 01 00 00 64 13 77 [01:17:00]Write i2c OK [01:17:00]MH_I2C_Read... [01:17:00]Read from MH i2c: 01 [01:17:00]MH_I2C_Read... [01:17:00]Read from MH i2c: 01 07 00 [01:17:00]MH_I2C_Read... [01:17:00]Read from MH i2c: 01 07 00 64 13 00 00 00 00 00 E1 0C 6B [01:17:00]RasterBufferAndPrint [01:17:00]line [01:17:00]line [01:17:00]line [01:17:00]line [01:17:00]line [01:17:00]written 0, free lines is 3303 [01:17:00]MH_Cut [01:17:00]Write to MH i2c: D1 01 00 6B 13 01 50 [01:17:00]Write i2c OK [01:17:00]MH_I2C_Read... [01:17:00]Read from MH i2c: D1 [01:17:00]MH_I2C_Read... [01:17:00]Read from MH i2c: D1 01 00 [01:17:00]MH_I2C_Read... [01:17:00]Read from MH i2c: D1 01 00 6B 13 00 4F [01:17:00]Write to MH i2c: 01 00 00 6C 13 7F [01:17:00]Write i2c OK [01:17:00]MH_I2C_Read... [01:17:00]OFD Sender: No OFD packet to send [01:17:01]*** Cut start [01:17:01]*** Partial cut [01:17:01]*** CUTSNS_PIN = 1 [01:17:01]*** CUTSNS_PIN = 0 [01:17:01]*** Brake cut motor [01:17:01]Read from MH i2c: 01 [01:17:01]MH_I2C_Read... [01:17:01]*** Stop cut motor [01:17:01]*** Cut end [01:17:01]Read from MH i2c: 01 07 00 [01:17:01]MH_I2C_Read... [01:17:01]Read from MH i2c: 01 07 00 6C 13 00 00 00 00 00 FF 0F 94 [01:17:01]process_action close_receipt done [01:17:01]requested_data is exist [01:17:01]produce_requested_data [01:17:01]requested_item fm.sn is exist - process it [01:17:01]wFMCommunicate request_size=4 [01:17:01]MH_SAM_APDU [01:17:01]CAPDU: 80 11 00 00 [01:17:01]Write to MH i2c: E2 08 00 6D 13 80 11 00 00 00 00 00 00 FA [01:17:01]Write i2c OK [01:17:01]MH_I2C_Read... [01:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:17:01]Read from MH i2c: E2 [01:17:01]MH_I2C_Read... [01:17:01]Read from MH i2c: E2 17 00 [01:17:01]MH_I2C_Read... [01:17:01]Read from MH i2c: E2 17 00 6D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4C [01:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:17:01]wFMCommunicate OK [01:17:01]requested_item fd.num is exist - process it [01:17:01]SAM_PROTO_GetFieldsCounters [01:17:01]wFMCommunicate request_size=4 [01:17:01]MH_SAM_APDU [01:17:01]CAPDU: 80 13 00 00 [01:17:01]Write to MH i2c: E2 08 00 6E 13 80 13 00 00 00 00 00 00 FD [01:17:01]Write i2c OK [01:17:01]MH_I2C_Read... [01:17:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:17:02]Read from MH i2c: E2 [01:17:02]MH_I2C_Read... [01:17:02]Read from MH i2c: E2 62 00 [01:17:02]MH_I2C_Read... [01:17:02]Read from MH i2c: E2 62 00 6E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [01:17:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:17:02]wFMCommunicate OK [01:17:02]SAM_PROTO_GetFieldsCounters done [01:17:02]requested_item shift.num is exist - process it [01:17:02]requested_item shift.opened is exist - process it [01:17:02]req_shift_opened [01:17:02]FM_GetShiftState [01:17:02]SAM_PROTO_GetShiftState [01:17:02]wFMCommunicate request_size=4 [01:17:02]MH_SAM_APDU [01:17:02]CAPDU: 80 13 01 00 [01:17:02]Write to MH i2c: E2 08 00 6F 13 80 13 01 00 00 00 00 00 FF [01:17:02]Write i2c OK [01:17:02]MH_I2C_Read... [01:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:17:02]Read from MH i2c: E2 [01:17:02]MH_I2C_Read... [01:17:02]Read from MH i2c: E2 0E 00 [01:17:02]MH_I2C_Read... [01:17:02]Read from MH i2c: E2 0E 00 6F 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 7C [01:17:02]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [01:17:02]wFMCommunicate OK [01:17:02]SAM_PROTO_GetShiftState done [01:17:02]FM_GetShiftState done [01:17:02]req_shift_opened done [01:17:02]requested_item shift.open_date is exist - process it [01:17:02]req_shift_open_date [01:17:02]req_shift_open_date done [01:17:02]produce_requested_data done [01:17:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112132,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [01:17:02]process_action_free close_receipt [01:17:02]json_value_free [01:17:02]json_value_free done [01:17:02]process_json_proto returns [01:17:02]Send response to host [01:17:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112132,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [01:17:02]free response buf [01:17:02]execute_script done [01:17:02]execute_script returns [01:17:02]free content buf [01:17:02]Sock 9.Close socket [01:17:02]Sock 9.Thread stoped [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:30]accept exits with 7 [01:26:30]New connection [01:26:30]New thread 3066813796 created [01:26:30]Thread 3066957156 joined [01:26:30]Waiting for new connection... [01:26:30] Sock 7.Parse request [01:26:30]Sock 7.Check first char [01:26:30]Sock 7.First char is OK [01:26:30]request: POST /json_proto HTTP/1.0 [01:26:30]Method: POST [01:26:30]URL: /json_proto [01:26:30]Method is POST - this is cgi request [01:26:30]url: /json_proto [01:26:30]query_string will be loaded in cgi processing [01:26:30]execute_cgi json_proto POST (null) [01:26:30]execute_cgi path=json_proto method=POST [01:26:30]POST find Content-Length [01:26:30]Host: 172.17.59.68:8080 [01:26:30]Content-Length: 215 [01:26:30]Content-Type: application/json [01:26:30] [01:26:30]POST finish read [01:26:30]Found Content-Length = 215 [01:26:30]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" ] } } [01:26:30]execute_script... [01:26:30]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" ] } } [01:26:30]POST & json_proto [01:26:30]process_json_proto [01:26:30]json parsed OK: [01:26:30]protocol is kg_v1.0 [01:26:30]action value=get_value [01:26:30]process_action get_value [01:26:30]cmd_get_value [01:26:30]process_action get_value done [01:26:30]requested_data is exist [01:26:30]produce_requested_data [01:26:30]requested_item kkm.sn is exist - process it [01:26:30]requested_item kkm.ver is exist - process it [01:26:30]requested_item fm.sn is exist - process it [01:26:30]wFMCommunicate request_size=4 [01:26:30]MH_SAM_APDU [01:26:30]CAPDU: 80 11 00 00 [01:26:30]Write to MH i2c: E2 08 00 70 13 80 11 00 00 00 00 00 00 FD [01:26:30]Write i2c OK [01:26:30]MH_I2C_Read... [01:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:30]Read from MH i2c: E2 [01:26:30]MH_I2C_Read... [01:26:30]Read from MH i2c: E2 17 00 [01:26:30]MH_I2C_Read... [01:26:30]Read from MH i2c: E2 17 00 70 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [01:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:26:30]wFMCommunicate OK [01:26:30]requested_item fd.num is exist - process it [01:26:30]SAM_PROTO_GetFieldsCounters [01:26:30]wFMCommunicate request_size=4 [01:26:30]MH_SAM_APDU [01:26:30]CAPDU: 80 13 00 00 [01:26:30]Write to MH i2c: E2 08 00 71 13 80 13 00 00 00 00 00 00 00 [01:26:30]Write i2c OK [01:26:30]MH_I2C_Read... [01:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:30]Read from MH i2c: E2 [01:26:30]MH_I2C_Read... [01:26:30]Read from MH i2c: E2 62 00 [01:26:30]MH_I2C_Read... [01:26:30]Read from MH i2c: E2 62 00 71 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [01:26:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:26:30]wFMCommunicate OK [01:26:30]SAM_PROTO_GetFieldsCounters done [01:26:30]requested_item shift.num is exist - process it [01:26:30]requested_item shift.opened is exist - process it [01:26:30]req_shift_opened [01:26:30]FM_GetShiftState [01:26:30]SAM_PROTO_GetShiftState [01:26:30]wFMCommunicate request_size=4 [01:26:30]MH_SAM_APDU [01:26:30]CAPDU: 80 13 01 00 [01:26:30]Write to MH i2c: E2 08 00 72 13 80 13 01 00 00 00 00 00 02 [01:26:30]Write i2c OK [01:26:30]MH_I2C_Read... [01:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:30]Read from MH i2c: E2 [01:26:30]MH_I2C_Read... [01:26:30]Read from MH i2c: E2 0E 00 [01:26:30]MH_I2C_Read... [01:26:30]Read from MH i2c: E2 0E 00 72 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 7F [01:26:30]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [01:26:30]wFMCommunicate OK [01:26:30]SAM_PROTO_GetShiftState done [01:26:30]FM_GetShiftState done [01:26:30]req_shift_opened done [01:26:30]requested_item shift.open_date is exist - process it [01:26:30]req_shift_open_date [01:26:30]req_shift_open_date done [01:26:30]produce_requested_data done [01:26:30]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112132,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [01:26:30]process_action_free get_value [01:26:30]json_value_free [01:26:30]json_value_free done [01:26:30]process_json_proto returns [01:26:30]Send response to host [01:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112132,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [01:26:30]free response buf [01:26:30]execute_script done [01:26:30]execute_script returns [01:26:30]free content buf [01:26:30]Sock 7.Close socket [01:26:30]Sock 7.Thread stoped [01:26:30]accept exits with 9 [01:26:30]New connection [01:26:30]New thread 3066957156 created [01:26:30]Thread 3066813796 joined [01:26:30]Waiting for new connection... [01:26:30] Sock 9.Parse request [01:26:30]Sock 9.Check first char [01:26:30]Sock 9.First char is OK [01:26:30]request: POST /json_proto HTTP/1.0 [01:26:30]Method: POST [01:26:30]URL: /json_proto [01:26:30]Method is POST - this is cgi request [01:26:30]url: /json_proto [01:26:30]query_string will be loaded in cgi processing [01:26:30]execute_cgi json_proto POST (null) [01:26:30]execute_cgi path=json_proto method=POST [01:26:30]POST find Content-Length [01:26:30]Host: 172.17.59.68:8080 [01:26:30]Content-Length: 331 [01:26:30]Content-Type: application/json [01:26:30] [01:26:30]POST finish read [01:26:30]Found Content-Length = 331 [01:26:30]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" ] } } [01:26:30]execute_script... [01:26:30]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" ] } } [01:26:30]POST & json_proto [01:26:30]process_json_proto [01:26:30]json parsed OK: [01:26:30]protocol is kg_v1.0 [01:26:30]action value=get_value [01:26:30]process_action get_value [01:26:30]cmd_get_value [01:26:30]process_action get_value done [01:26:30]requested_data is exist [01:26:30]produce_requested_data [01:26:30]requested_item fm.sale.total is exist - process it [01:26:30]SAM_PROTO_GetFMData [01:26:30]wFMCommunicate request_size=4 [01:26:30]MH_SAM_APDU [01:26:30]CAPDU: 80 13 03 00 [01:26:30]Write to MH i2c: E2 08 00 73 13 80 13 03 00 00 00 00 00 05 [01:26:30]Write i2c OK [01:26:30]MH_I2C_Read... [01:26:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:26:31]Read from MH i2c: E2 [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: E2 FD 00 [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: E2 FD 00 73 13 00 BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 93 [01:26:31]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:26:31]wFMCommunicate OK [01:26:31]wFMCommunicate request_size=4 [01:26:31]MH_SAM_APDU [01:26:31]CAPDU: 80 17 00 00 [01:26:31]Write to MH i2c: E2 08 00 74 13 80 17 00 00 00 00 00 00 07 [01:26:31]Write i2c OK [01:26:31]MH_I2C_Read... [01:26:31]OFD Sender: No OFD packet to send [01:26:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:31]Read from MH i2c: E2 [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: E2 FD 00 [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: E2 FD 00 74 13 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [01:26:31]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:31]wFMCommunicate OK [01:26:31]wFMCommunicate request_size=4 [01:26:31]MH_SAM_APDU [01:26:31]CAPDU: 80 17 00 00 [01:26:31]Write to MH i2c: E2 08 00 75 13 80 17 00 00 00 00 00 00 08 [01:26:31]Write i2c OK [01:26:31]MH_I2C_Read... [01:26:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:31]Read from MH i2c: E2 [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: E2 FD 00 [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: E2 FD 00 75 13 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3A [01:26:31]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:31]wFMCommunicate OK [01:26:31]wFMCommunicate request_size=4 [01:26:31]MH_SAM_APDU [01:26:31]CAPDU: 80 17 00 00 [01:26:31]Write to MH i2c: E2 08 00 76 13 80 17 00 00 00 00 00 00 09 [01:26:31]Write i2c OK [01:26:31]MH_I2C_Read... [01:26:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:32]Read from MH i2c: E2 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 FD 00 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 FD 00 76 13 00 F7 03 00 00 EF 03 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 90 00 80 [01:26:32]RAPDU: F7 03 00 00 EF 03 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 90 00 [01:26:32]wFMCommunicate OK [01:26:32]wFMCommunicate request_size=4 [01:26:32]MH_SAM_APDU [01:26:32]CAPDU: 80 17 00 00 [01:26:32]Write to MH i2c: E2 08 00 77 13 80 17 00 00 00 00 00 00 0A [01:26:32]Write i2c OK [01:26:32]MH_I2C_Read... [01:26:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:26:32]Read from MH i2c: E2 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 DA 00 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 DA 00 77 13 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EB [01:26:32]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:26:32]wFMCommunicate OK [01:26:32]SAM_PROTO_GetFMData done [01:26:32]requested_item fm.sale_refund.total is exist - process it [01:26:32]requested_item fm.buy.total is exist - process it [01:26:32]requested_item shift.sale.total is exist - process it [01:26:32]SAM_PROTO_GetShiftData [01:26:32]wFMCommunicate request_size=4 [01:26:32]MH_SAM_APDU [01:26:32]CAPDU: 80 13 02 00 [01:26:32]Write to MH i2c: E2 08 00 78 13 80 13 02 00 00 00 00 00 09 [01:26:32]Write i2c OK [01:26:32]MH_I2C_Read... [01:26:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:26:32]Read from MH i2c: E2 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 FD 00 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 FD 00 78 13 00 B1 04 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 44 [01:26:32]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:32]wFMCommunicate OK [01:26:32]wFMCommunicate request_size=4 [01:26:32]MH_SAM_APDU [01:26:32]CAPDU: 80 17 00 00 [01:26:32]Write to MH i2c: E2 08 00 79 13 80 17 00 00 00 00 00 00 0C [01:26:32]Write i2c OK [01:26:32]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 FD 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 FD 00 79 13 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 25 [01:26:33]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:33]wFMCommunicate OK [01:26:33]wFMCommunicate request_size=4 [01:26:33]MH_SAM_APDU [01:26:33]CAPDU: 80 17 00 00 [01:26:33]Write to MH i2c: E2 08 00 7A 13 80 17 00 00 00 00 00 00 0D [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 FD 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 FD 00 7A 13 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [01:26:33]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:33]wFMCommunicate OK [01:26:33]wFMCommunicate request_size=4 [01:26:33]MH_SAM_APDU [01:26:33]CAPDU: 80 17 00 00 [01:26:33]Write to MH i2c: E2 08 00 7B 13 80 17 00 00 00 00 00 00 0E [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 FD 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 FD 00 7B 13 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 90 00 86 [01:26:33]RAPDU: 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 90 00 [01:26:33]wFMCommunicate OK [01:26:33]wFMCommunicate request_size=4 [01:26:33]MH_SAM_APDU [01:26:33]CAPDU: 80 17 00 00 [01:26:33]Write to MH i2c: E2 08 00 7C 13 80 17 00 00 00 00 00 00 0F [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 CE 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 CE 00 7C 13 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F4 [01:26:33]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:26:33]wFMCommunicate OK [01:26:33]SAM_PROTO_GetShiftData done [01:26:33]requested_item shift.sale.total_cash is exist - process it [01:26:33]requested_item shift.sale_refund.total is exist - process it [01:26:33]requested_item shift.sale_refund.total_cash is exist - process it [01:26:33]requested_item shift.buy.total is exist - process it [01:26:33]requested_item shift.buy.total_cash is exist - process it [01:26:33]produce_requested_data done [01:26:33]produce_requested_data return {"fm.sale.total":84332397.19,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":227650.73,"shift.sale.total_cash":208735.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} [01:26:33]process_action_free get_value [01:26:33]json_value_free [01:26:33]json_value_free done [01:26:33]process_json_proto returns [01:26:33]Send response to host [01:26:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84332397.19,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":227650.73,"shift.sale.total_cash":208735.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}}} [01:26:33]free response buf [01:26:33]execute_script done [01:26:33]execute_script returns [01:26:33]free content buf [01:26:33]Sock 9.Close socket [01:26:33]Sock 9.Thread stoped [01:26:34]accept exits with 7 [01:26:34]New connection [01:26:34]New thread 3066813796 created [01:26:34]Thread 3066957156 joined [01:26:34]Waiting for new connection... [01:26:34] Sock 7.Parse request [01:26:34]Sock 7.Check first char [01:26:34]Sock 7.First char is OK [01:26:34]request: POST /json_proto HTTP/1.0 [01:26:34]Method: POST [01:26:34]URL: /json_proto [01:26:34]Method is POST - this is cgi request [01:26:34]url: /json_proto [01:26:34]query_string will be loaded in cgi processing [01:26:34]execute_cgi json_proto POST (null) [01:26:34]execute_cgi path=json_proto method=POST [01:26:34]POST find Content-Length [01:26:34]Host: 172.17.59.68:8080 [01:26:34]Content-Length: 331 [01:26:34]Content-Type: application/json [01:26:34] [01:26:34]POST finish read [01:26:34]Found Content-Length = 331 [01:26:34]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" ] } } [01:26:34]execute_script... [01:26:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:26:34]POST & json_proto [01:26:34]process_json_proto [01:26:34]json parsed OK: [01:26:34]protocol is kg_v1.0 [01:26:34]action value=get_value [01:26:34]process_action get_value [01:26:34]cmd_get_value [01:26:34]process_action get_value done [01:26:34]requested_data is exist [01:26:34]produce_requested_data [01:26:34]requested_item fm.sale.total is exist - process it [01:26:34]SAM_PROTO_GetFMData [01:26:34]wFMCommunicate request_size=4 [01:26:34]MH_SAM_APDU [01:26:34]CAPDU: 80 13 03 00 [01:26:34]Write to MH i2c: E2 08 00 7D 13 80 13 03 00 00 00 00 00 0F [01:26:34]Write i2c OK [01:26:34]MH_I2C_Read... [01:26:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:26:34]Read from MH i2c: E2 [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: E2 FD 00 [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: E2 FD 00 7D 13 00 BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 9D [01:26:34]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:26:34]wFMCommunicate OK [01:26:34]wFMCommunicate request_size=4 [01:26:34]MH_SAM_APDU [01:26:34]CAPDU: 80 17 00 00 [01:26:34]Write to MH i2c: E2 08 00 7E 13 80 17 00 00 00 00 00 00 11 [01:26:34]Write i2c OK [01:26:34]MH_I2C_Read... [01:26:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:34]Read from MH i2c: E2 [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: E2 FD 00 [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: E2 FD 00 7E 13 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [01:26:35]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:35]wFMCommunicate OK [01:26:35]wFMCommunicate request_size=4 [01:26:35]MH_SAM_APDU [01:26:35]CAPDU: 80 17 00 00 [01:26:35]Write to MH i2c: E2 08 00 7F 13 80 17 00 00 00 00 00 00 12 [01:26:35]Write i2c OK [01:26:35]MH_I2C_Read... [01:26:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:35]Read from MH i2c: E2 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 FD 00 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 FD 00 7F 13 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 44 [01:26:35]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:35]wFMCommunicate OK [01:26:35]wFMCommunicate request_size=4 [01:26:35]MH_SAM_APDU [01:26:35]CAPDU: 80 17 00 00 [01:26:35]Write to MH i2c: E2 08 00 80 13 80 17 00 00 00 00 00 00 13 [01:26:35]Write i2c OK [01:26:35]MH_I2C_Read... [01:26:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:35]Read from MH i2c: E2 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 FD 00 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 FD 00 80 13 00 F7 03 00 00 EF 03 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 90 00 8A [01:26:35]RAPDU: F7 03 00 00 EF 03 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 90 00 [01:26:35]wFMCommunicate OK [01:26:35]wFMCommunicate request_size=4 [01:26:35]MH_SAM_APDU [01:26:35]CAPDU: 80 17 00 00 [01:26:35]Write to MH i2c: E2 08 00 81 13 80 17 00 00 00 00 00 00 14 [01:26:35]Write i2c OK [01:26:35]MH_I2C_Read... [01:26:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:26:36]Read from MH i2c: E2 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 DA 00 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 DA 00 81 13 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F5 [01:26:36]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:26:36]wFMCommunicate OK [01:26:36]SAM_PROTO_GetFMData done [01:26:36]requested_item fm.sale_refund.total is exist - process it [01:26:36]requested_item fm.buy.total is exist - process it [01:26:36]requested_item shift.sale.total is exist - process it [01:26:36]SAM_PROTO_GetShiftData [01:26:36]wFMCommunicate request_size=4 [01:26:36]MH_SAM_APDU [01:26:36]CAPDU: 80 13 02 00 [01:26:36]Write to MH i2c: E2 08 00 82 13 80 13 02 00 00 00 00 00 13 [01:26:36]Write i2c OK [01:26:36]MH_I2C_Read... [01:26:36]OFD Sender: No OFD packet to send [01:26:36]Read from MH i2c: E2 [01:26:36]MH_I2C_Read... [01:26:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:26:36]Read from MH i2c: E2 FD 00 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 FD 00 82 13 00 B1 04 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [01:26:36]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:36]wFMCommunicate OK [01:26:36]wFMCommunicate request_size=4 [01:26:36]MH_SAM_APDU [01:26:36]CAPDU: 80 17 00 00 [01:26:36]Write to MH i2c: E2 08 00 83 13 80 17 00 00 00 00 00 00 16 [01:26:36]Write i2c OK [01:26:36]MH_I2C_Read... [01:26:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:37]Read from MH i2c: E2 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 FD 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 FD 00 83 13 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2F [01:26:37]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:37]wFMCommunicate OK [01:26:37]wFMCommunicate request_size=4 [01:26:37]MH_SAM_APDU [01:26:37]CAPDU: 80 17 00 00 [01:26:37]Write to MH i2c: E2 08 00 84 13 80 17 00 00 00 00 00 00 17 [01:26:37]Write i2c OK [01:26:37]MH_I2C_Read... [01:26:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:37]Read from MH i2c: E2 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 FD 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 FD 00 84 13 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [01:26:37]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:37]wFMCommunicate OK [01:26:37]wFMCommunicate request_size=4 [01:26:37]MH_SAM_APDU [01:26:37]CAPDU: 80 17 00 00 [01:26:37]Write to MH i2c: E2 08 00 85 13 80 17 00 00 00 00 00 00 18 [01:26:37]Write i2c OK [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 [01:26:37]MH_I2C_Read... [01:26:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:37]Read from MH i2c: E2 FD 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 FD 00 85 13 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 90 00 90 [01:26:37]RAPDU: 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 90 00 [01:26:37]wFMCommunicate OK [01:26:37]wFMCommunicate request_size=4 [01:26:37]MH_SAM_APDU [01:26:37]CAPDU: 80 17 00 00 [01:26:37]Write to MH i2c: E2 08 00 86 13 80 17 00 00 00 00 00 00 19 [01:26:37]Write i2c OK [01:26:37]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 CE 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 CE 00 86 13 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FE [01:26:38]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:26:38]wFMCommunicate OK [01:26:38]SAM_PROTO_GetShiftData done [01:26:38]requested_item shift.sale.total_cash is exist - process it [01:26:38]requested_item shift.sale_refund.total is exist - process it [01:26:38]requested_item shift.sale_refund.total_cash is exist - process it [01:26:38]requested_item shift.buy.total is exist - process it [01:26:38]requested_item shift.buy.total_cash is exist - process it [01:26:38]produce_requested_data done [01:26:38]produce_requested_data return {"fm.sale.total":84332397.19,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":227650.73,"shift.sale.total_cash":208735.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} [01:26:38]process_action_free get_value [01:26:38]json_value_free [01:26:38]json_value_free done [01:26:38]process_json_proto returns [01:26:38]Send response to host [01:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84332397.19,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":227650.73,"shift.sale.total_cash":208735.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}}} [01:26:38]free response buf [01:26:38]execute_script done [01:26:38]execute_script returns [01:26:38]free content buf [01:26:38]Sock 7.Close socket [01:26:38]Sock 7.Thread stoped [01:26:38]accept exits with 9 [01:26:38]New connection [01:26:38]New thread 3066957156 created [01:26:38]Thread 3066813796 joined [01:26:38]Waiting for new connection... [01:26:38] Sock 9.Parse request [01:26:38]Sock 9.Check first char [01:26:38]Sock 9.First char is OK [01:26:38]request: POST /json_proto HTTP/1.0 [01:26:38]Method: POST [01:26:38]URL: /json_proto [01:26:38]Method is POST - this is cgi request [01:26:38]url: /json_proto [01:26:38]query_string will be loaded in cgi processing [01:26:38]execute_cgi json_proto POST (null) [01:26:38]execute_cgi path=json_proto method=POST [01:26:38]POST find Content-Length [01:26:38]Host: 172.17.59.68:8080 [01:26:38]Content-Length: 263 [01:26:38]Content-Type: application/json [01:26:38] [01:26:38]POST finish read [01:26:38]Found Content-Length = 263 [01:26:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:38]execute_script... [01:26:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:38]POST & json_proto [01:26:38]process_json_proto [01:26:38]json parsed OK: [01:26:38]protocol is kg_v1.0 [01:26:38]action value=x_report [01:26:38]process_action x_report [01:26:38]cmd_x_report [01:26:38]MH_GetDate [01:26:38]Write to MH i2c: F0 00 00 87 13 89 [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: F0 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: F0 09 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: F0 09 00 87 13 00 55 28 76 66 BC EC 60 65 58 [01:26:38]GetLastDocTimeStamp 1719019025 [01:26:38]current date 1719019605 [01:26:38]FM_GetShiftState [01:26:38]SAM_PROTO_GetShiftState [01:26:38]wFMCommunicate request_size=4 [01:26:38]MH_SAM_APDU [01:26:38]CAPDU: 80 13 01 00 [01:26:38]Write to MH i2c: E2 08 00 88 13 80 13 01 00 00 00 00 00 18 [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 0E 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 0E 00 88 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 95 [01:26:38]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [01:26:38]wFMCommunicate OK [01:26:38]SAM_PROTO_GetShiftState done [01:26:38]FM_GetShiftState done [01:26:38]KKMCreateXReportDocument [01:26:38]Load OK [01:26:38]Malloc new data [01:26:38]MH_GetDate [01:26:38]Write to MH i2c: F0 00 00 89 13 8B [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: F0 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: F0 09 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: F0 09 00 89 13 00 55 28 76 66 BC EC 60 65 5A [01:26:38]Malloc new data [01:26:38]Malloc new data [01:26:38]wFMCommunicate request_size=4 [01:26:38]MH_SAM_APDU [01:26:38]CAPDU: 80 11 00 00 [01:26:38]Write to MH i2c: E2 08 00 8A 13 80 11 00 00 00 00 00 00 17 [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 17 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 17 00 8A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 69 [01:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:26:38]wFMCommunicate OK [01:26:38]SAM_PROTO_GetFieldsCounters [01:26:38]wFMCommunicate request_size=4 [01:26:38]MH_SAM_APDU [01:26:38]CAPDU: 80 13 00 00 [01:26:38]Write to MH i2c: E2 08 00 8B 13 80 13 00 00 00 00 00 00 1A [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 62 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 62 00 8B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [01:26:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:26:38]wFMCommunicate OK [01:26:38]SAM_PROTO_GetFieldsCounters done [01:26:38]Malloc new data [01:26:38]Malloc new data [01:26:38]Malloc new data [01:26:38]KKMCreateXReportDocument OK [01:26:38]KKMSetXReportData OK [01:26:38]KKMPrepareXReportFMData [01:26:38]SAM_PROTO_GetShiftData [01:26:38]wFMCommunicate request_size=4 [01:26:38]MH_SAM_APDU [01:26:38]CAPDU: 80 13 02 00 [01:26:38]Write to MH i2c: E2 08 00 8C 13 80 13 02 00 00 00 00 00 1D [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:26:39]Read from MH i2c: E2 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 FD 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 FD 00 8C 13 00 B1 04 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 58 [01:26:39]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:39]wFMCommunicate OK [01:26:39]wFMCommunicate request_size=4 [01:26:39]MH_SAM_APDU [01:26:39]CAPDU: 80 17 00 00 [01:26:39]Write to MH i2c: E2 08 00 8D 13 80 17 00 00 00 00 00 00 20 [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:39]Read from MH i2c: E2 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 FD 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 FD 00 8D 13 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 39 [01:26:39]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:39]wFMCommunicate OK [01:26:39]wFMCommunicate request_size=4 [01:26:39]MH_SAM_APDU [01:26:39]CAPDU: 80 17 00 00 [01:26:39]Write to MH i2c: E2 08 00 8E 13 80 17 00 00 00 00 00 00 21 [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:39]Read from MH i2c: E2 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 FD 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 FD 00 8E 13 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [01:26:40]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:40]wFMCommunicate OK [01:26:40]wFMCommunicate request_size=4 [01:26:40]MH_SAM_APDU [01:26:40]CAPDU: 80 17 00 00 [01:26:40]Write to MH i2c: E2 08 00 8F 13 80 17 00 00 00 00 00 00 22 [01:26:40]Write i2c OK [01:26:40]MH_I2C_Read... [01:26:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:40]Read from MH i2c: E2 [01:26:40]MH_I2C_Read... [01:26:40]Read from MH i2c: E2 FD 00 [01:26:40]MH_I2C_Read... [01:26:40]Read from MH i2c: E2 FD 00 8F 13 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 90 00 9A [01:26:40]RAPDU: 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 90 00 [01:26:40]wFMCommunicate OK [01:26:40]wFMCommunicate request_size=4 [01:26:40]MH_SAM_APDU [01:26:40]CAPDU: 80 17 00 00 [01:26:40]Write to MH i2c: E2 08 00 90 13 80 17 00 00 00 00 00 00 23 [01:26:40]Write i2c OK [01:26:40]MH_I2C_Read... [01:26:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:26:40]Read from MH i2c: E2 [01:26:40]MH_I2C_Read... [01:26:40]Read from MH i2c: E2 CE 00 [01:26:40]MH_I2C_Read... [01:26:40]Read from MH i2c: E2 CE 00 90 13 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:26:40]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:26:41]wFMCommunicate OK [01:26:41]SAM_PROTO_GetShiftData done [01:26:41]1194 (1197) - 褋褔械褌褔懈泻懈 懈褌芯谐芯胁 褋屑械薪褘 [01:26:41] 1134 (4) - 300 - 泻芯谢懈褔械褋褌胁芯 褔械泻芯胁 褋芯 胁褋械屑懈 锌褉懈蟹薪邪泻邪屑懈 褉邪褋褔械褌芯胁 [01:26:41] 1129 (158) - 褋褔械褌褔懈泻懈 芯锌械褉邪褑懈泄 芦锌褉懈褏芯写禄 [01:26:41] 1135 (4) - 300 - 泻芯谢懈褔械褋褌胁芯 褔械泻芯胁 锌芯 锌褉懈蟹薪邪泻褍 褉邪褋褔械褌芯胁 [01:26:41] 1201 (4) - 227650.73 - 芯斜褖邪褟 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 [01:26:41] 1136 (4) - 208735.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 薪邪谢懈褔薪褘屑懈 [01:26:41] 1138 (3) - 18915.73 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 斜械蟹薪邪谢懈褔薪褘屑懈 [01:26:41] 1024 (123) - 褋褍屑屑褘 薪邪谢芯谐芯胁 [01:26:41] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:26:41] 1010 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:26:41] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:26:41] 1006 (12) - 褋褍屑屑褘 袧袛小 [01:26:41] 1010 (1) - 12% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:26:41] 1011 (3) - 24187.17 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (12) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 1% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (3) - 2015.27 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 2% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 3% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 5% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 0,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 1,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1130 (141) - 褋褔械褌褔懈泻懈 芯锌械褉邪褑懈泄 芦胁芯蟹胁褉邪褌 锌褉懈褏芯写邪禄 [01:26:41] 1135 (4) - 0 - 泻芯谢懈褔械褋褌胁芯 褔械泻芯胁 锌芯 锌褉懈蟹薪邪泻褍 褉邪褋褔械褌芯胁 [01:26:41] 1201 (0) - 0.00 - 芯斜褖邪褟 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 [01:26:41] 1136 (0) - 0.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 薪邪谢懈褔薪褘屑懈 [01:26:41] 1138 (0) - 0.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 斜械蟹薪邪谢懈褔薪褘屑懈 [01:26:41] 1024 (117) - 褋褍屑屑褘 薪邪谢芯谐芯胁 [01:26:41] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:26:41] 1010 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:26:41] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:26:41] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:26:41] 1010 (1) - 12% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:26:41] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 1% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 2% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 3% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 5% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 0,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 1,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1131 (141) - 褋褔械褌褔懈泻懈 芯锌械褉邪褑懈泄 芦褉邪褋褏芯写禄 [01:26:41] 1135 (4) - 0 - 泻芯谢懈褔械褋褌胁芯 褔械泻芯胁 锌芯 锌褉懈蟹薪邪泻褍 褉邪褋褔械褌芯胁 [01:26:41] 1201 (0) - 0.00 - 芯斜褖邪褟 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 [01:26:41] 1136 (0) - 0.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 薪邪谢懈褔薪褘屑懈 [01:26:41] 1138 (0) - 0.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 斜械蟹薪邪谢懈褔薪褘屑懈 [01:26:41] 1024 (117) - 褋褍屑屑褘 薪邪谢芯谐芯胁 [01:26:41] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:26:41] 1010 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:26:41] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:26:41] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:26:41] 1010 (1) - 12% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:26:41] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 1% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 2% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 3% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 5% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 0,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 1,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1132 (141) - 褋褔械褌褔懈泻懈 芯锌械褉邪褑懈泄 芦胁芯蟹胁褉邪褌 褉邪褋褏芯写邪禄 [01:26:41] 1135 (4) - 0 - 泻芯谢懈褔械褋褌胁芯 褔械泻芯胁 锌芯 锌褉懈蟹薪邪泻褍 褉邪褋褔械褌芯胁 [01:26:41] 1201 (0) - 0.00 - 芯斜褖邪褟 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 [01:26:41] 1136 (0) - 0.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 薪邪谢懈褔薪褘屑懈 [01:26:41] 1138 (0) - 0.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 斜械蟹薪邪谢懈褔薪褘屑懈 [01:26:41] 1024 (117) - 褋褍屑屑褘 薪邪谢芯谐芯胁 [01:26:41] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:26:41] 1010 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:26:41] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:26:41] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:26:41] 1010 (1) - 12% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:26:41] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 1% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 2% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 3% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 5% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 0,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:26:41] 1014 (1) - 1,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:26:41] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:26:41] 1133 (588) - - 褋褔械褌褔懈泻懈 泻芯褉褉械泻褑懈懈 - 薪械 懈褋锌芯谢褜蟹褍褞褌褋褟 [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1194 (04AA) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1134 (046E) [01:26:41]Malloc new data [01:26:41]Processing tag 1129 (0469) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1135 (046F) [01:26:41]Malloc new data [01:26:41]Processing tag 1201 (04B1) [01:26:41]Malloc new data [01:26:41]Processing tag 1136 (0470) [01:26:41]Malloc new data [01:26:41]Processing tag 1138 (0472) [01:26:41]Malloc new data [01:26:41]Processing tag 1024 (0400) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1006 (03EE) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1010 (03F2) [01:26:41]Malloc new data [01:26:41]Processing tag 1011 (03F3) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1006 (03EE) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1010 (03F2) [01:26:41]Malloc new data [01:26:41]Processing tag 1011 (03F3) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]OFD Sender: No OFD packet to send [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]SetTLVBufToDocument err=0 [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1130 (046A) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1135 (046F) [01:26:41]Malloc new data [01:26:41]Processing tag 1201 (04B1) [01:26:41]Malloc new data [01:26:41]Processing tag 1136 (0470) [01:26:41]Malloc new data [01:26:41]Processing tag 1138 (0472) [01:26:41]Malloc new data [01:26:41]Processing tag 1024 (0400) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1006 (03EE) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1010 (03F2) [01:26:41]Malloc new data [01:26:41]Processing tag 1011 (03F3) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1006 (03EE) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1010 (03F2) [01:26:41]Malloc new data [01:26:41]Processing tag 1011 (03F3) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]SetTLVBufToDocument err=0 [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1131 (046B) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1135 (046F) [01:26:41]Malloc new data [01:26:41]Processing tag 1201 (04B1) [01:26:41]Malloc new data [01:26:41]Processing tag 1136 (0470) [01:26:41]Malloc new data [01:26:41]Processing tag 1138 (0472) [01:26:41]Malloc new data [01:26:41]Processing tag 1024 (0400) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1006 (03EE) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1010 (03F2) [01:26:41]Malloc new data [01:26:41]Processing tag 1011 (03F3) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1006 (03EE) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1010 (03F2) [01:26:41]Malloc new data [01:26:41]Processing tag 1011 (03F3) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1007 (03EF) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1014 (03F6) [01:26:41]Malloc new data [01:26:41]Processing tag 1015 (03F7) [01:26:41]Malloc new data [01:26:41]SetTLVBufToDocument err=0 [01:26:41]SetTLVBufToDocument err=0 [01:26:41]SetTLVBufToDocument err=0 [01:26:41]Processing tag 1132 (046C) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1135 (046F) [01:26:41]Malloc new data [01:26:41]Processing tag 1201 (04B1) [01:26:41]Malloc new data [01:26:41]Processing tag 1136 (0470) [01:26:41]Malloc new data [01:26:41]Processing tag 1138 (0472) [01:26:41]Malloc new data [01:26:41]Processing tag 1024 (0400) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1006 (03EE) [01:26:41]Load OK [01:26:41]SetTLVBufToDocument [01:26:41]Processing tag 1010 (03F2) [01:26:41]Malloc new data [01:26:41]Processing tag 1011 (03F3) [01:26:41]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1006 (03EE) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1010 (03F2) [01:26:42]Malloc new data [01:26:42]Processing tag 1011 (03F3) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]SetTLVBufToDocument err=0 [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1133 (046D) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Malloc new data [01:26:42]SAM_PROTO_GetFMData [01:26:42]wFMCommunicate request_size=4 [01:26:42]MH_SAM_APDU [01:26:42]CAPDU: 80 13 03 00 [01:26:42]Write to MH i2c: E2 08 00 91 13 80 13 03 00 00 00 00 00 23 [01:26:42]Write i2c OK [01:26:42]MH_I2C_Read... [01:26:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:26:42]Read from MH i2c: E2 [01:26:42]MH_I2C_Read... [01:26:42]Read from MH i2c: E2 FD 00 [01:26:42]MH_I2C_Read... [01:26:42]Read from MH i2c: E2 FD 00 91 13 00 BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 B1 [01:26:42]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:26:42]wFMCommunicate OK [01:26:42]wFMCommunicate request_size=4 [01:26:42]MH_SAM_APDU [01:26:42]CAPDU: 80 17 00 00 [01:26:42]Write to MH i2c: E2 08 00 92 13 80 17 00 00 00 00 00 00 25 [01:26:42]Write i2c OK [01:26:42]MH_I2C_Read... [01:26:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:43]Read from MH i2c: E2 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 FD 00 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 FD 00 92 13 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [01:26:43]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:43]wFMCommunicate OK [01:26:43]wFMCommunicate request_size=4 [01:26:43]MH_SAM_APDU [01:26:43]CAPDU: 80 17 00 00 [01:26:43]Write to MH i2c: E2 08 00 93 13 80 17 00 00 00 00 00 00 26 [01:26:43]Write i2c OK [01:26:43]MH_I2C_Read... [01:26:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:43]Read from MH i2c: E2 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 FD 00 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 FD 00 93 13 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 58 [01:26:43]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:43]wFMCommunicate OK [01:26:43]wFMCommunicate request_size=4 [01:26:43]MH_SAM_APDU [01:26:43]CAPDU: 80 17 00 00 [01:26:43]Write to MH i2c: E2 08 00 94 13 80 17 00 00 00 00 00 00 27 [01:26:43]Write i2c OK [01:26:43]MH_I2C_Read... [01:26:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:44]Read from MH i2c: E2 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 FD 00 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 FD 00 94 13 00 F7 03 00 00 EF 03 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 90 00 9E [01:26:44]RAPDU: F7 03 00 00 EF 03 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 90 00 [01:26:44]wFMCommunicate OK [01:26:44]wFMCommunicate request_size=4 [01:26:44]MH_SAM_APDU [01:26:44]CAPDU: 80 17 00 00 [01:26:44]Write to MH i2c: E2 08 00 95 13 80 17 00 00 00 00 00 00 28 [01:26:44]Write i2c OK [01:26:44]MH_I2C_Read... [01:26:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:26:44]Read from MH i2c: E2 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 DA 00 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 DA 00 95 13 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:26:44]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:26:44]wFMCommunicate OK [01:26:44]SAM_PROTO_GetFMData done [01:26:44]FM_GetFMData:85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 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 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:26:45]oper:6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [01:26:45]total:A7 06 A9 F6 01 [01:26:45]Malloc new data [01:26:45]oper:6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 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 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [01:26:45]total:84 4E [01:26:45]Malloc new data [01:26:45]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 [01:26:45]total: [01:26:45]Malloc new data [01:26:45]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 [01:26:45]total: [01:26:45]Malloc new data [01:26:45]KKMPrepareXReportFMData err=0 [01:26:45]啸 芯褌褔械褌 袠袧袧: 02508201610067 袣邪褋褋懈褉: 袞邪薪褘谐褍谢芯胁 袣. 22.06.2024 01:26 小屑械薪邪: 266 袪袧袦: 0000000000092771 袟袧袦: 0300000198 小袧袨: 袨斜褖懈泄 褉械卸懈屑 袙褋械谐芯 褔械泻芯胁: 300 袠孝袨袚袠 袩袪袠啸袨袛 效械泻芯胁: 300 袨斜褖懈泄 懈褌芯谐: 227650.73 袠褌芯谐芯 薪邪谢懈褔薪褘屑懈: 208735.00 袠褌芯谐芯 斜械蟹薪邪谢.: 18915.73 袧袛小 0% : 0.00 袧袛小 12% : 24187.17 袧小袩 0% : 0.00 袧小袩 1,50% : 0.00 袧小袩 0,50% : 0.00 袧小袩 5% : 0.00 袧小袩 3% : 0.00 袧小袩 2% : 0.00 袧小袩 1% : 2015.27 袠孝袨袚袠 袙袨袟袙袪袗孝 袩袪袠啸袨袛袗 效械泻芯胁: 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 袧邪谢. 胁 泻邪褋褋械: 208735.00 袧小 袩褉懈褏芯写: 84332397.19 袧小 袙芯蟹胁褉.袩褉懈褏芯写邪: 201.00 袧小 袪邪褋褏芯写: 0.00 袧小 袙芯蟹胁褉.袪邪褋褏芯写邪: 0.00 肖袦: 0000000000875083 [01:26:45]StoreToDocumentArchive [01:26:45]MH_GetDate [01:26:45]Write to MH i2c: F0 00 00 96 13 98 [01:26:45]Write i2c OK [01:26:45]MH_I2C_Read... [01:26:45]Read from MH i2c: F0 [01:26:45]MH_I2C_Read... [01:26:45]Read from MH i2c: F0 09 00 [01:26:45]MH_I2C_Read... [01:26:45]Read from MH i2c: F0 09 00 96 13 00 5D 28 76 66 BC EC 60 65 6F [01:26:45]shift 266 fd 1719019613 [01:26:45]Create dir for shift 0266 [01:26:45]save to /storage/0266/doc_1719019613 [01:26:45]save last doc name /storage/0266/doc_1719019613 to /storage/kkm_last_doc_name [01:26:45]save OK [01:26:45]Clear old archive folders... [01:26:45]NVStorageSaveData kkm_last_timestamp [01:26:45]File name is /storage/kkm_last_timestamp [01:26:45]Write 4 bytes [01:26:45]NVStorageSaveData done [01:26:45]ExternCall_PrintAddStr [01:26:45]wPrintStart [01:26:45]Write to MH i2c: 01 00 00 97 13 AA [01:26:45]Write i2c OK [01:26:45]MH_I2C_Read... [01:26:45]Read from MH i2c: 01 [01:26:45]MH_I2C_Read... [01:26:45]Read from MH i2c: 01 07 00 [01:26:45]MH_I2C_Read... [01:26:45]Read from MH i2c: 01 07 00 97 13 00 00 00 00 00 FF 0F BF [01:26:45]RasterBufferAndPrint [01:26:45]line 啸 芯褌褔械褌 [01:26:45]line 袠袧袧: 02508201610067 [01:26:45]line 袣邪褋褋懈褉: 袞邪薪褘谐褍谢芯胁 袣. [01:26:45]line 22.06.2024 01:26 [01:26:45]line 小屑械薪邪: 266 [01:26:45]line 袪袧袦: 0000000000092771 [01:26:45]line 袟袧袦: 0300000198 [01:26:45]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [01:26:45]line 袙褋械谐芯 褔械泻芯胁: 300 [01:26:45]line 袠孝袨袚袠 袩袪袠啸袨袛 [01:26:45]line 效械泻芯胁: 300 [01:26:45]line 袨斜褖懈泄 懈褌芯谐: 227650.73 [01:26:45]line 袠褌芯谐芯 薪邪谢懈褔薪褘屑懈: 208735.00 [01:26:45]line 袠褌芯谐芯 斜械蟹薪邪谢.: 18915.73 [01:26:45]line 袧袛小 0% : 0.00 [01:26:45]line 袧袛小 12% : 24187.17 [01:26:45]line 袧小袩 0% : 0.00 [01:26:45]line 袧小袩 1,50% : 0.00 [01:26:45]line 袧小袩 0,50% : 0.00 [01:26:45]line 袧小袩 5% : 0.00 [01:26:45]line 袧小袩 3% : 0.00 [01:26:45]line 袧小袩 2% : 0.00 [01:26:45]line 袧小袩 1% : 2015.27 [01:26:45]line 袠孝袨袚袠 袙袨袟袙袪袗孝 袩袪袠啸袨袛袗 [01:26:45]line 效械泻芯胁: 0 [01:26:45]line 袨斜褖懈泄 懈褌芯谐: 0.00 [01:26:45]line 袠褌芯谐芯 薪邪谢懈褔薪褘屑懈: 0.00 [01:26:45]line 袠褌芯谐芯 斜械蟹薪邪谢.: 0.00 [01:26:45]line 袧袛小 0% : 0.00 [01:26:45]line 袧袛小 12% : 0.00 [01:26:45]line 袧小袩 0% : 0.00 [01:26:45]line 袧小袩 1,50% : 0.00 [01:26:45]line 袧小袩 0,50% : 0.00 [01:26:45]line 袧小袩 5% : 0.00 [01:26:45]line 袧小袩 3% : 0.00 [01:26:45]line 袧小袩 2% : 0.00 [01:26:45]line 袧小袩 1% : 0.00 [01:26:45]line 袠孝袨袚袠 袪袗小啸袨袛 [01:26:45]line 效械泻芯胁: 0 [01:26:45]line 袨斜褖懈泄 懈褌芯谐: 0.00 [01:26:45]line 袠褌芯谐芯 薪邪谢懈褔薪褘屑懈: 0.00 [01:26:45]line 袠褌芯谐芯 斜械蟹薪邪谢.: 0.00 [01:26:45]line 袧袛小 0% : 0.00 [01:26:45]line 袧袛小 12% : 0.00 [01:26:45]line 袧小袩 0% : 0.00 [01:26:45]line 袧小袩 1,50% : 0.00 [01:26:45]line 袧小袩 0,50% : 0.00 [01:26:45]line 袧小袩 5% : 0.00 [01:26:45]line 袧小袩 3% : 0.00 [01:26:45]line 袧小袩 2% : 0.00 [01:26:45]line 袧小袩 1% : 0.00 [01:26:45]line 袠孝袨袚袠 袙袨袟袙袪袗孝 袪袗小啸袨袛袗 [01:26:45]line 效械泻芯胁: 0 [01:26:45]line 袨斜褖懈泄 懈褌芯谐: 0.00 [01:26:45]line 袠褌芯谐芯 薪邪谢懈褔薪褘屑懈: 0.00 [01:26:45]line 袠褌芯谐芯 斜械蟹薪邪谢.: 0.00 [01:26:45]line 袧袛小 0% : 0.00 [01:26:45]line 袧袛小 12% : 0.00 [01:26:45]line 袧小袩 0% : 0.00 [01:26:45]line 袧小袩 1,50% : 0.00 [01:26:45]line 袧小袩 0,50% : 0.00 [01:26:45]line 袧小袩 5% : 0.00 [01:26:45]line 袧小袩 3% : 0.00 [01:26:45]line 袧小袩 2% : 0.00 [01:26:45]line 袧小袩 1% : 0.00 [01:26:45]line 小褍屑屑邪 胁薪械褋械薪懈泄: 0.00 [01:26:45]line 小褍屑屑邪 胁褘锌谢邪褌: 0.00 [01:26:45]line 袧邪谢. 胁 泻邪褋褋械: 208735.00 [01:26:45]line 袧小 袩褉懈褏芯写: 84332397.19 [01:26:45]line 袧小 袙芯蟹胁褉.袩褉懈褏芯写邪: 201.00 [01:26:45]line 袧小 袪邪褋褏芯写: 0.00 [01:26:45]line 袧小 袙芯蟹胁褉.袪邪褋褏芯写邪: 0.00 [01:26:45]line 肖袦: 0000000000875083 [01:26:45]written 0, free lines is 4095 [01:26:46]Write to MH i2c: 01 00 00 E2 13 F5 [01:26:46]Write i2c OK [01:26:46]MH_I2C_Read... [01:26:46]Read from MH i2c: 01 [01:26:46]MH_I2C_Read... [01:26:46]Read from MH i2c: 01 07 00 [01:26:46]MH_I2C_Read... [01:26:46]Read from MH i2c: 01 07 00 E2 13 00 00 00 00 00 9E 0A A4 [01:26:46]RasterBufferAndPrint [01:26:46]line [01:26:46]line [01:26:46]line [01:26:46]line [01:26:46]line [01:26:46]written 0, free lines is 2748 [01:26:46]MH_Cut [01:26:46]Write to MH i2c: D1 01 00 E9 13 01 CE [01:26:46]Write i2c OK [01:26:46]MH_I2C_Read... [01:26:46]Read from MH i2c: D1 [01:26:46]MH_I2C_Read... [01:26:46]Read from MH i2c: D1 01 00 [01:26:46]MH_I2C_Read... [01:26:46]Read from MH i2c: D1 01 00 E9 13 00 CD [01:26:46]Write to MH i2c: 01 00 00 EA 13 FD [01:26:46]Write i2c OK [01:26:46]MH_I2C_Read... [01:26:46]OFD Sender: No OFD packet to send [01:26:47]*** Cut start [01:26:47]*** Partial cut [01:26:47]*** CUTSNS_PIN = 1 [01:26:47]*** CUTSNS_PIN = 0 [01:26:47]*** Brake cut motor [01:26:48]Read from MH i2c: 01 [01:26:48]MH_I2C_Read... [01:26:48]*** Stop cut motor [01:26:48]*** Cut end [01:26:48]Read from MH i2c: 01 07 00 [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: 01 07 00 EA 13 00 00 00 00 00 FF 0F 12 [01:26:48]process_action x_report done [01:26:48]requested_data is exist [01:26:48]produce_requested_data [01:26:48]requested_item fd.num is exist - process it [01:26:48]SAM_PROTO_GetFieldsCounters [01:26:48]wFMCommunicate request_size=4 [01:26:48]MH_SAM_APDU [01:26:48]CAPDU: 80 13 00 00 [01:26:48]Write to MH i2c: E2 08 00 EB 13 80 13 00 00 00 00 00 00 7A [01:26:48]Write i2c OK [01:26:48]MH_I2C_Read... [01:26:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:48]Read from MH i2c: E2 [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: E2 62 00 [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: E2 62 00 EB 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [01:26:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:26:48]wFMCommunicate OK [01:26:48]SAM_PROTO_GetFieldsCounters done [01:26:48]requested_item shift.num is exist - process it [01:26:48]requested_item shift.opened is exist - process it [01:26:48]req_shift_opened [01:26:48]FM_GetShiftState [01:26:48]SAM_PROTO_GetShiftState [01:26:48]wFMCommunicate request_size=4 [01:26:48]MH_SAM_APDU [01:26:48]CAPDU: 80 13 01 00 [01:26:48]Write to MH i2c: E2 08 00 EC 13 80 13 01 00 00 00 00 00 7C [01:26:48]Write i2c OK [01:26:48]MH_I2C_Read... [01:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:48]Read from MH i2c: E2 [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: E2 0E 00 [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: E2 0E 00 EC 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 F9 [01:26:48]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [01:26:48]wFMCommunicate OK [01:26:48]SAM_PROTO_GetShiftState done [01:26:48]FM_GetShiftState done [01:26:48]req_shift_opened done [01:26:48]requested_item shift.open_date is exist - process it [01:26:48]req_shift_open_date [01:26:48]req_shift_open_date done [01:26:48]produce_requested_data done [01:26:48]produce_requested_data return {"fd.num":112132,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [01:26:48]process_action_free x_report [01:26:48]json_value_free [01:26:48]json_value_free done [01:26:48]process_json_proto returns [01:26:48]Send response to host [01:26:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":112132,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [01:26:48]free response buf [01:26:48]execute_script done [01:26:48]execute_script returns [01:26:48]free content buf [01:26:48]Sock 9.Close socket [01:26:48]Sock 9.Thread stoped [01:26:51]OFD Sender: No OFD packet to send [01:26:54]accept exits with 7 [01:26:54]New connection [01:26:54]New thread 3066813796 created [01:26:54]Thread 3066957156 joined [01:26:54]Waiting for new connection... [01:26:54] Sock 7.Parse request [01:26:54]Sock 7.Check first char [01:26:54]Sock 7.First char is OK [01:26:54]request: POST /json_proto HTTP/1.0 [01:26:54]Method: POST [01:26:54]URL: /json_proto [01:26:54]Method is POST - this is cgi request [01:26:54]url: /json_proto [01:26:54]query_string will be loaded in cgi processing [01:26:54]execute_cgi json_proto POST (null) [01:26:54]execute_cgi path=json_proto method=POST [01:26:54]POST find Content-Length [01:26:54]Host: 172.17.59.68:8080 [01:26:54]Content-Length: 215 [01:26:54]Content-Type: application/json [01:26:54] [01:26:54]POST finish read [01:26:54]Found Content-Length = 215 [01:26:54]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" ] } } [01:26:54]execute_script... [01:26:54]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" ] } } [01:26:54]POST & json_proto [01:26:54]process_json_proto [01:26:54]json parsed OK: [01:26:54]protocol is kg_v1.0 [01:26:54]action value=get_value [01:26:54]process_action get_value [01:26:54]cmd_get_value [01:26:54]process_action get_value done [01:26:54]requested_data is exist [01:26:54]produce_requested_data [01:26:54]requested_item kkm.sn is exist - process it [01:26:54]requested_item kkm.ver is exist - process it [01:26:54]requested_item fm.sn is exist - process it [01:26:54]wFMCommunicate request_size=4 [01:26:54]MH_SAM_APDU [01:26:54]CAPDU: 80 11 00 00 [01:26:54]Write to MH i2c: E2 08 00 ED 13 80 11 00 00 00 00 00 00 7A [01:26:54]Write i2c OK [01:26:54]MH_I2C_Read... [01:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:54]Read from MH i2c: E2 [01:26:54]MH_I2C_Read... [01:26:54]Read from MH i2c: E2 17 00 [01:26:54]MH_I2C_Read... [01:26:54]Read from MH i2c: E2 17 00 ED 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CC [01:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:26:54]wFMCommunicate OK [01:26:54]requested_item fd.num is exist - process it [01:26:54]SAM_PROTO_GetFieldsCounters [01:26:54]wFMCommunicate request_size=4 [01:26:54]MH_SAM_APDU [01:26:54]CAPDU: 80 13 00 00 [01:26:54]Write to MH i2c: E2 08 00 EE 13 80 13 00 00 00 00 00 00 7D [01:26:54]Write i2c OK [01:26:54]MH_I2C_Read... [01:26:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:54]Read from MH i2c: E2 [01:26:54]MH_I2C_Read... [01:26:54]Read from MH i2c: E2 62 00 [01:26:54]MH_I2C_Read... [01:26:54]Read from MH i2c: E2 62 00 EE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [01:26:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:26:54]wFMCommunicate OK [01:26:54]SAM_PROTO_GetFieldsCounters done [01:26:54]requested_item shift.num is exist - process it [01:26:54]requested_item shift.opened is exist - process it [01:26:54]req_shift_opened [01:26:54]FM_GetShiftState [01:26:54]SAM_PROTO_GetShiftState [01:26:54]wFMCommunicate request_size=4 [01:26:54]MH_SAM_APDU [01:26:54]CAPDU: 80 13 01 00 [01:26:54]Write to MH i2c: E2 08 00 EF 13 80 13 01 00 00 00 00 00 7F [01:26:54]Write i2c OK [01:26:54]MH_I2C_Read... [01:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:54]Read from MH i2c: E2 [01:26:54]MH_I2C_Read... [01:26:54]Read from MH i2c: E2 0E 00 [01:26:54]MH_I2C_Read... [01:26:54]Read from MH i2c: E2 0E 00 EF 13 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 FC [01:26:54]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [01:26:54]wFMCommunicate OK [01:26:54]SAM_PROTO_GetShiftState done [01:26:54]FM_GetShiftState done [01:26:54]req_shift_opened done [01:26:54]requested_item shift.open_date is exist - process it [01:26:54]req_shift_open_date [01:26:54]req_shift_open_date done [01:26:54]produce_requested_data done [01:26:54]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112132,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695} [01:26:54]process_action_free get_value [01:26:54]json_value_free [01:26:54]json_value_free done [01:26:54]process_json_proto returns [01:26:54]Send response to host [01:26:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112132,"shift.num":390,"shift.opened":1,"shift.open_date":1718933695}}} [01:26:54]free response buf [01:26:54]execute_script done [01:26:54]execute_script returns [01:26:54]free content buf [01:26:54]Sock 7.Close socket [01:26:54]Sock 7.Thread stoped [01:26:54]accept exits with 9 [01:26:54]New connection [01:26:54]New thread 3066957156 created [01:26:54]Thread 3066813796 joined [01:26:54]Waiting for new connection... [01:26:54] Sock 9.Parse request [01:26:54]Sock 9.Check first char [01:26:54]Sock 9.First char is OK [01:26:54]request: POST /json_proto HTTP/1.0 [01:26:54]Method: POST [01:26:54]URL: /json_proto [01:26:54]Method is POST - this is cgi request [01:26:54]url: /json_proto [01:26:54]query_string will be loaded in cgi processing [01:26:54]execute_cgi json_proto POST (null) [01:26:54]execute_cgi path=json_proto method=POST [01:26:54]POST find Content-Length [01:26:54]Host: 172.17.59.68:8080 [01:26:54]Content-Length: 331 [01:26:54]Content-Type: application/json [01:26:54] [01:26:54]POST finish read [01:26:54]Found Content-Length = 331 [01:26: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" ] } } [01:26:54]execute_script... [01:26: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" ] } } [01:26:54]POST & json_proto [01:26:54]process_json_proto [01:26:54]json parsed OK: [01:26:54]protocol is kg_v1.0 [01:26:54]action value=get_value [01:26:54]process_action get_value [01:26:54]cmd_get_value [01:26:54]process_action get_value done [01:26:54]requested_data is exist [01:26:54]produce_requested_data [01:26:54]requested_item fm.sale.total is exist - process it [01:26:54]SAM_PROTO_GetFMData [01:26:54]wFMCommunicate request_size=4 [01:26:54]MH_SAM_APDU [01:26:54]CAPDU: 80 13 03 00 [01:26:54]Write to MH i2c: E2 08 00 F0 13 80 13 03 00 00 00 00 00 82 [01:26:54]Write i2c OK [01:26:54]MH_I2C_Read... [01:26:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:26:55]Read from MH i2c: E2 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 FD 00 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 FD 00 F0 13 00 BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 10 [01:26:55]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:26:55]wFMCommunicate OK [01:26:55]wFMCommunicate request_size=4 [01:26:55]MH_SAM_APDU [01:26:55]CAPDU: 80 17 00 00 [01:26:55]Write to MH i2c: E2 08 00 F1 13 80 17 00 00 00 00 00 00 84 [01:26:55]Write i2c OK [01:26:55]MH_I2C_Read... [01:26:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:55]Read from MH i2c: E2 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 FD 00 [01:26:55]MH_I2C_Read... [01:26:55]Read from MH i2c: E2 FD 00 F1 13 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D8 [01:26:55]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:55]wFMCommunicate OK [01:26:55]wFMCommunicate request_size=4 [01:26:55]MH_SAM_APDU [01:26:55]CAPDU: 80 17 00 00 [01:26:55]Write to MH i2c: E2 08 00 F2 13 80 17 00 00 00 00 00 00 85 [01:26:55]Write i2c OK [01:26:55]MH_I2C_Read... [01:26:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:56]Read from MH i2c: E2 [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: E2 FD 00 [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: E2 FD 00 F2 13 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B7 [01:26:56]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:56]wFMCommunicate OK [01:26:56]wFMCommunicate request_size=4 [01:26:56]MH_SAM_APDU [01:26:56]CAPDU: 80 17 00 00 [01:26:56]Write to MH i2c: E2 08 00 F3 13 80 17 00 00 00 00 00 00 86 [01:26:56]Write i2c OK [01:26:56]MH_I2C_Read... [01:26:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:56]Read from MH i2c: E2 [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: E2 FD 00 [01:26:56]MH_I2C_Read... [01:26:56]Read from MH i2c: E2 FD 00 F3 13 00 F7 03 00 00 EF 03 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 90 00 FD [01:26:56]RAPDU: F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [01:26:56]00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [01:26:56]wFMCommunicate OK [01:26:56]wFMCommunicate request_size=4 [01:26:56]MH_SAM_APDU [01:26:56]CAPDU: 80 17 00 00 [01:26:56]Write to MH i2c: E2 08 00 F4 13 80 17 00 00 00 00 00 00 87 [01:26:56]Write i2c OK [01:26:56]MH_I2C_Read... [01:26:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:26:57]Read from MH i2c: E2 [01:26:57]MH_I2C_Read... [01:26:57]Read from MH i2c: E2 DA 00 [01:26:57]MH_I2C_Read... [01:26:57]Read from MH i2c: E2 DA 00 F4 13 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 68 [01:26:57]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:26:57]wFMCommunicate OK [01:26:57]SAM_PROTO_GetFMData done [01:26:57]requested_item fm.sale_refund.total is exist - process it [01:26:57]requested_item fm.buy.total is exist - process it [01:26:57]requested_item shift.sale.total is exist - process it [01:26:57]SAM_PROTO_GetShiftData [01:26:57]wFMCommunicate request_size=4 [01:26:57]MH_SAM_APDU [01:26:57]CAPDU: 80 13 02 00 [01:26:57]Write to MH i2c: E2 08 00 F5 13 80 13 02 00 00 00 00 00 86 [01:26:57]Write i2c OK [01:26:57]MH_I2C_Read... [01:26:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:26:57]Read from MH i2c: E2 [01:26:57]MH_I2C_Read... [01:26:57]Read from MH i2c: E2 FD 00 [01:26:57]MH_I2C_Read... [01:26:57]Read from MH i2c: E2 FD 00 F5 13 00 B1 04 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C1 [01:26:58]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:58]wFMCommunicate OK [01:26:58]wFMCommunicate request_size=4 [01:26:58]MH_SAM_APDU [01:26:58]CAPDU: 80 17 00 00 [01:26:58]Write to MH i2c: E2 08 00 F6 13 80 17 00 00 00 00 00 00 89 [01:26:58]Write i2c OK [01:26:58]MH_I2C_Read... [01:26:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:58]Read from MH i2c: E2 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: E2 FD 00 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: E2 FD 00 F6 13 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A2 [01:26:58]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:58]wFMCommunicate OK [01:26:58]wFMCommunicate request_size=4 [01:26:58]MH_SAM_APDU [01:26:58]CAPDU: 80 17 00 00 [01:26:58]Write to MH i2c: E2 08 00 F7 13 80 17 00 00 00 00 00 00 8A [01:26:58]Write i2c OK [01:26:58]MH_I2C_Read... [01:26:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:58]Read from MH i2c: E2 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: E2 FD 00 [01:26:58]MH_I2C_Read... [01:26:58]Read from MH i2c: E2 FD 00 F7 13 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [01:26:59]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:59]wFMCommunicate OK [01:26:59]wFMCommunicate request_size=4 [01:26:59]MH_SAM_APDU [01:26:59]CAPDU: 80 17 00 00 [01:26:59]Write to MH i2c: E2 08 00 F8 13 80 17 00 00 00 00 00 00 8B [01:26:59]Write i2c OK [01:26:59]MH_I2C_Read... [01:26:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:59]Read from MH i2c: E2 [01:26:59]MH_I2C_Read... [01:26:59]Read from MH i2c: E2 FD 00 [01:26:59]MH_I2C_Read... [01:26:59]Read from MH i2c: E2 FD 00 F8 13 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 90 00 03 [01:26:59]RAPDU: 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 90 00 [01:26:59]wFMCommunicate OK [01:26:59]wFMCommunicate request_size=4 [01:26:59]MH_SAM_APDU [01:26:59]CAPDU: 80 17 00 00 [01:26:59]Write to MH i2c: E2 08 00 F9 13 80 17 00 00 00 00 00 00 8C [01:26:59]Write i2c OK [01:26:59]MH_I2C_Read... [01:27:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:27:00]Read from MH i2c: E2 [01:27:00]MH_I2C_Read... [01:27:00]Read from MH i2c: E2 CE 00 [01:27:00]MH_I2C_Read... [01:27:00]Read from MH i2c: E2 CE 00 F9 13 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 71 [01:27:00]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:27:00]wFMCommunicate OK [01:27:00]SAM_PROTO_GetShiftData done [01:27:00]requested_item shift.sale.total_cash is exist - process it [01:27:00]requested_item shift.sale_refund.total is exist - process it [01:27:00]requested_item shift.sale_refund.total_cash is exist - process it [01:27:00]requested_item shift.buy.total is exist - process it [01:27:00]requested_item shift.buy.total_cash is exist - process it [01:27:00]produce_requested_data done [01:27:00]produce_requested_data return {"fm.sale.total":84332397.19,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":227650.73,"shift.sale.total_cash":208735.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} [01:27:00]process_action_free get_value [01:27:00]json_value_free [01:27:00]json_value_free done [01:27:00]process_json_proto returns [01:27:00]Send response to host [01:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84332397.19,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":227650.73,"shift.sale.total_cash":208735.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}}} [01:27:00]free response buf [01:27:00]execute_script done [01:27:00]execute_script returns [01:27:00]free content buf [01:27:00]Sock 9.Close socket [01:27:00]Sock 9.Thread stoped [01:27:00]accept exits with 7 [01:27:00]New connection [01:27:00]New thread 3066813796 created [01:27:00]Thread 3066957156 joined [01:27:00]Waiting for new connection... [01:27:00] Sock 7.Parse request [01:27:00]Sock 7.Check first char [01:27:00]Sock 7.First char is OK [01:27:00]request: POST /json_proto HTTP/1.0 [01:27:00]Method: POST [01:27:00]URL: /json_proto [01:27:00]Method is POST - this is cgi request [01:27:00]url: /json_proto [01:27:00]query_string will be loaded in cgi processing [01:27:00]execute_cgi json_proto POST (null) [01:27:00]execute_cgi path=json_proto method=POST [01:27:00]POST find Content-Length [01:27:00]Host: 172.17.59.68:8080 [01:27:00]Content-Length: 331 [01:27:00]Content-Type: application/json [01:27:00] [01:27:00]POST finish read [01:27:00]Found Content-Length = 331 [01:27: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" ] } } [01:27:00]execute_script... [01:27:00]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" ] } } [01:27:00]POST & json_proto [01:27:00]process_json_proto [01:27:00]json parsed OK: [01:27:00]protocol is kg_v1.0 [01:27:00]action value=get_value [01:27:00]process_action get_value [01:27:00]cmd_get_value [01:27:00]process_action get_value done [01:27:00]requested_data is exist [01:27:00]produce_requested_data [01:27:00]requested_item fm.sale.total is exist - process it [01:27:00]SAM_PROTO_GetFMData [01:27:00]wFMCommunicate request_size=4 [01:27:00]MH_SAM_APDU [01:27:00]CAPDU: 80 13 03 00 [01:27:00]Write to MH i2c: E2 08 00 FA 13 80 13 03 00 00 00 00 00 8C [01:27:00]Write i2c OK [01:27:00]MH_I2C_Read... [01:27:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:27:00]Read from MH i2c: E2 [01:27:00]MH_I2C_Read... [01:27:00]Read from MH i2c: E2 FD 00 [01:27:00]MH_I2C_Read... [01:27:00]Read from MH i2c: E2 FD 00 FA 13 00 BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 1A [01:27:01]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:27:01]wFMCommunicate OK [01:27:01]wFMCommunicate request_size=4 [01:27:01]MH_SAM_APDU [01:27:01]CAPDU: 80 17 00 00 [01:27:01]Write to MH i2c: E2 08 00 FB 13 80 17 00 00 00 00 00 00 8E [01:27:01]Write i2c OK [01:27:01]MH_I2C_Read... [01:27:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:01]Read from MH i2c: E2 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 FD 00 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 FD 00 FB 13 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E2 [01:27:01]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:01]wFMCommunicate OK [01:27:01]wFMCommunicate request_size=4 [01:27:01]MH_SAM_APDU [01:27:01]CAPDU: 80 17 00 00 [01:27:01]Write to MH i2c: E2 08 00 FC 13 80 17 00 00 00 00 00 00 8F [01:27:01]Write i2c OK [01:27:01]MH_I2C_Read... [01:27:01]OFD Sender: No OFD packet to send [01:27:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:02]Read from MH i2c: E2 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 FD 00 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 FD 00 FC 13 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C1 [01:27:02]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:02]wFMCommunicate OK [01:27:02]wFMCommunicate request_size=4 [01:27:02]MH_SAM_APDU [01:27:02]CAPDU: 80 17 00 00 [01:27:02]Write to MH i2c: E2 08 00 FD 13 80 17 00 00 00 00 00 00 90 [01:27:02]Write i2c OK [01:27:02]MH_I2C_Read... [01:27:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:02]Read from MH i2c: E2 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 FD 00 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 FD 00 FD 13 00 F7 03 00 00 EF 03 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 90 00 07 [01:27:02]RAPDU: F7 03 00 00 EF 03 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 90 00 [01:27:03]wFMCommunicate OK [01:27:03]wFMCommunicate request_size=4 [01:27:03]MH_SAM_APDU [01:27:03]CAPDU: 80 17 00 00 [01:27:03]Write to MH i2c: E2 08 00 FE 13 80 17 00 00 00 00 00 00 91 [01:27:03]Write i2c OK [01:27:03]MH_I2C_Read... [01:27:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:27:03]Read from MH i2c: E2 [01:27:03]MH_I2C_Read... [01:27:03]Read from MH i2c: E2 DA 00 [01:27:03]MH_I2C_Read... [01:27:03]Read from MH i2c: E2 DA 00 FE 13 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 72 [01:27:03]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:27:03]wFMCommunicate OK [01:27:03]SAM_PROTO_GetFMData done [01:27:03]requested_item fm.sale_refund.total is exist - process it [01:27:03]requested_item fm.buy.total is exist - process it [01:27:03]requested_item shift.sale.total is exist - process it [01:27:03]SAM_PROTO_GetShiftData [01:27:03]wFMCommunicate request_size=4 [01:27:03]MH_SAM_APDU [01:27:03]CAPDU: 80 13 02 00 [01:27:03]Write to MH i2c: E2 08 00 FF 13 80 13 02 00 00 00 00 00 90 [01:27:03]Write i2c OK [01:27:03]MH_I2C_Read... [01:27:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:27:04]Read from MH i2c: E2 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: E2 FD 00 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: E2 FD 00 FF 13 00 B1 04 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CB [01:27:04]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:04]wFMCommunicate OK [01:27:04]wFMCommunicate request_size=4 [01:27:04]MH_SAM_APDU [01:27:04]CAPDU: 80 17 00 00 [01:27:04]Write to MH i2c: E2 08 00 00 14 80 17 00 00 00 00 00 00 94 [01:27:04]Write i2c OK [01:27:04]MH_I2C_Read... [01:27:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:04]Read from MH i2c: E2 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: E2 FD 00 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: E2 FD 00 00 14 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [01:27:04]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:05]wFMCommunicate OK [01:27:05]wFMCommunicate request_size=4 [01:27:05]MH_SAM_APDU [01:27:05]CAPDU: 80 17 00 00 [01:27:05]Write to MH i2c: E2 08 00 01 14 80 17 00 00 00 00 00 00 95 [01:27:05]Write i2c OK [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: E2 [01:27:05]MH_I2C_Read... [01:27:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:05]Read from MH i2c: E2 FD 00 [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: E2 FD 00 01 14 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [01:27:05]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:05]wFMCommunicate OK [01:27:05]wFMCommunicate request_size=4 [01:27:05]MH_SAM_APDU [01:27:05]CAPDU: 80 17 00 00 [01:27:05]Write to MH i2c: E2 08 00 02 14 80 17 00 00 00 00 00 00 96 [01:27:05]Write i2c OK [01:27:05]MH_I2C_Read... [01:27:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:06]Read from MH i2c: E2 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: E2 FD 00 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: E2 FD 00 02 14 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 90 00 0E [01:27:06]RAPDU: 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 90 00 [01:27:06]wFMCommunicate OK [01:27:06]wFMCommunicate request_size=4 [01:27:06]MH_SAM_APDU [01:27:06]CAPDU: 80 17 00 00 [01:27:06]Write to MH i2c: E2 08 00 03 14 80 17 00 00 00 00 00 00 97 [01:27:06]Write i2c OK [01:27:06]MH_I2C_Read... [01:27:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:27:06]Read from MH i2c: E2 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: E2 CE 00 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: E2 CE 00 03 14 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7C [01:27:06]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:27:06]wFMCommunicate OK [01:27:06]SAM_PROTO_GetShiftData done [01:27:06]requested_item shift.sale.total_cash is exist - process it [01:27:06]requested_item shift.sale_refund.total is exist - process it [01:27:06]requested_item shift.sale_refund.total_cash is exist - process it [01:27:06]requested_item shift.buy.total is exist - process it [01:27:06]requested_item shift.buy.total_cash is exist - process it [01:27:06]produce_requested_data done [01:27:06]produce_requested_data return {"fm.sale.total":84332397.19,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":227650.73,"shift.sale.total_cash":208735.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} [01:27:06]process_action_free get_value [01:27:06]json_value_free [01:27:06]json_value_free done [01:27:06]process_json_proto returns [01:27:06]Send response to host [01:27:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84332397.19,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":227650.73,"shift.sale.total_cash":208735.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}}} [01:27:06]free response buf [01:27:06]execute_script done [01:27:06]execute_script returns [01:27:06]free content buf [01:27:06]Sock 7.Close socket [01:27:06]Sock 7.Thread stoped [01:27:06]accept exits with 9 [01:27:06]New connection [01:27:06]New thread 3066957156 created [01:27:06]Thread 3066813796 joined [01:27:06]Waiting for new connection... [01:27:06] Sock 9.Parse request [01:27:06]Sock 9.Check first char [01:27:06]Sock 9.First char is OK [01:27:06]request: POST /json_proto HTTP/1.0 [01:27:06]Method: POST [01:27:06]URL: /json_proto [01:27:06]Method is POST - this is cgi request [01:27:06]url: /json_proto [01:27:06]query_string will be loaded in cgi processing [01:27:06]execute_cgi json_proto POST (null) [01:27:06]execute_cgi path=json_proto method=POST [01:27:06]POST find Content-Length [01:27:06]Host: 172.17.59.68:8080 [01:27:06]Content-Length: 266 [01:27:06]Content-Type: application/json [01:27:06] [01:27:06]POST finish read [01:27:06]Found Content-Length = 266 [01:27:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:06]execute_script... [01:27:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0416\u0430\u043D\u044B\u0433\u0443\u043B\u043E\u0432 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:06]POST & json_proto [01:27:06]process_json_proto [01:27:06]json parsed OK: [01:27:06]protocol is kg_v1.0 [01:27:06]action value=close_shift [01:27:06]process_action close_shift [01:27:06]cmd_close_shift [01:27:06]MH_GetDate [01:27:06]Write to MH i2c: F0 00 00 04 14 07 [01:27:06]OFD Sender: No OFD packet to send [01:27:06]Write i2c OK [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: F0 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: F0 09 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: F0 09 00 04 14 00 72 28 76 66 BC EC 60 65 F3 [01:27:07]GetLastDocTimeStamp 1719019605 [01:27:07]current date 1719019634 [01:27:07]FM_GetShiftState [01:27:07]SAM_PROTO_GetShiftState [01:27:07]wFMCommunicate request_size=4 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 13 01 00 [01:27:07]Write to MH i2c: E2 08 00 05 14 80 13 01 00 00 00 00 00 96 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 0E 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 0E 00 05 14 00 09 00 01 BF D8 74 66 00 00 00 00 90 00 13 [01:27:07]RAPDU: 09 00 01 BF D8 74 66 00 00 00 00 90 00 [01:27:07]wFMCommunicate OK [01:27:07]SAM_PROTO_GetShiftState done [01:27:07]FM_GetShiftState done [01:27:07]KKMCreateCloseShiftDocument [01:27:07]Load OK [01:27:07]Malloc new data [01:27:07]MH_GetDate [01:27:07]Write to MH i2c: F0 00 00 06 14 09 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: F0 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: F0 09 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: F0 09 00 06 14 00 72 28 76 66 BC EC 60 65 F5 [01:27:07]Malloc new data [01:27:07]Malloc new data [01:27:07]Malloc new data [01:27:07]Malloc new data [01:27:07]KKMCreateCloseShiftDocument OK [01:27:07]KKMSetCloseShiftData OK [01:27:07]ProcessDocumentItem done err = 0, tmpTLVsize=73 [01:27:07]tlvbuf is 01288F60 [01:27:07]KKMLoadAndSignCloseShiftData [01:27:07]SAM_PROTO_ProcessDocument [01:27:07]wFMCommunicate request_size=9 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 15 01 00 04 05 00 49 00 [01:27:07]Write to MH i2c: E2 0C 00 07 14 80 15 01 00 04 00 05 00 49 00 00 00 F0 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 07 14 00 90 00 8F [01:27:07]RAPDU: 90 00 [01:27:07]wFMCommunicate OK [01:27:07]wFMCommunicate request_size=23 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [01:27:07]Write to MH i2c: E2 1A 00 08 14 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 91 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 08 14 00 90 00 90 [01:27:07]RAPDU: 90 00 [01:27:07]wFMCommunicate OK [01:27:07]wFMCommunicate request_size=32 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 96 D0 B0 D0 BD D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 20 D0 9A 2E 20 [01:27:07]Write to MH i2c: E2 23 00 09 14 80 15 02 00 1B 00 FD 03 17 00 D0 96 D0 B0 D0 BD D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 20 D0 9A 2E 20 00 00 03 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 09 14 00 90 00 91 [01:27:07]RAPDU: 90 00 [01:27:07]wFMCommunicate OK [01:27:07]wFMCommunicate request_size=13 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 15 02 00 08 F4 03 04 00 72 28 76 66 [01:27:07]Write to MH i2c: E2 10 00 0A 14 80 15 02 00 08 00 F4 03 04 00 72 28 76 66 00 00 1F [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 0A 14 00 90 00 92 [01:27:07]RAPDU: 90 00 [01:27:07]wFMCommunicate OK [01:27:07]wFMCommunicate request_size=25 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 [01:27:07]Write to MH i2c: E2 1C 00 0B 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 00 00 02 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 0B 14 00 90 00 93 [01:27:07]RAPDU: 90 00 [01:27:07]wFMCommunicate OK [01:27:07]wFMCommunicate request_size=4 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 15 03 00 [01:27:07]Write to MH i2c: E2 08 00 0C 14 80 15 03 00 00 00 00 00 A1 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:08]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [01:27:08]Read from MH i2c: E2 [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: E2 FD 00 [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: E2 FD 00 0C 14 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B6 01 00 0E 04 04 00 86 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2E 01 00 00 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0D [01:27:08]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B6 01 00 0E 04 04 00 86 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2E 01 00 00 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:08]wFMCommunicate OK [01:27:08]SAM_PROTO_ProcessDocument answer len = 1268 [01:27:08]SAM_PROTO_ProcessDocument remain to read = 1020 [01:27:08]wFMCommunicate request_size=4 [01:27:08]MH_SAM_APDU [01:27:08]CAPDU: 80 17 00 00 [01:27:08]Write to MH i2c: E2 08 00 0D 14 80 17 00 00 00 00 00 00 A1 [01:27:08]Write i2c OK [01:27:08]MH_I2C_Read... [01:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:09]Read from MH i2c: E2 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 FD 00 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 FD 00 0D 14 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F5 [01:27:09]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:09]wFMCommunicate OK [01:27:09]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:27:09]SAM_PROTO_ProcessDocument remain to read = 770 [01:27:09]wFMCommunicate request_size=4 [01:27:09]MH_SAM_APDU [01:27:09]CAPDU: 80 17 00 00 [01:27:09]Write to MH i2c: E2 08 00 0E 14 80 17 00 00 00 00 00 00 A2 [01:27:09]Write i2c OK [01:27:09]MH_I2C_Read... [01:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:09]Read from MH i2c: E2 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 FD 00 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 FD 00 0E 14 00 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 90 00 04 [01:27:09]RAPDU: 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 90 00 [01:27:10]wFMCommunicate OK [01:27:10]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:27:10]SAM_PROTO_ProcessDocument remain to read = 520 [01:27:10]wFMCommunicate request_size=4 [01:27:10]MH_SAM_APDU [01:27:10]CAPDU: 80 17 00 00 [01:27:10]Write to MH i2c: E2 08 00 0F 14 80 17 00 00 00 00 00 00 A3 [01:27:10]Write i2c OK [01:27:10]MH_I2C_Read... [01:27:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:10]Read from MH i2c: E2 [01:27:10]MH_I2C_Read... [01:27:10]Read from MH i2c: E2 FD 00 [01:27:10]MH_I2C_Read... [01:27:10]Read from MH i2c: E2 FD 00 0F 14 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [01:27:10]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:10]wFMCommunicate OK [01:27:10]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:27:10]SAM_PROTO_ProcessDocument remain to read = 270 [01:27:10]wFMCommunicate request_size=4 [01:27:10]MH_SAM_APDU [01:27:10]CAPDU: 80 17 00 00 [01:27:10]Write to MH i2c: E2 08 00 10 14 80 17 00 00 00 00 00 00 A4 [01:27:10]Write i2c OK [01:27:10]MH_I2C_Read... [01:27:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:11]Read from MH i2c: E2 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 FD 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 FD 00 10 14 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [01:27:11]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:11]wFMCommunicate OK [01:27:11]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:27:11]SAM_PROTO_ProcessDocument remain to read = 20 [01:27:11]wFMCommunicate request_size=4 [01:27:11]MH_SAM_APDU [01:27:11]CAPDU: 80 17 00 00 [01:27:11]Write to MH i2c: E2 08 00 11 14 80 17 00 00 00 00 00 00 A5 [01:27:11]Write i2c OK [01:27:11]MH_I2C_Read... [01:27:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [01:27:11]Read from MH i2c: E2 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 17 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 17 00 11 14 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 D2 8E EA F0 83 9A 90 00 3D [01:27:11]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 D2 8E EA F0 83 9A 90 00 [01:27:11]wFMCommunicate OK [01:27:11]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [01:27:11]SAM_PROTO_ProcessDocument done [01:27:11]1209 (1) - 1.0 - 薪芯屑械褉 胁械褉褋懈懈 肖肖袛 [01:27:11]1041 (16) - 0000000000875083 - 薪芯屑械褉 肖袦 [01:27:11]1040 (4) - 112133 - 薪芯屑械褉 肖袛 [01:27:11]1038 (4) - 390 - 薪芯屑械褉 褋屑械薪褘 [01:27:11]1118 (4) - 300 - 泻芯谢懈褔械褋褌胁芯 泻邪褋褋芯胁褘褏 褔械泻芯胁 蟹邪 褋屑械薪褍 [01:27:11]1111 (4) - 302 - 芯斜褖械械 泻芯谢懈褔械褋褌胁芯 肖袛 蟹邪 褋屑械薪褍 [01:27:11]1194 (1197) - 褋褔械褌褔懈泻懈 懈褌芯谐芯胁 褋屑械薪褘 [01:27:11] 1134 (4) - 300 - 泻芯谢懈褔械褋褌胁芯 褔械泻芯胁 褋芯 胁褋械屑懈 锌褉懈蟹薪邪泻邪屑懈 褉邪褋褔械褌芯胁 [01:27:11] 1129 (158) - 褋褔械褌褔懈泻懈 芯锌械褉邪褑懈泄 芦锌褉懈褏芯写禄 [01:27:11] 1135 (4) - 300 - 泻芯谢懈褔械褋褌胁芯 褔械泻芯胁 锌芯 锌褉懈蟹薪邪泻褍 褉邪褋褔械褌芯胁 [01:27:11] 1201 (4) - 227650.73 - 芯斜褖邪褟 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 [01:27:11] 1136 (4) - 208735.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 薪邪谢懈褔薪褘屑懈 [01:27:11] 1138 (3) - 18915.73 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 斜械蟹薪邪谢懈褔薪褘屑懈 [01:27:11] 1024 (123) - 褋褍屑屑褘 薪邪谢芯谐芯胁 [01:27:11] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:27:11] 1010 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:27:11] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:27:11] 1006 (12) - 褋褍屑屑褘 袧袛小 [01:27:11] 1010 (1) - 12% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:27:11] 1011 (3) - 24187.17 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (12) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 1% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (3) - 2015.27 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 2% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 3% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 5% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 0,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 1,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1130 (141) - 褋褔械褌褔懈泻懈 芯锌械褉邪褑懈泄 芦胁芯蟹胁褉邪褌 锌褉懈褏芯写邪禄 [01:27:11] 1135 (4) - 0 - 泻芯谢懈褔械褋褌胁芯 褔械泻芯胁 锌芯 锌褉懈蟹薪邪泻褍 褉邪褋褔械褌芯胁 [01:27:11] 1201 (0) - 0.00 - 芯斜褖邪褟 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 [01:27:11] 1136 (0) - 0.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 薪邪谢懈褔薪褘屑懈 [01:27:11] 1138 (0) - 0.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 斜械蟹薪邪谢懈褔薪褘屑懈 [01:27:11] 1024 (117) - 褋褍屑屑褘 薪邪谢芯谐芯胁 [01:27:11] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:27:11] 1010 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:27:11] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:27:11] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:27:11] 1010 (1) - 12% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:27:11] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 1% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 2% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 3% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 5% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 0,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 1,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1131 (141) - 褋褔械褌褔懈泻懈 芯锌械褉邪褑懈泄 芦褉邪褋褏芯写禄 [01:27:11] 1135 (4) - 0 - 泻芯谢懈褔械褋褌胁芯 褔械泻芯胁 锌芯 锌褉懈蟹薪邪泻褍 褉邪褋褔械褌芯胁 [01:27:11] 1201 (0) - 0.00 - 芯斜褖邪褟 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 [01:27:11] 1136 (0) - 0.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 薪邪谢懈褔薪褘屑懈 [01:27:11] 1138 (0) - 0.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 斜械蟹薪邪谢懈褔薪褘屑懈 [01:27:11] 1024 (117) - 褋褍屑屑褘 薪邪谢芯谐芯胁 [01:27:11] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:27:11] 1010 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:27:11] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:27:11] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:27:11] 1010 (1) - 12% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:27:11] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:11] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:11] 1014 (1) - 1% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:11] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:12] 1014 (1) - 2% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:12] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:12] 1014 (1) - 3% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:12] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:12] 1014 (1) - 5% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:12] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:12] 1014 (1) - 0,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:12] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:12] 1014 (1) - 1,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:12] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1132 (141) - 褋褔械褌褔懈泻懈 芯锌械褉邪褑懈泄 芦胁芯蟹胁褉邪褌 褉邪褋褏芯写邪禄 [01:27:12] 1135 (4) - 0 - 泻芯谢懈褔械褋褌胁芯 褔械泻芯胁 锌芯 锌褉懈蟹薪邪泻褍 褉邪褋褔械褌芯胁 [01:27:12] 1201 (0) - 0.00 - 芯斜褖邪褟 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 [01:27:12] 1136 (0) - 0.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 薪邪谢懈褔薪褘屑懈 [01:27:12] 1138 (0) - 0.00 - 懈褌芯谐芯胁邪褟 褋褍屑屑邪 胁 褔械泻邪褏 斜械蟹薪邪谢懈褔薪褘屑懈 [01:27:12] 1024 (117) - 褋褍屑屑褘 薪邪谢芯谐芯胁 [01:27:12] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:27:12] 1010 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:27:12] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:27:12] 1006 (9) - 褋褍屑屑褘 袧袛小 [01:27:12] 1010 (1) - 12% - 泻芯写 褋褌邪胁泻懈 袧袛小 [01:27:12] 1011 (0) - 0.00 - 褋褍屑屑邪 袧袛小 锌芯 褋褌邪胁泻械 [01:27:12] OFD Sender: No OFD packet to send [01:27:12] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:12] 1014 (1) - 0% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:12] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:12] 1014 (1) - 1% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:12] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:12] 1014 (1) - 2% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:12] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:12] 1014 (1) - 3% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:12] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:12] 1014 (1) - 5% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:12] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:12] 1014 (1) - 0,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:12] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1007 (9) - 褋褍屑屑褘 袧小袩 [01:27:12] 1014 (1) - 1,50% - 泻芯写 褋褌邪胁泻懈 袧小袩 [01:27:12] 1015 (0) - 0.00 - 褋褍屑屑邪 袧小袩 锌芯 褋褌邪胁泻械 [01:27:12] 1133 (588) - - 褋褔械褌褔懈泻懈 泻芯褉褉械泻褑懈懈 - 薪械 懈褋锌芯谢褜蟹褍褞褌褋褟 [01:27:12]1077 (6) - 231511268819866 - 肖袩袛 [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1209 (04B9) [01:27:12]Malloc new data [01:27:12]Processing tag 1041 (0411) [01:27:12]Processing tag 1040 (0410) [01:27:12]Malloc new data [01:27:12]Processing tag 1038 (040E) [01:27:12]Malloc new data [01:27:12]Processing tag 1118 (045E) [01:27:12]Malloc new data [01:27:12]Processing tag 1111 (0457) [01:27:12]Malloc new data [01:27:12]Processing tag 1194 (04AA) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1134 (046E) [01:27:12]Malloc new data [01:27:12]Processing tag 1129 (0469) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1135 (046F) [01:27:12]Malloc new data [01:27:12]Processing tag 1201 (04B1) [01:27:12]Malloc new data [01:27:12]Processing tag 1136 (0470) [01:27:12]Malloc new data [01:27:12]Processing tag 1138 (0472) [01:27:12]Malloc new data [01:27:12]Processing tag 1024 (0400) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1006 (03EE) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1010 (03F2) [01:27:12]Malloc new data [01:27:12]Processing tag 1011 (03F3) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1006 (03EE) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1010 (03F2) [01:27:12]Malloc new data [01:27:12]Processing tag 1011 (03F3) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]SetTLVBufToDocument err=0 [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1130 (046A) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1135 (046F) [01:27:12]Malloc new data [01:27:12]Processing tag 1201 (04B1) [01:27:12]Malloc new data [01:27:12]Processing tag 1136 (0470) [01:27:12]Malloc new data [01:27:12]Processing tag 1138 (0472) [01:27:12]Malloc new data [01:27:12]Processing tag 1024 (0400) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1006 (03EE) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1010 (03F2) [01:27:12]Malloc new data [01:27:12]Processing tag 1011 (03F3) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1006 (03EE) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1010 (03F2) [01:27:12]Malloc new data [01:27:12]Processing tag 1011 (03F3) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]SetTLVBufToDocument err=0 [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1131 (046B) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1135 (046F) [01:27:12]Malloc new data [01:27:12]Processing tag 1201 (04B1) [01:27:12]Malloc new data [01:27:12]Processing tag 1136 (0470) [01:27:12]Malloc new data [01:27:12]Processing tag 1138 (0472) [01:27:12]Malloc new data [01:27:12]Processing tag 1024 (0400) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1006 (03EE) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1010 (03F2) [01:27:12]Malloc new data [01:27:12]Processing tag 1011 (03F3) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1006 (03EE) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1010 (03F2) [01:27:12]Malloc new data [01:27:12]Processing tag 1011 (03F3) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]SetTLVBufToDocument err=0 [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1132 (046C) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1135 (046F) [01:27:12]Malloc new data [01:27:12]Processing tag 1201 (04B1) [01:27:12]Malloc new data [01:27:12]Processing tag 1136 (0470) [01:27:12]Malloc new data [01:27:12]Processing tag 1138 (0472) [01:27:12]Malloc new data [01:27:12]Processing tag 1024 (0400) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1006 (03EE) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1010 (03F2) [01:27:12]Malloc new data [01:27:12]Processing tag 1011 (03F3) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1006 (03EE) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1010 (03F2) [01:27:12]Malloc new data [01:27:12]Processing tag 1011 (03F3) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1007 (03EF) [01:27:12]Load OK [01:27:12]SetTLVBufToDocument [01:27:12]Processing tag 1014 (03F6) [01:27:12]Malloc new data [01:27:12]Processing tag 1015 (03F7) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]SetTLVBufToDocument err=0 [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1133 (046D) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Processing tag 1077 (0435) [01:27:12]Malloc new data [01:27:12]SetTLVBufToDocument err=0 [01:27:12]Malloc new data [01:27:12]SAM_PROTO_GetFMData [01:27:12]wFMCommunicate request_size=4 [01:27:12]MH_SAM_APDU [01:27:12]CAPDU: 80 13 03 00 [01:27:12]Write to MH i2c: E2 08 00 12 14 80 13 03 00 00 00 00 00 A5 [01:27:12]Write i2c OK [01:27:12]MH_I2C_Read... [01:27:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:27:13]Read from MH i2c: E2 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 FD 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 FD 00 12 14 00 BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 33 [01:27:13]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:27:13]wFMCommunicate OK [01:27:13]wFMCommunicate request_size=4 [01:27:13]MH_SAM_APDU [01:27:13]CAPDU: 80 17 00 00 [01:27:13]Write to MH i2c: E2 08 00 13 14 80 17 00 00 00 00 00 00 A7 [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:13]Read from MH i2c: E2 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 FD 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 FD 00 13 14 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FB [01:27:14]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:14]wFMCommunicate OK [01:27:14]wFMCommunicate request_size=4 [01:27:14]MH_SAM_APDU [01:27:14]CAPDU: 80 17 00 00 [01:27:14]Write to MH i2c: E2 08 00 14 14 80 17 00 00 00 00 00 00 A8 [01:27:14]Write i2c OK [01:27:14]MH_I2C_Read... [01:27:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:14]Read from MH i2c: E2 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 FD 00 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 FD 00 14 14 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [01:27:14]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:15]wFMCommunicate OK [01:27:15]wFMCommunicate request_size=4 [01:27:15]MH_SAM_APDU [01:27:15]CAPDU: 80 17 00 00 [01:27:15]Write to MH i2c: E2 08 00 15 14 80 17 00 00 00 00 00 00 A9 [01:27:15]Write i2c OK [01:27:15]MH_I2C_Read... [01:27:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:15]Read from MH i2c: E2 [01:27:15]MH_I2C_Read... [01:27:15]Read from MH i2c: E2 FD 00 [01:27:15]MH_I2C_Read... [01:27:15]Read from MH i2c: E2 FD 00 15 14 00 F7 03 00 00 EF 03 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 90 00 20 [01:27:15]RAPDU: F7 03 00 00 EF 03 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 90 00 [01:27:16]wFMCommunicate OK [01:27:16]wFMCommunicate request_size=4 [01:27:16]MH_SAM_APDU [01:27:16]CAPDU: 80 17 00 00 [01:27:16]Write to MH i2c: E2 08 00 16 14 80 17 00 00 00 00 00 00 AA [01:27:16]Write i2c OK [01:27:16]MH_I2C_Read... [01:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:27:16]Read from MH i2c: E2 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 DA 00 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 DA 00 16 14 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8B [01:27:16]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:27:16]wFMCommunicate OK [01:27:16]SAM_PROTO_GetFMData done [01:27:16]Malloc new data [01:27:16]Malloc new data [01:27:16]Malloc new data [01:27:16]Malloc new data [01:27:16]KKMLoadAndSignCloseShiftData err=0 [01:27:16]袨褌褔械褌 芯 蟹邪泻褉褘褌懈懈 褋屑械薪褘 肖肖袛: 1.0 袠袧袧: 02508201610067 袣邪褋褋懈褉: 袞邪薪褘谐褍谢芯胁 袣. 22.06.2024 01:27 小屑械薪邪: 390 袪袧袦: 0000000000092771 袟袧袦: 0300000198 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻芯胁 蟹邪 褋屑械薪褍: 300 肖袛 蟹邪 褋屑械薪褍: 302 袙褋械谐芯 褔械泻芯胁: 300 袠孝袨袚袠 袩袪袠啸袨袛 效械泻芯胁: 300 袨斜褖懈泄 懈褌芯谐: 227650.73 袠褌芯谐芯 薪邪谢懈褔薪褘屑懈: 208735.00 袠褌芯谐芯 斜械蟹薪邪谢.: 18915.73 袧袛小 0% : 0.00 袧袛小 12% : 24187.17 袧小袩 0% : 0.00 袧小袩 1,50% : 0.00 袧小袩 0,50% : 0.00 袧小袩 5% : 0.00 袧小袩 3% : 0.00 袧小袩 2% : 0.00 袧小袩 1% : 2015.27 袠孝袨袚袠 袙袨袟袙袪袗孝 袩袪袠啸袨袛袗 效械泻芯胁: 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 袧邪谢. 胁 泻邪褋褋械: 208735.00 袧小 袩褉懈褏芯写: 84332397.19 袧小 袙芯蟹胁褉.袩褉懈褏芯写邪: 201.00 袧小 袪邪褋褏芯写: 0.00 袧小 袙芯蟹胁褉.袪邪褋褏芯写邪: 0.00 肖袛: 112133 肖袦: 0000000000875083 肖袩袛: 231511268819866 [01:27:16]StoreToDocumentArchive [01:27:16]shift 390 fd 112133 [01:27:16]save to /storage/0390/doc_00112133 [01:27:16]save last doc name /storage/0390/doc_00112133 to /storage/kkm_last_doc_name [01:27:16]save OK [01:27:16]Clear old archive folders... [01:27:16]Remove dir /storage/0266 [01:27:16]opendir ok [01:27:16]file . [01:27:16]file .. [01:27:16]file doc_1719019613 [01:27:16]remove file /storage/0266/doc_1719019613 [01:27:16]remove dir /storage/0266 [01:27:16]NVStorageSaveData kkm_registers [01:27:16]File name is /storage/kkm_registers [01:27:16]Write 24 bytes [01:27:16]NVStorageSaveData done [01:27:16]NVStorageSaveData kkm_registers [01:27:16]File name is /storage/kkm_registers [01:27:16]Write 24 bytes [01:27:16]NVStorageSaveData done [01:27:16]ProcessDocumentItem done err = 0, tmpTLVsize=1384 [01:27:16]tlvbuf is 012DEF00 [01:27:16]SAM_PROTO_ClearQueue [01:27:16]wFMCommunicate request_size=4 [01:27:16]MH_SAM_APDU [01:27:16]CAPDU: 80 09 00 00 [01:27:16]Write to MH i2c: E2 08 00 17 14 80 09 00 00 00 00 00 00 9D [01:27:16]Write i2c OK [01:27:16]MH_I2C_Read... [01:27:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:27:16]Read from MH i2c: E2 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 03 00 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 03 00 17 14 00 90 00 9F [01:27:16]RAPDU: 90 00 [01:27:16]wFMCommunicate OK [01:27:16]SAM_PROTO_ClearQueue done [01:27:16]KKMCreateOFDPacket [01:27:16]OFDProtocolAddRootSTLVToBuf [01:27:16]FM_MakeSignedData [01:27:16]FM_MakeSignedData [01:27:16]SAM_PROTO_SignData [01:27:16]wFMCommunicate request_size=4 [01:27:16]MH_SAM_APDU [01:27:16]CAPDU: 80 0D 01 02 [01:27:16]Write to MH i2c: E2 08 00 18 14 80 0D 01 02 00 00 00 00 A5 [01:27:16]Write i2c OK [01:27:16]MH_I2C_Read... [01:27:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:27:16]Read from MH i2c: E2 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 03 00 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 03 00 18 14 00 90 00 A0 [01:27:16]RAPDU: 90 00 [01:27:16]wFMCommunicate OK [01:27:16]wFMCommunicate request_size=255 [01:27:16]MH_SAM_APDU [01:27:16]CAPDU: 80 0D 02 02 FA 05 00 68 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 17 00 D0 96 D0 B0 D0 BD D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 20 D0 9A 2E 20 F4 03 04 00 72 28 76 66 0E 04 04 00 86 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 2C 01 00 00 57 04 04 00 2E 01 00 00 AA 04 D8 04 6E 04 04 00 2C 01 00 00 69 04 A5 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 1C 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 1D E8 24 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 [01:27:17]Write to MH i2c: E2 02 01 19 14 80 0D 02 02 FA 00 05 00 68 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 17 00 D0 OFD Sender: No OFD packet to send [01:27:17]96 D0 B0 D0 BD D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 20 D0 9A 2E 20 F4 03 04 00 72 28 76 66 0E 04 04 00 86 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 2C 01 00 00 57 04 04 00 2E 01 00 00 AA 04 D8 04 6E 04 04 00 2C 01 00 00 69 04 A5 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 1C 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 1D E8 24 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 00 A6 [01:27:17]Write i2c OK [01:27:17]MH_I2C_Read... [01:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:17]Read from MH i2c: E2 [01:27:17]MH_I2C_Read... [01:27:17]Read from MH i2c: E2 03 00 [01:27:17]MH_I2C_Read... [01:27:17]Read from MH i2c: E2 03 00 19 14 00 90 00 A1 [01:27:17]RAPDU: 90 00 [01:27:17]wFMCommunicate OK [01:27:17]wFMCommunicate request_size=255 [01:27:17]MH_SAM_APDU [01:27:17]CAPDU: 80 0D 02 02 FA 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 37 13 03 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:27:18]Write to MH i2c: E2 02 01 1A 14 80 0D 02 02 FA 00 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 37 13 03 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 00 00 63 [01:27:18]Write i2c OK [01:27:18]MH_I2C_Read... [01:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:18]Read from MH i2c: E2 [01:27:18]MH_I2C_Read... [01:27:18]Read from MH i2c: E2 03 00 [01:27:18]MH_I2C_Read... [01:27:18]Read from MH i2c: E2 03 00 1A 14 00 90 00 A2 [01:27:18]RAPDU: 90 00 [01:27:18]wFMCommunicate OK [01:27:18]wFMCommunicate request_size=255 [01:27:18]MH_SAM_APDU [01:27:18]CAPDU: 80 0D 02 02 FA 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:27:18]Write to MH i2c: E2 02 01 1B 14 80 0D 02 02 FA 00 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 00 00 6F [01:27:19]Write i2c OK [01:27:19]MH_I2C_Read... [01:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:19]Read from MH i2c: E2 [01:27:19]MH_I2C_Read... [01:27:19]Read from MH i2c: E2 03 00 [01:27:19]MH_I2C_Read... [01:27:19]Read from MH i2c: E2 03 00 1B 14 00 90 00 A3 [01:27:19]RAPDU: 90 00 [01:27:19]wFMCommunicate OK [01:27:19]wFMCommunicate request_size=255 [01:27:19]MH_SAM_APDU [01:27:19]CAPDU: 80 0D 02 02 FA 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 [01:27:19]Write to MH i2c: E2 02 01 1C 14 80 0D 02 02 FA 00 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 00 00 6C [01:27:20]Write i2c OK [01:27:20]MH_I2C_Read... [01:27:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:20]Read from MH i2c: E2 [01:27:20]MH_I2C_Read... [01:27:20]Read from MH i2c: E2 03 00 [01:27:20]MH_I2C_Read... [01:27:20]Read from MH i2c: E2 03 00 1C 14 00 90 00 A4 [01:27:20]RAPDU: 90 00 [01:27:20]wFMCommunicate OK [01:27:20]wFMCommunicate request_size=255 [01:27:20]MH_SAM_APDU [01:27:20]CAPDU: 80 0D 02 02 FA 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:27:20]Write to MH i2c: E2 02 01 1D 14 80 0D 02 02 FA 00 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 00 44 [01:27:20]Write i2c OK [01:27:20]MH_I2C_Read... [01:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:21]Read from MH i2c: E2 [01:27:21]MH_I2C_Read... [01:27:21]Read from MH i2c: E2 03 00 [01:27:21]MH_I2C_Read... [01:27:21]Read from MH i2c: E2 03 00 1D 14 00 90 00 A5 [01:27:21]RAPDU: 90 00 [01:27:21]wFMCommunicate OK [01:27:21]wFMCommunicate request_size=143 [01:27:21]MH_SAM_APDU [01:27:21]CAPDU: 80 0D 02 02 8A F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 05 B6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 D2 8E EA F0 83 9A [01:27:21]Write to MH i2c: E2 92 00 1E 14 80 0D 02 02 8A 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 05 B6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 D2 8E EA F0 83 9A 00 00 F9 [01:27:21]Write i2c OK [01:27:21]MH_I2C_Read... [01:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:21]Read from MH i2c: E2 [01:27:21]MH_I2C_Read... [01:27:21]Read from MH i2c: E2 03 00 [01:27:21]MH_I2C_Read... [01:27:21]Read from MH i2c: E2 03 00 1E 14 00 90 00 A6 [01:27:21]RAPDU: 90 00 [01:27:21]wFMCommunicate OK [01:27:21]wFMCommunicate request_size=4 [01:27:21]MH_SAM_APDU [01:27:21]CAPDU: 80 0D 03 02 [01:27:21]Write to MH i2c: E2 08 00 1F 14 80 0D 03 02 00 00 00 00 AE [01:27:21]Write i2c OK [01:27:21]MH_I2C_Read... [01:27:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:27:21]Read from MH i2c: E2 [01:27:21]MH_I2C_Read... [01:27:21]Read from MH i2c: E2 0B 00 [01:27:21]MH_I2C_Read... [01:27:21]Read from MH i2c: E2 0B 00 1F 14 00 50 F4 66 34 AC 0A 78 1C 90 00 D7 [01:27:21]RAPDU: 50 F4 66 34 AC 0A 78 1C 90 00 [01:27:21]wFMCommunicate OK [01:27:21]SAM_PROTO_SignData done [01:27:21]FM_MakeSignedData done [01:27:21]CreateOFDProtocolMessage [01:27:21]wFMCommunicate request_size=4 [01:27:21]MH_SAM_APDU [01:27:21]CAPDU: 80 11 00 00 [01:27:21]Write to MH i2c: E2 08 00 20 14 80 11 00 00 00 00 00 00 AE [01:27:21]Write i2c OK [01:27:21]MH_I2C_Read... [01:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:27:21]Read from MH i2c: E2 [01:27:21]MH_I2C_Read... [01:27:21]Read from MH i2c: E2 17 00 [01:27:21]MH_I2C_Read... [01:27:21]Read from MH i2c: E2 17 00 20 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 00 [01:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:27:21]wFMCommunicate OK [01:27:21]CreateOFDProtocolMessage done [01:27:21]OFDSenderStorePacket 112133 [01:27:21]StoreOFDPacket docnum=112133 [01:27:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 7C 05 00 00 BC C0 74 05 7B 04 5A 05 01 00 05 00 68 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 17 00 D0 96 D0 B0 D0 BD D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 20 D0 9A 2E 20 F4 03 04 00 72 28 76 66 0E 04 04 00 86 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 2C 01 00 00 57 04 04 00 2E 01 00 00 AA 04 D8 04 6E 04 04 00 2C 01 00 00 69 04 A5 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 1C 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 1D E8 24 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 37 13 03 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 05 B6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 D2 8E EA F0 83 9A 50 F4 66 34 AC 0A 78 1C [01:27:22]CheckFolder [01:27:22]dirname=/storage/ofd_packets [01:27:22]CheckFolder done [01:27:22]ProducePacketName [01:27:22]name=ofd_packets/00112133 [01:27:22]NVStorageSaveData ofd_packets/00112133 [01:27:22]File name is /storage/ofd_packets/00112133 [01:27:22]Write 1434 bytes [01:27:22]NVStorageSaveData done [01:27:22]OFDSenderStorePacket done [01:27:22]KKMCreateOFDPacket done [01:27:22]NVStorageSaveData kkm_last_timestamp [01:27:22]File name is /storage/kkm_last_timestamp [01:27:22]Write 4 bytes [01:27:22]NVStorageSaveData done [01:27:22]ExternCall_PrintAddStr [01:27:22]wPrintStart [01:27:22]Write to MH i2c: 01 00 00 21 14 35 [01:27:22]Write i2c OK [01:27:22]MH_I2C_Read... [01:27:22]Read from MH i2c: 01 [01:27:22]MH_I2C_Read... [01:27:22]Read from MH i2c: 01 07 00 [01:27:22]MH_I2C_Read... [01:27:22]Read from MH i2c: 01 07 00 21 14 00 00 00 00 00 FF 0F 4A [01:27:22]RasterBufferAndPrint [01:27:22]line 袨褌褔械褌 芯 蟹邪泻褉褘褌懈懈 褋屑械薪褘 [01:27:22]line 肖肖袛: 1.0 [01:27:22]line 袠袧袧: 02508201610067 [01:27:22]line 袣邪褋褋懈褉: 袞邪薪褘谐褍谢芯胁 袣. [01:27:22]line 22.06.2024 01:27 [01:27:22]line 小屑械薪邪: 390 [01:27:22]line 袪袧袦: 0000000000092771 [01:27:22]line 袟袧袦: 0300000198 [01:27:22]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [01:27:22]line 效械泻芯胁 蟹邪 褋屑械薪褍: 300 [01:27:22]line 肖袛 蟹邪 褋屑械薪褍: 302 [01:27:22]line 袙褋械谐芯 褔械泻芯胁: 300 [01:27:22]line 袠孝袨袚袠 袩袪袠啸袨袛 [01:27:22]line 效械泻芯胁: 300 [01:27:22]line 袨斜褖懈泄 懈褌芯谐: 227650.73 [01:27:22]line 袠褌芯谐芯 薪邪谢懈褔薪褘屑懈: 208735.00 [01:27:22]line 袠褌芯谐芯 斜械蟹薪邪谢.: 18915.73 [01:27:22]line 袧袛小 0% : 0.00 [01:27:22]line 袧袛小 12% : 24187.17 [01:27:22]line 袧小袩 0% : 0.00 [01:27:22]line 袧小袩 1,50% : 0.00 [01:27:22]line 袧小袩 0,50% : 0.00 [01:27:22]line 袧小袩 5% : 0.00 [01:27:22]line 袧小袩 3% : 0.00 [01:27:22]line 袧小袩 2% : 0.00 [01:27:22]line 袧小袩 1% : 2015.27 [01:27:22]line 袠孝袨袚袠 袙袨袟袙袪袗孝 袩袪袠啸袨袛袗 [01:27:22]line 效械泻芯胁: 0 [01:27:22]line 袨斜褖懈泄 懈褌芯谐: 0.00 [01:27:22]line 袠褌芯谐芯 薪邪谢懈褔薪褘屑懈: 0.00 [01:27:22]line 袠褌芯谐芯 斜械蟹薪邪谢.: 0.00 [01:27:22]line 袧袛小 0% : 0.00 [01:27:22]line 袧袛小 12% : 0.00 [01:27:22]line 袧小袩 0% : 0.00 [01:27:22]line 袧小袩 1,50% : 0.00 [01:27:22]line 袧小袩 0,50% : 0.00 [01:27:22]line 袧小袩 5% : 0.00 [01:27:22]line 袧小袩 3% : 0.00 [01:27:22]line 袧小袩 2% : 0.00 [01:27:22]line 袧小袩 1% : 0.00 [01:27:22]line 袠孝袨袚袠 袪袗小啸袨袛 [01:27:22]line 效械泻芯胁: 0 [01:27:22]line 袨斜褖懈泄 懈褌芯谐: 0.00 [01:27:22]line 袠褌芯谐芯 薪邪谢懈褔薪褘屑懈: 0.00 [01:27:22]line 袠褌芯谐芯 斜械蟹薪邪谢.: 0.00 [01:27:22]line 袧袛小 0% : 0.00 [01:27:22]OFD Sender: Processing packet 112133 [packets to send 38, broken 37] [01:27:22]ProducePacketName [01:27:22]name=ofd_packets/00112133 [01:27:22]OFD Sender: To server: 嚂鰌G, [01:27:22]CommunicateWithHost lk.salyk.kg:30040 [01:27:22]ConnectInit lk.salyk.kg [01:27:22]line 袧袛小 12% : 0.00 [01:27:22]line 袧小袩 0% : 0.00 [01:27:22]line 袧小袩 1,50% : 0.00 [01:27:22]line 袧小袩 0,50% : 0.00 [01:27:22]line 袧小袩 5% : 0.00 [01:27:22]line 袧小袩 3% : 0.00 [01:27:22]line 袧小袩 2% : 0.00 [01:27:22]line 袧小袩 1% : 0.00 [01:27:22]line 袠孝袨袚袠 袙袨袟袙袪袗孝 袪袗小啸袨袛袗 [01:27:22]line 效械泻芯胁: 0 [01:27:22]line 袨斜褖懈泄 懈褌芯谐: 0.00 [01:27:22]line 袠褌芯谐芯 薪邪谢懈褔薪褘屑懈: 0.00 [01:27:22]line 袠褌芯谐芯 斜械蟹薪邪谢.: 0.00 [01:27:22]line 袧袛小 0% : 0.00 [01:27:22]line 袧袛小 12% : 0.00 [01:27:22]line 袧小袩 0% : 0.00 [01:27:22]line 袧小袩 1,50% : 0.00 [01:27:22]line 袧小袩 0,50% : 0.00 [01:27:22]line 袧小袩 5% : 0.00 [01:27:22]line 袧小袩 3% : 0.00 [01:27:22]line 袧小袩 2% : 0.00 [01:27:22]line 袧小袩 1% : 0.00 [01:27:22]line 小褍屑屑邪 胁薪械褋械薪懈泄: 0.00 [01:27:22]line 小褍屑屑邪 胁褘锌谢邪褌: 0.00 [01:27:22]line 袧邪谢. 胁 泻邪褋褋械: 208735.00 [01:27:22]line 袧小 袩褉懈褏芯写: 84332397.19 [01:27:22]line 袧小 袙芯蟹胁褉.袩褉懈褏芯写邪: 201.00 [01:27:22]line 袧小 袪邪褋褏芯写: 0.00 [01:27:22]line 袧小 袙芯蟹胁褉.袪邪褋褏芯写邪: 0.00 [01:27:22]line 肖袛: 112133 [01:27:22]line 肖袦: 0000000000875083 [01:27:22]line 肖袩袛: 231511268819866 [01:27:22]written 0, free lines is 4095 [01:27:22]Connected sock=10 [01:27:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 7C 05 00 00 BC C0 74 05 7B 04 5A 05 01 00 05 00 68 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 17 00 D0 96 D0 B0 D0 BD D1 8B D0 B3 D1 83 D0 BB D0 BE D0 B2 20 D0 9A 2E 20 F4 03 04 00 72 28 76 66 0E 04 04 00 86 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 2C 01 00 00 57 04 04 00 2E 01 00 00 AA 04 D8 04 6E 04 04 00 2C 01 00 00 69 04 A5 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 1C 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 1D E8 24 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 37 13 03 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 Write to MH i2c: EF 01 03 00 0A 00 00 71 F6 14 03 85 01 [01:27:23]00 06 F7 03 01 00 Write i2c OK [01:27:23]00 MH_I2C_Read... [01:27:23]EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF Read from MH i2c: 03 01 0A [01:27:23]00 MH_I2C_Read... [01:27:23]F6 Read from MH i2c: 03 01 01 07 00 00 04 [01:27:23]F7 MH_I2C_Read... [01:27:23]03 Read from MH i2c: 01 01 07 00 00 00 EF 03 0A 00 F6 03 01 00 03 F7 71 03 14 01 00 00 00 00 00 EF 00 03 00 0A 9E 00 0A F6 34 03 [01:27:23]01 RasterBufferAndPrint [01:27:23]00 line [01:27:23]02 line [01:27:23]F7 03 01 00 00 EF 03 0A 00 F6 line [01:27:23]03 line [01:27:23]01 line [01:27:23]00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 written 0, free lines is 2933 [01:27:23]00 00 00 00 00 79 04 8D 00 6F 04 04 MH_Cut [01:27:23]00 Write to MH i2c: 00 D1 00 01 00 00 00 78 B1 14 04 00 00 70 04 00 00 72 04 00 01 00 5E 00 [01:27:23]04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 Write i2c OK [01:27:23]00 MH_I2C_Read... [01:27:23]00 Read from MH i2c: EE D1 03 [01:27:23]09 MH_I2C_Read... [01:27:23]00 F2 03 01 00 01 F3 Read from MH i2c: 03 D1 00 01 00 00 EF [01:27:23]03 MH_I2C_Read... [01:27:23]09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 Read from MH i2c: 00 D1 06 01 F7 00 03 78 00 14 00 00 D0 5D 04 [01:27:23]8D Write to MH i2c: 01 00 00 79 14 8D [01:27:23]Write i2c OK [01:27:23]MH_I2C_Read... [01:27:23]00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 05 B6 01 00 11 04 10 00 30 30 30 30 *** Cut start [01:27:24]30 *** Partial cut [01:27:24]30 *** CUTSNS_PIN = 1 [01:27:24]30 *** CUTSNS_PIN = 0 [01:27:24]30 30 30 38 37 35 30 38 33 35 04 06 00 D2 8E EA *** Brake cut motor [01:27:24]F0 83 9A 50 F4 66 34 AC 0A 78 1C [01:27:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DE 62 47 00 04 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 Read from MH i2c: 37 01 30 [01:27:24]*** Stop cut motor [01:27:24]MH_I2C_Read... [01:27:24]*** Cut end [01:27:24]39 33 36 34 33 34 36 31 32 Read from MH i2c: 33 01 34 07 11 00 04 [01:27:24]10 MH_I2C_Read... [01:27:24]00 30 30 30 30 30 30 Read from MH i2c: 30 01 30 07 30 00 30 79 38 14 37 00 35 00 30 00 38 00 33 00 10 FF 04 0F 04 A2 00 05 B6 01 00 F4 03 04 00 9C [01:27:25]BF process_action close_shift done [01:27:25]75 requested_data is exist [01:27:25]66 produce_requested_data [01:27:25]B6 requested_item fd.num is exist - process it [01:27:25]04 SAM_PROTO_GetFieldsCounters [01:27:25]01 wFMCommunicate request_size=4 [01:27:25]00 MH_SAM_APDU [01:27:25]00 CAPDU: AF 80 1B 13 45 00 43 00 75 [01:27:25]22 Write to MH i2c: 37 E2 AD 08 [01:27:25]00 CommunicateWithHost err = 0 [01:27:25]CheckOFDResponse [01:27:25]1017 (14) - 77093643461234 [01:27:25]1041 (16) - 0000000000875083 [01:27:25]1040 (4) - 112133 [01:27:25]1012 (4) - 21.06.2024 17:59 [01:27:25]1206 (1) - 0 [01:27:25]OFD Sender: Remove packet 112133 [01:27:25]ProducePacketName [01:27:25]7A name=ofd_packets/00112133 [01:27:25]14 NVStorageDeleteData [01:27:25]80 13 00 00 00 00 00 00 0A [01:27:25]Write i2c OK [01:27:25]MH_I2C_Read... [01:27:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:27:25]Read from MH i2c: E2 [01:27:25]MH_I2C_Read... [01:27:25]Read from MH i2c: E2 62 00 [01:27:25]MH_I2C_Read... [01:27:25]Read from MH i2c: E2 62 00 7A 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 05 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [01:27:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 05 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:27:25]wFMCommunicate OK [01:27:25]SAM_PROTO_GetFieldsCounters done [01:27:25]requested_item shift.num is exist - process it [01:27:25]requested_item shift.opened is exist - process it [01:27:25]req_shift_opened [01:27:25]FM_GetShiftState [01:27:25]SAM_PROTO_GetShiftState [01:27:25]wFMCommunicate request_size=4 [01:27:25]MH_SAM_APDU [01:27:25]CAPDU: 80 13 01 00 [01:27:25]Write to MH i2c: E2 08 00 7B 14 80 13 01 00 00 00 00 00 0C [01:27:25]Write i2c OK [01:27:25]MH_I2C_Read... [01:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:25]Read from MH i2c: E2 [01:27:25]MH_I2C_Read... [01:27:25]Read from MH i2c: E2 0E 00 [01:27:25]MH_I2C_Read... [01:27:25]Read from MH i2c: E2 0E 00 7B 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 17 [01:27:25]RAPDU: 09 00 00 OFD Sender: No OFD packet to send [01:27:25]00 00 00 00 00 00 00 00 90 00 [01:27:25]wFMCommunicate OK [01:27:25]SAM_PROTO_GetShiftState done [01:27:25]FM_GetShiftState done [01:27:25]req_shift_opened done [01:27:25]requested_item shift.open_date is exist - process it [01:27:25]req_shift_open_date [01:27:25]FM_GetShiftState [01:27:25]SAM_PROTO_GetShiftState [01:27:25]wFMCommunicate request_size=4 [01:27:25]MH_SAM_APDU [01:27:25]CAPDU: 80 13 01 00 [01:27:25]Write to MH i2c: E2 08 00 7C 14 80 13 01 00 00 00 00 00 0D [01:27:25]Write i2c OK [01:27:25]MH_I2C_Read... [01:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:25]Read from MH i2c: E2 [01:27:25]MH_I2C_Read... [01:27:25]Read from MH i2c: E2 0E 00 [01:27:25]MH_I2C_Read... [01:27:25]Read from MH i2c: E2 0E 00 7C 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 18 [01:27:25]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:27:25]wFMCommunicate OK [01:27:25]SAM_PROTO_GetShiftState done [01:27:25]FM_GetShiftState done [01:27:25]req_shift_open_date done [01:27:25]produce_requested_data done [01:27:25]produce_requested_data return {"fd.num":112133,"shift.num":390,"shift.opened":0,"shift.open_date":0} [01:27:25]process_action_free close_shift [01:27:25]json_value_free [01:27:25]json_value_free done [01:27:25]process_json_proto returns [01:27:25]Send response to host [01:27:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":112133,"shift.num":390,"shift.opened":0,"shift.open_date":0}}} [01:27:25]free response buf [01:27:25]execute_script done [01:27:25]execute_script returns [01:27:25]free content buf [01:27:25]Sock 9.Close socket [01:27:25]Sock 9.Thread stoped [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:16]accept exits with 7 [01:34:16]New connection [01:34:16]New thread 3066813796 created [01:34:16]Thread 3066957156 joined [01:34:16]Waiting for new connection... [01:34:16] Sock 7.Parse request [01:34:16]Sock 7.Check first char [01:34:16]Sock 7.First char is OK [01:34:16]request: POST /json_proto HTTP/1.0 [01:34:16]Method: POST [01:34:16]URL: /json_proto [01:34:16]Method is POST - this is cgi request [01:34:16]url: /json_proto [01:34:16]query_string will be loaded in cgi processing [01:34:16]execute_cgi json_proto POST (null) [01:34:16]execute_cgi path=json_proto method=POST [01:34:16]POST find Content-Length [01:34:16]Host: 172.17.59.68:8080 [01:34:16]Content-Length: 215 [01:34:16]Content-Type: application/json [01:34:16] [01:34:16]POST finish read [01:34:16]Found Content-Length = 215 [01:34:16]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" ] } } [01:34:16]execute_script... [01:34:16]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" ] } } [01:34:16]POST & json_proto [01:34:16]process_json_proto [01:34:16]json parsed OK: [01:34:16]protocol is kg_v1.0 [01:34:16]action value=get_value [01:34:16]process_action get_value [01:34:16]cmd_get_value [01:34:16]process_action get_value done [01:34:16]requested_data is exist [01:34:16]produce_requested_data [01:34:16]requested_item kkm.sn is exist - process it [01:34:16]requested_item kkm.ver is exist - process it [01:34:16]requested_item fm.sn is exist - process it [01:34:16]wFMCommunicate request_size=4 [01:34:16]MH_SAM_APDU [01:34:16]CAPDU: 80 11 00 00 [01:34:16]Write to MH i2c: E2 08 00 7D 14 80 11 00 00 00 00 00 00 0B [01:34:16]Write i2c OK [01:34:16]MH_I2C_Read... [01:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:16]Read from MH i2c: E2 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 17 00 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 17 00 7D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [01:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:34:16]wFMCommunicate OK [01:34:16]requested_item fd.num is exist - process it [01:34:16]SAM_PROTO_GetFieldsCounters [01:34:16]wFMCommunicate request_size=4 [01:34:16]MH_SAM_APDU [01:34:16]CAPDU: 80 13 00 00 [01:34:16]Write to MH i2c: E2 08 00 7E 14 80 13 00 00 00 00 00 00 0E [01:34:16]Write i2c OK [01:34:16]MH_I2C_Read... [01:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:16]Read from MH i2c: E2 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 62 00 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 62 00 7E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 05 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [01:34:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 05 B6 01 00 0E 04 04 00 86 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:34:16]wFMCommunicate OK [01:34:16]SAM_PROTO_GetFieldsCounters done [01:34:16]requested_item shift.num is exist - process it [01:34:16]requested_item shift.opened is exist - process it [01:34:16]req_shift_opened [01:34:16]FM_GetShiftState [01:34:16]SAM_PROTO_GetShiftState [01:34:16]wFMCommunicate request_size=4 [01:34:16]MH_SAM_APDU [01:34:16]CAPDU: 80 13 01 00 [01:34:16]Write to MH i2c: E2 08 00 7F 14 80 13 01 00 00 00 00 00 10 [01:34:16]Write i2c OK [01:34:16]MH_I2C_Read... [01:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:16]Read from MH i2c: E2 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 0E 00 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 0E 00 7F 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1B [01:34:16]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:34:16]wFMCommunicate OK [01:34:16]SAM_PROTO_GetShiftState done [01:34:16]FM_GetShiftState done [01:34:16]req_shift_opened done [01:34:16]requested_item shift.open_date is exist - process it [01:34:16]req_shift_open_date [01:34:16]FM_GetShiftState [01:34:16]SAM_PROTO_GetShiftState [01:34:16]wFMCommunicate request_size=4 [01:34:16]MH_SAM_APDU [01:34:16]CAPDU: 80 13 01 00 [01:34:16]Write to MH i2c: E2 08 00 80 14 80 13 01 00 00 00 00 00 11 [01:34:16]Write i2c OK [01:34:16]MH_I2C_Read... [01:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:16]Read from MH i2c: E2 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 0E 00 [01:34:16]MH_I2C_Read... [01:34:16]Read from MH i2c: E2 0E 00 80 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1C [01:34:16]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:34:16]wFMCommunicate OK [01:34:16]SAM_PROTO_GetShiftState done [01:34:16]FM_GetShiftState done [01:34:16]req_shift_open_date done [01:34:16]produce_requested_data done [01:34:16]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112133,"shift.num":390,"shift.opened":0,"shift.open_date":0} [01:34:16]process_action_free get_value [01:34:16]json_value_free [01:34:16]json_value_free done [01:34:16]process_json_proto returns [01:34:16]Send response to host [01:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":112133,"shift.num":390,"shift.opened":0,"shift.open_date":0}}} [01:34:16]free response buf [01:34:16]execute_script done [01:34:16]execute_script returns [01:34:16]free content buf [01:34:16]Sock 7.Close socket [01:34:16]Sock 7.Thread stoped [01:34:16]accept exits with 9 [01:34:16]New connection [01:34:16]New thread 3066957156 created [01:34:16]Thread 3066813796 joined [01:34:16]Waiting for new connection... [01:34:16] Sock 9.Parse request [01:34:16]Sock 9.Check first char [01:34:16]Sock 9.First char is OK [01:34:16]request: POST /json_proto HTTP/1.0 [01:34:16]Method: POST [01:34:16]URL: /json_proto [01:34:16]Method is POST - this is cgi request [01:34:16]url: /json_proto [01:34:16]query_string will be loaded in cgi processing [01:34:16]execute_cgi json_proto POST (null) [01:34:16]execute_cgi path=json_proto method=POST [01:34:16]POST find Content-Length [01:34:16]Host: 172.17.59.68:8080 [01:34:16]Content-Length: 331 [01:34:16]Content-Type: application/json [01:34:16] [01:34:16]POST finish read [01:34:16]Found Content-Length = 331 [01:34:16]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" ] } } [01:34:16]execute_script... [01:34:17]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" ] } } [01:34:17]POST & json_proto [01:34:17]process_json_proto [01:34:17]json parsed OK: [01:34:17]protocol is kg_v1.0 [01:34:17]action value=get_value [01:34:17]process_action get_value [01:34:17]cmd_get_value [01:34:17]process_action get_value done [01:34:17]requested_data is exist [01:34:17]produce_requested_data [01:34:17]requested_item fm.sale.total is exist - process it [01:34:17]SAM_PROTO_GetFMData [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 13 03 00 [01:34:17]Write to MH i2c: E2 08 00 81 14 80 13 03 00 00 00 00 00 14 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 FD 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 FD 00 81 14 00 BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 A2 [01:34:17]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:34:17]wFMCommunicate OK [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 17 00 00 [01:34:17]Write to MH i2c: E2 08 00 82 14 80 17 00 00 00 00 00 00 16 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 FD 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 FD 00 82 14 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [01:34:17]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:34:17]wFMCommunicate OK [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 17 00 00 [01:34:17]Write to MH i2c: E2 08 00 83 14 80 17 00 00 00 00 00 00 17 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:17]Read from MH i2c: E2 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 FD 00 [01:34:17]MH_I2C_Read... [01:34:17]Read from MH i2c: E2 FD 00 83 14 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 49 [01:34:17]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:34:17]wFMCommunicate OK [01:34:17]wFMCommunicate request_size=4 [01:34:17]MH_SAM_APDU [01:34:17]CAPDU: 80 17 00 00 [01:34:17]Write to MH i2c: E2 08 00 84 14 80 17 00 00 00 00 00 00 18 [01:34:17]Write i2c OK [01:34:17]MH_I2C_Read... [01:34:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:18]Read from MH i2c: E2 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: E2 FD 00 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: E2 FD 00 84 14 00 F7 03 00 00 EF 03 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 90 00 8F [01:34:18]RAPDU: F7 03 00 00 EF 03 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 90 00 [01:34:18]wFMCommunicate OK [01:34:18]wFMCommunicate request_size=4 [01:34:18]MH_SAM_APDU [01:34:18]CAPDU: 80 17 00 00 [01:34:18]Write to MH i2c: E2 08 00 85 14 80 17 00 00 00 00 00 00 19 [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:34:18]Read from MH i2c: E2 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: E2 DA 00 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: E2 DA 00 85 14 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FA [01:34:18]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:34:18]wFMCommunicate OK [01:34:18]SAM_PROTO_GetFMData done [01:34:18]requested_item fm.sale_refund.total is exist - process it [01:34:18]requested_item fm.buy.total is exist - process it [01:34:18]requested_item shift.sale.total is exist - process it [01:34:18]SAM_PROTO_GetShiftData [01:34:18]wFMCommunicate request_size=4 [01:34:18]MH_SAM_APDU [01:34:18]CAPDU: 80 13 02 00 [01:34:18]Write to MH i2c: E2 08 00 86 14 80 13 02 00 00 00 00 00 18 [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:34:18]Read from MH i2c: E2 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: E2 FD 00 [01:34:18]MH_I2C_Read... [01:34:18]Read from MH i2c: E2 FD 00 86 14 00 B1 04 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [01:34:18]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 2C 01 00 00 69 04 9E 00 6F 04 04 00 2C 01 00 00 B1 04 04 00 11 5E 5B 01 70 04 04 00 1C 81 3E 01 72 04 03 00 F5 DC 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 1D E8 24 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 37 13 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:34:18]wFMCommunicate OK [01:34:18]wFMCommunicate request_size=4 [01:34:18]MH_SAM_APDU [01:34:18]CAPDU: 80 17 00 00 [01:34:18]Write to MH i2c: E2 08 00 87 14 80 17 00 00 00 00 00 00 1B [01:34:18]Write i2c OK [01:34:18]MH_I2C_Read... [01:34:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:19]Read from MH i2c: E2 [01:34:19]MH_I2C_Read... [01:34:19]Read from MH i2c: E2 FD 00 [01:34:19]MH_I2C_Read... [01:34:19]Read from MH i2c: E2 FD 00 87 14 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 34 [01:34:19]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:34:19]wFMCommunicate OK [01:34:19]wFMCommunicate request_size=4 [01:34:19]MH_SAM_APDU [01:34:19]CAPDU: 80 17 00 00 [01:34:19]Write to MH i2c: E2 08 00 88 14 80 17 00 00 00 00 00 00 1C [01:34:19]Write i2c OK [01:34:19]MH_I2C_Read... [01:34:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:19]Read from MH i2c: E2 [01:34:19]MH_I2C_Read... [01:34:19]Read from MH i2c: E2 FD 00 [01:34:19]MH_I2C_Read... [01:34:19]Read from MH i2c: E2 FD 00 88 14 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D5 [01:34:19]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:34:19]wFMCommunicate OK [01:34:19]wFMCommunicate request_size=4 [01:34:19]MH_SAM_APDU [01:34:19]CAPDU: 80 17 00 00 [01:34:19]Write to MH i2c: E2 08 00 89 14 80 17 00 00 00 00 00 00 1D [01:34:19]Write i2c OK [01:34:19]MH_I2C_Read... [01:34:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:19]Read from MH i2c: E2 [01:34:19]MH_I2C_Read... [01:34:19]Read from MH i2c: E2 FD 00 [01:34:19]MH_I2C_Read... [01:34:19]Read from MH i2c: E2 FD 00 89 14 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 90 00 95 [01:34:19]RAPDU: 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 90 00 [01:34:19]wFMCommunicate OK [01:34:19]wFMCommunicate request_size=4 [01:34:19]MH_SAM_APDU [01:34:19]CAPDU: 80 17 00 00 [01:34:19]Write to MH i2c: E2 08 00 8A 14 80 17 00 00 00 00 00 00 1E [01:34:19]Write i2c OK [01:34:19]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 CE 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 CE 00 8A 14 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 03 [01:34:20]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:34:20]wFMCommunicate OK [01:34:20]SAM_PROTO_GetShiftData done [01:34:20]requested_item shift.sale.total_cash is exist - process it [01:34:20]requested_item shift.sale_refund.total is exist - process it [01:34:20]requested_item shift.sale_refund.total_cash is exist - process it [01:34:20]requested_item shift.buy.total is exist - process it [01:34:20]requested_item shift.buy.total_cash is exist - process it [01:34:20]produce_requested_data done [01:34:20]produce_requested_data return {"fm.sale.total":84332397.19,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":227650.73,"shift.sale.total_cash":208735.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} [01:34:20]process_action_free get_value [01:34:20]json_value_free [01:34:20]json_value_free done [01:34:20]process_json_proto returns [01:34:20]Send response to host [01:34:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84332397.19,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":227650.73,"shift.sale.total_cash":208735.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}}} [01:34:20]free response buf [01:34:20]execute_script done [01:34:20]execute_script returns [01:34:20]free content buf [01:34:20]Sock 9.Close socket [01:34:20]Sock 9.Thread stoped [01:34:20]accept exits with 7 [01:34:20]New connection [01:34:20]New thread 3066813796 created [01:34:20]Thread 3066957156 joined [01:34:20]Waiting for new connection... [01:34:20] Sock 7.Parse request [01:34:20]Sock 7.Check first char [01:34:20]Sock 7.First char is OK [01:34:20]request: POST /json_proto HTTP/1.0 [01:34:20]Method: POST [01:34:20]URL: /json_proto [01:34:20]Method is POST - this is cgi request [01:34:20]url: /json_proto [01:34:20]query_string will be loaded in cgi processing [01:34:20]execute_cgi json_proto POST (null) [01:34:20]execute_cgi path=json_proto method=POST [01:34:20]POST find Content-Length [01:34:20]Host: 172.17.59.68:8080 [01:34:20]Content-Length: 265 [01:34:20]Content-Type: application/json [01:34:20] [01:34:20]POST finish read [01:34:20]Found Content-Length = 265 [01:34:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:20]execute_script... [01:34:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:20]POST & json_proto [01:34:20]process_json_proto [01:34:20]json parsed OK: [01:34:20]protocol is kg_v1.0 [01:34:20]action value=open_shift [01:34:20]process_action open_shift [01:34:20]cmd_open_shift [01:34:20]MH_GetDate [01:34:20]Write to MH i2c: F0 00 00 8B 14 8E [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: F0 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: F0 09 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: F0 09 00 8B 14 00 23 2A 76 66 BC EC 60 65 2D [01:34:20]GetLastDocTimeStamp 1719019634 [01:34:20]current date 1719020067 [01:34:20]FM_GetShiftState [01:34:20]SAM_PROTO_GetShiftState [01:34:20]wFMCommunicate request_size=4 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 13 01 00 [01:34:20]Write to MH i2c: E2 08 00 8C 14 80 13 01 00 00 00 00 00 1D [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 0E 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 0E 00 8C 14 00 09 00 00 00 00 00 00 00 00 00 00 90 00 28 [01:34:20]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:34:20]wFMCommunicate OK [01:34:20]SAM_PROTO_GetShiftState done [01:34:20]FM_GetShiftState done [01:34:20]KKMCreateOpenShiftDocument [01:34:20]Load OK [01:34:20]Malloc new data [01:34:20]MH_GetDate [01:34:20]Write to MH i2c: F0 00 00 8D 14 90 [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: F0 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: F0 09 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: F0 09 00 8D 14 00 23 2A 76 66 BC EC 60 65 2F [01:34:20]Malloc new data [01:34:20]KKMCreateOpenShiftDocument OK [01:34:20]KKMSetOpenShiftData OK [01:34:20]ProcessDocumentItem done err = 0, tmpTLVsize=206 [01:34:20]tlvbuf is 012ED040 [01:34:20]KKMLoadAndSignOpenShiftData [01:34:20]SAM_PROTO_ProcessDocument [01:34:20]wFMCommunicate request_size=9 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 15 01 00 04 02 00 CE 00 [01:34:20]Write to MH i2c: E2 0C 00 8E 14 80 15 01 00 04 00 02 00 CE 00 00 00 F9 [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 8E 14 00 90 00 16 [01:34:20]RAPDU: 90 00 [01:34:20]wFMCommunicate OK [01:34:20]wFMCommunicate request_size=23 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [01:34:20]Write to MH i2c: E2 1A 00 8F 14 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 18 [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [01:34:20]RAPDU: 90 00 [01:34:20]wFMCommunicate OK [01:34:20]wFMCommunicate request_size=32 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 [01:34:20]Write to MH i2c: E2 23 00 90 14 80 15 02 00 1B 00 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 00 00 50 [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [01:34:20]RAPDU: 90 00 [01:34:20]wFMCommunicate OK [01:34:20]wFMCommunicate request_size=93 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 15 02 00 58 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 [01:34:20]Write to MH i2c: E2 60 00 91 14 80 15 02 00 58 00 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 00 00 F0 [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 91 14 00 90 00 19 [01:34:20]RAPDU: 90 00 [01:34:20]wFMCommunicate OK [01:34:20]wFMCommunicate request_size=50 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 [01:34:20]Write to MH i2c: E2 35 00 92 14 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 A0 [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [01:34:20]RAPDU: 90 00 [01:34:20]wFMCommunicate OK [01:34:20]wFMCommunicate request_size=13 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 15 02 00 08 F4 03 04 00 23 2A 76 66 [01:34:20]Write to MH i2c: E2 10 00 93 14 80 15 02 00 08 00 F4 03 04 00 23 2A 76 66 00 00 5B [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 93 14 00 90 00 1B [01:34:20]RAPDU: 90 00 [01:34:20]wFMCommunicate OK [01:34:20]wFMCommunicate request_size=25 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 [01:34:20]Write to MH i2c: E2 1C 00 94 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 00 00 8B [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:34:20]Read from MH i2c: E2 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 [01:34:20]MH_I2C_Read... [01:34:20]Read from MH i2c: E2 03 00 94 14 00 90 00 1C [01:34:20]RAPDU: 90 00 [01:34:20]wFMCommunicate OK [01:34:20]wFMCommunicate request_size=4 [01:34:20]MH_SAM_APDU [01:34:20]CAPDU: 80 15 03 00 [01:34:20]Write to MH i2c: E2 08 00 95 14 80 15 03 00 00 00 00 00 2A [01:34:20]Write i2c OK [01:34:20]MH_I2C_Read... [01:34:21]OFD Sender: No OFD packet to send [01:34:21]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [01:34:21]Read from MH i2c: E2 [01:34:21]MH_I2C_Read... [01:34:21]Read from MH i2c: E2 38 00 [01:34:21]MH_I2C_Read... [01:34:21]Read from MH i2c: E2 38 00 95 14 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B6 01 00 0E 04 04 00 87 01 00 00 35 04 06 00 BF E3 EF ED 79 91 90 00 C2 [01:34:21]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B6 01 00 0E 04 04 00 87 01 00 00 35 04 06 00 BF E3 EF ED 79 91 90 00 [01:34:21]wFMCommunicate OK [01:34:21]SAM_PROTO_ProcessDocument answer len = 51 [01:34:21]SAM_PROTO_ProcessDocument done [01:34:21]SetTLVBufToDocument [01:34:21]Processing tag 1209 (04B9) [01:34:21]Malloc new data [01:34:21]Processing tag 1041 (0411) [01:34:21]Processing tag 1040 (0410) [01:34:21]Malloc new data [01:34:21]Processing tag 1038 (040E) [01:34:21]Malloc new data [01:34:21]Processing tag 1077 (0435) [01:34:21]Malloc new data [01:34:21]SetTLVBufToDocument err=0 [01:34:21]KKMLoadAndSignOpenShiftData store KKM data [01:34:21]KKMLoadAndSignOpenShiftData err=0 [01:34:21]袨褌褔械褌 芯斜 芯褌泻褉褘褌懈懈 褋屑械薪褘 肖肖袛: 1.0 袠袧袧: 02508201610067 袣邪褋褋懈褉: 袗屑邪薪褌褍褉芯胁 袪. 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 22.06.2024 01:34 小屑械薪邪: 391 袪袧袦: 0000000000092771 袟袧袦: 0300000198 肖袛: 112134 肖袦: 0000000000875083 肖袩袛: 210985703799185 [01:34:21]StoreToDocumentArchive [01:34:21]shift 391 fd 112134 [01:34:21]Create dir for shift 0391 [01:34:21]save to /storage/0391/doc_00112134 [01:34:21]save last doc name /storage/0391/doc_00112134 to /storage/kkm_last_doc_name [01:34:21]save OK [01:34:21]Clear old archive folders... [01:34:21]Remove dir /storage/0390 [01:34:21]opendir ok [01:34:21]file . [01:34:21]file .. [01:34:21]file doc_00111832 [01:34:21]remove file /storage/0390/doc_00111832 [01:34:21]file doc_00111833 [01:34:21]remove file /storage/0390/doc_00111833 [01:34:21]file doc_00111834 [01:34:21]remove file /storage/0390/doc_00111834 [01:34:21]file doc_00111835 [01:34:21]remove file /storage/0390/doc_00111835 [01:34:21]file doc_00111836 [01:34:21]remove file /storage/0390/doc_00111836 [01:34:21]file doc_00111837 [01:34:21]remove file /storage/0390/doc_00111837 [01:34:21]file doc_00111838 [01:34:21]remove file /storage/0390/doc_00111838 [01:34:21]file doc_00111839 [01:34:21]remove file /storage/0390/doc_00111839 [01:34:21]file doc_00111840 [01:34:21]remove file /storage/0390/doc_00111840 [01:34:21]file doc_00111841 [01:34:21]remove file /storage/0390/doc_00111841 [01:34:21]file doc_00111842 [01:34:21]remove file /storage/0390/doc_00111842 [01:34:21]file doc_00111843 [01:34:21]remove file /storage/0390/doc_00111843 [01:34:21]file doc_00111844 [01:34:21]remove file /storage/0390/doc_00111844 [01:34:21]file doc_00111845 [01:34:21]remove file /storage/0390/doc_00111845 [01:34:21]file doc_00111846 [01:34:21]remove file /storage/0390/doc_00111846 [01:34:21]file doc_00111847 [01:34:21]remove file /storage/0390/doc_00111847 [01:34:21]file doc_00111848 [01:34:21]remove file /storage/0390/doc_00111848 [01:34:21]file doc_00111849 [01:34:21]remove file /storage/0390/doc_00111849 [01:34:21]file doc_00111850 [01:34:21]remove file /storage/0390/doc_00111850 [01:34:21]file doc_00111851 [01:34:21]remove file /storage/0390/doc_00111851 [01:34:21]file doc_00111852 [01:34:21]remove file /storage/0390/doc_00111852 [01:34:21]file doc_00111853 [01:34:21]remove file /storage/0390/doc_00111853 [01:34:21]file doc_00111854 [01:34:21]remove file /storage/0390/doc_00111854 [01:34:21]file doc_00111855 [01:34:21]remove file /storage/0390/doc_00111855 [01:34:21]file doc_00111856 [01:34:21]remove file /storage/0390/doc_00111856 [01:34:21]file doc_00111857 [01:34:21]remove file /storage/0390/doc_00111857 [01:34:21]file doc_00111858 [01:34:21]remove file /storage/0390/doc_00111858 [01:34:21]file doc_00111859 [01:34:21]remove file /storage/0390/doc_00111859 [01:34:21]file doc_00111860 [01:34:21]remove file /storage/0390/doc_00111860 [01:34:21]file doc_00111861 [01:34:21]remove file /storage/0390/doc_00111861 [01:34:21]file doc_00111862 [01:34:21]remove file /storage/0390/doc_00111862 [01:34:21]file doc_00111863 [01:34:21]remove file /storage/0390/doc_00111863 [01:34:21]file doc_00111864 [01:34:21]remove file /storage/0390/doc_00111864 [01:34:21]file doc_00111865 [01:34:21]remove file /storage/0390/doc_00111865 [01:34:21]file doc_00111866 [01:34:21]remove file /storage/0390/doc_00111866 [01:34:21]file doc_00111867 [01:34:21]remove file /storage/0390/doc_00111867 [01:34:21]file doc_00111868 [01:34:21]remove file /storage/0390/doc_00111868 [01:34:21]file doc_00111869 [01:34:21]remove file /storage/0390/doc_00111869 [01:34:21]file doc_00111870 [01:34:21]remove file /storage/0390/doc_00111870 [01:34:21]file doc_00111871 [01:34:21]remove file /storage/0390/doc_00111871 [01:34:21]file doc_00111872 [01:34:21]remove file /storage/0390/doc_00111872 [01:34:21]file doc_00111873 [01:34:21]remove file /storage/0390/doc_00111873 [01:34:21]file doc_00111874 [01:34:21]remove file /storage/0390/doc_00111874 [01:34:21]file doc_00111875 [01:34:21]remove file /storage/0390/doc_00111875 [01:34:21]file doc_00111876 [01:34:21]remove file /storage/0390/doc_00111876 [01:34:21]file doc_00111877 [01:34:21]remove file /storage/0390/doc_00111877 [01:34:21]file doc_00111878 [01:34:21]remove file /storage/0390/doc_00111878 [01:34:21]file doc_00111879 [01:34:21]remove file /storage/0390/doc_00111879 [01:34:21]file doc_00111880 [01:34:21]remove file /storage/0390/doc_00111880 [01:34:21]file doc_00111881 [01:34:21]remove file /storage/0390/doc_00111881 [01:34:21]file doc_00111882 [01:34:21]remove file /storage/0390/doc_00111882 [01:34:21]file doc_00111883 [01:34:21]remove file /storage/0390/doc_00111883 [01:34:21]file doc_00111884 [01:34:21]remove file /storage/0390/doc_00111884 [01:34:21]file doc_00111885 [01:34:21]remove file /storage/0390/doc_00111885 [01:34:21]file doc_00111886 [01:34:21]remove file /storage/0390/doc_00111886 [01:34:21]file doc_00111887 [01:34:21]remove file /storage/0390/doc_00111887 [01:34:21]file doc_00111888 [01:34:21]remove file /storage/0390/doc_00111888 [01:34:21]file doc_00111889 [01:34:21]remove file /storage/0390/doc_00111889 [01:34:21]file doc_00111890 [01:34:21]remove file /storage/0390/doc_00111890 [01:34:21]file doc_00111891 [01:34:21]remove file /storage/0390/doc_00111891 [01:34:21]file doc_00111892 [01:34:21]remove file /storage/0390/doc_00111892 [01:34:21]file doc_00111893 [01:34:21]remove file /storage/0390/doc_00111893 [01:34:21]file doc_00111894 [01:34:21]remove file /storage/0390/doc_00111894 [01:34:21]file doc_00111895 [01:34:21]remove file /storage/0390/doc_00111895 [01:34:21]file doc_00111896 [01:34:21]remove file /storage/0390/doc_00111896 [01:34:21]file doc_00111897 [01:34:21]remove file /storage/0390/doc_00111897 [01:34:21]file doc_00111898 [01:34:21]remove file /storage/0390/doc_00111898 [01:34:21]file doc_00111899 [01:34:21]remove file /storage/0390/doc_00111899 [01:34:21]file doc_00111900 [01:34:21]remove file /storage/0390/doc_00111900 [01:34:21]file doc_00111901 [01:34:21]remove file /storage/0390/doc_00111901 [01:34:21]file doc_00111902 [01:34:21]remove file /storage/0390/doc_00111902 [01:34:21]file doc_00111903 [01:34:21]remove file /storage/0390/doc_00111903 [01:34:21]file doc_00111904 [01:34:21]remove file /storage/0390/doc_00111904 [01:34:21]file doc_00111905 [01:34:21]remove file /storage/0390/doc_00111905 [01:34:21]file doc_00111906 [01:34:21]remove file /storage/0390/doc_00111906 [01:34:21]file doc_00111907 [01:34:21]remove file /storage/0390/doc_00111907 [01:34:21]file doc_00111908 [01:34:21]remove file /storage/0390/doc_00111908 [01:34:21]file doc_00111909 [01:34:21]remove file /storage/0390/doc_00111909 [01:34:21]file doc_00111910 [01:34:21]remove file /storage/0390/doc_00111910 [01:34:21]file doc_00111911 [01:34:21]remove file /storage/0390/doc_00111911 [01:34:21]file doc_00111912 [01:34:21]remove file /storage/0390/doc_00111912 [01:34:21]file doc_00111913 [01:34:21]remove file /storage/0390/doc_00111913 [01:34:21]file doc_00111914 [01:34:21]remove file /storage/0390/doc_00111914 [01:34:21]file doc_00111915 [01:34:21]remove file /storage/0390/doc_00111915 [01:34:21]file doc_00111916 [01:34:21]remove file /storage/0390/doc_00111916 [01:34:21]file doc_00111917 [01:34:21]remove file /storage/0390/doc_00111917 [01:34:21]file doc_00111918 [01:34:21]remove file /storage/0390/doc_00111918 [01:34:21]file doc_00111919 [01:34:21]remove file /storage/0390/doc_00111919 [01:34:21]file doc_00111920 [01:34:21]remove file /storage/0390/doc_00111920 [01:34:21]file doc_00111921 [01:34:21]remove file /storage/0390/doc_00111921 [01:34:21]file doc_00111922 [01:34:21]remove file /storage/0390/doc_00111922 [01:34:21]file doc_00111923 [01:34:21]remove file /storage/0390/doc_00111923 [01:34:21]file doc_00111924 [01:34:21]remove file /storage/0390/doc_00111924 [01:34:21]file doc_00111925 [01:34:21]remove file /storage/0390/doc_00111925 [01:34:21]file doc_00111926 [01:34:21]remove file /storage/0390/doc_00111926 [01:34:21]file doc_00111927 [01:34:21]remove file /storage/0390/doc_00111927 [01:34:21]file doc_00111928 [01:34:21]remove file /storage/0390/doc_00111928 [01:34:21]file doc_00111929 [01:34:21]remove file /storage/0390/doc_00111929 [01:34:21]file doc_00111930 [01:34:21]remove file /storage/0390/doc_00111930 [01:34:21]file doc_00111931 [01:34:21]remove file /storage/0390/doc_00111931 [01:34:21]file doc_00111932 [01:34:21]remove file /storage/0390/doc_00111932 [01:34:21]file doc_00111933 [01:34:21]remove file /storage/0390/doc_00111933 [01:34:21]file doc_00111934 [01:34:21]remove file /storage/0390/doc_00111934 [01:34:21]file doc_00111935 [01:34:21]remove file /storage/0390/doc_00111935 [01:34:21]file doc_00111936 [01:34:21]remove file /storage/0390/doc_00111936 [01:34:21]file doc_00111937 [01:34:21]remove file /storage/0390/doc_00111937 [01:34:21]file doc_00111938 [01:34:21]remove file /storage/0390/doc_00111938 [01:34:21]file doc_00111939 [01:34:21]remove file /storage/0390/doc_00111939 [01:34:21]file doc_00111940 [01:34:21]remove file /storage/0390/doc_00111940 [01:34:21]file doc_00111941 [01:34:21]remove file /storage/0390/doc_00111941 [01:34:21]file doc_00111942 [01:34:21]remove file /storage/0390/doc_00111942 [01:34:21]file doc_00111943 [01:34:21]remove file /storage/0390/doc_00111943 [01:34:21]file doc_00111944 [01:34:21]remove file /storage/0390/doc_00111944 [01:34:21]file doc_00111945 [01:34:21]remove file /storage/0390/doc_00111945 [01:34:21]file doc_00111946 [01:34:21]remove file /storage/0390/doc_00111946 [01:34:21]file doc_00111947 [01:34:21]remove file /storage/0390/doc_00111947 [01:34:21]file doc_00111948 [01:34:21]remove file /storage/0390/doc_00111948 [01:34:21]file doc_00111949 [01:34:21]remove file /storage/0390/doc_00111949 [01:34:21]file doc_00111950 [01:34:21]remove file /storage/0390/doc_00111950 [01:34:21]file doc_00111951 [01:34:21]remove file /storage/0390/doc_00111951 [01:34:21]file doc_00111952 [01:34:21]remove file /storage/0390/doc_00111952 [01:34:21]file doc_00111953 [01:34:21]remove file /storage/0390/doc_00111953 [01:34:21]file doc_00111954 [01:34:21]remove file /storage/0390/doc_00111954 [01:34:21]file doc_00111955 [01:34:21]remove file /storage/0390/doc_00111955 [01:34:21]file doc_00111956 [01:34:21]remove file /storage/0390/doc_00111956 [01:34:21]file doc_00111957 [01:34:21]remove file /storage/0390/doc_00111957 [01:34:21]file doc_00111958 [01:34:21]remove file /storage/0390/doc_00111958 [01:34:21]file doc_00111959 [01:34:21]remove file /storage/0390/doc_00111959 [01:34:21]file doc_00111960 [01:34:21]remove file /storage/0390/doc_00111960 [01:34:21]file doc_00111961 [01:34:21]remove file /storage/0390/doc_00111961 [01:34:21]file doc_00111962 [01:34:21]remove file /storage/0390/doc_00111962 [01:34:21]file doc_00111963 [01:34:21]remove file /storage/0390/doc_00111963 [01:34:21]file doc_00111964 [01:34:21]remove file /storage/0390/doc_00111964 [01:34:21]file doc_00111965 [01:34:21]remove file /storage/0390/doc_00111965 [01:34:21]file doc_00111966 [01:34:21]remove file /storage/0390/doc_00111966 [01:34:21]file doc_00111967 [01:34:21]remove file /storage/0390/doc_00111967 [01:34:21]file doc_00111968 [01:34:21]remove file /storage/0390/doc_00111968 [01:34:21]file doc_00111969 [01:34:21]remove file /storage/0390/doc_00111969 [01:34:21]file doc_00111970 [01:34:21]remove file /storage/0390/doc_00111970 [01:34:21]file doc_00111971 [01:34:21]remove file /storage/0390/doc_00111971 [01:34:21]file doc_00111972 [01:34:21]remove file /storage/0390/doc_00111972 [01:34:21]file doc_00111973 [01:34:21]remove file /storage/0390/doc_00111973 [01:34:21]file doc_00111974 [01:34:21]remove file /storage/0390/doc_00111974 [01:34:21]file doc_00111975 [01:34:21]remove file /storage/0390/doc_00111975 [01:34:21]file doc_00111976 [01:34:21]remove file /storage/0390/doc_00111976 [01:34:21]file doc_00111977 [01:34:21]remove file /storage/0390/doc_00111977 [01:34:21]file doc_00111978 [01:34:21]remove file /storage/0390/doc_00111978 [01:34:21]file doc_00111979 [01:34:21]remove file /storage/0390/doc_00111979 [01:34:21]file doc_00111980 [01:34:21]remove file /storage/0390/doc_00111980 [01:34:21]file doc_00111981 [01:34:21]remove file /storage/0390/doc_00111981 [01:34:21]file doc_00111982 [01:34:21]remove file /storage/0390/doc_00111982 [01:34:21]file doc_00111983 [01:34:21]remove file /storage/0390/doc_00111983 [01:34:21]file doc_00111984 [01:34:21]remove file /storage/0390/doc_00111984 [01:34:21]file doc_00111985 [01:34:21]remove file /storage/0390/doc_00111985 [01:34:21]file doc_00111986 [01:34:21]remove file /storage/0390/doc_00111986 [01:34:21]file doc_00111987 [01:34:21]remove file /storage/0390/doc_00111987 [01:34:21]file doc_00111988 [01:34:21]remove file /storage/0390/doc_00111988 [01:34:21]file doc_00111989 [01:34:21]remove file /storage/0390/doc_00111989 [01:34:21]file doc_00111990 [01:34:21]remove file /storage/0390/doc_00111990 [01:34:21]file doc_00111991 [01:34:21]remove file /storage/0390/doc_00111991 [01:34:21]file doc_00111992 [01:34:21]remove file /storage/0390/doc_00111992 [01:34:21]file doc_00111993 [01:34:21]remove file /storage/0390/doc_00111993 [01:34:21]file doc_00111994 [01:34:22]remove file /storage/0390/doc_00111994 [01:34:22]file doc_00111995 [01:34:22]remove file /storage/0390/doc_00111995 [01:34:22]file doc_00111996 [01:34:22]remove file /storage/0390/doc_00111996 [01:34:22]file doc_00111997 [01:34:22]remove file /storage/0390/doc_00111997 [01:34:22]file doc_00111998 [01:34:22]remove file /storage/0390/doc_00111998 [01:34:22]file doc_00111999 [01:34:22]remove file /storage/0390/doc_00111999 [01:34:22]file doc_00112000 [01:34:22]remove file /storage/0390/doc_00112000 [01:34:22]file doc_00112001 [01:34:22]remove file /storage/0390/doc_00112001 [01:34:22]file doc_00112002 [01:34:22]remove file /storage/0390/doc_00112002 [01:34:22]file doc_00112003 [01:34:22]remove file /storage/0390/doc_00112003 [01:34:22]file doc_00112004 [01:34:22]remove file /storage/0390/doc_00112004 [01:34:22]file doc_00112005 [01:34:22]remove file /storage/0390/doc_00112005 [01:34:22]file doc_00112006 [01:34:22]remove file /storage/0390/doc_00112006 [01:34:22]file doc_00112007 [01:34:22]remove file /storage/0390/doc_00112007 [01:34:22]file doc_00112008 [01:34:22]remove file /storage/0390/doc_00112008 [01:34:22]file doc_00112009 [01:34:22]remove file /storage/0390/doc_00112009 [01:34:22]file doc_00112010 [01:34:22]remove file /storage/0390/doc_00112010 [01:34:22]file doc_00112011 [01:34:22]remove file /storage/0390/doc_00112011 [01:34:22]file doc_00112012 [01:34:22]remove file /storage/0390/doc_00112012 [01:34:22]file doc_00112013 [01:34:22]remove file /storage/0390/doc_00112013 [01:34:22]file doc_00112014 [01:34:22]remove file /storage/0390/doc_00112014 [01:34:22]file doc_00112015 [01:34:22]remove file /storage/0390/doc_00112015 [01:34:22]file doc_00112016 [01:34:22]remove file /storage/0390/doc_00112016 [01:34:22]file doc_00112017 [01:34:22]remove file /storage/0390/doc_00112017 [01:34:22]file doc_00112018 [01:34:22]remove file /storage/0390/doc_00112018 [01:34:22]file doc_00112019 [01:34:22]remove file /storage/0390/doc_00112019 [01:34:22]file doc_00112020 [01:34:22]remove file /storage/0390/doc_00112020 [01:34:22]file doc_00112021 [01:34:22]remove file /storage/0390/doc_00112021 [01:34:22]file doc_00112022 [01:34:22]remove file /storage/0390/doc_00112022 [01:34:22]file doc_00112023 [01:34:22]remove file /storage/0390/doc_00112023 [01:34:22]file doc_00112024 [01:34:22]remove file /storage/0390/doc_00112024 [01:34:22]file doc_00112025 [01:34:22]remove file /storage/0390/doc_00112025 [01:34:22]file doc_00112026 [01:34:22]remove file /storage/0390/doc_00112026 [01:34:22]file doc_00112027 [01:34:22]remove file /storage/0390/doc_00112027 [01:34:22]file doc_00112028 [01:34:22]remove file /storage/0390/doc_00112028 [01:34:22]file doc_00112029 [01:34:22]remove file /storage/0390/doc_00112029 [01:34:22]file doc_00112030 [01:34:22]remove file /storage/0390/doc_00112030 [01:34:22]file doc_00112031 [01:34:22]remove file /storage/0390/doc_00112031 [01:34:22]file doc_00112032 [01:34:22]remove file /storage/0390/doc_00112032 [01:34:22]file doc_00112033 [01:34:22]remove file /storage/0390/doc_00112033 [01:34:22]file doc_00112034 [01:34:22]remove file /storage/0390/doc_00112034 [01:34:22]file doc_00112035 [01:34:22]remove file /storage/0390/doc_00112035 [01:34:22]file doc_00112036 [01:34:22]remove file /storage/0390/doc_00112036 [01:34:22]file doc_00112037 [01:34:22]remove file /storage/0390/doc_00112037 [01:34:22]file doc_00112038 [01:34:22]remove file /storage/0390/doc_00112038 [01:34:22]file doc_00112039 [01:34:22]remove file /storage/0390/doc_00112039 [01:34:22]file doc_00112040 [01:34:22]remove file /storage/0390/doc_00112040 [01:34:22]file doc_00112041 [01:34:22]remove file /storage/0390/doc_00112041 [01:34:22]file doc_00112042 [01:34:22]remove file /storage/0390/doc_00112042 [01:34:22]file doc_00112043 [01:34:22]remove file /storage/0390/doc_00112043 [01:34:22]file doc_00112044 [01:34:22]remove file /storage/0390/doc_00112044 [01:34:22]file doc_00112045 [01:34:22]remove file /storage/0390/doc_00112045 [01:34:22]file doc_00112046 [01:34:22]remove file /storage/0390/doc_00112046 [01:34:22]file doc_00112047 [01:34:22]remove file /storage/0390/doc_00112047 [01:34:22]file doc_00112048 [01:34:22]remove file /storage/0390/doc_00112048 [01:34:22]file doc_00112049 [01:34:22]remove file /storage/0390/doc_00112049 [01:34:22]file doc_00112050 [01:34:22]remove file /storage/0390/doc_00112050 [01:34:22]file doc_00112051 [01:34:22]remove file /storage/0390/doc_00112051 [01:34:22]file doc_00112052 [01:34:22]remove file /storage/0390/doc_00112052 [01:34:22]file doc_00112053 [01:34:22]remove file /storage/0390/doc_00112053 [01:34:22]file doc_00112054 [01:34:22]remove file /storage/0390/doc_00112054 [01:34:22]file doc_00112055 [01:34:22]remove file /storage/0390/doc_00112055 [01:34:22]file doc_00112056 [01:34:22]remove file /storage/0390/doc_00112056 [01:34:22]file doc_00112057 [01:34:22]remove file /storage/0390/doc_00112057 [01:34:22]file doc_00112058 [01:34:22]remove file /storage/0390/doc_00112058 [01:34:22]file doc_00112059 [01:34:22]remove file /storage/0390/doc_00112059 [01:34:22]file doc_00112060 [01:34:22]remove file /storage/0390/doc_00112060 [01:34:22]file doc_00112061 [01:34:22]remove file /storage/0390/doc_00112061 [01:34:22]file doc_00112062 [01:34:22]remove file /storage/0390/doc_00112062 [01:34:22]file doc_00112063 [01:34:22]remove file /storage/0390/doc_00112063 [01:34:22]file doc_00112064 [01:34:22]remove file /storage/0390/doc_00112064 [01:34:22]file doc_00112065 [01:34:22]remove file /storage/0390/doc_00112065 [01:34:22]file doc_00112066 [01:34:22]remove file /storage/0390/doc_00112066 [01:34:22]file doc_00112067 [01:34:22]remove file /storage/0390/doc_00112067 [01:34:22]file doc_00112068 [01:34:22]remove file /storage/0390/doc_00112068 [01:34:22]file doc_00112069 [01:34:22]remove file /storage/0390/doc_00112069 [01:34:22]file doc_00112070 [01:34:22]remove file /storage/0390/doc_00112070 [01:34:22]file doc_00112071 [01:34:22]remove file /storage/0390/doc_00112071 [01:34:22]file doc_00112072 [01:34:22]remove file /storage/0390/doc_00112072 [01:34:22]file doc_00112073 [01:34:22]remove file /storage/0390/doc_00112073 [01:34:22]file doc_00112074 [01:34:22]remove file /storage/0390/doc_00112074 [01:34:22]file doc_00112075 [01:34:22]remove file /storage/0390/doc_00112075 [01:34:22]file doc_00112076 [01:34:22]remove file /storage/0390/doc_00112076 [01:34:22]file doc_00112077 [01:34:22]remove file /storage/0390/doc_00112077 [01:34:22]file doc_00112078 [01:34:22]remove file /storage/0390/doc_00112078 [01:34:22]file doc_00112079 [01:34:22]remove file /storage/0390/doc_00112079 [01:34:22]file doc_00112080 [01:34:22]remove file /storage/0390/doc_00112080 [01:34:22]file doc_00112081 [01:34:22]remove file /storage/0390/doc_00112081 [01:34:22]file doc_00112082 [01:34:22]remove file /storage/0390/doc_00112082 [01:34:22]file doc_00112083 [01:34:22]remove file /storage/0390/doc_00112083 [01:34:22]file doc_00112084 [01:34:22]remove file /storage/0390/doc_00112084 [01:34:22]file doc_00112085 [01:34:22]remove file /storage/0390/doc_00112085 [01:34:22]file doc_00112086 [01:34:22]remove file /storage/0390/doc_00112086 [01:34:22]file doc_00112087 [01:34:22]remove file /storage/0390/doc_00112087 [01:34:22]file doc_00112088 [01:34:22]remove file /storage/0390/doc_00112088 [01:34:22]file doc_00112089 [01:34:22]remove file /storage/0390/doc_00112089 [01:34:22]file doc_00112090 [01:34:22]remove file /storage/0390/doc_00112090 [01:34:22]file doc_00112091 [01:34:22]remove file /storage/0390/doc_00112091 [01:34:22]file doc_00112092 [01:34:22]remove file /storage/0390/doc_00112092 [01:34:22]file doc_00112093 [01:34:22]remove file /storage/0390/doc_00112093 [01:34:22]file doc_00112094 [01:34:22]remove file /storage/0390/doc_00112094 [01:34:22]file doc_00112095 [01:34:22]remove file /storage/0390/doc_00112095 [01:34:22]file doc_00112096 [01:34:22]remove file /storage/0390/doc_00112096 [01:34:22]file doc_00112097 [01:34:22]remove file /storage/0390/doc_00112097 [01:34:22]file doc_00112098 [01:34:22]remove file /storage/0390/doc_00112098 [01:34:22]file doc_00112099 [01:34:22]remove file /storage/0390/doc_00112099 [01:34:22]file doc_00112100 [01:34:22]remove file /storage/0390/doc_00112100 [01:34:22]file doc_00112101 [01:34:22]remove file /storage/0390/doc_00112101 [01:34:22]file doc_00112102 [01:34:22]remove file /storage/0390/doc_00112102 [01:34:22]file doc_00112103 [01:34:22]remove file /storage/0390/doc_00112103 [01:34:22]file doc_00112104 [01:34:22]remove file /storage/0390/doc_00112104 [01:34:22]file doc_00112105 [01:34:22]remove file /storage/0390/doc_00112105 [01:34:22]file doc_00112106 [01:34:22]remove file /storage/0390/doc_00112106 [01:34:22]file doc_00112107 [01:34:22]remove file /storage/0390/doc_00112107 [01:34:22]file doc_00112108 [01:34:22]remove file /storage/0390/doc_00112108 [01:34:22]file doc_00112109 [01:34:22]remove file /storage/0390/doc_00112109 [01:34:22]file doc_00112110 [01:34:22]remove file /storage/0390/doc_00112110 [01:34:22]file doc_00112111 [01:34:22]remove file /storage/0390/doc_00112111 [01:34:22]file doc_00112112 [01:34:22]remove file /storage/0390/doc_00112112 [01:34:22]file doc_00112113 [01:34:22]remove file /storage/0390/doc_00112113 [01:34:22]file doc_00112114 [01:34:22]remove file /storage/0390/doc_00112114 [01:34:22]file doc_00112115 [01:34:22]remove file /storage/0390/doc_00112115 [01:34:22]file doc_00112116 [01:34:22]remove file /storage/0390/doc_00112116 [01:34:22]file doc_00112117 [01:34:22]remove file /storage/0390/doc_00112117 [01:34:22]file doc_00112118 [01:34:22]remove file /storage/0390/doc_00112118 [01:34:22]file doc_00112119 [01:34:22]remove file /storage/0390/doc_00112119 [01:34:22]file doc_00112120 [01:34:22]remove file /storage/0390/doc_00112120 [01:34:22]file doc_00112121 [01:34:22]remove file /storage/0390/doc_00112121 [01:34:22]file doc_00112122 [01:34:22]remove file /storage/0390/doc_00112122 [01:34:22]file doc_00112123 [01:34:22]remove file /storage/0390/doc_00112123 [01:34:22]file doc_00112124 [01:34:22]remove file /storage/0390/doc_00112124 [01:34:22]file doc_00112125 [01:34:22]remove file /storage/0390/doc_00112125 [01:34:22]file doc_00112126 [01:34:22]remove file /storage/0390/doc_00112126 [01:34:22]file doc_00112127 [01:34:22]remove file /storage/0390/doc_00112127 [01:34:22]file doc_00112128 [01:34:22]remove file /storage/0390/doc_00112128 [01:34:22]file doc_00112129 [01:34:22]remove file /storage/0390/doc_00112129 [01:34:22]file doc_00112130 [01:34:22]remove file /storage/0390/doc_00112130 [01:34:22]file doc_00112131 [01:34:22]remove file /storage/0390/doc_00112131 [01:34:22]file doc_00112132 [01:34:22]remove file /storage/0390/doc_00112132 [01:34:22]file doc_00112133 [01:34:22]remove file /storage/0390/doc_00112133 [01:34:22]remove dir /storage/0390 [01:34:22]ProcessDocumentItem done err = 0, tmpTLVsize=257 [01:34:22]tlvbuf is 012EFBF0 [01:34:22]SAM_PROTO_ClearQueue [01:34:22]wFMCommunicate request_size=4 [01:34:22]MH_SAM_APDU [01:34:22]CAPDU: 80 09 00 00 [01:34:22]Write to MH i2c: E2 08 00 96 14 80 09 00 00 00 00 00 00 1C [01:34:22]Write i2c OK [01:34:22]MH_I2C_Read... [01:34:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:34:22]Read from MH i2c: E2 [01:34:22]MH_I2C_Read... [01:34:22]Read from MH i2c: E2 03 00 [01:34:22]MH_I2C_Read... [01:34:22]Read from MH i2c: E2 03 00 96 14 00 90 00 1E [01:34:22]RAPDU: 90 00 [01:34:22]wFMCommunicate OK [01:34:22]SAM_PROTO_ClearQueue done [01:34:22]KKMCreateOFDPacket [01:34:22]OFDProtocolAddRootSTLVToBuf [01:34:22]FM_MakeSignedData [01:34:22]FM_MakeSignedData [01:34:22]SAM_PROTO_SignData [01:34:22]wFMCommunicate request_size=4 [01:34:22]MH_SAM_APDU [01:34:22]CAPDU: 80 0D 01 02 [01:34:22]Write to MH i2c: E2 08 00 97 14 80 0D 01 02 00 00 00 00 24 [01:34:22]Write i2c OK [01:34:22]MH_I2C_Read... [01:34:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:34:22]Read from MH i2c: E2 [01:34:22]MH_I2C_Read... [01:34:22]Read from MH i2c: E2 03 00 [01:34:22]MH_I2C_Read... [01:34:22]Read from MH i2c: E2 03 00 97 14 00 90 00 1F [01:34:22]RAPDU: 90 00 [01:34:22]wFMCommunicate OK [01:34:22]wFMCommunicate request_size=255 [01:34:22]MH_SAM_APDU [01:34:22]CAPDU: 80 0D 02 02 FA 02 00 01 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 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 23 2A 76 66 0E 04 04 00 87 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 [01:34:23]Write to MH i2c: E2 02 01 98 14 80 0D 02 02 FA 00 02 00 01 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 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 23 2A 76 66 0E 04 04 00 87 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 00 00 C3 [01:34:23]Write i2c OK [01:34:23]MH_I2C_Read... [01:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:23]Read from MH i2c: E2 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: E2 03 00 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: E2 03 00 98 14 00 90 00 20 [01:34:23]RAPDU: 90 00 [01:34:23]wFMCommunicate OK [01:34:23]wFMCommunicate request_size=16 [01:34:23]MH_SAM_APDU [01:34:23]CAPDU: 80 0D 02 02 0B 33 35 04 06 00 BF E3 EF ED 79 91 [01:34:23]Write to MH i2c: E2 13 00 99 14 80 0D 02 02 0B 00 33 35 04 06 00 BF E3 EF ED 79 91 00 00 37 [01:34:23]Write i2c OK [01:34:23]MH_I2C_Read... [01:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:23]Read from MH i2c: E2 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: E2 03 00 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: E2 03 00 99 14 00 90 00 21 [01:34:23]RAPDU: 90 00 [01:34:23]wFMCommunicate OK [01:34:23]wFMCommunicate request_size=4 [01:34:23]MH_SAM_APDU [01:34:23]CAPDU: 80 0D 03 02 [01:34:23]Write to MH i2c: E2 08 00 9A 14 80 0D 03 02 00 00 00 00 29 [01:34:23]Write i2c OK [01:34:23]MH_I2C_Read... [01:34:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:23]Read from MH i2c: E2 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: E2 0B 00 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: E2 0B 00 9A 14 00 4D 7A 4D 35 1B CF 6B 2B 90 00 F3 [01:34:23]RAPDU: 4D 7A 4D 35 1B CF 6B 2B 90 00 [01:34:23]wFMCommunicate OK [01:34:23]SAM_PROTO_SignData done [01:34:23]FM_MakeSignedData done [01:34:23]CreateOFDProtocolMessage [01:34:23]wFMCommunicate request_size=4 [01:34:23]MH_SAM_APDU [01:34:23]CAPDU: 80 11 00 00 [01:34:23]Write to MH i2c: E2 08 00 9B 14 80 11 00 00 00 00 00 00 29 [01:34:23]Write i2c OK [01:34:23]MH_I2C_Read... [01:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:23]Read from MH i2c: E2 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: E2 17 00 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: E2 17 00 9B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [01:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:34:23]wFMCommunicate OK [01:34:23]CreateOFDProtocolMessage done [01:34:23]OFDSenderStorePacket 112134 [01:34:23]StoreOFDPacket docnum=112134 [01:34:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 15 01 00 00 A9 8D 0D 01 75 D9 5A 02 01 00 02 00 01 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 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 23 2A 76 66 0E 04 04 00 87 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 BF E3 EF ED 79 91 4D 7A 4D 35 1B CF 6B 2B [01:34:23]CheckFolder [01:34:23]dirname=/storage/ofd_packets [01:34:23]CheckFolder done [01:34:23]ProducePacketName [01:34:23]name=ofd_packets/00112134 [01:34:23]NVStorageSaveData ofd_packets/00112134 [01:34:23]File name is /storage/ofd_packets/00112134 [01:34:23]Write 307 bytes [01:34:23]NVStorageSaveData done [01:34:23]OFDSenderStorePacket done [01:34:23]KKMCreateOFDPacket done [01:34:23]NVStorageSaveData kkm_last_timestamp [01:34:23]File name is /storage/kkm_last_timestamp [01:34:23]Write 4 bytes [01:34:23]NVStorageSaveData done [01:34:23]ExternCall_PrintAddStr [01:34:23]wPrintStart [01:34:23]Write to MH i2c: 01 00 00 9C 14 B0 [01:34:23]Write i2c OK [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: 01 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: 01 07 00 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: 01 07 00 9C 14 00 00 00 00 00 FF 0F C5 [01:34:23]RasterBufferAndPrint [01:34:23]line 袨褌褔械褌 芯斜 芯褌泻褉褘褌懈懈 褋屑械薪褘 [01:34:23]line 肖肖袛: 1.0 [01:34:23]line 袠袧袧: 02508201610067 [01:34:23]line 袣邪褋褋懈褉: 袗屑邪薪褌褍褉芯胁 袪. [01:34:23]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [01:34:23]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [01:34:23]line 22.06.2024 01:34 [01:34:23]line 小屑械薪邪: 391 [01:34:23]line 袪袧袦: 0000000000092771 [01:34:23]line 袟袧袦: 0300000198 [01:34:23]line 肖袛: 112134 [01:34:23]line 肖袦: 0000000000875083 [01:34:23]line 肖袩袛: 210985703799185 [01:34:23]written 0, free lines is 4095 [01:34:23]OFD Sender: Processing packet 112134 [packets to send 38, broken 37] [01:34:23]ProducePacketName [01:34:23]name=ofd_packets/00112134 [01:34:23]OFD Sender: To server: 嚂鰌G, [01:34:23]CommunicateWithHost lk.salyk.kg:30040 [01:34:23]ConnectInit lk.salyk.kg [01:34:23]Connected sock=11 [01:34:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 15 01 00 00 A9 8D 0D 01 75 D9 5A 02 01 00 02 00 01 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 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 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 23 2A 76 66 0E 04 04 00 87 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 BF E3 EF ED 79 91 4D 7A 4D 35 1B CF 6B 2B [01:34:23]Write to MH i2c: 01 00 00 AE 14 C2 [01:34:23]Write i2c OK [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: 01 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: 01 07 00 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: 01 07 00 AE 14 00 00 00 00 00 74 0E 4B [01:34:23]RasterBufferAndPrint [01:34:23]line [01:34:23]line [01:34:23]line [01:34:23]line [01:34:23]line [01:34:23]written 0, free lines is 3712 [01:34:23]MH_Cut [01:34:23]Write to MH i2c: D1 01 00 B5 14 01 9B [01:34:23]Write i2c OK [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: D1 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: D1 01 00 [01:34:23]MH_I2C_Read... [01:34:23]Read from MH i2c: D1 01 00 B5 14 00 9A [01:34:23]Write to MH i2c: 01 00 00 B6 14 CA [01:34:23]Write i2c OK [01:34:23]MH_I2C_Read... [01:34:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 12 58 47 00 37 5A 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 30 38 37 35 30 38 33 10 04 04 00 06 B6 01 00 F4 03 04 00 40 C1 75 66 B6 04 01 00 00 BB EC C0 4B E2 40 B2 E6 [01:34:24]CommunicateWithHost err = 0 [01:34:24]CheckOFDResponse [01:34:24]1017 (14) - 77093643461234 [01:34:24]1041 (16) - 0000000000875083 [01:34:24]1040 (4) - 112134 [01:34:24]1012 (4) - 21.06.2024 18:06 [01:34:24]1206 (1) - 0 [01:34:24]OFD Sender: Remove packet 112134 [01:34:24]ProducePacketName [01:34:24]name=ofd_packets/00112134 [01:34:24]NVStorageDeleteData [01:34:24]*** Cut start [01:34:24]*** Partial cut [01:34:24]*** CUTSNS_PIN = 1 [01:34:24]*** CUTSNS_PIN = 0 [01:34:24]OFD Sender: No OFD packet to send [01:34:24]*** Brake cut motor [01:34:24]Read from MH i2c: 01 [01:34:24]MH_I2C_Read... [01:34:24]*** Stop cut motor [01:34:24]*** Cut end [01:34:24]Read from MH i2c: 01 07 00 [01:34:24]MH_I2C_Read... [01:34:24]Read from MH i2c: 01 07 00 B6 14 00 00 00 00 00 FF 0F DF [01:34:24]process_action open_shift done [01:34:24]requested_data is exist [01:34:24]produce_requested_data [01:34:24]requested_item fd.num is exist - process it [01:34:24]SAM_PROTO_GetFieldsCounters [01:34:24]wFMCommunicate request_size=4 [01:34:24]MH_SAM_APDU [01:34:24]CAPDU: 80 13 00 00 [01:34:24]Write to MH i2c: E2 08 00 B7 14 80 13 00 00 00 00 00 00 47 [01:34:24]Write i2c OK [01:34:24]MH_I2C_Read... [01:34:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:25]Read from MH i2c: E2 [01:34:25]MH_I2C_Read... [01:34:25]Read from MH i2c: E2 62 00 [01:34:25]MH_I2C_Read... [01:34:25]Read from MH i2c: E2 62 00 B7 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B6 01 00 0E 04 04 00 87 01 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 AD [01:34:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B6 01 00 0E 04 04 00 87 01 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 [01:34:25]wFMCommunicate OK [01:34:25]SAM_PROTO_GetFieldsCounters done [01:34:25]requested_item shift.num is exist - process it [01:34:25]requested_item shift.opened is exist - process it [01:34:25]req_shift_opened [01:34:25]FM_GetShiftState [01:34:25]SAM_PROTO_GetShiftState [01:34:25]wFMCommunicate request_size=4 [01:34:25]MH_SAM_APDU [01:34:25]CAPDU: 80 13 01 00 [01:34:25]Write to MH i2c: E2 08 00 B8 14 80 13 01 00 00 00 00 00 49 [01:34:25]Write i2c OK [01:34:25]MH_I2C_Read... [01:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:25]Read from MH i2c: E2 [01:34:25]MH_I2C_Read... [01:34:25]Read from MH i2c: E2 0E 00 [01:34:25]MH_I2C_Read... [01:34:25]Read from MH i2c: E2 0E 00 B8 14 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 7E [01:34:25]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:34:25]wFMCommunicate OK [01:34:25]SAM_PROTO_GetShiftState done [01:34:25]FM_GetShiftState done [01:34:25]req_shift_opened done [01:34:25]requested_item shift.open_date is exist - process it [01:34:25]req_shift_open_date [01:34:25]req_shift_open_date done [01:34:25]produce_requested_data done [01:34:25]produce_requested_data return {"fd.num":112134,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [01:34:25]process_action_free open_shift [01:34:25]json_value_free [01:34:25]json_value_free done [01:34:25]process_json_proto returns [01:34:25]Send response to host [01:34:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":112134,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [01:34:25]free response buf [01:34:25]execute_script done [01:34:25]execute_script returns [01:34:25]free content buf [01:34:25]Sock 7.Close socket [01:34:25]Sock 7.Thread stoped [01:34:25]accept exits with 9 [01:34:25]New connection [01:34:25]New thread 3066957156 created [01:34:25]Thread 3066813796 joined [01:34:25]Waiting for new connection... [01:34:25] Sock 9.Parse request [01:34:25]Sock 9.Check first char [01:34:25]Sock 9.First char is OK [01:34:25]request: POST /json_proto HTTP/1.0 [01:34:25]Method: POST [01:34:25]URL: /json_proto [01:34:25]Method is POST - this is cgi request [01:34:25]url: /json_proto [01:34:25]query_string will be loaded in cgi processing [01:34:25]execute_cgi json_proto POST (null) [01:34:25]execute_cgi path=json_proto method=POST [01:34:25]POST find Content-Length [01:34:25]Host: 172.17.59.68:8080 [01:34:25]Content-Length: 331 [01:34:25]Content-Type: application/json [01:34:25] [01:34:25]POST finish read [01:34:25]Found Content-Length = 331 [01:34:25]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" ] } } [01:34:25]execute_script... [01:34:25]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" ] } } [01:34:25]POST & json_proto [01:34:25]process_json_proto [01:34:25]json parsed OK: [01:34:25]protocol is kg_v1.0 [01:34:25]action value=get_value [01:34:25]process_action get_value [01:34:25]cmd_get_value [01:34:25]process_action get_value done [01:34:25]requested_data is exist [01:34:25]produce_requested_data [01:34:25]requested_item fm.sale.total is exist - process it [01:34:25]SAM_PROTO_GetFMData [01:34:25]wFMCommunicate request_size=4 [01:34:25]MH_SAM_APDU [01:34:25]CAPDU: 80 13 03 00 [01:34:25]Write to MH i2c: E2 08 00 B9 14 80 13 03 00 00 00 00 00 4C [01:34:25]Write i2c OK [01:34:25]MH_I2C_Read... [01:34:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:34:25]Read from MH i2c: E2 [01:34:25]MH_I2C_Read... [01:34:25]Read from MH i2c: E2 FD 00 [01:34:25]MH_I2C_Read... [01:34:25]Read from MH i2c: E2 FD 00 B9 14 00 BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 DA [01:34:25]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 F9 B2 01 00 69 04 A3 00 6F 04 04 00 F7 B2 01 00 B1 04 05 00 A7 06 A9 F6 01 70 04 05 00 4C 62 10 E5 01 72 04 04 00 5B A4 98 11 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FD 1C 66 35 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 69 0B 73 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 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 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:34:25]wFMCommunicate OK [01:34:25]wFMCommunicate request_size=4 [01:34:25]MH_SAM_APDU [01:34:25]CAPDU: 80 17 00 00 [01:34:25]Write to MH i2c: E2 08 00 BA 14 80 17 00 00 00 00 00 00 4E [01:34:25]Write i2c OK [01:34:25]MH_I2C_Read... [01:34:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:25]Read from MH i2c: E2 [01:34:25]MH_I2C_Read... [01:34:25]Read from MH i2c: E2 FD 00 [01:34:25]MH_I2C_Read... [01:34:25]Read from MH i2c: E2 FD 00 BA 14 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A2 [01:34:26]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:34:26]wFMCommunicate OK [01:34:26]wFMCommunicate request_size=4 [01:34:26]MH_SAM_APDU [01:34:26]CAPDU: 80 17 00 00 [01:34:26]Write to MH i2c: E2 08 00 BB 14 80 17 00 00 00 00 00 00 4F [01:34:26]Write i2c OK [01:34:26]MH_I2C_Read... [01:34:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:26]Read from MH i2c: E2 [01:34:26]MH_I2C_Read... [01:34:26]Read from MH i2c: E2 FD 00 [01:34:26]MH_I2C_Read... [01:34:26]Read from MH i2c: E2 FD 00 BB 14 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 81 [01:34:26]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:34:26]wFMCommunicate OK [01:34:26]wFMCommunicate request_size=4 [01:34:26]MH_SAM_APDU [01:34:26]CAPDU: 80 17 00 00 [01:34:26]Write to MH i2c: E2 08 00 BC 14 80 17 00 00 00 00 00 00 50 [01:34:26]Write i2c OK [01:34:26]MH_I2C_Read... [01:34:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:26]Read from MH i2c: E2 [01:34:26]MH_I2C_Read... [01:34:26]Read from MH i2c: E2 FD 00 [01:34:26]MH_I2C_Read... [01:34:26]Read from MH i2c: E2 FD 00 BC 14 00 F7 03 00 00 EF 03 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 90 00 C7 [01:34:26]RAPDU: F7 03 00 00 EF 03 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 90 00 [01:34:26]wFMCommunicate OK [01:34:26]wFMCommunicate request_size=4 [01:34:26]MH_SAM_APDU [01:34:26]CAPDU: 80 17 00 00 [01:34:27]Write to MH i2c: E2 08 00 BD 14 80 17 00 00 00 00 00 00 51 [01:34:27]Write i2c OK [01:34:27]MH_I2C_Read... [01:34:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:34:27]Read from MH i2c: E2 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 DA 00 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 DA 00 BD 14 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 32 [01:34:27]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:34:27]wFMCommunicate OK [01:34:27]SAM_PROTO_GetFMData done [01:34:27]requested_item fm.sale_refund.total is exist - process it [01:34:27]requested_item fm.buy.total is exist - process it [01:34:27]requested_item shift.sale.total is exist - process it [01:34:27]SAM_PROTO_GetShiftData [01:34:27]wFMCommunicate request_size=4 [01:34:27]MH_SAM_APDU [01:34:27]CAPDU: 80 13 02 00 [01:34:27]Write to MH i2c: E2 08 00 BE 14 80 13 02 00 00 00 00 00 50 [01:34:27]Write i2c OK [01:34:27]MH_I2C_Read... [01:34:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:34:27]Read from MH i2c: E2 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 FD 00 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 FD 00 BE 14 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 C3 [01:34:27]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 [01:34:28]wFMCommunicate OK [01:34:28]wFMCommunicate request_size=4 [01:34:28]MH_SAM_APDU [01:34:28]CAPDU: 80 17 00 00 [01:34:28]Write to MH i2c: E2 08 00 BF 14 80 17 00 00 00 00 00 00 53 [01:34:28]Write i2c OK [01:34:28]MH_I2C_Read... [01:34:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:28]Read from MH i2c: E2 [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: E2 FD 00 [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: E2 FD 00 BF 14 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 5B [01:34:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [01:34:28]wFMCommunicate OK [01:34:28]wFMCommunicate request_size=4 [01:34:28]MH_SAM_APDU [01:34:28]CAPDU: 80 17 00 00 [01:34:28]Write to MH i2c: E2 08 00 C0 14 80 17 00 00 00 00 00 00 54 [01:34:28]Write i2c OK [01:34:28]MH_I2C_Read... [01:34:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:28]Read from MH i2c: E2 [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: E2 FD 00 [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: E2 FD 00 C0 14 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 26 [01:34:28]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 [01:34:28]wFMCommunicate OK [01:34:28]wFMCommunicate request_size=4 [01:34:28]MH_SAM_APDU [01:34:28]CAPDU: 80 17 00 00 [01:34:28]Write to MH i2c: E2 08 00 C1 14 80 17 00 00 00 00 00 00 55 [01:34:28]Write i2c OK [01:34:28]MH_I2C_Read... [01:34:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:34:29]Read from MH i2c: E2 [01:34:29]MH_I2C_Read... [01:34:29]Read from MH i2c: E2 FD 00 [01:34:29]MH_I2C_Read... [01:34:29]Read from MH i2c: E2 FD 00 C1 14 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 C7 [01:34:29]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 [01:34:29]wFMCommunicate OK [01:34:29]wFMCommunicate request_size=4 [01:34:29]MH_SAM_APDU [01:34:29]CAPDU: 80 17 00 00 [01:34:29]Write to MH i2c: E2 08 00 C2 14 80 17 00 00 00 00 00 00 56 [01:34:29]Write i2c OK [01:34:29]MH_I2C_Read... [01:34:29]OFD Sender: No OFD packet to send [01:34:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [01:34:29]Read from MH i2c: E2 [01:34:29]MH_I2C_Read... [01:34:29]Read from MH i2c: E2 BD 00 [01:34:29]MH_I2C_Read... [01:34:29]Read from MH i2c: E2 BD 00 C2 14 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 3C [01:34:29]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 [01:34:29]wFMCommunicate OK [01:34:29]SAM_PROTO_GetShiftData done [01:34:29]requested_item shift.sale.total_cash is exist - process it [01:34:29]requested_item shift.sale_refund.total is exist - process it [01:34:29]requested_item shift.sale_refund.total_cash is exist - process it [01:34:29]requested_item shift.buy.total is exist - process it [01:34:29]requested_item shift.buy.total_cash is exist - process it [01:34:29]produce_requested_data done [01:34:29]produce_requested_data return {"fm.sale.total":84332397.19,"fm.sale_refund.total":201.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} [01:34:29]process_action_free get_value [01:34:29]json_value_free [01:34:29]json_value_free done [01:34:29]process_json_proto returns [01:34:29]Send response to host [01:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":84332397.19,"fm.sale_refund.total":201.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}}} [01:34:29]free response buf [01:34:29]execute_script done [01:34:29]execute_script returns [01:34:29]free content buf [01:34:29]Sock 9.Close socket [01:34:29]Sock 9.Thread stoped [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:49]OFD Sender: No OFD packet to send [01:35:54]OFD Sender: No OFD packet to send [01:35:59]OFD Sender: No OFD packet to send [01:36:04]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:46]accept exits with 7 [01:36:46]New connection [01:36:46]New thread 3066813796 created [01:36:46]Thread 3066957156 joined [01:36:46]Waiting for new connection... [01:36:46] Sock 7.Parse request [01:36:46]Sock 7.Check first char [01:36:46]Sock 7.First char is OK [01:36:46]request: POST /json_proto HTTP/1.0 [01:36:46]Method: POST [01:36:46]URL: /json_proto [01:36:46]Method is POST - this is cgi request [01:36:46]url: /json_proto [01:36:46]query_string will be loaded in cgi processing [01:36:46]execute_cgi json_proto POST (null) [01:36:46]execute_cgi path=json_proto method=POST [01:36:46]POST find Content-Length [01:36:46]Host: 172.17.59.68:8080 [01:36:46]Content-Length: 679 [01:36:46]Content-Type: application/json [01:36:46] [01:36:46]POST finish read [01:36:46]Found Content-Length = 679 [01:36:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 50.760, "sum" : 3700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3700.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:46]execute_script... [01:36: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)320795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 50.760, "sum" : 3700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3700.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:46]POST & json_proto [01:36:46]process_json_proto [01:36:46]json parsed OK: [01:36:46]protocol is kg_v1.0 [01:36:46]action value=close_receipt [01:36:46]process_action close_receipt [01:36:46]cmd_close_receipt [01:36:46]MH_GetDate [01:36:46]Write to MH i2c: F0 00 00 C3 14 C6 [01:36:46]Write i2c OK [01:36:46]MH_I2C_Read... [01:36:46]Read from MH i2c: F0 [01:36:46]MH_I2C_Read... [01:36:46]Read from MH i2c: F0 09 00 [01:36:46]MH_I2C_Read... [01:36:46]Read from MH i2c: F0 09 00 C3 14 00 B6 2A 76 66 BC EC 60 65 F8 [01:36:46]GetLastDocTimeStamp 1719020067 [01:36:46]current date 1719020214 [01:36:46]FM_GetShiftState [01:36:46]SAM_PROTO_GetShiftState [01:36:46]wFMCommunicate request_size=4 [01:36:46]MH_SAM_APDU [01:36:46]CAPDU: 80 13 01 00 [01:36:46]Write to MH i2c: E2 08 00 C4 14 80 13 01 00 00 00 00 00 55 [01:36:46]Write i2c OK [01:36:46]MH_I2C_Read... [01:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:46]Read from MH i2c: E2 [01:36:46]MH_I2C_Read... [01:36:46]Read from MH i2c: E2 0E 00 [01:36:46]MH_I2C_Read... [01:36:46]Read from MH i2c: E2 0E 00 C4 14 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 8A [01:36:46]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:36:46]wFMCommunicate OK [01:36:46]SAM_PROTO_GetShiftState done [01:36:46]FM_GetShiftState done [01:36:46]opened in 1719020067 [01:36:46]opened+sec_in_day 1719106467 [01:36:46]quantity*price = 370040 [01:36:46]sum+1 = 370041 [01:36:46]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.40 袠孝袨袚袨: 3700.00 袙薪械褋械薪芯: 3700.00 小袛袗效袗: 0.00 袧小袩 1% : 32.75 袧袛小 12% : 392.96 袧邪谢懈褔薪褘屑懈: 3700.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 1 22.06.2024 01:36 小屑械薪邪: 391 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112135 肖袩袛: 143147502226091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T013654&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112135&fm=143147502226091&tin=02508201610067®Number=0000000000092771&sum=370000 [01:36:47]StoreToDocumentArchive [01:36:47]shift 391 fd 112135 [01:36:47]save to /storage/0391/doc_00112135 [01:36:47]save last doc name /storage/0391/doc_00112135 to /storage/kkm_last_doc_name [01:36:47]save OK [01:36:47]Clear old archive folders... [01:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:36:47]tlvbuf is B6EC2740 [01:36:47]SAM_PROTO_ClearQueue [01:36:47]wFMCommunicate request_size=4 [01:36:47]MH_SAM_APDU [01:36:47]CAPDU: 80 09 00 00 [01:36:47]Write to MH i2c: E2 08 00 D1 14 80 09 00 00 00 00 00 00 57 [01:36:47]Write i2c OK [01:36:47]MH_I2C_Read... [01:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:36:47]Read from MH i2c: E2 [01:36:47]MH_I2C_Read... [01:36:47]Read from MH i2c: E2 03 00 [01:36:47]MH_I2C_Read... [01:36:47]Read from MH i2c: E2 03 00 D1 14 00 90 00 59 [01:36:47]RAPDU: 90 00 [01:36:47]wFMCommunicate OK [01:36:47]SAM_PROTO_ClearQueue done [01:36:47]KKMCreateOFDPacket [01:36:47]OFDProtocolAddRootSTLVToBuf [01:36:47]FM_MakeSignedData [01:36:47]FM_MakeSignedData [01:36:47]SAM_PROTO_SignData [01:36:47]wFMCommunicate request_size=4 [01:36:47]MH_SAM_APDU [01:36:47]CAPDU: 80 0D 01 02 [01:36:47]Write to MH i2c: E2 08 00 D2 14 80 0D 01 02 00 00 00 00 5F [01:36:47]Write i2c OK [01:36:47]MH_I2C_Read... [01:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:36:47]Read from MH i2c: E2 [01:36:47]MH_I2C_Read... [01:36:47]Read from MH i2c: E2 03 00 [01:36:47]MH_I2C_Read... [01:36:47]Read from MH i2c: E2 03 00 D2 14 00 90 00 5A [01:36:47]RAPDU: 90 00 [01:36:47]wFMCommunicate OK [01:36:47]wFMCommunicate request_size=255 [01:36:47]MH_SAM_APDU [01:36:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 C6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 78 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 B6 2A 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B6 01 00 35 04 06 00 82 31 20 05 [01:36:47]Write to MH i2c: E2 02 01 D3 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 C6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 78 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 B6 2A 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B6 01 00 35 04 06 00 82 31 20 05 00 00 41 [01:36:47]Write i2c OK [01:36:47]MH_I2C_Read... [01:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:47]Read from MH i2c: E2 [01:36:47]MH_I2C_Read... [01:36:47]Read from MH i2c: E2 03 00 [01:36:47]MH_I2C_Read... [01:36:47]Read from MH i2c: E2 03 00 D3 14 00 90 00 5B [01:36:47]RAPDU: 90 00 [01:36:47]wFMCommunicate OK [01:36:47]wFMCommunicate request_size=7 [01:36:47]MH_SAM_APDU [01:36:47]CAPDU: 80 0D 02 02 02 4A AB [01:36:47]Write to MH i2c: E2 0A 00 D4 14 80 0D 02 02 02 00 4A AB 00 00 5B [01:36:47]Write i2c OK [01:36:47]MH_I2C_Read... [01:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:47]Read from MH i2c: E2 [01:36:47]MH_I2C_Read... [01:36:47]Read from MH i2c: E2 03 00 [01:36:47]MH_I2C_Read... [01:36:47]Read from MH i2c: E2 03 00 D4 14 00 90 00 5C [01:36:47]RAPDU: 90 00 [01:36:47]wFMCommunicate OK [01:36:47]wFMCommunicate request_size=4 [01:36:47]MH_SAM_APDU [01:36:47]CAPDU: 80 0D 03 02 [01:36:47]Write to MH i2c: E2 08 00 D5 14 80 0D 03 02 00 00 00 00 64 [01:36:47]Write i2c OK [01:36:47]MH_I2C_Read... [01:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:36:47]Read from MH i2c: E2 [01:36:47]MH_I2C_Read... [01:36:47]Read from MH i2c: E2 0B 00 [01:36:47]MH_I2C_Read... [01:36:47]Read from MH i2c: E2 0B 00 D5 14 00 D6 66 39 4C 60 26 BF B1 90 00 1C [01:36:47]RAPDU: D6 66 39 4C 60 26 BF B1 90 00 [01:36:47]wFMCommunicate OK [01:36:47]SAM_PROTO_SignData done [01:36:47]FM_MakeSignedData done [01:36:47]CreateOFDProtocolMessage [01:36:47]wFMCommunicate request_size=4 [01:36:47]MH_SAM_APDU [01:36:47]CAPDU: 80 11 00 00 [01:36:47]Write to MH i2c: E2 08 00 D6 14 80 11 00 00 00 00 00 00 64 [01:36:47]Write i2c OK [01:36:47]MH_I2C_Read... [01:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:48]Read from MH i2c: E2 [01:36:48]MH_I2C_Read... [01:36:48]Read from MH i2c: E2 17 00 [01:36:48]MH_I2C_Read... [01:36:48]Read from MH i2c: E2 17 00 D6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B6 [01:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:36:48]wFMCommunicate OK [01:36:48]CreateOFDProtocolMessage done [01:36:48]OFDSenderStorePacket 112135 [01:36:48]StoreOFDPacket docnum=112135 [01:36:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E4 D3 04 01 09 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 C6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 78 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 B6 2A 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B6 01 00 35 04 06 00 82 31 20 05 4A AB D6 66 39 4C 60 26 BF B1 [01:36:48]CheckFolder [01:36:48]dirname=/storage/ofd_packets [01:36:48]CheckFolder done [01:36:48]ProducePacketName [01:36:48]name=ofd_packets/00112135 [01:36:48]NVStorageSaveData ofd_packets/00112135 [01:36:48]File name is /storage/ofd_packets/00112135 [01:36:48]Write 298 bytes [01:36:48]NVStorageSaveData done [01:36:48]OFDSenderStorePacket done [01:36:48]KKMCreateOFDPacket done [01:36:48]NVStorageSaveData kkm_last_timestamp [01:36:48]File name is /storage/kkm_last_timestamp [01:36:48]Write 4 bytes [01:36:48]NVStorageSaveData done [01:36:48]ExternCall_PrintAddStr [01:36:48]wPrintStart [01:36:48]Write to MH i2c: 01 00 00 D7 14 EB [01:36:48]Write i2c OK [01:36:48]MH_I2C_Read... [01:36:48]Read from MH i2c: 01 [01:36:48]MH_I2C_Read... [01:36:48]Read from MH i2c: 01 07 00 [01:36:48]MH_I2C_Read... [01:36:48]Read from MH i2c: 01 07 00 D7 14 00 00 00 00 00 FF 0F 00 [01:36:48]RasterBufferAndPrint [01:36:48]line 小褔械褌 N : (1)320795 [01:36:48]line 袠袧袧: 02508201610067 [01:36:48]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [01:36:48]line 袩袪袨袛袗袞袗 [01:36:48]line 孝袪袣 (袦袪袣, 袚袧袣) : 22 [01:36:48]line 孝芯胁邪褉: 2710194210 [01:36:48]line 袛孝-袣-5 [01:36:48]line 50.760 * 72.90 [01:36:48]line = 3700.40 [01:36:48]line 袧袛小 12% 袧小袩 1% [01:36:48]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [01:36:48]line 袨袣袪校袚袥袝袧袠袝: -0.40 [01:36:48]line 袠孝袨袚袨: 3700.00 [01:36:48]line 袙薪械褋械薪芯: 3700.00 [01:36:48]line 小袛袗效袗: 0.00 [01:36:48]line 袧小袩 1% : 32.75 [01:36:48]line 袧袛小 12% : 392.96 [01:36:48]line 袧邪谢懈褔薪褘屑懈: 3700.00 [01:36:48]line 袘械蟹薪邪谢.: 0.00 [01:36:48]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [01:36:48]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [01:36:48]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [01:36:48]line 效械泻 1 22.06.2024 01:36 [01:36:48]line 小屑械薪邪: 391 肖肖袛: 1.0 [01:36:48]line 袟袧袦: 0300000198 [01:36:48]line 袪袧袦: 0000000000092771 [01:36:48]line 袙械褉褋懈褟 袣袣袦: 001 [01:36:48]line 肖袦: 0000000000875083 [01:36:48]line 肖袛: 112135 [01:36:48]line 肖袩袛: 143147502226091 [01:36:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T013654&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112135&fm=143147502226091&tin=02508201610067®Number=0000000000092771&sum=370000 [01:36:48]OFD Sender: Processing packet 112135 [packets to send 38, broken 37] [01:36:48]ProducePacketName [01:36:48]name=ofd_packets/00112135 [01:36:48]OFD Sender: To server: 嚂鰌G, [01:36:48]CommunicateWithHost lk.salyk.kg:30040 [01:36:48]ConnectInit lk.salyk.kg [01:36:48]written 0, free lines is 4095 [01:36:48]Connected sock=10 [01:36:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E4 D3 04 01 09 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 C6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 78 A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 B6 2A 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B6 01 00 35 04 06 00 82 31 20 05 4A AB D6 66 39 4C 60 26 BF B1 [01:36:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2A D1 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 30 38 37 35 30 38 33 10 04 04 00 07 B6 01 00 F4 03 04 00 D0 C1 75 66 B6 04 01 00 00 EE F1 CD 43 76 36 5C 0C [01:36:48]CommunicateWithHost err = 0 [01:36:48]CheckOFDResponse [01:36:48]1017 (14) - 77093643461234 [01:36:48]1041 (16) - 0000000000875083 [01:36:48]1040 (4) - 112135 [01:36:48]1012 (4) - 21.06.2024 18:09 [01:36:48]1206 (1) - 0 [01:36:48]OFD Sender: Remove packet 112135 [01:36:48]ProducePacketName [01:36:48]name=ofd_packets/00112135 [01:36:48]NVStorageDeleteData [01:36:48]Write to MH i2c: 01 00 00 02 15 17 [01:36:48]Write i2c OK [01:36:48]MH_I2C_Read... [01:36:48]Read from MH i2c: 01 [01:36:48]MH_I2C_Read... [01:36:48]Read from MH i2c: 01 07 00 [01:36:48]MH_I2C_Read... [01:36:48]Read from MH i2c: 01 07 00 02 15 00 00 00 00 00 D7 0C 01 [01:36:48]RasterBufferAndPrint [01:36:48]line [01:36:48]line [01:36:48]line [01:36:48]line [01:36:48]line [01:36:48]written 0, free lines is 3294 [01:36:48]MH_Cut [01:36:48]Write to MH i2c: D1 01 00 09 15 01 F0 [01:36:48]Write i2c OK [01:36:48]MH_I2C_Read... [01:36:48]Read from MH i2c: D1 [01:36:48]MH_I2C_Read... [01:36:48]Read from MH i2c: D1 01 00 [01:36:48]MH_I2C_Read... [01:36:48]Read from MH i2c: D1 01 00 09 15 00 EF [01:36:48]Write to MH i2c: 01 00 00 0A 15 1F [01:36:48]Write i2c OK [01:36:48]MH_I2C_Read... [01:36:49]OFD Sender: No OFD packet to send [01:36:49]*** Cut start [01:36:49]*** Partial cut [01:36:49]*** CUTSNS_PIN = 1 [01:36:49]*** CUTSNS_PIN = 0 [01:36:49]*** Brake cut motor [01:36:50]Read from MH i2c: 01 [01:36:50]MH_I2C_Read... [01:36:50]*** Stop cut motor [01:36:50]*** Cut end [01:36:50]Read from MH i2c: 01 07 00 [01:36:50]MH_I2C_Read... [01:36:50]Read from MH i2c: 01 07 00 0A 15 00 00 00 00 00 FF 0F 34 [01:36:50]process_action close_receipt done [01:36:50]requested_data is exist [01:36:50]produce_requested_data [01:36:50]requested_item fm.sn is exist - process it [01:36:50]wFMCommunicate request_size=4 [01:36:50]MH_SAM_APDU [01:36:50]CAPDU: 80 11 00 00 [01:36:50]Write to MH i2c: E2 08 00 0B 15 80 11 00 00 00 00 00 00 9A [01:36:50]Write i2c OK [01:36:50]MH_I2C_Read... [01:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:50]Read from MH i2c: E2 [01:36:50]MH_I2C_Read... [01:36:50]Read from MH i2c: E2 17 00 [01:36:50]MH_I2C_Read... [01:36:50]Read from MH i2c: E2 17 00 0B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [01:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:36:50]wFMCommunicate OK [01:36:50]requested_item fd.num is exist - process it [01:36:50]SAM_PROTO_GetFieldsCounters [01:36:50]wFMCommunicate request_size=4 [01:36:50]MH_SAM_APDU [01:36:50]CAPDU: 80 13 00 00 [01:36:50]Write to MH i2c: E2 08 00 0C 15 80 13 00 00 00 00 00 00 9D [01:36:50]Write i2c OK [01:36:50]MH_I2C_Read... [01:36:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:36:50]Read from MH i2c: E2 [01:36:50]MH_I2C_Read... [01:36:50]Read from MH i2c: E2 62 00 [01:36:50]MH_I2C_Read... [01:36:50]Read from MH i2c: E2 62 00 0C 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 07 B6 01 00 0E 04 04 00 87 01 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 07 [01:36:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 07 B6 01 00 0E 04 04 00 87 01 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 [01:36:50]wFMCommunicate OK [01:36:50]SAM_PROTO_GetFieldsCounters done [01:36:50]requested_item shift.num is exist - process it [01:36:50]requested_item shift.opened is exist - process it [01:36:50]req_shift_opened [01:36:50]FM_GetShiftState [01:36:50]SAM_PROTO_GetShiftState [01:36:50]wFMCommunicate request_size=4 [01:36:50]MH_SAM_APDU [01:36:50]CAPDU: 80 13 01 00 [01:36:50]Write to MH i2c: E2 08 00 0D 15 80 13 01 00 00 00 00 00 9F [01:36:50]Write i2c OK [01:36:50]MH_I2C_Read... [01:36:50]Read from MH i2c: E2 [01:36:50]MH_I2C_Read... [01:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:50]Read from MH i2c: E2 0E 00 [01:36:50]MH_I2C_Read... [01:36:50]Read from MH i2c: E2 0E 00 0D 15 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D4 [01:36:50]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [01:36:50]wFMCommunicate OK [01:36:50]SAM_PROTO_GetShiftState done [01:36:50]FM_GetShiftState done [01:36:50]req_shift_opened done [01:36:50]requested_item shift.open_date is exist - process it [01:36:50]req_shift_open_date [01:36:50]req_shift_open_date done [01:36:50]produce_requested_data done [01:36:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112135,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [01:36:50]process_action_free close_receipt [01:36:50]json_value_free [01:36:50]json_value_free done [01:36:50]process_json_proto returns [01:36:50]Send response to host [01:36:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112135,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [01:36:50]free response buf [01:36:50]execute_script done [01:36:50]execute_script returns [01:36:50]free content buf [01:36:50]Sock 7.Close socket [01:36:50]Sock 7.Thread stoped [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:43]OFD Sender: No OFD packet to send [02:50:48]OFD Sender: No OFD packet to send [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:34]accept exits with 9 [03:28:34]New connection [03:28:34]New thread 3066957156 created [03:28:34]Thread 3066813796 joined [03:28:34]Waiting for new connection... [03:28:34] Sock 9.Parse request [03:28:34]Sock 9.Check first char [03:28:34]Sock 9.First char is OK [03:28:34]request: POST /json_proto HTTP/1.0 [03:28:34]Method: POST [03:28:34]URL: /json_proto [03:28:34]Method is POST - this is cgi request [03:28:34]url: /json_proto [03:28:34]query_string will be loaded in cgi processing [03:28:34]execute_cgi json_proto POST (null) [03:28:34]execute_cgi path=json_proto method=POST [03:28:34]POST find Content-Length [03:28:34]Host: 172.17.59.68:8080 [03:28:34]Content-Length: 677 [03:28:34]Content-Type: application/json [03:28:34] [03:28:34]POST finish read [03:28:34]Found Content-Length = 677 [03:28:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [03:28:34]execute_script... [03:28: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 : (1)320796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [03:28:34]POST & json_proto [03:28:34]process_json_proto [03:28:34]json parsed OK: [03:28:34]protocol is kg_v1.0 [03:28:34]action value=close_receipt [03:28:34]process_action close_receipt [03:28:34]cmd_close_receipt [03:28:34]MH_GetDate [03:28:34]Write to MH i2c: F0 00 00 0E 15 12 [03:28:34]Write i2c OK [03:28:34]MH_I2C_Read... [03:28:34]Read from MH i2c: F0 [03:28:34]MH_I2C_Read... [03:28:34]Read from MH i2c: F0 09 00 [03:28:34]MH_I2C_Read... [03:28:34]Read from MH i2c: F0 09 00 0E 15 00 ED 44 76 66 BC EC 60 65 95 [03:28:34]GetLastDocTimeStamp 1719020214 [03:28:34]current date 1719026925 [03:28:34]FM_GetShiftState [03:28:34]SAM_PROTO_GetShiftState [03:28:34]wFMCommunicate request_size=4 [03:28:34]MH_SAM_APDU [03:28:34]CAPDU: 80 13 01 00 [03:28:34]Write to MH i2c: E2 08 00 0F 15 80 13 01 00 00 00 00 00 A1 [03:28:34]Write i2c OK [03:28:34]MH_I2C_Read... [03:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:28:34]Read from MH i2c: E2 [03:28:34]MH_I2C_Read... [03:28:34]Read from MH i2c: E2 0E 00 [03:28:34]MH_I2C_Read... [03:28:34]Read from MH i2c: E2 0E 00 0F 15 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 D6 [03:28:34]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [03:28:34]wFMCommunicate OK [03:28:34]SAM_PROTO_GetShiftState done [03:28:34]FM_GetShiftState done [03:28:34]opened in 1719020067 [03:28:34]opened+sec_in_day 1719106467 [03:28:34]quantity*price = 60025 [03:28:34]sum+1 = 60027 [03:28:34]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.26 袠孝袨袚袨: 600.00 袙薪械褋械薪芯: 600.00 小袛袗效袗: 0.00 袧小袩 1% : 5.31 袧袛小 12% : 63.74 袧邪谢懈褔薪褘屑懈: 600.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 2 22.06.2024 03:28 小屑械薪邪: 391 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112136 肖袩袛: 66691401174421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T032845&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112136&fm=66691401174421&tin=02508201610067®Number=0000000000092771&sum=60000 [03:28:36]StoreToDocumentArchive [03:28:36]shift 391 fd 112136 [03:28:36]save to /storage/0391/doc_00112136 [03:28:36]save last doc name /storage/0391/doc_00112136 to /storage/kkm_last_doc_name [03:28:36]save OK [03:28:36]Clear old archive folders... [03:28:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:28:36]tlvbuf is 011795D0 [03:28:36]SAM_PROTO_ClearQueue [03:28:36]wFMCommunicate request_size=4 [03:28:36]MH_SAM_APDU [03:28:36]CAPDU: 80 09 00 00 [03:28:36]Write to MH i2c: E2 08 00 1C 15 80 09 00 00 00 00 00 00 A3 [03:28:36]Write i2c OK [03:28:36]MH_I2C_Read... [03:28:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:28:36]Read from MH i2c: E2 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: E2 03 00 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: E2 03 00 1C 15 00 90 00 A5 [03:28:36]RAPDU: 90 00 [03:28:36]wFMCommunicate OK [03:28:36]SAM_PROTO_ClearQueue done [03:28:36]KKMCreateOFDPacket [03:28:36]OFDProtocolAddRootSTLVToBuf [03:28:36]FM_MakeSignedData [03:28:36]FM_MakeSignedData [03:28:36]SAM_PROTO_SignData [03:28:36]wFMCommunicate request_size=4 [03:28:36]MH_SAM_APDU [03:28:36]CAPDU: 80 0D 01 02 [03:28:36]Write to MH i2c: E2 08 00 1D 15 80 0D 01 02 00 00 00 00 AB [03:28:36]Write i2c OK [03:28:36]MH_I2C_Read... [03:28:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:28:36]Read from MH i2c: E2 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: E2 03 00 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: E2 03 00 1D 15 00 90 00 A6 [03:28:36]RAPDU: 90 00 [03:28:36]wFMCommunicate OK [03:28:36]wFMCommunicate request_size=255 [03:28:36]MH_SAM_APDU [03:28:36]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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 02 00 00 00 F4 03 04 00 ED 44 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B6 01 00 35 04 06 00 3C [03:28:36]Write to MH i2c: E2 02 01 1E 15 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 02 00 00 00 F4 03 04 00 ED 44 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B6 01 00 35 04 06 00 3C 00 00 CE [03:28:36]Write i2c OK [03:28:36]MH_I2C_Read... [03:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:28:36]Read from MH i2c: E2 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: E2 03 00 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: E2 03 00 1E 15 00 90 00 A7 [03:28:36]RAPDU: 90 00 [03:28:36]wFMCommunicate OK [03:28:36]wFMCommunicate request_size=10 [03:28:36]MH_SAM_APDU [03:28:36]CAPDU: 80 0D 02 02 05 A7 CD 46 CD 95 [03:28:36]Write to MH i2c: E2 0D 00 1F 15 80 0D 02 02 05 00 A7 CD 46 CD 95 00 00 D4 [03:28:36]Write i2c OK [03:28:36]MH_I2C_Read... [03:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:28:36]Read from MH i2c: E2 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: E2 03 00 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: E2 03 00 1F 15 00 90 00 A8 [03:28:36]RAPDU: 90 00 [03:28:36]wFMCommunicate OK [03:28:36]wFMCommunicate request_size=4 [03:28:36]MH_SAM_APDU [03:28:36]CAPDU: 80 0D 03 02 [03:28:36]Write to MH i2c: E2 08 00 20 15 80 0D 03 02 00 00 00 00 B0 [03:28:36]Write i2c OK [03:28:36]MH_I2C_Read... [03:28:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:28:36]Read from MH i2c: E2 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: E2 0B 00 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: E2 0B 00 20 15 00 B4 22 51 E2 AD 8A DC 20 90 00 ED [03:28:36]RAPDU: B4 22 51 E2 AD 8A DC 20 90 00 [03:28:36]wFMCommunicate OK [03:28:36]SAM_PROTO_SignData done [03:28:36]FM_MakeSignedData done [03:28:36]CreateOFDProtocolMessage [03:28:36]wFMCommunicate request_size=4 [03:28:36]MH_SAM_APDU [03:28:36]CAPDU: 80 11 00 00 [03:28:36]Write to MH i2c: E2 08 00 21 15 80 11 00 00 00 00 00 00 B0 [03:28:36]Write i2c OK [03:28:36]MH_I2C_Read... [03:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:28:36]Read from MH i2c: E2 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: E2 17 00 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: E2 17 00 21 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 02 [03:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [03:28:36]wFMCommunicate OK [03:28:36]CreateOFDProtocolMessage done [03:28:36]OFDSenderStorePacket 112136 [03:28:36]StoreOFDPacket docnum=112136 [03:28:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 0B 07 01 B5 1E 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 02 00 00 00 F4 03 04 00 ED 44 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B6 01 00 35 04 06 00 3C A7 CD 46 CD 95 B4 22 51 E2 AD 8A DC 20 [03:28:36]CheckFolder [03:28:36]dirname=/storage/ofd_packets [03:28:36]CheckFolder done [03:28:36]ProducePacketName [03:28:36]name=ofd_packets/00112136 [03:28:36]NVStorageSaveData ofd_packets/00112136 [03:28:36]File name is /storage/ofd_packets/00112136 [03:28:36]Write 301 bytes [03:28:36]NVStorageSaveData done [03:28:36]OFDSenderStorePacket done [03:28:36]KKMCreateOFDPacket done [03:28:36]NVStorageSaveData kkm_last_timestamp [03:28:36]File name is /storage/kkm_last_timestamp [03:28:36]Write 4 bytes [03:28:36]NVStorageSaveData done [03:28:36]ExternCall_PrintAddStr [03:28:36]wPrintStart [03:28:36]Write to MH i2c: 01 00 00 22 15 37 [03:28:36]Write i2c OK [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: 01 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: 01 07 00 [03:28:36]MH_I2C_Read... [03:28:36]Read from MH i2c: 01 07 00 22 15 00 00 00 00 00 FF 0F 4C [03:28:36]RasterBufferAndPrint [03:28:36]line 小褔械褌 N : (1)320796 [03:28:36]line 袠袧袧: 02508201610067 [03:28:36]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [03:28:36]line 袩袪袨袛袗袞袗 [03:28:36]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [03:28:36]line 孝芯胁邪褉: 2710124130 [03:28:36]line 袗懈-92-袣-5 [03:28:36]line 9.040 * 66.40 [03:28:36]line = 600.26 [03:28:36]line 袧袛小 12% 袧小袩 1% [03:28:36]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [03:28:36]line 袨袣袪校袚袥袝袧袠袝: -0.26 [03:28:36]line 袠孝袨袚袨: 600.00 [03:28:36]line 袙薪械褋械薪芯: 600.00 [03:28:36]line 小袛袗效袗: 0.00 [03:28:36]line 袧小袩 1% : 5.31 [03:28:36]line 袧袛小 12% : 63.74 [03:28:36]line 袧邪谢懈褔薪褘屑懈: 600.00 [03:28:36]line 袘械蟹薪邪谢.: 0.00 [03:28:36]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [03:28:36]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [03:28:36]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [03:28:36]line 效械泻 2 22.06.2024 03:28 [03:28:36]line 小屑械薪邪: 391 肖肖袛: 1.0 [03:28:36]line 袟袧袦: 0300000198 [03:28:36]line 袪袧袦: 0000000000092771 [03:28:36]line 袙械褉褋懈褟 袣袣袦: 001 [03:28:36]line 肖袦: 0000000000875083 [03:28:36]line 肖袛: 112136 [03:28:36]line 肖袩袛: 66691401174421 [03:28:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T032845&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112136&fm=66691401174421&tin=02508201610067®Number=0000000000092771&sum=60000 [03:28:36]OFD Sender: Processing packet 112136 [packets to send 38, broken 37] [03:28:36]ProducePacketName [03:28:36]name=ofd_packets/00112136 [03:28:36]OFD Sender: To server: 嚂鰌G, [03:28:36]CommunicateWithHost lk.salyk.kg:30040 [03:28:36]ConnectInit lk.salyk.kg [03:28:36]written 0, free lines is 4095 [03:28:37]Connected sock=7 [03:28:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 21 0B 07 01 B5 1E 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 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 E6 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 02 00 00 00 F4 03 04 00 ED 44 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B6 01 00 35 04 06 00 3C A7 CD 46 CD 95 B4 22 51 E2 AD 8A DC 20 [03:28:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0D 6F 47 00 47 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 30 38 37 35 30 38 33 10 04 04 00 08 B6 01 00 F4 03 04 00 05 DC 75 66 B6 04 01 00 00 D1 A6 19 F5 29 F8 42 BD [03:28:37]CommunicateWithHost err = 0 [03:28:37]CheckOFDResponse [03:28:37]1017 (14) - 77093643461234 [03:28:37]1041 (16) - 0000000000875083 [03:28:37]1040 (4) - 112136 [03:28:37]1012 (4) - 21.06.2024 20:01 [03:28:37]1206 (1) - 0 [03:28:37]OFD Sender: Remove packet 112136 [03:28:37]ProducePacketName [03:28:37]name=ofd_packets/00112136 [03:28:37]NVStorageDeleteData [03:28:37]Write to MH i2c: 01 00 00 4D 15 62 [03:28:37]Write i2c OK [03:28:37]MH_I2C_Read... [03:28:37]Read from MH i2c: 01 [03:28:37]MH_I2C_Read... [03:28:37]Read from MH i2c: 01 07 00 [03:28:37]MH_I2C_Read... [03:28:37]Read from MH i2c: 01 07 00 4D 15 00 00 00 00 00 D0 0C 45 [03:28:37]RasterBufferAndPrint [03:28:37]line [03:28:37]line [03:28:37]line [03:28:37]line [03:28:37]line [03:28:37]written 0, free lines is 3287 [03:28:37]MH_Cut [03:28:37]Write to MH i2c: D1 01 00 54 15 01 3B [03:28:37]Write i2c OK [03:28:37]MH_I2C_Read... [03:28:37]Read from MH i2c: D1 [03:28:37]MH_I2C_Read... [03:28:37]Read from MH i2c: D1 01 00 [03:28:37]MH_I2C_Read... [03:28:37]Read from MH i2c: D1 01 00 54 15 00 3A [03:28:37]Write to MH i2c: 01 00 00 55 15 6A [03:28:37]Write i2c OK [03:28:37]MH_I2C_Read... [03:28:37]OFD Sender: No OFD packet to send [03:28:38]*** Cut start [03:28:38]*** Partial cut [03:28:38]*** CUTSNS_PIN = 1 [03:28:38]*** CUTSNS_PIN = 0 [03:28:38]*** Brake cut motor [03:28:38]Read from MH i2c: 01 [03:28:38]MH_I2C_Read... [03:28:38]*** Stop cut motor [03:28:38]*** Cut end [03:28:38]Read from MH i2c: 01 07 00 [03:28:38]MH_I2C_Read... [03:28:38]Read from MH i2c: 01 07 00 55 15 00 00 00 00 00 FF 0F 7F [03:28:38]process_action close_receipt done [03:28:38]requested_data is exist [03:28:38]produce_requested_data [03:28:38]requested_item fm.sn is exist - process it [03:28:38]wFMCommunicate request_size=4 [03:28:38]MH_SAM_APDU [03:28:38]CAPDU: 80 11 00 00 [03:28:38]Write to MH i2c: E2 08 00 56 15 80 11 00 00 00 00 00 00 E5 [03:28:38]Write i2c OK [03:28:38]MH_I2C_Read... [03:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:28:38]Read from MH i2c: E2 [03:28:38]MH_I2C_Read... [03:28:38]Read from MH i2c: E2 17 00 [03:28:38]MH_I2C_Read... [03:28:38]Read from MH i2c: E2 17 00 56 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 37 [03:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [03:28:38]wFMCommunicate OK [03:28:38]requested_item fd.num is exist - process it [03:28:38]SAM_PROTO_GetFieldsCounters [03:28:38]wFMCommunicate request_size=4 [03:28:38]MH_SAM_APDU [03:28:38]CAPDU: 80 13 00 00 [03:28:38]Write to MH i2c: E2 08 00 57 15 80 13 00 00 00 00 00 00 E8 [03:28:38]Write i2c OK [03:28:38]MH_I2C_Read... [03:28:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:28:38]Read from MH i2c: E2 [03:28:38]MH_I2C_Read... [03:28:38]Read from MH i2c: E2 62 00 [03:28:38]MH_I2C_Read... [03:28:38]Read from MH i2c: E2 62 00 57 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 08 B6 01 00 0E 04 04 00 87 01 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 56 [03:28:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 08 B6 01 00 0E 04 04 00 87 01 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 [03:28:38]wFMCommunicate OK [03:28:38]SAM_PROTO_GetFieldsCounters done [03:28:38]requested_item shift.num is exist - process it [03:28:38]requested_item shift.opened is exist - process it [03:28:38]req_shift_opened [03:28:38]FM_GetShiftState [03:28:38]SAM_PROTO_GetShiftState [03:28:38]wFMCommunicate request_size=4 [03:28:38]MH_SAM_APDU [03:28:38]CAPDU: 80 13 01 00 [03:28:38]Write to MH i2c: E2 08 00 58 15 80 13 01 00 00 00 00 00 EA [03:28:38]Write i2c OK [03:28:38]MH_I2C_Read... [03:28:39]Read from MH i2c: E2 [03:28:39]MH_I2C_Read... [03:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:28:39]Read from MH i2c: E2 0E 00 [03:28:39]MH_I2C_Read... [03:28:39]Read from MH i2c: E2 0E 00 58 15 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 1F [03:28:39]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [03:28:39]wFMCommunicate OK [03:28:39]SAM_PROTO_GetShiftState done [03:28:39]FM_GetShiftState done [03:28:39]req_shift_opened done [03:28:39]requested_item shift.open_date is exist - process it [03:28:39]req_shift_open_date [03:28:39]req_shift_open_date done [03:28:39]produce_requested_data done [03:28:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112136,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [03:28:39]process_action_free close_receipt [03:28:39]json_value_free [03:28:39]json_value_free done [03:28:39]process_json_proto returns [03:28:39]Send response to host [03:28:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112136,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [03:28:39]free response buf [03:28:39]execute_script done [03:28:39]execute_script returns [03:28:39]free content buf [03:28:39]Sock 9.Close socket [03:28:39]Sock 9.Thread stoped [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:13]accept exits with 10 [04:23:13]New connection [04:23:13]New thread 3066813796 created [04:23:13]Thread 3066957156 joined [04:23:13]Waiting for new connection... [04:23:13] Sock 10.Parse request [04:23:13]Sock 10.Check first char [04:23:13]Sock 10.First char is OK [04:23:13]request: POST /json_proto HTTP/1.0 [04:23:13]Method: POST [04:23:13]URL: /json_proto [04:23:13]Method is POST - this is cgi request [04:23:13]url: /json_proto [04:23:13]query_string will be loaded in cgi processing [04:23:13]execute_cgi json_proto POST (null) [04:23:13]execute_cgi path=json_proto method=POST [04:23:13]POST find Content-Length [04:23:13]Host: 172.17.59.68:8080 [04:23:13]Content-Length: 682 [04:23:13]Content-Type: application/json [04:23:13] [04:23:13]POST finish read [04:23:13]Found Content-Length = 682 [04:23:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:13]execute_script... [04:23: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)320797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:13]POST & json_proto [04:23:13]process_json_proto [04:23:13]json parsed OK: [04:23:13]protocol is kg_v1.0 [04:23:13]action value=close_receipt [04:23:13]process_action close_receipt [04:23:13]cmd_close_receipt [04:23:13]MH_GetDate [04:23:13]Write to MH i2c: F0 00 00 59 15 5D [04:23:13]Write i2c OK [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: F0 [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: F0 09 00 [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: F0 09 00 59 15 00 BD 51 76 66 BC EC 60 65 BD [04:23:13]GetLastDocTimeStamp 1719026925 [04:23:13]current date 1719030205 [04:23:13]FM_GetShiftState [04:23:13]SAM_PROTO_GetShiftState [04:23:13]wFMCommunicate request_size=4 [04:23:13]MH_SAM_APDU [04:23:13]CAPDU: 80 13 01 00 [04:23:13]Write to MH i2c: E2 08 00 5A 15 80 13 01 00 00 00 00 00 EC [04:23:13]Write i2c OK [04:23:13]MH_I2C_Read... [04:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:13]Read from MH i2c: E2 [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: E2 0E 00 [04:23:13]MH_I2C_Read... [04:23:13]Read from MH i2c: E2 0E 00 5A 15 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 21 [04:23:13]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [04:23:13]wFMCommunicate OK [04:23:13]SAM_PROTO_GetShiftState done [04:23:13]FM_GetShiftState done [04:23:13]opened in 1719020067 [04:23:13]opened+sec_in_day 1719106467 [04:23:13]quantity*price = 200063 [04:23:13]sum+1 = 200064 [04:23:13]Check (price>sum+1) || (price+1 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 袨袣袪校袚袥袝袧袠袝: -0.63 袠孝袨袚袨: 2000.00 袙薪械褋械薪芯: 2000.00 小袛袗效袗: 0.00 袧小袩 1% : 17.70 袧袛小 12% : 212.46 袧邪谢懈褔薪褘屑懈: 2000.00 袘械蟹薪邪谢.: 0.00 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 小袧袨: 袨斜褖懈泄 褉械卸懈屑 效械泻 3 22.06.2024 04:23 小屑械薪邪: 391 肖肖袛: 1.0 袟袧袦: 0300000198 袪袧袦: 0000000000092771 袙械褉褋懈褟 袣袣袦: 001 肖袦: 0000000000875083 肖袛: 112137 肖袩袛: 128981020331965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T042325&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112137&fm=128981020331965&tin=02508201610067®Number=0000000000092771&sum=200000 [04:23:15]StoreToDocumentArchive [04:23:15]shift 391 fd 112137 [04:23:15]save to /storage/0391/doc_00112137 [04:23:15]save last doc name /storage/0391/doc_00112137 to /storage/kkm_last_doc_name [04:23:15]save OK [04:23:15]Clear old archive folders... [04:23:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:23:15]tlvbuf is 0119A700 [04:23:15]SAM_PROTO_ClearQueue [04:23:15]wFMCommunicate request_size=4 [04:23:15]MH_SAM_APDU [04:23:15]CAPDU: 80 09 00 00 [04:23:15]Write to MH i2c: E2 08 00 67 15 80 09 00 00 00 00 00 00 EE [04:23:15]Write i2c OK [04:23:15]MH_I2C_Read... [04:23:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:15]Read from MH i2c: E2 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 03 00 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 03 00 67 15 00 90 00 F0 [04:23:15]RAPDU: 90 00 [04:23:15]wFMCommunicate OK [04:23:15]SAM_PROTO_ClearQueue done [04:23:15]KKMCreateOFDPacket [04:23:15]OFDProtocolAddRootSTLVToBuf [04:23:15]FM_MakeSignedData [04:23:15]FM_MakeSignedData [04:23:15]SAM_PROTO_SignData [04:23:15]wFMCommunicate request_size=4 [04:23:15]MH_SAM_APDU [04:23:15]CAPDU: 80 0D 01 02 [04:23:15]Write to MH i2c: E2 08 00 68 15 80 0D 01 02 00 00 00 00 F6 [04:23:15]Write i2c OK [04:23:15]MH_I2C_Read... [04:23:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:15]Read from MH i2c: E2 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 03 00 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 03 00 68 15 00 90 00 F1 [04:23:15]RAPDU: 90 00 [04:23:15]wFMCommunicate OK [04:23:15]wFMCommunicate request_size=255 [04:23:15]MH_SAM_APDU [04:23: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 BD 51 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B6 01 00 35 04 06 00 75 [04:23:15]Write to MH i2c: E2 02 01 69 15 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 BD 51 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B6 01 00 35 04 06 00 75 00 00 49 [04:23:15]Write i2c OK [04:23:15]MH_I2C_Read... [04:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:15]Read from MH i2c: E2 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 03 00 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 03 00 69 15 00 90 00 F2 [04:23:15]RAPDU: 90 00 [04:23:15]wFMCommunicate OK [04:23:15]wFMCommunicate request_size=10 [04:23:15]MH_SAM_APDU [04:23:15]CAPDU: 80 0D 02 02 05 4E BB E6 4F BD [04:23:15]Write to MH i2c: E2 0D 00 6A 15 80 0D 02 02 05 00 4E BB E6 4F BD 00 00 FE [04:23:15]Write i2c OK [04:23:15]MH_I2C_Read... [04:23:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:15]Read from MH i2c: E2 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 03 00 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 03 00 6A 15 00 90 00 F3 [04:23:15]RAPDU: 90 00 [04:23:15]wFMCommunicate OK [04:23:15]wFMCommunicate request_size=4 [04:23:15]MH_SAM_APDU [04:23:15]CAPDU: 80 0D 03 02 [04:23:15]Write to MH i2c: E2 08 00 6B 15 80 0D 03 02 00 00 00 00 FB [04:23:15]Write i2c OK [04:23:15]MH_I2C_Read... [04:23:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:15]Read from MH i2c: E2 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 0B 00 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 0B 00 6B 15 00 49 47 F3 35 3B F0 2A AD 90 00 B6 [04:23:15]RAPDU: 49 47 F3 35 3B F0 2A AD 90 00 [04:23:15]wFMCommunicate OK [04:23:15]SAM_PROTO_SignData done [04:23:15]FM_MakeSignedData done [04:23:15]CreateOFDProtocolMessage [04:23:15]wFMCommunicate request_size=4 [04:23:15]MH_SAM_APDU [04:23:15]CAPDU: 80 11 00 00 [04:23:15]Write to MH i2c: E2 08 00 6C 15 80 11 00 00 00 00 00 00 FB [04:23:15]Write i2c OK [04:23:15]MH_I2C_Read... [04:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:15]Read from MH i2c: E2 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 17 00 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: E2 17 00 6C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4D [04:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [04:23:15]wFMCommunicate OK [04:23:15]CreateOFDProtocolMessage done [04:23:15]OFDSenderStorePacket 112137 [04:23:15]StoreOFDPacket docnum=112137 [04:23:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 59 07 01 FD 01 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 BD 51 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B6 01 00 35 04 06 00 75 4E BB E6 4F BD 49 47 F3 35 3B F0 2A AD [04:23:15]CheckFolder [04:23:15]dirname=/storage/ofd_packets [04:23:15]CheckFolder done [04:23:15]ProducePacketName [04:23:15]name=ofd_packets/00112137 [04:23:15]NVStorageSaveData ofd_packets/00112137 [04:23:15]File name is /storage/ofd_packets/00112137 [04:23:15]Write 301 bytes [04:23:15]NVStorageSaveData done [04:23:15]OFDSenderStorePacket done [04:23:15]KKMCreateOFDPacket done [04:23:15]NVStorageSaveData kkm_last_timestamp [04:23:15]File name is /storage/kkm_last_timestamp [04:23:15]Write 4 bytes [04:23:15]NVStorageSaveData done [04:23:15]ExternCall_PrintAddStr [04:23:15]wPrintStart [04:23:15]Write to MH i2c: 01 00 00 6D 15 82 [04:23:15]Write i2c OK [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: 01 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: 01 07 00 [04:23:15]MH_I2C_Read... [04:23:15]Read from MH i2c: 01 07 00 6D 15 00 00 00 00 00 FF 0F 97 [04:23:15]RasterBufferAndPrint [04:23:15]line 小褔械褌 N : (1)320797 [04:23:15]line 袠袧袧: 02508201610067 [04:23:15]line 袣芯薪褌褉芯谢褜薪芯-袣邪褋褋芯胁褘泄 效械泻 [04:23:15]line 袩袪袨袛袗袞袗 [04:23:15]line 孝袪袣 (袦袪袣, 袚袧袣) : 11 [04:23:15]line 孝芯胁邪褉: 2710124130 [04:23:15]line 袗懈-92-袣-5 [04:23:15]line 30.130 * 66.40 [04:23:15]line = 2000.63 [04:23:15]line 袧袛小 12% 袧小袩 1% [04:23:15]line > 芯 褉械邪谢懈蟹褍械屑芯屑 褌芯胁邪褉械 [04:23:15]line 袨袣袪校袚袥袝袧袠袝: -0.63 [04:23:15]line 袠孝袨袚袨: 2000.00 [04:23:15]line 袙薪械褋械薪芯: 2000.00 [04:23:15]line 小袛袗效袗: 0.00 [04:23:15]line 袧小袩 1% : 17.70 [04:23:15]line 袧袛小 12% : 212.46 [04:23:15]line 袧邪谢懈褔薪褘屑懈: 2000.00 [04:23:15]line 袘械蟹薪邪谢.: 0.00 [04:23:15]line 袦械褋褌芯: 袗袟小 鈩 65 "袩邪褉褌薪械褉 袧械褎褌褜" [04:23:15]line 袗写褉械褋: 720001, 褋. 袗褌-袘邪褕懈, 褍谢. 孝. 袨屑褍褉蟹邪泻芯胁邪 33/2, 41.204177, 75.859209 [04:23:15]line 小袧袨: 袨斜褖懈泄 褉械卸懈屑 [04:23:15]line 效械泻 3 22.06.2024 04:23 [04:23:15]line 小屑械薪邪: 391 肖肖袛: 1.0 [04:23:15]line 袟袧袦: 0300000198 [04:23:15]line 袪袧袦: 0000000000092771 [04:23:15]line 袙械褉褋懈褟 袣袣袦: 001 [04:23:15]line 肖袦: 0000000000875083 [04:23:15]line 肖袛: 112137 [04:23:15]line 肖袩袛: 128981020331965 [04:23:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240622T042325&type=1&operation_type=1&fn_number=0000000000875083&fd_number=112137&fm=128981020331965&tin=02508201610067®Number=0000000000092771&sum=200000 [04:23:15]OFD Sender: Processing packet 112137 [packets to send 38, broken 37] [04:23:15]ProducePacketName [04:23:15]name=ofd_packets/00112137 [04:23:15]OFD Sender: To server: 嚂鰌G, [04:23:15]CommunicateWithHost lk.salyk.kg:30040 [04:23:15]ConnectInit lk.salyk.kg [04:23:15]written 0, free lines is 4095 [04:23:15]Connected sock=9 [04:23:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 59 07 01 FD 01 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 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 FE 52 00 00 00 00 07 04 06 00 40 0D 03 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 BD 51 76 66 0E 04 04 00 87 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B6 01 00 35 04 06 00 75 4E BB E6 4F BD 49 47 F3 35 3B F0 2A AD [04:23:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 40 B7 47 00 61 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 30 38 37 35 30 38 33 10 04 04 00 09 B6 01 00 F4 03 04 00 D4 E8 75 66 B6 04 01 00 00 E3 7D C2 E4 56 B2 56 89 [04:23:16]CommunicateWithHost err = 0 [04:23:16]CheckOFDResponse [04:23:16]1017 (14) - 77093643461234 [04:23:16]1041 (16) - 0000000000875083 [04:23:16]1040 (4) - 112137 [04:23:16]1012 (4) - 21.06.2024 20:55 [04:23:16]1206 (1) - 0 [04:23:16]OFD Sender: Remove packet 112137 [04:23:16]ProducePacketName [04:23:16]name=ofd_packets/00112137 [04:23:16]NVStorageDeleteData [04:23:16]Write to MH i2c: 01 00 00 98 15 AD [04:23:16]Write i2c OK [04:23:16]MH_I2C_Read... [04:23:16]Read from MH i2c: 01 [04:23:16]MH_I2C_Read... [04:23:16]Read from MH i2c: 01 07 00 [04:23:16]MH_I2C_Read... [04:23:16]Read from MH i2c: 01 07 00 98 15 00 00 00 00 00 E4 0C A4 [04:23:16]RasterBufferAndPrint [04:23:16]line [04:23:16]line [04:23:16]line [04:23:16]line [04:23:16]line [04:23:16]written 0, free lines is 3306 [04:23:16]MH_Cut [04:23:16]Write to MH i2c: D1 01 00 9F 15 01 86 [04:23:16]Write i2c OK [04:23:16]MH_I2C_Read... [04:23:16]Read from MH i2c: D1 [04:23:16]MH_I2C_Read... [04:23:16]Read from MH i2c: D1 01 00 [04:23:16]MH_I2C_Read... [04:23:16]Read from MH i2c: D1 01 00 9F 15 00 85 [04:23:16]Write to MH i2c: 01 00 00 A0 15 B5 [04:23:16]Write i2c OK [04:23:16]MH_I2C_Read... [04:23:16]OFD Sender: No OFD packet to send [04:23:17]*** Cut start [04:23:17]*** Partial cut [04:23:17]*** CUTSNS_PIN = 1 [04:23:17]*** CUTSNS_PIN = 0 [04:23:17]*** Brake cut motor [04:23:17]Read from MH i2c: 01 [04:23:17]MH_I2C_Read... [04:23:17]*** Stop cut motor [04:23:17]*** Cut end [04:23:17]Read from MH i2c: 01 07 00 [04:23:17]MH_I2C_Read... [04:23:17]Read from MH i2c: 01 07 00 A0 15 00 00 00 00 00 FF 0F CA [04:23:17]process_action close_receipt done [04:23:17]requested_data is exist [04:23:17]produce_requested_data [04:23:17]requested_item fm.sn is exist - process it [04:23:17]wFMCommunicate request_size=4 [04:23:17]MH_SAM_APDU [04:23:17]CAPDU: 80 11 00 00 [04:23:17]Write to MH i2c: E2 08 00 A1 15 80 11 00 00 00 00 00 00 30 [04:23:17]Write i2c OK [04:23:17]MH_I2C_Read... [04:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:17]Read from MH i2c: E2 [04:23:17]MH_I2C_Read... [04:23:17]Read from MH i2c: E2 17 00 [04:23:17]MH_I2C_Read... [04:23:17]Read from MH i2c: E2 17 00 A1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 82 [04:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [04:23:17]wFMCommunicate OK [04:23:17]requested_item fd.num is exist - process it [04:23:17]SAM_PROTO_GetFieldsCounters [04:23:17]wFMCommunicate request_size=4 [04:23:17]MH_SAM_APDU [04:23:17]CAPDU: 80 13 00 00 [04:23:17]Write to MH i2c: E2 08 00 A2 15 80 13 00 00 00 00 00 00 33 [04:23:17]Write i2c OK [04:23:17]MH_I2C_Read... [04:23:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:17]Read from MH i2c: E2 [04:23:17]MH_I2C_Read... [04:23:17]Read from MH i2c: E2 62 00 [04:23:17]MH_I2C_Read... [04:23:17]Read from MH i2c: E2 62 00 A2 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 09 B6 01 00 0E 04 04 00 87 01 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 A5 [04:23:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 09 B6 01 00 0E 04 04 00 87 01 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 [04:23:17]wFMCommunicate OK [04:23:17]SAM_PROTO_GetFieldsCounters done [04:23:17]requested_item shift.num is exist - process it [04:23:17]requested_item shift.opened is exist - process it [04:23:17]req_shift_opened [04:23:17]FM_GetShiftState [04:23:17]SAM_PROTO_GetShiftState [04:23:17]wFMCommunicate request_size=4 [04:23:17]MH_SAM_APDU [04:23:17]CAPDU: 80 13 01 00 [04:23:17]Write to MH i2c: E2 08 00 A3 15 80 13 01 00 00 00 00 00 35 [04:23:17]Write i2c OK [04:23:17]MH_I2C_Read... [04:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:17]Read from MH i2c: E2 [04:23:17]MH_I2C_Read... [04:23:17]Read from MH i2c: E2 0E 00 [04:23:17]MH_I2C_Read... [04:23:17]Read from MH i2c: E2 0E 00 A3 15 00 09 00 01 23 2A 76 66 00 00 00 00 90 00 6A [04:23:17]RAPDU: 09 00 01 23 2A 76 66 00 00 00 00 90 00 [04:23:17]wFMCommunicate OK [04:23:17]SAM_PROTO_GetShiftState done [04:23:17]FM_GetShiftState done [04:23:17]req_shift_opened done [04:23:17]requested_item shift.open_date is exist - process it [04:23:17]req_shift_open_date [04:23:17]req_shift_open_date done [04:23:17]produce_requested_data done [04:23:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":112137,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067} [04:23:17]process_action_free close_receipt [04:23:17]json_value_free [04:23:17]json_value_free done [04:23:17]process_json_proto returns [04:23:17]Send response to host [04:23:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":112137,"shift.num":391,"shift.opened":1,"shift.open_date":1719020067}}} [04:23:17]free response buf [04:23:17]execute_script done [04:23:17]execute_script returns [04:23:17]free content buf [04:23:17]Sock 10.Close socket [04:23:17]Sock 10.Thread stoped [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send