[03:45:03]ConnectInit Can't connect to host [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:55]recv_with_timeout no data received [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:51:58]ConnectInit Can't connect to host [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]recv_with_timeout no data received [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:08]ConnectInit Can't connect to host [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [04:38:39]ConnectInit Can't connect to host [04:38:40]ConnectInit Can't take IP for lk.salyk.kg [04:38:40]CommunicateWithHost connect error [04:38:40]CommunicateWithHost err = -1 [04:38:40]OFD Sender: Server communicate error [04:43:02]ConnectInit Can't connect to host [04:43:07]OFD Sender: Processing packet 22326 [packets to send 6, broken 4] [04:43:07]ProducePacketName [04:43:07]name=ofd_packets/00022326 [04:43:07]OFD Sender: To server: pG, [04:43:07]CommunicateWithHost lk.salyk.kg:30040 [04:43:07]ConnectInit lk.salyk.kg [05:50:57]ConnectInit Can't connect to host [05:50:58]ConnectInit Can't take IP for lk.salyk.kg [05:50:58]CommunicateWithHost connect error [05:50:58]CommunicateWithHost err = -1 [05:50:58]OFD Sender: Server communicate error [05:51:03]OFD Sender: Processing packet 22326 [packets to send 8, broken 4] [05:51:03]ProducePacketName [05:51:03]name=ofd_packets/00022326 [05:51:03]OFD Sender: To server: pG, [05:51:03]CommunicateWithHost lk.salyk.kg:30040 [05:51:03]ConnectInit lk.salyk.kg [05:51:04]Connected sock=8 [05:51:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 06 02 00 00 7C 7C FE 01 C8 DD 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 D0 B0 D1 81 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 23 00 00 00 00 07 04 06 00 FC 4D 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 00 00 00 F4 03 04 00 66 B5 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 36 57 00 00 35 04 06 00 0E 5D 0A 15 BC AD 4B B5 5F 9D 77 D4 E3 E6 [05:51:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 90 F5 47 00 B2 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 36 57 00 00 F4 03 04 00 8A 77 6F 66 B6 04 01 00 00 5C FB 23 54 F9 D3 58 02 [05:51:05]CommunicateWithHost err = 0 [05:51:05]CheckOFDResponse [05:51:05]1017 (14) - 77093643461234 [05:51:05]1041 (16) - 0000000000965344 [05:51:05]1040 (4) - 22326 [05:51:05]1012 (4) - 16.06.2024 23:38 [05:51:05]1206 (1) - 0 [05:51:05]OFD Sender: Remove packet 22326 [05:51:05]ProducePacketName [05:51:05]name=ofd_packets/00022326 [05:51:05]NVStorageDeleteData [05:51:05]OFD Sender: Processing packet 22327 [packets to send 7, broken 4] [05:51:05]ProducePacketName [05:51:05]name=ofd_packets/00022327 [05:51:05]OFD Sender: To server: pG, [05:51:05]CommunicateWithHost lk.salyk.kg:30040 [05:51:05]ConnectInit lk.salyk.kg [05:51:06]Connected sock=8 [05:51:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 1C 02 00 00 BE DF 14 02 6A 19 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 13 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 13 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 3E B6 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 37 57 00 00 35 04 06 00 69 D3 4E 9C E7 39 7D 2B EB 98 51 10 54 BA [05:51:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 D4 B8 47 00 D2 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 39 36 35 33 34 34 10 04 04 00 37 57 00 00 F4 03 04 00 8C 77 6F 66 B6 04 01 00 00 C3 66 04 38 A8 0F 82 2F [05:51:06]CommunicateWithHost err = 0 [05:51:06]CheckOFDResponse [05:51:06]1017 (14) - 77093643461234 [05:51:06]1041 (16) - 0000000000965344 [05:51:06]1040 (4) - 22327 [05:51:06]1012 (4) - 16.06.2024 23:38 [05:51:06]1206 (1) - 0 [05:51:06]OFD Sender: Remove packet 22327 [05:51:06]ProducePacketName [05:51:06]name=ofd_packets/00022327 [05:51:06]NVStorageDeleteData [05:51:07]OFD Sender: Processing packet 22328 [packets to send 6, broken 4] [05:51:07]ProducePacketName [05:51:07]name=ofd_packets/00022328 [05:51:07]OFD Sender: To server: pG, [05:51:07]CommunicateWithHost lk.salyk.kg:30040 [05:51:07]ConnectInit lk.salyk.kg [05:51:07]Connected sock=8 [05:51:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 05 02 00 00 8A 91 FD 01 21 86 5A 03 01 00 03 00 F1 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 01 C4 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 38 57 00 00 35 04 06 00 CB D4 63 A4 E3 8C 69 1B 52 5B 2A 54 3B B2 [05:51:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 F9 D8 47 00 51 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 39 36 35 33 34 34 10 04 04 00 38 57 00 00 F4 03 04 00 8E 77 6F 66 B6 04 01 00 00 78 5D B6 3A BD 93 C3 D0 [05:51:08]CommunicateWithHost err = 0 [05:51:08]CheckOFDResponse [05:51:08]1017 (14) - 77093643461234 [05:51:08]1041 (16) - 0000000000965344 [05:51:08]1040 (4) - 22328 [05:51:08]1012 (4) - 16.06.2024 23:38 [05:51:08]1206 (1) - 0 [05:51:08]OFD Sender: Remove packet 22328 [05:51:08]ProducePacketName [05:51:08]name=ofd_packets/00022328 [05:51:08]NVStorageDeleteData [05:51:08]OFD Sender: Processing packet 22329 [packets to send 5, broken 4] [05:51:08]ProducePacketName [05:51:08]name=ofd_packets/00022329 [05:51:08]OFD Sender: To server: pG, [05:51:08]CommunicateWithHost lk.salyk.kg:30040 [05:51:08]ConnectInit lk.salyk.kg [05:51:09]Connected sock=8 [05:51:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 2C 01 00 00 18 73 24 01 57 7A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 35 30 30 36 33 31 31 30 39 31 36 06 04 26 00 D0 9C D0 B0 D1 81 D0 BB D0 BE 20 47 61 7A 70 72 6F 6D 6E 65 66 74 20 53 75 70 65 72 20 31 30 77 34 30 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 41 C4 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 39 57 00 00 35 04 06 00 2F 1B A5 43 25 8F F9 8B EC D9 15 A5 10 AE [05:51:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 6D E3 47 00 EF 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 39 36 35 33 34 34 10 04 04 00 39 57 00 00 F4 03 04 00 8F 77 6F 66 B6 04 01 00 00 C8 24 6C 9A 29 C9 45 E6 [05:51:09]CommunicateWithHost err = 0 [05:51:09]CheckOFDResponse [05:51:09]1017 (14) - 77093643461234 [05:51:09]1041 (16) - 0000000000965344 [05:51:09]1040 (4) - 22329 [05:51:09]1012 (4) - 16.06.2024 23:38 [05:51:09]1206 (1) - 0 [05:51:09]OFD Sender: Remove packet 22329 [05:51:09]ProducePacketName [05:51:09]name=ofd_packets/00022329 [05:51:09]NVStorageDeleteData [05:51:10]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]ConnectInit Can't connect to host [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:49]ConnectInit Can't connect to host [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:37]recv_with_timeout no data received [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:30]accept exits with 11 [06:37:30]New connection [06:37:30]New thread 3066838372 created [06:37:30]Thread 3066695012 joined [06:37:30]Waiting for new connection... [06:37:30] Sock 11.Parse request [06:37:30]Sock 11.Check first char [06:37:30]Sock 11.First char is OK [06:37:30]request: POST /json_proto HTTP/1.0 [06:37:30]Method: POST [06:37:30]URL: /json_proto [06:37:30]Method is POST - this is cgi request [06:37:30]url: /json_proto [06:37:30]query_string will be loaded in cgi processing [06:37:30]execute_cgi json_proto POST (null) [06:37:30]execute_cgi path=json_proto method=POST [06:37:30]POST find Content-Length [06:37:30]Host: 172.17.35.133:8080 [06:37:30]Content-Length: 631 [06:37:30]Content-Type: application/json [06:37:30] [06:37:30]POST finish read [06:37:30]Found Content-Length = 631 [06:37:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254541", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:30]execute_script... [06:37:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254541", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:30]POST & json_proto [06:37:30]process_json_proto [06:37:30]json parsed OK: [06:37:30]protocol is kg_v1.0 [06:37:30]action value=close_receipt [06:37:30]process_action close_receipt [06:37:30]cmd_close_receipt [06:37:30]MH_GetDate [06:37:30]Write to MH i2c: F0 00 00 F8 35 1C [06:37:30]Write i2c OK [06:37:30]MH_I2C_Read... [06:37:30]Read from MH i2c: F0 [06:37:30]MH_I2C_Read... [06:37:30]Read from MH i2c: F0 09 00 [06:37:30]MH_I2C_Read... [06:37:30]Read from MH i2c: F0 09 00 F8 35 00 B6 D9 6F 66 8C 55 28 65 F7 [06:37:30]GetLastDocTimeStamp 1718600769 [06:37:30]current date 1718606262 [06:37:30]FM_GetShiftState [06:37:30]SAM_PROTO_GetShiftState [06:37:30]wFMCommunicate request_size=4 [06:37:30]MH_SAM_APDU [06:37:30]CAPDU: 80 13 01 00 [06:37:30]Write to MH i2c: E2 08 00 F9 35 80 13 01 00 00 00 00 00 AB [06:37:30]Write i2c OK [06:37:30]MH_I2C_Read... [06:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:30]Read from MH i2c: E2 [06:37:30]MH_I2C_Read... [06:37:30]Read from MH i2c: E2 0E 00 [06:37:30]MH_I2C_Read... [06:37:30]Read from MH i2c: E2 0E 00 F9 35 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 5D [06:37:30]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [06:37:30]wFMCommunicate OK [06:37:30]SAM_PROTO_GetShiftState done [06:37:30]FM_GetShiftState done [06:37:30]opened in 1718583887 [06:37:30]opened+sec_in_day 1718670287 [06:37:30]quantity*price = 4500 [06:37:30]sum+1 = 4501 [06:37:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 11 17.06.2024 06:37 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22330 ФПД: 91123498368481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T063742&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22330&fm=91123498368481&tin=02508201610067®Number=0000000000099755&sum=4500 0 [06:37:31]StoreToDocumentArchive [06:37:31]shift 328 fd 22330 [06:37:31]save to /storage/0328/doc_00022330 [06:37:31]save last doc name /storage/0328/doc_00022330 to /storage/kkm_last_doc_name [06:37:31]save OK [06:37:31]Clear old archive folders... [06:37:31]ProcessDocumentItem done err = 0, tmpTLVsize=274 [06:37:31]tlvbuf is 001C1E50 [06:37:31]SAM_PROTO_ClearQueue [06:37:31]wFMCommunicate request_size=4 [06:37:31]MH_SAM_APDU [06:37:31]CAPDU: 80 09 00 00 [06:37:31]Write to MH i2c: E2 08 00 06 36 80 09 00 00 00 00 00 00 AE [06:37:31]Write i2c OK [06:37:31]MH_I2C_Read... [06:37:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:37:31]Read from MH i2c: E2 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 03 00 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 03 00 06 36 00 90 00 B0 [06:37:31]RAPDU: 90 00 [06:37:31]wFMCommunicate OK [06:37:31]SAM_PROTO_ClearQueue done [06:37:31]KKMCreateOFDPacket [06:37:31]OFDProtocolAddRootSTLVToBuf [06:37:31]FM_MakeSignedData [06:37:31]FM_MakeSignedData [06:37:31]SAM_PROTO_SignData [06:37:31]wFMCommunicate request_size=4 [06:37:31]MH_SAM_APDU [06:37:31]CAPDU: 80 0D 01 02 [06:37:31]Write to MH i2c: E2 08 00 07 36 80 0D 01 02 00 00 00 00 B6 [06:37:31]Write i2c OK [06:37:31]MH_I2C_Read... [06:37:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:37:31]Read from MH i2c: E2 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 03 00 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 03 00 07 36 00 90 00 B1 [06:37:31]RAPDU: 90 00 [06:37:31]wFMCommunicate OK [06:37:31]wFMCommunicate request_size=255 [06:37:31]MH_SAM_APDU [06:37:31]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 B6 D9 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 [06:37:31]Write to MH i2c: E2 02 01 08 36 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 B6 D9 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 00 00 AA [06:37:31]Write i2c OK [06:37:31]MH_I2C_Read... [06:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:31]Read from MH i2c: E2 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 03 00 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 03 00 08 36 00 90 00 B2 [06:37:31]RAPDU: 90 00 [06:37:31]wFMCommunicate OK [06:37:31]wFMCommunicate request_size=33 [06:37:31]MH_SAM_APDU [06:37:31]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3A 57 00 00 35 04 06 00 52 E0 57 C0 3D E1 [06:37:31]Write to MH i2c: E2 24 00 09 36 80 0D 02 02 1C 00 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3A 57 00 00 35 04 06 00 52 E0 57 C0 3D E1 00 00 3F [06:37:31]Write i2c OK [06:37:31]MH_I2C_Read... [06:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:31]Read from MH i2c: E2 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 03 00 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 03 00 09 36 00 90 00 B3 [06:37:31]RAPDU: 90 00 [06:37:31]wFMCommunicate OK [06:37:31]wFMCommunicate request_size=4 [06:37:31]MH_SAM_APDU [06:37:31]CAPDU: 80 0D 03 02 [06:37:31]Write to MH i2c: E2 08 00 0A 36 80 0D 03 02 00 00 00 00 BB [06:37:31]Write i2c OK [06:37:31]MH_I2C_Read... [06:37:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:37:31]Read from MH i2c: E2 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 0B 00 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 0B 00 0A 36 00 D6 B4 FE 2E F5 9D 44 15 90 00 5D [06:37:31]RAPDU: D6 B4 FE 2E F5 9D 44 15 90 00 [06:37:31]wFMCommunicate OK [06:37:31]SAM_PROTO_SignData done [06:37:31]FM_MakeSignedData done [06:37:31]CreateOFDProtocolMessage [06:37:31]wFMCommunicate request_size=4 [06:37:31]MH_SAM_APDU [06:37:31]CAPDU: 80 11 00 00 [06:37:31]Write to MH i2c: E2 08 00 0B 36 80 11 00 00 00 00 00 00 BB [06:37:31]Write i2c OK [06:37:31]MH_I2C_Read... [06:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:31]Read from MH i2c: E2 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 17 00 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: E2 17 00 0B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 0D [06:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [06:37:31]wFMCommunicate OK [06:37:31]CreateOFDProtocolMessage done [06:37:31]OFDSenderStorePacket 22330 [06:37:31]StoreOFDPacket docnum=22330 [06:37:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 26 01 00 00 6E 35 1E 01 10 7E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 B6 D9 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3A 57 00 00 35 04 06 00 52 E0 57 C0 3D E1 D6 B4 FE 2E F5 9D 44 15 [06:37:31]CheckFolder [06:37:31]dirname=/storage/ofd_packets [06:37:31]CheckFolder done [06:37:31]ProducePacketName [06:37:31]name=ofd_packets/00022330 [06:37:31]NVStorageSaveData ofd_packets/00022330 [06:37:31]File name is /storage/ofd_packets/00022330 [06:37:31]Write 324 bytes [06:37:31]NVStorageSaveData done [06:37:31]OFDSenderStorePacket done [06:37:31]KKMCreateOFDPacket done [06:37:31]NVStorageSaveData kkm_last_timestamp [06:37:31]File name is /storage/kkm_last_timestamp [06:37:31]Write 4 bytes [06:37:31]NVStorageSaveData done [06:37:31]ExternCall_PrintAddStr [06:37:31]wPrintStart [06:37:31]Write to MH i2c: 01 00 00 0C 36 42 [06:37:31]Write i2c OK [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: 01 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: 01 07 00 [06:37:31]MH_I2C_Read... [06:37:31]Read from MH i2c: 01 07 00 0C 36 00 00 00 00 00 FF 0F 57 [06:37:31]RasterBufferAndPrint [06:37:31]line Счет N : (3)254541 [06:37:31]line ИНН: 02508201610067 [06:37:31]line Контрольно-Кассовый Чек [06:37:31]line ПРОДАЖА [06:37:31]line Товар: 50173822 [06:37:31]line Р/ж Orbit б/сах мята 13,6г [06:37:31]line 1.000 * 45.00 [06:37:31]line = 45.00 [06:37:31]line НДС 12% НСП 1% [06:37:31]line > о реализуемом товаре [06:37:31]line ИТОГО: 45.00 [06:37:31]line НСП 1% : 0.40 [06:37:31]line НДС 12% : 4.78 [06:37:31]line Наличными: 45.00 [06:37:31]line Безнал.: 0.00 [06:37:31]line Место: АЗС № 76 "Партнер Нефть" [06:37:31]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [06:37:31]line СНО: Общий режим [06:37:31]line Чек 11 17.06.2024 06:37 [06:37:31]line Смена: 328 ФФД: 1.0 [06:37:31]line ЗНМ: 0300000200 [06:37:31]line РНМ: 0000000000099755 [06:37:31]line Версия ККМ: 001 [06:37:31]line ФМ: 0000000000965344 [06:37:31]line ФД: 22330 [06:37:31]line ФПД: 91123498368481 [06:37:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T063742&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22330&fm=91123498368481&tin=02508201610067®Number=0000000000099755&sum=4500 [06:37:32]line 0 [06:37:32]OFD Sender: Processing packet 22330 [packets to send 5, broken 4] [06:37:32]ProducePacketName [06:37:32]name=ofd_packets/00022330 [06:37:32]OFD Sender: To server: pG, [06:37:32]CommunicateWithHost lk.salyk.kg:30040 [06:37:32]ConnectInit lk.salyk.kg [06:37:32]written 0, free lines is 4095 [06:37:32]Connected sock=9 [06:37:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 26 01 00 00 6E 35 1E 01 10 7E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 B6 D9 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3A 57 00 00 35 04 06 00 52 E0 57 C0 3D E1 D6 B4 FE 2E F5 9D 44 15 [06:37:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 2C 62 47 00 EB 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 39 36 35 33 34 34 10 04 04 00 3A 57 00 00 F4 03 04 00 6E 82 6F 66 B6 04 01 00 00 A1 22 27 C5 9F 70 FD 46 [06:37:32]CommunicateWithHost err = 0 [06:37:32]CheckOFDResponse [06:37:32]1017 (14) - 77093643461234 [06:37:32]1041 (16) - 0000000000965344 [06:37:32]1040 (4) - 22330 [06:37:32]1012 (4) - 17.06.2024 00:25 [06:37:32]1206 (1) - 0 [06:37:32]OFD Sender: Remove packet 22330 [06:37:32]ProducePacketName [06:37:32]name=ofd_packets/00022330 [06:37:32]NVStorageDeleteData [06:37:32]Write to MH i2c: 01 00 00 34 36 6A [06:37:32]Write i2c OK [06:37:32]MH_I2C_Read... [06:37:32]Read from MH i2c: 01 [06:37:32]MH_I2C_Read... [06:37:32]Read from MH i2c: 01 07 00 [06:37:32]MH_I2C_Read... [06:37:32]Read from MH i2c: 01 07 00 34 36 00 00 00 00 00 29 0D A7 [06:37:32]RasterBufferAndPrint [06:37:32]line [06:37:32]line [06:37:32]line [06:37:32]line [06:37:32]line [06:37:32]written 0, free lines is 3375 [06:37:32]MH_Cut [06:37:32]Write to MH i2c: D1 01 00 3B 36 01 43 [06:37:32]Write i2c OK [06:37:32]MH_I2C_Read... [06:37:32]Read from MH i2c: D1 [06:37:32]MH_I2C_Read... [06:37:32]Read from MH i2c: D1 01 00 [06:37:32]MH_I2C_Read... [06:37:32]Read from MH i2c: D1 01 00 3B 36 00 42 [06:37:32]Write to MH i2c: 01 00 00 3C 36 72 [06:37:32]Write i2c OK [06:37:32]MH_I2C_Read... [06:37:32]OFD Sender: No OFD packet to send [06:37:33]*** Cut start [06:37:33]*** Partial cut [06:37:33]*** CUTSNS_PIN = 1 [06:37:33]*** CUTSNS_PIN = 0 [06:37:33]*** Brake cut motor [06:37:33]Read from MH i2c: 01 [06:37:33]MH_I2C_Read... [06:37:33]*** Stop cut motor [06:37:33]*** Cut end [06:37:33]Read from MH i2c: 01 07 00 [06:37:33]MH_I2C_Read... [06:37:33]Read from MH i2c: 01 07 00 3C 36 00 00 00 00 00 FF 0F 87 [06:37:33]process_action close_receipt done [06:37:33]requested_data is exist [06:37:33]produce_requested_data [06:37:33]requested_item fm.sn is exist - process it [06:37:33]wFMCommunicate request_size=4 [06:37:33]MH_SAM_APDU [06:37:33]CAPDU: 80 11 00 00 [06:37:33]Write to MH i2c: E2 08 00 3D 36 80 11 00 00 00 00 00 00 ED [06:37:33]Write i2c OK [06:37:33]MH_I2C_Read... [06:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:33]Read from MH i2c: E2 [06:37:33]MH_I2C_Read... [06:37:33]Read from MH i2c: E2 17 00 [06:37:33]MH_I2C_Read... [06:37:33]Read from MH i2c: E2 17 00 3D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 3F [06:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [06:37:33]wFMCommunicate OK [06:37:33]requested_item fd.num is exist - process it [06:37:33]SAM_PROTO_GetFieldsCounters [06:37:33]wFMCommunicate request_size=4 [06:37:33]MH_SAM_APDU [06:37:33]CAPDU: 80 13 00 00 [06:37:33]Write to MH i2c: E2 08 00 3E 36 80 13 00 00 00 00 00 00 F0 [06:37:33]Write i2c OK [06:37:33]MH_I2C_Read... [06:37:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:37:34]Read from MH i2c: E2 [06:37:34]MH_I2C_Read... [06:37:34]Read from MH i2c: E2 62 00 [06:37:34]MH_I2C_Read... [06:37:34]Read from MH i2c: E2 62 00 3E 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 3A 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [06:37:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 3A 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:37:34]wFMCommunicate OK [06:37:34]SAM_PROTO_GetFieldsCounters done [06:37:34]requested_item shift.num is exist - process it [06:37:34]requested_item shift.opened is exist - process it [06:37:34]req_shift_opened [06:37:34]FM_GetShiftState [06:37:34]SAM_PROTO_GetShiftState [06:37:34]wFMCommunicate request_size=4 [06:37:34]MH_SAM_APDU [06:37:34]CAPDU: 80 13 01 00 [06:37:34]Write to MH i2c: E2 08 00 3F 36 80 13 01 00 00 00 00 00 F2 [06:37:34]Write i2c OK [06:37:34]MH_I2C_Read... [06:37:34]Read from MH i2c: E2 [06:37:34]MH_I2C_Read... [06:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:34]Read from MH i2c: E2 0E 00 [06:37:34]MH_I2C_Read... [06:37:34]Read from MH i2c: E2 0E 00 3F 36 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 A4 [06:37:34]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [06:37:34]wFMCommunicate OK [06:37:34]SAM_PROTO_GetShiftState done [06:37:34]FM_GetShiftState done [06:37:34]req_shift_opened done [06:37:34]requested_item shift.open_date is exist - process it [06:37:34]req_shift_open_date [06:37:34]req_shift_open_date done [06:37:34]produce_requested_data done [06:37:34]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22330,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [06:37:34]process_action_free close_receipt [06:37:34]json_value_free [06:37:34]json_value_free done [06:37:34]process_json_proto returns [06:37:34]Send response to host [06:37:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22330,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [06:37:34]free response buf [06:37:34]execute_script done [06:37:34]execute_script returns [06:37:34]free content buf [06:37:34]Sock 11.Close socket [06:37:34]Sock 11.Thread stoped [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]accept exits with 8 [06:42:53]New connection [06:42:53]New thread 3066695012 created [06:42:53]Thread 3066838372 joined [06:42:53]Waiting for new connection... [06:42:53] Sock 8.Parse request [06:42:53]Sock 8.Check first char [06:42:53]Sock 8.First char is OK [06:42:53]request: POST /json_proto HTTP/1.0 [06:42:53]Method: POST [06:42:53]URL: /json_proto [06:42:53]Method is POST - this is cgi request [06:42:53]url: /json_proto [06:42:53]query_string will be loaded in cgi processing [06:42:53]execute_cgi json_proto POST (null) [06:42:53]execute_cgi path=json_proto method=POST [06:42:53]POST find Content-Length [06:42:53]Host: 172.17.35.133:8080 [06:42:53]Content-Length: 638 [06:42:53]Content-Type: application/json [06:42:53] [06:42:53]POST finish read [06:42:53]Found Content-Length = 638 [06:42:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254542", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:53]execute_script... [06:42:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254542", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:42:53]POST & json_proto [06:42:53]process_json_proto [06:42:53]json parsed OK: [06:42:53]protocol is kg_v1.0 [06:42:53]action value=close_receipt [06:42:53]process_action close_receipt [06:42:53]cmd_close_receipt [06:42:53]MH_GetDate [06:42:53]Write to MH i2c: F0 00 00 40 36 65 [06:42:53]Write i2c OK [06:42:53]MH_I2C_Read... [06:42:53]Read from MH i2c: F0 [06:42:53]MH_I2C_Read... [06:42:53]Read from MH i2c: F0 09 00 [06:42:53]MH_I2C_Read... [06:42:53]Read from MH i2c: F0 09 00 40 36 00 F9 DA 6F 66 8C 55 28 65 84 [06:42:53]GetLastDocTimeStamp 1718606262 [06:42:53]current date 1718606585 [06:42:53]FM_GetShiftState [06:42:53]SAM_PROTO_GetShiftState [06:42:53]wFMCommunicate request_size=4 [06:42:53]MH_SAM_APDU [06:42:53]CAPDU: 80 13 01 00 [06:42:53]Write to MH i2c: E2 08 00 41 36 80 13 01 00 00 00 00 00 F4 [06:42:53]Write i2c OK [06:42:53]MH_I2C_Read... [06:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:53]Read from MH i2c: E2 [06:42:53]MH_I2C_Read... [06:42:53]Read from MH i2c: E2 0E 00 [06:42:53]MH_I2C_Read... [06:42:53]Read from MH i2c: E2 0E 00 41 36 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 A6 [06:42:53]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [06:42:53]wFMCommunicate OK [06:42:53]SAM_PROTO_GetShiftState done [06:42:53]FM_GetShiftState done [06:42:53]opened in 1718583887 [06:42:53]opened+sec_in_day 1718670287 [06:42:53]quantity*price = 7000 [06:42:53]sum+1 = 7001 [06:42:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 12 17.06.2024 06:43 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22331 ФПД: 148025002533190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T064305&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22331&fm=148025002533190&tin=02508201610067®Number=0000000000099755&sum=7000 0 [06:42:54]StoreToDocumentArchive [06:42:54]shift 328 fd 22331 [06:42:54]save to /storage/0328/doc_00022331 [06:42:54]save last doc name /storage/0328/doc_00022331 to /storage/kkm_last_doc_name [06:42:54]save OK [06:42:54]Clear old archive folders... [06:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=273 [06:42:54]tlvbuf is B6D8C700 [06:42:54]SAM_PROTO_ClearQueue [06:42:54]wFMCommunicate request_size=4 [06:42:54]MH_SAM_APDU [06:42:54]CAPDU: 80 09 00 00 [06:42:54]Write to MH i2c: E2 08 00 4E 36 80 09 00 00 00 00 00 00 F6 [06:42:54]Write i2c OK [06:42:54]MH_I2C_Read... [06:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:42:54]Read from MH i2c: E2 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 4E 36 00 90 00 F8 [06:42:54]RAPDU: 90 00 [06:42:54]wFMCommunicate OK [06:42:54]SAM_PROTO_ClearQueue done [06:42:54]KKMCreateOFDPacket [06:42:54]OFDProtocolAddRootSTLVToBuf [06:42:54]FM_MakeSignedData [06:42:54]FM_MakeSignedData [06:42:54]SAM_PROTO_SignData [06:42:54]wFMCommunicate request_size=4 [06:42:54]MH_SAM_APDU [06:42:54]CAPDU: 80 0D 01 02 [06:42:54]Write to MH i2c: E2 08 00 4F 36 80 0D 01 02 00 00 00 00 FE [06:42:54]Write i2c OK [06:42:54]MH_I2C_Read... [06:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:42:54]Read from MH i2c: E2 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 4F 36 00 90 00 F9 [06:42:54]RAPDU: 90 00 [06:42:54]wFMCommunicate OK [06:42:54]wFMCommunicate request_size=255 [06:42:54]MH_SAM_APDU [06:42:54]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F9 DA 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 [06:42:54]Write to MH i2c: E2 02 01 50 36 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F9 DA 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 00 00 20 [06:42:54]Write i2c OK [06:42:54]MH_I2C_Read... [06:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:54]Read from MH i2c: E2 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 50 36 00 90 00 FA [06:42:54]RAPDU: 90 00 [06:42:54]wFMCommunicate OK [06:42:54]wFMCommunicate request_size=32 [06:42:54]MH_SAM_APDU [06:42:54]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 34 34 10 04 04 00 3B 57 00 00 35 04 06 00 86 A0 C1 B1 A1 46 [06:42:54]Write to MH i2c: E2 23 00 51 36 80 0D 02 02 1B 00 30 30 30 39 36 35 33 34 34 10 04 04 00 3B 57 00 00 35 04 06 00 86 A0 C1 B1 A1 46 00 00 6E [06:42:54]Write i2c OK [06:42:54]MH_I2C_Read... [06:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:42:54]Read from MH i2c: E2 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 03 00 51 36 00 90 00 FB [06:42:54]RAPDU: 90 00 [06:42:54]wFMCommunicate OK [06:42:54]wFMCommunicate request_size=4 [06:42:54]MH_SAM_APDU [06:42:54]CAPDU: 80 0D 03 02 [06:42:54]Write to MH i2c: E2 08 00 52 36 80 0D 03 02 00 00 00 00 03 [06:42:54]Write i2c OK [06:42:54]MH_I2C_Read... [06:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:42:54]Read from MH i2c: E2 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 0B 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 0B 00 52 36 00 06 05 35 35 BF 26 00 65 90 00 C3 [06:42:54]RAPDU: 06 05 35 35 BF 26 00 65 90 00 [06:42:54]wFMCommunicate OK [06:42:54]SAM_PROTO_SignData done [06:42:54]FM_MakeSignedData done [06:42:54]CreateOFDProtocolMessage [06:42:54]wFMCommunicate request_size=4 [06:42:54]MH_SAM_APDU [06:42:54]CAPDU: 80 11 00 00 [06:42:54]Write to MH i2c: E2 08 00 53 36 80 11 00 00 00 00 00 00 03 [06:42:54]Write i2c OK [06:42:54]MH_I2C_Read... [06:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:54]Read from MH i2c: E2 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 17 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: E2 17 00 53 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 55 [06:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [06:42:54]wFMCommunicate OK [06:42:54]CreateOFDProtocolMessage done [06:42:54]OFDSenderStorePacket 22331 [06:42:54]StoreOFDPacket docnum=22331 [06:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 25 01 00 00 11 5D 1D 01 3F D0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F9 DA 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3B 57 00 00 35 04 06 00 86 A0 C1 B1 A1 46 06 05 35 35 BF 26 00 65 [06:42:54]CheckFolder [06:42:54]dirname=/storage/ofd_packets [06:42:54]CheckFolder done [06:42:54]ProducePacketName [06:42:54]name=ofd_packets/00022331 [06:42:54]NVStorageSaveData ofd_packets/00022331 [06:42:54]File name is /storage/ofd_packets/00022331 [06:42:54]Write 323 bytes [06:42:54]NVStorageSaveData done [06:42:54]OFDSenderStorePacket done [06:42:54]KKMCreateOFDPacket done [06:42:54]NVStorageSaveData kkm_last_timestamp [06:42:54]File name is /storage/kkm_last_timestamp [06:42:54]Write 4 bytes [06:42:54]NVStorageSaveData done [06:42:54]ExternCall_PrintAddStr [06:42:54]wPrintStart [06:42:54]Write to MH i2c: 01 00 00 54 36 8A [06:42:54]OFD Sender: Processing packet 22331 [packets to send 5, broken 4] [06:42:54]ProducePacketName [06:42:54]name=ofd_packets/00022331 [06:42:54]OFD Sender: To server: pG, [06:42:54]CommunicateWithHost lk.salyk.kg:30040 [06:42:54]ConnectInit lk.salyk.kg [06:42:54]Write i2c OK [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: 01 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: 01 07 00 [06:42:54]MH_I2C_Read... [06:42:54]Read from MH i2c: 01 07 00 54 36 00 00 00 00 00 FF 0F 9F [06:42:54]RasterBufferAndPrint [06:42:54]line Счет N : (3)254542 [06:42:54]line ИНН: 02508201610067 [06:42:54]line Контрольно-Кассовый Чек [06:42:54]line ПРОДАЖА [06:42:54]line Товар: 4700002082931 [06:42:54]line Водка Хорошая 0,1л [06:42:54]line 1.000 * 70.00 [06:42:54]line = 70.00 [06:42:54]line НДС 12% НСП 1% [06:42:54]line > о реализуемом товаре [06:42:54]line ИТОГО: 70.00 [06:42:54]line НСП 1% : 0.62 [06:42:54]line НДС 12% : 7.43 [06:42:54]line Наличными: 70.00 [06:42:54]line Безнал.: 0.00 [06:42:54]line Место: АЗС № 76 "Партнер Нефть" [06:42:54]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [06:42:54]line СНО: Общий режим [06:42:54]line Чек 12 17.06.2024 06:43 [06:42:54]line Смена: 328 ФФД: 1.0 [06:42:54]line ЗНМ: 0300000200 [06:42:54]line РНМ: 0000000000099755 [06:42:54]line Версия ККМ: 001 [06:42:54]line ФМ: 0000000000965344 [06:42:54]line ФД: 22331 [06:42:54]line ФПД: 148025002533190 [06:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T064305&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22331&fm=148025002533190&tin=02508201610067®Number=0000000000099755&sum=7000 [06:42:55]Connected sock=10 [06:42:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 25 01 00 00 11 5D 1D 01 3F D0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F9 DA 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3B 57 00 00 35 04 06 00 86 A0 C1 B1 A1 46 06 05 35 35 BF 26 00 65 [06:42:55]line 0 [06:42:55]written 0, free lines is 4095 [06:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 5D 23 47 00 64 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 39 36 35 33 34 34 10 04 04 00 3B 57 00 00 F4 03 04 00 B1 83 6F 66 B6 04 01 00 00 55 63 E0 99 3B 8A AE 30 [06:42:55]CommunicateWithHost err = 0 [06:42:55]CheckOFDResponse [06:42:55]1017 (14) - 77093643461234 [06:42:55]1041 (16) - 0000000000965344 [06:42:55]1040 (4) - 22331 [06:42:55]1012 (4) - 17.06.2024 00:30 [06:42:55]1206 (1) - 0 [06:42:55]OFD Sender: Remove packet 22331 [06:42:55]ProducePacketName [06:42:55]name=ofd_packets/00022331 [06:42:55]NVStorageDeleteData [06:42:55]Write to MH i2c: 01 00 00 7C 36 B2 [06:42:55]Write i2c OK [06:42:55]MH_I2C_Read... [06:42:55]Read from MH i2c: 01 [06:42:55]MH_I2C_Read... [06:42:55]Read from MH i2c: 01 07 00 [06:42:55]MH_I2C_Read... [06:42:55]Read from MH i2c: 01 07 00 7C 36 00 00 00 00 00 1E 0D E4 [06:42:55]RasterBufferAndPrint [06:42:55]line [06:42:55]line [06:42:55]line [06:42:55]line [06:42:55]line [06:42:55]written 0, free lines is 3364 [06:42:55]MH_Cut [06:42:55]Write to MH i2c: D1 01 00 83 36 01 8B [06:42:55]Write i2c OK [06:42:55]MH_I2C_Read... [06:42:55]Read from MH i2c: D1 [06:42:55]MH_I2C_Read... [06:42:55]Read from MH i2c: D1 01 00 [06:42:55]MH_I2C_Read... [06:42:55]Read from MH i2c: D1 01 00 83 36 00 8A [06:42:55]Write to MH i2c: 01 00 00 84 36 BA [06:42:55]Write i2c OK [06:42:55]MH_I2C_Read... [06:42:55]OFD Sender: No OFD packet to send [06:42:56]*** Cut start [06:42:56]*** Partial cut [06:42:56]*** CUTSNS_PIN = 1 [06:42:56]*** CUTSNS_PIN = 0 [06:42:56]*** Brake cut motor [06:42:56]Read from MH i2c: 01 [06:42:56]MH_I2C_Read... [06:42:56]*** Stop cut motor [06:42:56]*** Cut end [06:42:56]Read from MH i2c: 01 07 00 [06:42:56]MH_I2C_Read... [06:42:56]Read from MH i2c: 01 07 00 84 36 00 00 00 00 00 FF 0F CF [06:42:56]process_action close_receipt done [06:42:56]requested_data is exist [06:42:56]produce_requested_data [06:42:56]requested_item fm.sn is exist - process it [06:42:56]wFMCommunicate request_size=4 [06:42:56]MH_SAM_APDU [06:42:56]CAPDU: 80 11 00 00 [06:42:56]Write to MH i2c: E2 08 00 85 36 80 11 00 00 00 00 00 00 35 [06:42:56]Write i2c OK [06:42:56]MH_I2C_Read... [06:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:42:56]Read from MH i2c: E2 [06:42:56]MH_I2C_Read... [06:42:56]Read from MH i2c: E2 17 00 [06:42:56]MH_I2C_Read... [06:42:56]Read from MH i2c: E2 17 00 85 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 87 [06:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [06:42:56]wFMCommunicate OK [06:42:56]requested_item fd.num is exist - process it [06:42:56]SAM_PROTO_GetFieldsCounters [06:42:56]wFMCommunicate request_size=4 [06:42:56]MH_SAM_APDU [06:42:56]CAPDU: 80 13 00 00 [06:42:56]Write to MH i2c: E2 08 00 86 36 80 13 00 00 00 00 00 00 38 [06:42:56]Write i2c OK [06:42:56]MH_I2C_Read... [06:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:42:57]Read from MH i2c: E2 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 62 00 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 62 00 86 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 3B 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [06:42:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 3B 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:42:57]wFMCommunicate OK [06:42:57]SAM_PROTO_GetFieldsCounters done [06:42:57]requested_item shift.num is exist - process it [06:42:57]requested_item shift.opened is exist - process it [06:42:57]req_shift_opened [06:42:57]FM_GetShiftState [06:42:57]SAM_PROTO_GetShiftState [06:42:57]wFMCommunicate request_size=4 [06:42:57]MH_SAM_APDU [06:42:57]CAPDU: 80 13 01 00 [06:42:57]Write to MH i2c: E2 08 00 87 36 80 13 01 00 00 00 00 00 3A [06:42:57]Write i2c OK [06:42:57]MH_I2C_Read... [06:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:42:57]Read from MH i2c: E2 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 0E 00 [06:42:57]MH_I2C_Read... [06:42:57]Read from MH i2c: E2 0E 00 87 36 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 EC [06:42:57]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [06:42:57]wFMCommunicate OK [06:42:57]SAM_PROTO_GetShiftState done [06:42:57]FM_GetShiftState done [06:42:57]req_shift_opened done [06:42:57]requested_item shift.open_date is exist - process it [06:42:57]req_shift_open_date [06:42:57]req_shift_open_date done [06:42:57]produce_requested_data done [06:42:57]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22331,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [06:42:57]process_action_free close_receipt [06:42:57]json_value_free [06:42:57]json_value_free done [06:42:57]process_json_proto returns [06:42:57]Send response to host [06:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22331,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [06:42:57]free response buf [06:42:57]execute_script done [06:42:57]execute_script returns [06:42:57]free content buf [06:42:57]Sock 8.Close socket [06:42:57]Sock 8.Thread stoped [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:22]accept exits with 9 [06:44:22]New connection [06:44:22]New thread 3066838372 created [06:44:22]Thread 3066695012 joined [06:44:22]Waiting for new connection... [06:44:22] Sock 9.Parse request [06:44:22]Sock 9.Check first char [06:44:22]Sock 9.First char is OK [06:44:22]request: POST /json_proto HTTP/1.0 [06:44:22]Method: POST [06:44:22]URL: /json_proto [06:44:22]Method is POST - this is cgi request [06:44:22]url: /json_proto [06:44:22]query_string will be loaded in cgi processing [06:44:22]execute_cgi json_proto POST (null) [06:44:22]execute_cgi path=json_proto method=POST [06:44:22]POST find Content-Length [06:44:22]Host: 172.17.35.133:8080 [06:44:22]Content-Length: 883 [06:44:22]Content-Type: application/json [06:44:22] [06:44:22]POST finish read [06:44:22]Found Content-Length = 883 [06:44:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254543", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:22]execute_script... [06:44: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 : (3)254543", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:22]POST & json_proto [06:44:22]process_json_proto [06:44:22]json parsed OK: [06:44:22]protocol is kg_v1.0 [06:44:22]action value=close_receipt [06:44:22]process_action close_receipt [06:44:22]cmd_close_receipt [06:44:22]MH_GetDate [06:44:22]Write to MH i2c: F0 00 00 88 36 AD [06:44:22]Write i2c OK [06:44:22]MH_I2C_Read... [06:44:22]Read from MH i2c: F0 [06:44:22]MH_I2C_Read... [06:44:22]Read from MH i2c: F0 09 00 [06:44:22]MH_I2C_Read... [06:44:22]Read from MH i2c: F0 09 00 88 36 00 52 DB 6F 66 8C 55 28 65 26 [06:44:22]GetLastDocTimeStamp 1718606585 [06:44:22]current date 1718606674 [06:44:22]FM_GetShiftState [06:44:22]SAM_PROTO_GetShiftState [06:44:22]wFMCommunicate request_size=4 [06:44:22]MH_SAM_APDU [06:44:22]CAPDU: 80 13 01 00 [06:44:22]Write to MH i2c: E2 08 00 89 36 80 13 01 00 00 00 00 00 3C [06:44:22]Write i2c OK [06:44:22]MH_I2C_Read... [06:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:22]Read from MH i2c: E2 [06:44:22]MH_I2C_Read... [06:44:22]Read from MH i2c: E2 0E 00 [06:44:22]MH_I2C_Read... [06:44:22]Read from MH i2c: E2 0E 00 89 36 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 EE [06:44:22]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [06:44:22]wFMCommunicate OK [06:44:22]SAM_PROTO_GetShiftState done [06:44:22]FM_GetShiftState done [06:44:22]opened in 1718583887 [06:44:22]opened+sec_in_day 1718670287 [06:44:22]quantity*price = 7000 [06:44:22]sum+1 = 7001 [06:44:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 0.00 Безнал.: 70.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 13 17.06.2024 06:44 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965344 ФД: 22332 ФПД: 42681099354714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T064434&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22332&fm=42681099354714&tin=02508201610067®Number=0000000000099755&sum=7000 0 [06:44:23]StoreToDocumentArchive [06:44:23]shift 328 fd 22332 [06:44:23]save to /storage/0328/doc_00022332 [06:44:23]save last doc name /storage/0328/doc_00022332 to /storage/kkm_last_doc_name [06:44:23]save OK [06:44:23]Clear old archive folders... [06:44:23]ProcessDocumentItem done err = 0, tmpTLVsize=293 [06:44:23]tlvbuf is 0029CBD0 [06:44:23]SAM_PROTO_ClearQueue [06:44:23]wFMCommunicate request_size=4 [06:44:23]MH_SAM_APDU [06:44:23]CAPDU: 80 09 00 00 [06:44:23]Write to MH i2c: E2 08 00 96 36 80 09 00 00 00 00 00 00 3E [06:44:23]Write i2c OK [06:44:23]MH_I2C_Read... [06:44:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:44:23]Read from MH i2c: E2 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 03 00 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 03 00 96 36 00 90 00 40 [06:44:23]RAPDU: 90 00 [06:44:23]wFMCommunicate OK [06:44:23]SAM_PROTO_ClearQueue done [06:44:23]KKMCreateOFDPacket [06:44:23]OFDProtocolAddRootSTLVToBuf [06:44:23]FM_MakeSignedData [06:44:23]FM_MakeSignedData [06:44:23]SAM_PROTO_SignData [06:44:23]wFMCommunicate request_size=4 [06:44:23]MH_SAM_APDU [06:44:23]CAPDU: 80 0D 01 02 [06:44:23]Write to MH i2c: E2 08 00 97 36 80 0D 01 02 00 00 00 00 46 [06:44:23]Write i2c OK [06:44:23]MH_I2C_Read... [06:44:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:44:23]Read from MH i2c: E2 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 03 00 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 03 00 97 36 00 90 00 41 [06:44:23]RAPDU: 90 00 [06:44:23]wFMCommunicate OK [06:44:23]wFMCommunicate request_size=255 [06:44:23]MH_SAM_APDU [06:44:23]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 52 DB 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [06:44:23]Write to MH i2c: E2 02 01 98 36 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 52 DB 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 10 [06:44:23]Write i2c OK [06:44:23]MH_I2C_Read... [06:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:23]Read from MH i2c: E2 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 03 00 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 03 00 98 36 00 90 00 42 [06:44:23]RAPDU: 90 00 [06:44:23]wFMCommunicate OK [06:44:23]wFMCommunicate request_size=52 [06:44:23]MH_SAM_APDU [06:44:23]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3C 57 00 00 35 04 06 00 26 D1 77 C4 02 5A [06:44:23]Write to MH i2c: E2 37 00 99 36 80 0D 02 02 2F 00 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3C 57 00 00 35 04 06 00 26 D1 77 C4 02 5A 00 00 36 [06:44:23]Write i2c OK [06:44:23]MH_I2C_Read... [06:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:23]Read from MH i2c: E2 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 03 00 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 03 00 99 36 00 90 00 43 [06:44:23]RAPDU: 90 00 [06:44:23]wFMCommunicate OK [06:44:23]wFMCommunicate request_size=4 [06:44:23]MH_SAM_APDU [06:44:23]CAPDU: 80 0D 03 02 [06:44:23]Write to MH i2c: E2 08 00 9A 36 80 0D 03 02 00 00 00 00 4B [06:44:23]Write i2c OK [06:44:23]MH_I2C_Read... [06:44:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:44:23]Read from MH i2c: E2 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 0B 00 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 0B 00 9A 36 00 9B C0 D3 BF 30 09 B0 69 90 00 8B [06:44:23]RAPDU: 9B C0 D3 BF 30 09 B0 69 90 00 [06:44:23]wFMCommunicate OK [06:44:23]SAM_PROTO_SignData done [06:44:23]FM_MakeSignedData done [06:44:23]CreateOFDProtocolMessage [06:44:23]wFMCommunicate request_size=4 [06:44:23]MH_SAM_APDU [06:44:23]CAPDU: 80 11 00 00 [06:44:23]Write to MH i2c: E2 08 00 9B 36 80 11 00 00 00 00 00 00 4B [06:44:23]Write i2c OK [06:44:23]MH_I2C_Read... [06:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:23]Read from MH i2c: E2 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 17 00 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: E2 17 00 9B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 9D [06:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [06:44:23]wFMCommunicate OK [06:44:23]CreateOFDProtocolMessage done [06:44:23]OFDSenderStorePacket 22332 [06:44:23]StoreOFDPacket docnum=22332 [06:44:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 39 01 00 00 1B 78 31 01 B7 F5 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 52 DB 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3C 57 00 00 35 04 06 00 26 D1 77 C4 02 5A 9B C0 D3 BF 30 09 B0 69 [06:44:23]CheckFolder [06:44:23]dirname=/storage/ofd_packets [06:44:23]CheckFolder done [06:44:23]ProducePacketName [06:44:23]name=ofd_packets/00022332 [06:44:23]NVStorageSaveData ofd_packets/00022332 [06:44:23]File name is /storage/ofd_packets/00022332 [06:44:23]Write 343 bytes [06:44:23]NVStorageSaveData done [06:44:23]OFDSenderStorePacket done [06:44:23]KKMCreateOFDPacket done [06:44:23]NVStorageSaveData kkm_last_timestamp [06:44:23]File name is /storage/kkm_last_timestamp [06:44:23]Write 4 bytes [06:44:23]NVStorageSaveData done [06:44:23]ExternCall_PrintAddStr [06:44:23]wPrintStart [06:44:23]Write to MH i2c: 01 00 00 9C 36 D2 [06:44:23]Write i2c OK [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: 01 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: 01 07 00 [06:44:23]MH_I2C_Read... [06:44:23]Read from MH i2c: 01 07 00 9C 36 00 00 00 00 00 FF 0F E7 [06:44:23]RasterBufferAndPrint [06:44:23]line Счет N : (3)254543 [06:44:23]line ИНН: 02508201610067 [06:44:23]line Контрольно-Кассовый Чек [06:44:23]line ПРОДАЖА [06:44:23]line Товар: 4870202521148 [06:44:23]line Напиток MAXI чай зел лимон 0.45л [06:44:23]line 1.000 * 70.00 [06:44:23]line = 70.00 [06:44:23]line НДС 12% НСП 1% [06:44:23]line > о реализуемом товаре [06:44:23]line ИТОГО: 70.00 [06:44:23]line НСП 1% : 0.62 [06:44:23]line НДС 12% : 7.43 [06:44:23]line Наличными: 0.00 [06:44:23]line Безнал.: 70.00 [06:44:23]line Место: АЗС № 76 "Партнер Нефть" [06:44:23]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [06:44:23]line СНО: Общий режим [06:44:23]line Чек 13 17.06.2024 06:44 [06:44:23]line Смена: 328 ФФД: 1.0 [06:44:23]line ЗНМ: 0300000200 [06:44:23]line РНМ: 0000000000099755 [06:44:23]line Версия ККМ: 001 [06:44:23]line Платежная система: АКБ Кыргызстан [06:44:23]line ФМ: 0000000000965344 [06:44:23]line ФД: 22332 [06:44:23]line ФПД: 42681099354714 [06:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T064434&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22332&fm=42681099354714&tin=02508201610067®Number=0000000000099755&sum=7000 [06:44:24]line 0 [06:44:24]OFD Sender: Processing packet 22332 [packets to send 5, broken 4] [06:44:24]ProducePacketName [06:44:24]name=ofd_packets/00022332 [06:44:24]OFD Sender: To server: pG, [06:44:24]CommunicateWithHost lk.salyk.kg:30040 [06:44:24]ConnectInit lk.salyk.kg [06:44:24]written 0, free lines is 4095 [06:44:24]Connected sock=10 [06:44:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 39 01 00 00 1B 78 31 01 B7 F5 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 52 DB 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3C 57 00 00 35 04 06 00 26 D1 77 C4 02 5A 9B C0 D3 BF 30 09 B0 69 [06:44:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 A5 BE 47 00 30 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 39 36 35 33 34 34 10 04 04 00 3C 57 00 00 F4 03 04 00 0A 84 6F 66 B6 04 01 00 00 13 00 D0 D4 EB 85 58 CC [06:44:24]CommunicateWithHost err = 0 [06:44:24]CheckOFDResponse [06:44:24]1017 (14) - 77093643461234 [06:44:24]1041 (16) - 0000000000965344 [06:44:24]1040 (4) - 22332 [06:44:24]1012 (4) - 17.06.2024 00:32 [06:44:24]1206 (1) - 0 [06:44:24]OFD Sender: Remove packet 22332 [06:44:24]ProducePacketName [06:44:24]name=ofd_packets/00022332 [06:44:24]NVStorageDeleteData [06:44:24]Write to MH i2c: 01 00 00 C7 36 FD [06:44:24]Write i2c OK [06:44:24]MH_I2C_Read... [06:44:24]Read from MH i2c: 01 [06:44:24]MH_I2C_Read... [06:44:24]Read from MH i2c: 01 07 00 [06:44:24]MH_I2C_Read... [06:44:24]Read from MH i2c: 01 07 00 C7 36 00 00 00 00 00 F5 0C 05 [06:44:24]RasterBufferAndPrint [06:44:24]line [06:44:24]line [06:44:24]line [06:44:24]line [06:44:24]line [06:44:24]written 0, free lines is 3327 [06:44:24]MH_Cut [06:44:24]Write to MH i2c: D1 01 00 CE 36 01 D6 [06:44:24]Write i2c OK [06:44:24]MH_I2C_Read... [06:44:24]Read from MH i2c: D1 [06:44:24]MH_I2C_Read... [06:44:24]Read from MH i2c: D1 01 00 [06:44:24]MH_I2C_Read... [06:44:24]Read from MH i2c: D1 01 00 CE 36 00 D5 [06:44:24]Write to MH i2c: 01 00 00 CF 36 05 [06:44:24]Write i2c OK [06:44:24]MH_I2C_Read... [06:44:24]OFD Sender: No OFD packet to send [06:44:25]*** Cut start [06:44:25]*** Partial cut [06:44:25]*** CUTSNS_PIN = 1 [06:44:25]*** CUTSNS_PIN = 0 [06:44:25]*** Brake cut motor [06:44:25]Read from MH i2c: 01 [06:44:25]MH_I2C_Read... [06:44:25]*** Stop cut motor [06:44:25]*** Cut end [06:44:25]Read from MH i2c: 01 07 00 [06:44:25]MH_I2C_Read... [06:44:25]Read from MH i2c: 01 07 00 CF 36 00 00 00 00 00 FF 0F 1A [06:44:25]process_action close_receipt done [06:44:25]requested_data is exist [06:44:25]produce_requested_data [06:44:25]requested_item fm.sn is exist - process it [06:44:25]wFMCommunicate request_size=4 [06:44:25]MH_SAM_APDU [06:44:25]CAPDU: 80 11 00 00 [06:44:25]Write to MH i2c: E2 08 00 D0 36 80 11 00 00 00 00 00 00 80 [06:44:25]Write i2c OK [06:44:25]MH_I2C_Read... [06:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:25]Read from MH i2c: E2 [06:44:25]MH_I2C_Read... [06:44:25]Read from MH i2c: E2 17 00 [06:44:25]MH_I2C_Read... [06:44:25]Read from MH i2c: E2 17 00 D0 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 D2 [06:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [06:44:25]wFMCommunicate OK [06:44:25]requested_item fd.num is exist - process it [06:44:25]SAM_PROTO_GetFieldsCounters [06:44:25]wFMCommunicate request_size=4 [06:44:25]MH_SAM_APDU [06:44:25]CAPDU: 80 13 00 00 [06:44:25]Write to MH i2c: E2 08 00 D1 36 80 13 00 00 00 00 00 00 83 [06:44:25]Write i2c OK [06:44:25]MH_I2C_Read... [06:44:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:44:26]Read from MH i2c: E2 [06:44:26]MH_I2C_Read... [06:44:26]Read from MH i2c: E2 62 00 [06:44:26]MH_I2C_Read... [06:44:26]Read from MH i2c: E2 62 00 D1 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 3C 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [06:44:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 3C 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:44:26]wFMCommunicate OK [06:44:26]SAM_PROTO_GetFieldsCounters done [06:44:26]requested_item shift.num is exist - process it [06:44:26]requested_item shift.opened is exist - process it [06:44:26]req_shift_opened [06:44:26]FM_GetShiftState [06:44:26]SAM_PROTO_GetShiftState [06:44:26]wFMCommunicate request_size=4 [06:44:26]MH_SAM_APDU [06:44:26]CAPDU: 80 13 01 00 [06:44:26]Write to MH i2c: E2 08 00 D2 36 80 13 01 00 00 00 00 00 85 [06:44:26]Write i2c OK [06:44:26]MH_I2C_Read... [06:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:26]Read from MH i2c: E2 [06:44:26]MH_I2C_Read... [06:44:26]Read from MH i2c: E2 0E 00 [06:44:26]MH_I2C_Read... [06:44:26]Read from MH i2c: E2 0E 00 D2 36 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 37 [06:44:26]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [06:44:26]wFMCommunicate OK [06:44:26]SAM_PROTO_GetShiftState done [06:44:26]FM_GetShiftState done [06:44:26]req_shift_opened done [06:44:26]requested_item shift.open_date is exist - process it [06:44:26]req_shift_open_date [06:44:26]req_shift_open_date done [06:44:26]produce_requested_data done [06:44:26]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22332,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [06:44:26]process_action_free close_receipt [06:44:26]json_value_free [06:44:26]json_value_free done [06:44:26]process_json_proto returns [06:44:26]Send response to host [06:44:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22332,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [06:44:26]free response buf [06:44:26]execute_script done [06:44:26]execute_script returns [06:44:26]free content buf [06:44:26]Sock 9.Close socket [06:44:26]Sock 9.Thread stoped [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:53]accept exits with 8 [07:21:53]New connection [07:21:53]New thread 3066695012 created [07:21:53]Thread 3066838372 joined [07:21:53]Waiting for new connection... [07:21:53] Sock 8.Parse request [07:21:53]Sock 8.Check first char [07:21:53]Sock 8.First char is OK [07:21:53]request: POST /json_proto HTTP/1.0 [07:21:53]Method: POST [07:21:53]URL: /json_proto [07:21:53]Method is POST - this is cgi request [07:21:53]url: /json_proto [07:21:53]query_string will be loaded in cgi processing [07:21:53]execute_cgi json_proto POST (null) [07:21:53]execute_cgi path=json_proto method=POST [07:21:53]POST find Content-Length [07:21:53]Host: 172.17.35.133:8080 [07:21:53]Content-Length: 646 [07:21:53]Content-Type: application/json [07:21:53] [07:21:53]POST finish read [07:21:53]Found Content-Length = 646 [07:21:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254544", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:53]execute_script... [07:21:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254544", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:53]POST & json_proto [07:21:53]process_json_proto [07:21:53]json parsed OK: [07:21:53]protocol is kg_v1.0 [07:21:53]action value=close_receipt [07:21:53]process_action close_receipt [07:21:53]cmd_close_receipt [07:21:53]MH_GetDate [07:21:53]Write to MH i2c: F0 00 00 D3 36 F8 [07:21:53]Write i2c OK [07:21:53]MH_I2C_Read... [07:21:53]Read from MH i2c: F0 [07:21:53]MH_I2C_Read... [07:21:53]Read from MH i2c: F0 09 00 [07:21:53]MH_I2C_Read... [07:21:53]Read from MH i2c: F0 09 00 D3 36 00 1E E4 6F 66 8C 55 28 65 46 [07:21:53]GetLastDocTimeStamp 1718606674 [07:21:53]current date 1718608926 [07:21:53]FM_GetShiftState [07:21:53]SAM_PROTO_GetShiftState [07:21:53]wFMCommunicate request_size=4 [07:21:53]MH_SAM_APDU [07:21:53]CAPDU: 80 13 01 00 [07:21:53]Write to MH i2c: E2 08 00 D4 36 80 13 01 00 00 00 00 00 87 [07:21:53]Write i2c OK [07:21:53]MH_I2C_Read... [07:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:53]Read from MH i2c: E2 [07:21:53]MH_I2C_Read... [07:21:53]Read from MH i2c: E2 0E 00 [07:21:53]MH_I2C_Read... [07:21:53]Read from MH i2c: E2 0E 00 D4 36 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 39 [07:21:53]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [07:21:53]wFMCommunicate OK [07:21:53]SAM_PROTO_GetShiftState done [07:21:53]FM_GetShiftState done [07:21:53]opened in 1718583887 [07:21:53]opened+sec_in_day 1718670287 [07:21:53]quantity*price = 12500 [07:21:53]sum+1 = 12501 [07:21:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 14 17.06.2024 07:22 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22333 ФПД: 276147703266188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T072206&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22333&fm=276147703266188&tin=02508201610067®Number=0000000000099755&sum=12500 0 [07:21:55]StoreToDocumentArchive [07:21:55]shift 328 fd 22333 [07:21:55]save to /storage/0328/doc_00022333 [07:21:55]save last doc name /storage/0328/doc_00022333 to /storage/kkm_last_doc_name [07:21:55]save OK [07:21:55]Clear old archive folders... [07:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=282 [07:21:55]tlvbuf is 0020A5D0 [07:21:55]SAM_PROTO_ClearQueue [07:21:55]wFMCommunicate request_size=4 [07:21:55]MH_SAM_APDU [07:21:55]CAPDU: 80 09 00 00 [07:21:55]Write to MH i2c: E2 08 00 E1 36 80 09 00 00 00 00 00 00 89 [07:21:55]Write i2c OK [07:21:55]MH_I2C_Read... [07:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:55]Read from MH i2c: E2 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 03 00 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 03 00 E1 36 00 90 00 8B [07:21:55]RAPDU: 90 00 [07:21:55]wFMCommunicate OK [07:21:55]SAM_PROTO_ClearQueue done [07:21:55]KKMCreateOFDPacket [07:21:55]OFDProtocolAddRootSTLVToBuf [07:21:55]FM_MakeSignedData [07:21:55]FM_MakeSignedData [07:21:55]SAM_PROTO_SignData [07:21:55]wFMCommunicate request_size=4 [07:21:55]MH_SAM_APDU [07:21:55]CAPDU: 80 0D 01 02 [07:21:55]Write to MH i2c: E2 08 00 E2 36 80 0D 01 02 00 00 00 00 91 [07:21:55]Write i2c OK [07:21:55]MH_I2C_Read... [07:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:55]Read from MH i2c: E2 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 03 00 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 03 00 E2 36 00 90 00 8C [07:21:55]RAPDU: 90 00 [07:21:55]wFMCommunicate OK [07:21:55]wFMCommunicate request_size=255 [07:21:55]MH_SAM_APDU [07:21:55]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 1E E4 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 [07:21:55]Write to MH i2c: E2 02 01 E3 36 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 1E E4 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 00 00 C7 [07:21:55]Write i2c OK [07:21:55]MH_I2C_Read... [07:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:55]Read from MH i2c: E2 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 03 00 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 03 00 E3 36 00 90 00 8D [07:21:55]RAPDU: 90 00 [07:21:55]wFMCommunicate OK [07:21:55]wFMCommunicate request_size=41 [07:21:55]MH_SAM_APDU [07:21:55]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3D 57 00 00 35 04 06 00 FB 27 A5 C2 3B 8C [07:21:55]Write to MH i2c: E2 2C 00 E4 36 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3D 57 00 00 35 04 06 00 FB 27 A5 C2 3B 8C 00 00 46 [07:21:55]Write i2c OK [07:21:55]MH_I2C_Read... [07:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:55]Read from MH i2c: E2 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 03 00 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 03 00 E4 36 00 90 00 8E [07:21:55]RAPDU: 90 00 [07:21:55]wFMCommunicate OK [07:21:55]wFMCommunicate request_size=4 [07:21:55]MH_SAM_APDU [07:21:55]CAPDU: 80 0D 03 02 [07:21:55]Write to MH i2c: E2 08 00 E5 36 80 0D 03 02 00 00 00 00 96 [07:21:55]Write i2c OK [07:21:55]MH_I2C_Read... [07:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:55]Read from MH i2c: E2 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 0B 00 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 0B 00 E5 36 00 FC 6C 79 97 1D 93 12 F0 90 00 C1 [07:21:55]RAPDU: FC 6C 79 97 1D 93 12 F0 90 00 [07:21:55]wFMCommunicate OK [07:21:55]SAM_PROTO_SignData done [07:21:55]FM_MakeSignedData done [07:21:55]CreateOFDProtocolMessage [07:21:55]wFMCommunicate request_size=4 [07:21:55]MH_SAM_APDU [07:21:55]CAPDU: 80 11 00 00 [07:21:55]Write to MH i2c: E2 08 00 E6 36 80 11 00 00 00 00 00 00 96 [07:21:55]Write i2c OK [07:21:55]MH_I2C_Read... [07:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:55]Read from MH i2c: E2 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 17 00 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: E2 17 00 E6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 E8 [07:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [07:21:55]wFMCommunicate OK [07:21:55]CreateOFDProtocolMessage done [07:21:55]OFDSenderStorePacket 22333 [07:21:55]StoreOFDPacket docnum=22333 [07:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 2E 01 00 00 7F 62 26 01 B8 0C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 1E E4 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3D 57 00 00 35 04 06 00 FB 27 A5 C2 3B 8C FC 6C 79 97 1D 93 12 F0 [07:21:55]CheckFolder [07:21:55]dirname=/storage/ofd_packets [07:21:55]CheckFolder done [07:21:55]ProducePacketName [07:21:55]name=ofd_packets/00022333 [07:21:55]NVStorageSaveData ofd_packets/00022333 [07:21:55]File name is /storage/ofd_packets/00022333 [07:21:55]Write 332 bytes [07:21:55]NVStorageSaveData done [07:21:55]OFDSenderStorePacket done [07:21:55]KKMCreateOFDPacket done [07:21:55]NVStorageSaveData kkm_last_timestamp [07:21:55]File name is /storage/kkm_last_timestamp [07:21:55]Write 4 bytes [07:21:55]NVStorageSaveData done [07:21:55]ExternCall_PrintAddStr [07:21:55]wPrintStart [07:21:55]Write to MH i2c: 01 00 00 E7 36 1D [07:21:55]Write i2c OK [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: 01 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: 01 07 00 [07:21:55]MH_I2C_Read... [07:21:55]Read from MH i2c: 01 07 00 E7 36 00 00 00 00 00 FF 0F 32 [07:21:55]RasterBufferAndPrint [07:21:55]line Счет N : (3)254544 [07:21:55]line ИНН: 02508201610067 [07:21:55]line Контрольно-Кассовый Чек [07:21:55]line ПРОДАЖА [07:21:55]line Товар: 2000036220012 [07:21:55]line Кофе Капучино XL(GABB TRADE) [07:21:55]line 1.000 * 125.00 [07:21:55]line = 125.00 [07:21:55]line НДС 12% НСП 1% [07:21:55]line > о реализуемом товаре [07:21:55]line ИТОГО: 125.00 [07:21:55]line НСП 1% : 1.11 [07:21:55]line НДС 12% : 13.27 [07:21:55]line Наличными: 125.00 [07:21:55]line Безнал.: 0.00 [07:21:55]line Место: АЗС № 76 "Партнер Нефть" [07:21:55]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [07:21:55]line СНО: Общий режим [07:21:55]line Чек 14 17.06.2024 07:22 [07:21:55]line Смена: 328 ФФД: 1.0 [07:21:55]line ЗНМ: 0300000200 [07:21:55]line РНМ: 0000000000099755 [07:21:55]line Версия ККМ: 001 [07:21:55]line ФМ: 0000000000965344 [07:21:55]line ФД: 22333 [07:21:55]line ФПД: 276147703266188 [07:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T072206&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22333&fm=276147703266188&tin=02508201610067®Number=0000000000099755&sum=12500 [07:21:55]line 0 [07:21:55]OFD Sender: Processing packet 22333 [packets to send 5, broken 4] [07:21:55]ProducePacketName [07:21:55]name=ofd_packets/00022333 [07:21:55]OFD Sender: To server: pG, [07:21:55]CommunicateWithHost lk.salyk.kg:30040 [07:21:55]ConnectInit lk.salyk.kg [07:21:55]written 0, free lines is 4095 [07:21:56]Connected sock=10 [07:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 2E 01 00 00 7F 62 26 01 B8 0C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 1E E4 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3D 57 00 00 35 04 06 00 FB 27 A5 C2 3B 8C FC 6C 79 97 1D 93 12 F0 [07:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 38 04 47 00 E5 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 39 36 35 33 34 34 10 04 04 00 3D 57 00 00 F4 03 04 00 D6 8C 6F 66 B6 04 01 00 00 5C 5E 82 F0 B3 C9 B1 40 [07:21:56]CommunicateWithHost err = 0 [07:21:56]CheckOFDResponse [07:21:56]1017 (14) - 77093643461234 [07:21:56]1041 (16) - 0000000000965344 [07:21:56]1040 (4) - 22333 [07:21:56]1012 (4) - 17.06.2024 01:09 [07:21:56]1206 (1) - 0 [07:21:56]OFD Sender: Remove packet 22333 [07:21:56]ProducePacketName [07:21:56]name=ofd_packets/00022333 [07:21:56]NVStorageDeleteData [07:21:56]Write to MH i2c: 01 00 00 10 37 47 [07:21:56]Write i2c OK [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: 01 [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: 01 07 00 [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: 01 07 00 10 37 00 00 00 00 00 14 0D 6F [07:21:56]RasterBufferAndPrint [07:21:56]line [07:21:56]line [07:21:56]line [07:21:56]line [07:21:56]line [07:21:56]written 0, free lines is 3358 [07:21:56]MH_Cut [07:21:56]Write to MH i2c: D1 01 00 17 37 01 20 [07:21:56]Write i2c OK [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: D1 [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: D1 01 00 [07:21:56]MH_I2C_Read... [07:21:56]Read from MH i2c: D1 01 00 17 37 00 1F [07:21:56]Write to MH i2c: 01 00 00 18 37 4F [07:21:56]Write i2c OK [07:21:56]MH_I2C_Read... [07:21:56]OFD Sender: No OFD packet to send [07:21:57]*** Cut start [07:21:57]*** Partial cut [07:21:57]*** CUTSNS_PIN = 1 [07:21:57]*** CUTSNS_PIN = 0 [07:21:57]*** Brake cut motor [07:21:57]Read from MH i2c: 01 [07:21:57]MH_I2C_Read... [07:21:57]*** Stop cut motor [07:21:57]*** Cut end [07:21:57]Read from MH i2c: 01 07 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: 01 07 00 18 37 00 00 00 00 00 FF 0F 64 [07:21:57]process_action close_receipt done [07:21:57]requested_data is exist [07:21:57]produce_requested_data [07:21:57]requested_item fm.sn is exist - process it [07:21:57]wFMCommunicate request_size=4 [07:21:57]MH_SAM_APDU [07:21:57]CAPDU: 80 11 00 00 [07:21:57]Write to MH i2c: E2 08 00 19 37 80 11 00 00 00 00 00 00 CA [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:57]Read from MH i2c: E2 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 17 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 17 00 19 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 1C [07:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [07:21:57]wFMCommunicate OK [07:21:57]requested_item fd.num is exist - process it [07:21:57]SAM_PROTO_GetFieldsCounters [07:21:57]wFMCommunicate request_size=4 [07:21:57]MH_SAM_APDU [07:21:57]CAPDU: 80 13 00 00 [07:21:57]Write to MH i2c: E2 08 00 1A 37 80 13 00 00 00 00 00 00 CD [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:57]Read from MH i2c: E2 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 62 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 62 00 1A 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 3D 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [07:21:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 3D 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:21:57]wFMCommunicate OK [07:21:57]SAM_PROTO_GetFieldsCounters done [07:21:57]requested_item shift.num is exist - process it [07:21:57]requested_item shift.opened is exist - process it [07:21:57]req_shift_opened [07:21:57]FM_GetShiftState [07:21:57]SAM_PROTO_GetShiftState [07:21:57]wFMCommunicate request_size=4 [07:21:57]MH_SAM_APDU [07:21:57]CAPDU: 80 13 01 00 [07:21:57]Write to MH i2c: E2 08 00 1B 37 80 13 01 00 00 00 00 00 CF [07:21:57]Write i2c OK [07:21:57]MH_I2C_Read... [07:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:57]Read from MH i2c: E2 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 0E 00 [07:21:57]MH_I2C_Read... [07:21:57]Read from MH i2c: E2 0E 00 1B 37 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 81 [07:21:57]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [07:21:57]wFMCommunicate OK [07:21:57]SAM_PROTO_GetShiftState done [07:21:57]FM_GetShiftState done [07:21:57]req_shift_opened done [07:21:57]requested_item shift.open_date is exist - process it [07:21:57]req_shift_open_date [07:21:57]req_shift_open_date done [07:21:57]produce_requested_data done [07:21:57]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22333,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [07:21:57]process_action_free close_receipt [07:21:57]json_value_free [07:21:57]json_value_free done [07:21:57]process_json_proto returns [07:21:57]Send response to host [07:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22333,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [07:21:57]free response buf [07:21:57]execute_script done [07:21:57]execute_script returns [07:21:57]free content buf [07:21:57]Sock 8.Close socket [07:21:57]Sock 8.Thread stoped [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:47]OFD Sender: No OFD packet to send [07:45:52]OFD Sender: No OFD packet to send [07:45:57]OFD Sender: No OFD packet to send [07:46:02]OFD Sender: No OFD packet to send [07:46:06]accept exits with 9 [07:46:06]New connection [07:46:06]New thread 3066838372 created [07:46:06]Thread 3066695012 joined [07:46:06]Waiting for new connection... [07:46:06] Sock 9.Parse request [07:46:06]Sock 9.Check first char [07:46:06]Sock 9.First char is OK [07:46:06]request: POST /json_proto HTTP/1.0 [07:46:06]Method: POST [07:46:06]URL: /json_proto [07:46:06]Method is POST - this is cgi request [07:46:06]url: /json_proto [07:46:06]query_string will be loaded in cgi processing [07:46:06]execute_cgi json_proto POST (null) [07:46:06]execute_cgi path=json_proto method=POST [07:46:06]POST find Content-Length [07:46:06]Host: 172.17.35.133:8080 [07:46:06]Content-Length: 640 [07:46:06]Content-Type: application/json [07:46:06] [07:46:06]POST finish read [07:46:06]Found Content-Length = 640 [07:46:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254545", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 3.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:06]execute_script... [07:46:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254545", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 3.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:06]POST & json_proto [07:46:06]process_json_proto [07:46:06]json parsed OK: [07:46:06]protocol is kg_v1.0 [07:46:06]action value=close_receipt [07:46:06]process_action close_receipt [07:46:06]cmd_close_receipt [07:46:06]MH_GetDate [07:46:06]Write to MH i2c: F0 00 00 1C 37 42 [07:46:06]Write i2c OK [07:46:06]MH_I2C_Read... [07:46:06]Read from MH i2c: F0 [07:46:06]MH_I2C_Read... [07:46:06]Read from MH i2c: F0 09 00 [07:46:06]MH_I2C_Read... [07:46:06]Read from MH i2c: F0 09 00 1C 37 00 CB E9 6F 66 8C 55 28 65 42 [07:46:06]GetLastDocTimeStamp 1718608926 [07:46:06]current date 1718610379 [07:46:06]FM_GetShiftState [07:46:06]SAM_PROTO_GetShiftState [07:46:06]wFMCommunicate request_size=4 [07:46:06]MH_SAM_APDU [07:46:06]CAPDU: 80 13 01 00 [07:46:06]Write to MH i2c: E2 08 00 1D 37 80 13 01 00 00 00 00 00 D1 [07:46:06]Write i2c OK [07:46:06]MH_I2C_Read... [07:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:07]Read from MH i2c: E2 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: E2 0E 00 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: E2 0E 00 1D 37 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 83 [07:46:07]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [07:46:07]wFMCommunicate OK [07:46:07]SAM_PROTO_GetShiftState done [07:46:07]FM_GetShiftState done [07:46:07]opened in 1718583887 [07:46:07]opened+sec_in_day 1718670287 [07:46:07]quantity*price = 21000 [07:46:07]sum+1 = 21001 [07:46:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 15 17.06.2024 07:46 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22334 ФПД: 267198589998835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T074619&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22334&fm=267198589998835&tin=02508201610067®Number=0000000000099755&sum=21000 0 [07:46:08]StoreToDocumentArchive [07:46:08]shift 328 fd 22334 [07:46:08]save to /storage/0328/doc_00022334 [07:46:08]save last doc name /storage/0328/doc_00022334 to /storage/kkm_last_doc_name [07:46:08]save OK [07:46:08]Clear old archive folders... [07:46:08]ProcessDocumentItem done err = 0, tmpTLVsize=273 [07:46:08]tlvbuf is 001C2050 [07:46:08]SAM_PROTO_ClearQueue [07:46:08]wFMCommunicate request_size=4 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 09 00 00 [07:46:08]Write to MH i2c: E2 08 00 2A 37 80 09 00 00 00 00 00 00 D3 [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 2A 37 00 90 00 D5 [07:46:08]RAPDU: 90 00 [07:46:08]wFMCommunicate OK [07:46:08]SAM_PROTO_ClearQueue done [07:46:08]KKMCreateOFDPacket [07:46:08]OFDProtocolAddRootSTLVToBuf [07:46:08]FM_MakeSignedData [07:46:08]FM_MakeSignedData [07:46:08]SAM_PROTO_SignData [07:46:08]wFMCommunicate request_size=4 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 0D 01 02 [07:46:08]Write to MH i2c: E2 08 00 2B 37 80 0D 01 02 00 00 00 00 DB [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 2B 37 00 90 00 D6 [07:46:08]RAPDU: 90 00 [07:46:08]wFMCommunicate OK [07:46:08]wFMCommunicate request_size=255 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 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 CB E9 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 [07:46:08]Write to MH i2c: E2 02 01 2C 37 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 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 CB E9 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 00 00 BF [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 2C 37 00 90 00 D7 [07:46:08]RAPDU: 90 00 [07:46:08]wFMCommunicate OK [07:46:08]wFMCommunicate request_size=32 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 34 34 10 04 04 00 3E 57 00 00 35 04 06 00 F3 04 05 0A 96 F3 [07:46:08]Write to MH i2c: E2 23 00 2D 37 80 0D 02 02 1B 00 30 30 30 39 36 35 33 34 34 10 04 04 00 3E 57 00 00 35 04 06 00 F3 04 05 0A 96 F3 00 00 5E [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 2D 37 00 90 00 D8 [07:46:08]RAPDU: 90 00 [07:46:08]wFMCommunicate OK [07:46:08]wFMCommunicate request_size=4 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 0D 03 02 [07:46:08]Write to MH i2c: E2 08 00 2E 37 80 0D 03 02 00 00 00 00 E0 [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 0B 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 0B 00 2E 37 00 09 C4 7B 5B DD DB E1 E0 90 00 FD [07:46:08]RAPDU: 09 C4 7B 5B DD DB E1 E0 90 00 [07:46:08]wFMCommunicate OK [07:46:08]SAM_PROTO_SignData done [07:46:08]FM_MakeSignedData done [07:46:08]CreateOFDProtocolMessage [07:46:08]wFMCommunicate request_size=4 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 11 00 00 [07:46:08]Write to MH i2c: E2 08 00 2F 37 80 11 00 00 00 00 00 00 E0 [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 17 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 17 00 2F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 32 [07:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [07:46:08]wFMCommunicate OK [07:46:08]CreateOFDProtocolMessage done [07:46:08]OFDSenderStorePacket 22334 [07:46:08]StoreOFDPacket docnum=22334 [07:46:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 25 01 00 00 80 87 1D 01 A7 77 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 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 CB E9 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3E 57 00 00 35 04 06 00 F3 04 05 0A 96 F3 09 C4 7B 5B DD DB E1 E0 [07:46:08]CheckFolder [07:46:08]dirname=/storage/ofd_packets [07:46:08]CheckFolder done [07:46:08]ProducePacketName [07:46:08]name=ofd_packets/00022334 [07:46:08]NVStorageSaveData ofd_packets/00022334 [07:46:08]File name is /storage/ofd_packets/00022334 [07:46:08]Write 323 bytes [07:46:08]NVStorageSaveData done [07:46:08]OFDSenderStorePacket done [07:46:08]KKMCreateOFDPacket done [07:46:08]NVStorageSaveData kkm_last_timestamp [07:46:08]File name is /storage/kkm_last_timestamp [07:46:08]Write 4 bytes [07:46:08]NVStorageSaveData done [07:46:08]ExternCall_PrintAddStr [07:46:08]wPrintStart [07:46:08]Write to MH i2c: 01 00 00 30 37 67 [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: 01 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: 01 07 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: 01 07 00 30 37 00 00 00 00 00 FF 0F 7C [07:46:08]RasterBufferAndPrint [07:46:08]line Счет N : (3)254545 [07:46:08]line ИНН: 02508201610067 [07:46:08]line Контрольно-Кассовый Чек [07:46:08]line ПРОДАЖА [07:46:08]line Товар: 4700002082931 [07:46:08]line Водка Хорошая 0,1л [07:46:08]line 3.000 * 70.00 [07:46:08]line = 210.00 [07:46:08]line НДС 12% НСП 1% [07:46:08]line > о реализуемом товаре [07:46:08]line ИТОГО: 210.00 [07:46:08]line НСП 1% : 1.86 [07:46:08]line НДС 12% : 22.30 [07:46:08]line Наличными: 210.00 [07:46:08]line Безнал.: 0.00 [07:46:08]line Место: АЗС № 76 "Партнер Нефть" [07:46:08]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [07:46:08]line СНО: Общий режим [07:46:08]line Чек 15 17.06.2024 07:46 [07:46:08]line Смена: 328 ФФД: 1.0 [07:46:08]line ЗНМ: 0300000200 [07:46:08]line РНМ: 0000000000099755 [07:46:08]line Версия ККМ: 001 [07:46:08]line ФМ: 0000000000965344 [07:46:08]line ФД: 22334 [07:46:08]line ФПД: 267198589998835 [07:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T074619&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22334&fm=267198589998835&tin=02508201610067®Number=0000000000099755&sum=21000 [07:46:09]line 0 [07:46:09]OFD Sender: Processing packet 22334 [packets to send 5, broken 4] [07:46:09]ProducePacketName [07:46:09]name=ofd_packets/00022334 [07:46:09]OFD Sender: To server: pG, [07:46:09]CommunicateWithHost lk.salyk.kg:30040 [07:46:09]ConnectInit lk.salyk.kg [07:46:09]written 0, free lines is 4095 [07:46:09]Connected sock=10 [07:46:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 25 01 00 00 80 87 1D 01 A7 77 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 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 CB E9 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3E 57 00 00 35 04 06 00 F3 04 05 0A 96 F3 09 C4 7B 5B DD DB E1 E0 [07:46:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 BA AE 47 00 90 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 39 36 35 33 34 34 10 04 04 00 3E 57 00 00 F4 03 04 00 83 92 6F 66 B6 04 01 00 00 E9 89 9C 89 64 6C 68 3C [07:46:09]CommunicateWithHost err = 0 [07:46:09]CheckOFDResponse [07:46:09]1017 (14) - 77093643461234 [07:46:09]1041 (16) - 0000000000965344 [07:46:09]1040 (4) - 22334 [07:46:09]1012 (4) - 17.06.2024 01:33 [07:46:09]1206 (1) - 0 [07:46:09]OFD Sender: Remove packet 22334 [07:46:09]ProducePacketName [07:46:09]name=ofd_packets/00022334 [07:46:09]NVStorageDeleteData [07:46:09]Write to MH i2c: 01 00 00 58 37 8F [07:46:09]Write i2c OK [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: 01 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: 01 07 00 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: 01 07 00 58 37 00 00 00 00 00 17 0D BA [07:46:09]RasterBufferAndPrint [07:46:09]line [07:46:09]line [07:46:09]line [07:46:09]line [07:46:09]line [07:46:09]written 0, free lines is 3359 [07:46:09]MH_Cut [07:46:09]Write to MH i2c: D1 01 00 5F 37 01 68 [07:46:09]Write i2c OK [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: D1 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: D1 01 00 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: D1 01 00 5F 37 00 67 [07:46:09]Write to MH i2c: 01 00 00 60 37 97 [07:46:09]Write i2c OK [07:46:09]MH_I2C_Read... [07:46:09]OFD Sender: No OFD packet to send [07:46:10]*** Cut start [07:46:10]*** Partial cut [07:46:10]*** CUTSNS_PIN = 1 [07:46:10]*** CUTSNS_PIN = 0 [07:46:10]*** Brake cut motor [07:46:10]Read from MH i2c: 01 [07:46:10]MH_I2C_Read... [07:46:10]*** Stop cut motor [07:46:10]*** Cut end [07:46:10]Read from MH i2c: 01 07 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: 01 07 00 60 37 00 00 00 00 00 FF 0F AC [07:46:10]process_action close_receipt done [07:46:10]requested_data is exist [07:46:10]produce_requested_data [07:46:10]requested_item fm.sn is exist - process it [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 11 00 00 [07:46:10]Write to MH i2c: E2 08 00 61 37 80 11 00 00 00 00 00 00 12 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 17 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 17 00 61 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 64 [07:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [07:46:10]wFMCommunicate OK [07:46:10]requested_item fd.num is exist - process it [07:46:10]SAM_PROTO_GetFieldsCounters [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 13 00 00 [07:46:10]Write to MH i2c: E2 08 00 62 37 80 13 00 00 00 00 00 00 15 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 62 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 62 00 62 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 3E 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [07:46:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 3E 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:46:10]wFMCommunicate OK [07:46:10]SAM_PROTO_GetFieldsCounters done [07:46:10]requested_item shift.num is exist - process it [07:46:10]requested_item shift.opened is exist - process it [07:46:10]req_shift_opened [07:46:10]FM_GetShiftState [07:46:10]SAM_PROTO_GetShiftState [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 13 01 00 [07:46:10]Write to MH i2c: E2 08 00 63 37 80 13 01 00 00 00 00 00 17 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:11]Read from MH i2c: E2 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 0E 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 0E 00 63 37 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 C9 [07:46:11]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [07:46:11]wFMCommunicate OK [07:46:11]SAM_PROTO_GetShiftState done [07:46:11]FM_GetShiftState done [07:46:11]req_shift_opened done [07:46:11]requested_item shift.open_date is exist - process it [07:46:11]req_shift_open_date [07:46:11]req_shift_open_date done [07:46:11]produce_requested_data done [07:46:11]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22334,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [07:46:11]process_action_free close_receipt [07:46:11]json_value_free [07:46:11]json_value_free done [07:46:11]process_json_proto returns [07:46:11]Send response to host [07:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22334,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [07:46:11]free response buf [07:46:11]execute_script done [07:46:11]execute_script returns [07:46:11]free content buf [07:46:11]Sock 9.Close socket [07:46:11]Sock 9.Thread stoped [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:38]accept exits with 8 [07:48:38]New connection [07:48:38]New thread 3066695012 created [07:48:38]Thread 3066838372 joined [07:48:38]Waiting for new connection... [07:48:38] Sock 8.Parse request [07:48:38]Sock 8.Check first char [07:48:38]Sock 8.First char is OK [07:48:38]request: POST /json_proto HTTP/1.0 [07:48:38]Method: POST [07:48:38]URL: /json_proto [07:48:38]Method is POST - this is cgi request [07:48:38]url: /json_proto [07:48:38]query_string will be loaded in cgi processing [07:48:38]execute_cgi json_proto POST (null) [07:48:38]execute_cgi path=json_proto method=POST [07:48:38]POST find Content-Length [07:48:38]Host: 172.17.35.133:8080 [07:48:38]Content-Length: 794 [07:48:38]Content-Type: application/json [07:48:38] [07:48:38]POST finish read [07:48:38]Found Content-Length = 794 [07:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1610783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.000, "sum" : 1974.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1974.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:38]execute_script... [07:48: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)1610783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 30.000, "sum" : 1974.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1974.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:38]POST & json_proto [07:48:38]process_json_proto [07:48:38]json parsed OK: [07:48:38]protocol is kg_v1.0 [07:48:38]action value=close_receipt [07:48:38]process_action close_receipt [07:48:38]cmd_close_receipt [07:48:38]MH_GetDate [07:48:38]Write to MH i2c: F0 00 00 64 37 8A [07:48:38]Write i2c OK [07:48:38]MH_I2C_Read... [07:48:38]Read from MH i2c: F0 [07:48:38]MH_I2C_Read... [07:48:39]Read from MH i2c: F0 09 00 [07:48:39]MH_I2C_Read... [07:48:39]Read from MH i2c: F0 09 00 64 37 00 63 EA 6F 66 8C 55 28 65 23 [07:48:39]GetLastDocTimeStamp 1718610379 [07:48:39]current date 1718610531 [07:48:39]FM_GetShiftState [07:48:39]SAM_PROTO_GetShiftState [07:48:39]wFMCommunicate request_size=4 [07:48:39]MH_SAM_APDU [07:48:39]CAPDU: 80 13 01 00 [07:48:39]Write to MH i2c: E2 08 00 65 37 80 13 01 00 00 00 00 00 19 [07:48:39]Write i2c OK [07:48:39]MH_I2C_Read... [07:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:39]Read from MH i2c: E2 [07:48:39]MH_I2C_Read... [07:48:39]Read from MH i2c: E2 0E 00 [07:48:39]MH_I2C_Read... [07:48:39]Read from MH i2c: E2 0E 00 65 37 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 CB [07:48:39]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [07:48:39]wFMCommunicate OK [07:48:39]SAM_PROTO_GetShiftState done [07:48:39]FM_GetShiftState done [07:48:39]opened in 1718583887 [07:48:39]opened+sec_in_day 1718670287 [07:48:39]quantity*price = 197400 [07:48:39]sum+1 = 197401 [07:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1974.00 НСП 1% : 17.47 НДС 12% : 209.63 Наличными: 0.00 Безнал.: 1974.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 16 17.06.2024 07:48 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000965344 ФД: 22335 ФПД: 106095798705893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T074851&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22335&fm=106095798705893&tin=02508201610067®Number=0000000000099755&sum=197400 [07:48:40]StoreToDocumentArchive [07:48:40]shift 328 fd 22335 [07:48:40]save to /storage/0328/doc_00022335 [07:48:40]save last doc name /storage/0328/doc_00022335 to /storage/kkm_last_doc_name [07:48:40]save OK [07:48:40]Clear old archive folders... [07:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:40]tlvbuf is 002D6230 [07:48:40]SAM_PROTO_ClearQueue [07:48:40]wFMCommunicate request_size=4 [07:48:40]MH_SAM_APDU [07:48:40]CAPDU: 80 09 00 00 [07:48:40]Write to MH i2c: E2 08 00 72 37 80 09 00 00 00 00 00 00 1B [07:48:40]Write i2c OK [07:48:40]MH_I2C_Read... [07:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:40]Read from MH i2c: E2 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 03 00 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 03 00 72 37 00 90 00 1D [07:48:40]RAPDU: 90 00 [07:48:40]wFMCommunicate OK [07:48:40]SAM_PROTO_ClearQueue done [07:48:40]KKMCreateOFDPacket [07:48:40]OFDProtocolAddRootSTLVToBuf [07:48:40]FM_MakeSignedData [07:48:40]FM_MakeSignedData [07:48:40]SAM_PROTO_SignData [07:48:40]wFMCommunicate request_size=4 [07:48:40]MH_SAM_APDU [07:48:40]CAPDU: 80 0D 01 02 [07:48:40]Write to MH i2c: E2 08 00 73 37 80 0D 01 02 00 00 00 00 23 [07:48:40]Write i2c OK [07:48:40]MH_I2C_Read... [07:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:40]Read from MH i2c: E2 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 03 00 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 03 00 73 37 00 90 00 1E [07:48:40]RAPDU: 90 00 [07:48:40]wFMCommunicate OK [07:48:40]wFMCommunicate request_size=255 [07:48:40]MH_SAM_APDU [07:48: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 30 75 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 51 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 03 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 63 EA 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3F 57 00 00 35 04 06 00 60 [07:48:40]Write to MH i2c: E2 02 01 74 37 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 B4 19 00 00 00 00 13 04 06 00 18 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 51 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 03 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 63 EA 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3F 57 00 00 35 04 06 00 60 00 00 80 [07:48:40]Write i2c OK [07:48:40]MH_I2C_Read... [07:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:40]Read from MH i2c: E2 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 03 00 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 03 00 74 37 00 90 00 1F [07:48:40]RAPDU: 90 00 [07:48:40]wFMCommunicate OK [07:48:40]wFMCommunicate request_size=10 [07:48:40]MH_SAM_APDU [07:48:40]CAPDU: 80 0D 02 02 05 7E 5A 64 DE E5 [07:48:40]Write to MH i2c: E2 0D 00 75 37 80 0D 02 02 05 00 7E 5A 64 DE E5 00 00 2F [07:48:40]Write i2c OK [07:48:40]MH_I2C_Read... [07:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:40]Read from MH i2c: E2 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 03 00 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 03 00 75 37 00 90 00 20 [07:48:40]RAPDU: 90 00 [07:48:40]wFMCommunicate OK [07:48:40]wFMCommunicate request_size=4 [07:48:40]MH_SAM_APDU [07:48:40]CAPDU: 80 0D 03 02 [07:48:40]Write to MH i2c: E2 08 00 76 37 80 0D 03 02 00 00 00 00 28 [07:48:40]Write i2c OK [07:48:40]MH_I2C_Read... [07:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:40]Read from MH i2c: E2 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 0B 00 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 0B 00 76 37 00 39 7A B4 CF D8 EF F2 59 90 00 71 [07:48:40]RAPDU: 39 7A B4 CF D8 EF F2 59 90 00 [07:48:40]wFMCommunicate OK [07:48:40]SAM_PROTO_SignData done [07:48:40]FM_MakeSignedData done [07:48:40]CreateOFDProtocolMessage [07:48:40]wFMCommunicate request_size=4 [07:48:40]MH_SAM_APDU [07:48:40]CAPDU: 80 11 00 00 [07:48:40]Write to MH i2c: E2 08 00 77 37 80 11 00 00 00 00 00 00 28 [07:48:40]Write i2c OK [07:48:40]MH_I2C_Read... [07:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:40]Read from MH i2c: E2 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 17 00 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: E2 17 00 77 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 7A [07:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [07:48:40]wFMCommunicate OK [07:48:40]CreateOFDProtocolMessage done [07:48:40]OFDSenderStorePacket 22335 [07:48:40]StoreOFDPacket docnum=22335 [07:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0F 01 00 00 64 CB 07 01 35 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 30 75 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 51 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 03 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 63 EA 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3F 57 00 00 35 04 06 00 60 7E 5A 64 DE E5 39 7A B4 CF D8 EF F2 59 [07:48:40]CheckFolder [07:48:40]dirname=/storage/ofd_packets [07:48:40]CheckFolder done [07:48:40]ProducePacketName [07:48:40]name=ofd_packets/00022335 [07:48:40]NVStorageSaveData ofd_packets/00022335 [07:48:40]File name is /storage/ofd_packets/00022335 [07:48:40]Write 301 bytes [07:48:40]NVStorageSaveData done [07:48:40]OFDSenderStorePacket done [07:48:40]KKMCreateOFDPacket done [07:48:40]NVStorageSaveData kkm_last_timestamp [07:48:40]File name is /storage/kkm_last_timestamp [07:48:40]Write 4 bytes [07:48:40]NVStorageSaveData done [07:48:40]ExternCall_PrintAddStr [07:48:40]wPrintStart [07:48:40]Write to MH i2c: 01 00 00 78 37 AF [07:48:40]Write i2c OK [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: 01 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: 01 07 00 [07:48:40]MH_I2C_Read... [07:48:40]Read from MH i2c: 01 07 00 78 37 00 00 00 00 00 FF 0F C4 [07:48:40]RasterBufferAndPrint [07:48:40]line Счет N : (1)1610783 [07:48:40]line ИНН: 02508201610067 [07:48:40]line Контрольно-Кассовый Чек [07:48:40]line ПРОДАЖА [07:48:40]line ТРК (МРК, ГНК) : 53 [07:48:40]line Товар: 2710124130 [07:48:40]line Аи-92-К-5 [07:48:40]line 30.000 * 65.80 [07:48:40]line = 1974.00 [07:48:40]line НДС 12% НСП 1% [07:48:40]line > о реализуемом товаре [07:48:40]line ИТОГО: 1974.00 [07:48:40]line НСП 1% : 17.47 [07:48:40]line НДС 12% : 209.63 [07:48:40]line Наличными: 0.00 [07:48:40]line Безнал.: 1974.00 [07:48:40]line Место: АЗС № 76 "Партнер Нефть" [07:48:40]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [07:48:40]line СНО: Общий режим [07:48:40]line Чек 16 17.06.2024 07:48 [07:48:40]line Смена: 328 ФФД: 1.0 [07:48:40]line ЗНМ: 0300000200 [07:48:40]line РНМ: 0000000000099755 [07:48:40]line Версия ККМ: 001 [07:48:40]line Платежная система: KICB Банк [07:48:40]line ФМ: 0000000000965344 [07:48:40]line ФД: 22335 [07:48:40]line ФПД: 106095798705893 [07:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T074851&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22335&fm=106095798705893&tin=02508201610067®Number=0000000000099755&sum=197400 [07:48:41]OFD Sender: Processing packet 22335 [packets to send 5, broken 4] [07:48:41]ProducePacketName [07:48:41]name=ofd_packets/00022335 [07:48:41]OFD Sender: To server: pG, [07:48:41]CommunicateWithHost lk.salyk.kg:30040 [07:48:41]ConnectInit lk.salyk.kg [07:48:41]written 0, free lines is 4095 [07:48:41]Connected sock=10 [07:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0F 01 00 00 64 CB 07 01 35 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 30 75 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 18 03 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 03 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 51 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 03 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 63 EA 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 3F 57 00 00 35 04 06 00 60 7E 5A 64 DE E5 39 7A B4 CF D8 EF F2 59 [07:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 AD A7 47 00 4B 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 39 36 35 33 34 34 10 04 04 00 3F 57 00 00 F4 03 04 00 1B 93 6F 66 B6 04 01 00 00 E2 E1 4E 3A 5C 70 8E 98 [07:48:41]CommunicateWithHost err = 0 [07:48:41]CheckOFDResponse [07:48:41]1017 (14) - 77093643461234 [07:48:41]1041 (16) - 0000000000965344 [07:48:41]1040 (4) - 22335 [07:48:41]1012 (4) - 17.06.2024 01:36 [07:48:41]1206 (1) - 0 [07:48:41]OFD Sender: Remove packet 22335 [07:48:41]ProducePacketName [07:48:41]name=ofd_packets/00022335 [07:48:41]NVStorageDeleteData [07:48:41]Write to MH i2c: 01 00 00 A2 37 D9 [07:48:41]Write i2c OK [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: 01 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: 01 07 00 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: 01 07 00 A2 37 00 00 00 00 00 06 0D F3 [07:48:41]RasterBufferAndPrint [07:48:41]line [07:48:41]line [07:48:41]line [07:48:41]line [07:48:41]line [07:48:41]written 0, free lines is 3340 [07:48:41]MH_Cut [07:48:41]Write to MH i2c: D1 01 00 A9 37 01 B2 [07:48:41]Write i2c OK [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: D1 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: D1 01 00 [07:48:41]MH_I2C_Read... [07:48:41]Read from MH i2c: D1 01 00 A9 37 00 B1 [07:48:41]Write to MH i2c: 01 00 00 AA 37 E1 [07:48:41]Write i2c OK [07:48:41]MH_I2C_Read... [07:48:41]OFD Sender: No OFD packet to send [07:48:42]*** Cut start [07:48:42]*** Partial cut [07:48:42]*** CUTSNS_PIN = 1 [07:48:42]*** CUTSNS_PIN = 0 [07:48:42]*** Brake cut motor [07:48:42]Read from MH i2c: 01 [07:48:42]MH_I2C_Read... [07:48:42]*** Stop cut motor [07:48:42]*** Cut end [07:48:42]Read from MH i2c: 01 07 00 [07:48:42]MH_I2C_Read... [07:48:42]Read from MH i2c: 01 07 00 AA 37 00 00 00 00 00 FF 0F F6 [07:48:42]process_action close_receipt done [07:48:42]requested_data is exist [07:48:42]produce_requested_data [07:48:42]requested_item fm.sn is exist - process it [07:48:42]wFMCommunicate request_size=4 [07:48:42]MH_SAM_APDU [07:48:42]CAPDU: 80 11 00 00 [07:48:42]Write to MH i2c: E2 08 00 AB 37 80 11 00 00 00 00 00 00 5C [07:48:42]Write i2c OK [07:48:42]MH_I2C_Read... [07:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:42]Read from MH i2c: E2 [07:48:42]MH_I2C_Read... [07:48:42]Read from MH i2c: E2 17 00 [07:48:42]MH_I2C_Read... [07:48:42]Read from MH i2c: E2 17 00 AB 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 AE [07:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [07:48:42]wFMCommunicate OK [07:48:42]requested_item fd.num is exist - process it [07:48:42]SAM_PROTO_GetFieldsCounters [07:48:42]wFMCommunicate request_size=4 [07:48:42]MH_SAM_APDU [07:48:42]CAPDU: 80 13 00 00 [07:48:42]Write to MH i2c: E2 08 00 AC 37 80 13 00 00 00 00 00 00 5F [07:48:42]Write i2c OK [07:48:42]MH_I2C_Read... [07:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:42]Read from MH i2c: E2 [07:48:42]MH_I2C_Read... [07:48:42]Read from MH i2c: E2 62 00 [07:48:42]MH_I2C_Read... [07:48:42]Read from MH i2c: E2 62 00 AC 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 3F 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [07:48:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 3F 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:48:42]wFMCommunicate OK [07:48:42]SAM_PROTO_GetFieldsCounters done [07:48:42]requested_item shift.num is exist - process it [07:48:42]requested_item shift.opened is exist - process it [07:48:42]req_shift_opened [07:48:42]FM_GetShiftState [07:48:42]SAM_PROTO_GetShiftState [07:48:42]wFMCommunicate request_size=4 [07:48:42]MH_SAM_APDU [07:48:42]CAPDU: 80 13 01 00 [07:48:42]Write to MH i2c: E2 08 00 AD 37 80 13 01 00 00 00 00 00 61 [07:48:42]Write i2c OK [07:48:42]MH_I2C_Read... [07:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:43]Read from MH i2c: E2 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 0E 00 [07:48:43]MH_I2C_Read... [07:48:43]Read from MH i2c: E2 0E 00 AD 37 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 13 [07:48:43]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [07:48:43]wFMCommunicate OK [07:48:43]SAM_PROTO_GetShiftState done [07:48:43]FM_GetShiftState done [07:48:43]req_shift_opened done [07:48:43]requested_item shift.open_date is exist - process it [07:48:43]req_shift_open_date [07:48:43]req_shift_open_date done [07:48:43]produce_requested_data done [07:48:43]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22335,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [07:48:43]process_action_free close_receipt [07:48:43]json_value_free [07:48:43]json_value_free done [07:48:43]process_json_proto returns [07:48:43]Send response to host [07:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22335,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [07:48:43]free response buf [07:48:43]execute_script done [07:48:43]execute_script returns [07:48:43]free content buf [07:48:43]Sock 8.Close socket [07:48:43]Sock 8.Thread stoped [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:50]accept exits with 9 [08:11:50]New connection [08:11:50]New thread 3066838372 created [08:11:50]Thread 3066695012 joined [08:11:50]Waiting for new connection... [08:11:50] Sock 9.Parse request [08:11:50]Sock 9.Check first char [08:11:50]Sock 9.First char is OK [08:11:50]request: POST /json_proto HTTP/1.0 [08:11:50]Method: POST [08:11:50]URL: /json_proto [08:11:50]Method is POST - this is cgi request [08:11:50]url: /json_proto [08:11:50]query_string will be loaded in cgi processing [08:11:50]execute_cgi json_proto POST (null) [08:11:50]execute_cgi path=json_proto method=POST [08:11:50]POST find Content-Length [08:11:50]Host: 172.17.35.133:8080 [08:11:50]Content-Length: 899 [08:11:50]Content-Type: application/json [08:11:50] [08:11:50]POST finish read [08:11:50]Found Content-Length = 899 [08:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254546", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:50]execute_script... [08:11:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254546", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8710732217097", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 207.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:50]POST & json_proto [08:11:50]process_json_proto [08:11:50]json parsed OK: [08:11:50]protocol is kg_v1.0 [08:11:50]action value=close_receipt [08:11:50]process_action close_receipt [08:11:50]cmd_close_receipt [08:11:50]MH_GetDate [08:11:50]Write to MH i2c: F0 00 00 AE 37 D4 [08:11:50]Write i2c OK [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: F0 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: F0 09 00 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: F0 09 00 AE 37 00 D3 EF 6F 66 8C 55 28 65 E2 [08:11:50]GetLastDocTimeStamp 1718610531 [08:11:50]current date 1718611923 [08:11:50]FM_GetShiftState [08:11:50]SAM_PROTO_GetShiftState [08:11:50]wFMCommunicate request_size=4 [08:11:50]MH_SAM_APDU [08:11:50]CAPDU: 80 13 01 00 [08:11:50]Write to MH i2c: E2 08 00 AF 37 80 13 01 00 00 00 00 00 63 [08:11:50]Write i2c OK [08:11:50]MH_I2C_Read... [08:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:51]Read from MH i2c: E2 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 0E 00 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 0E 00 AF 37 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 15 [08:11:51]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [08:11:51]wFMCommunicate OK [08:11:51]SAM_PROTO_GetShiftState done [08:11:51]FM_GetShiftState done [08:11:51]opened in 1718583887 [08:11:51]opened+sec_in_day 1718670287 [08:11:51]quantity*price = 14000 [08:11:51]sum+1 = 14001 [08:11:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8710732217097 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 207.00 НСП 1% : 1.83 НДС 12% : 21.98 Наличными: 207.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 17 17.06.2024 08:12 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22336 ФПД: 66875804128432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T081203&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22336&fm=66875804128432&tin=02508201610067®Number=0000000000099755&sum=20700 0 [08:11:52]StoreToDocumentArchive [08:11:52]shift 328 fd 22336 [08:11:52]save to /storage/0328/doc_00022336 [08:11:52]save last doc name /storage/0328/doc_00022336 to /storage/kkm_last_doc_name [08:11:52]save OK [08:11:52]Clear old archive folders... [08:11:52]ProcessDocumentItem done err = 0, tmpTLVsize=387 [08:11:52]tlvbuf is 00273620 [08:11:52]SAM_PROTO_ClearQueue [08:11:52]wFMCommunicate request_size=4 [08:11:52]MH_SAM_APDU [08:11:52]CAPDU: 80 09 00 00 [08:11:52]Write to MH i2c: E2 08 00 BC 37 80 09 00 00 00 00 00 00 65 [08:11:52]Write i2c OK [08:11:52]MH_I2C_Read... [08:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:52]Read from MH i2c: E2 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 03 00 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 03 00 BC 37 00 90 00 67 [08:11:52]RAPDU: 90 00 [08:11:52]wFMCommunicate OK [08:11:52]SAM_PROTO_ClearQueue done [08:11:52]KKMCreateOFDPacket [08:11:52]OFDProtocolAddRootSTLVToBuf [08:11:52]FM_MakeSignedData [08:11:52]FM_MakeSignedData [08:11:52]SAM_PROTO_SignData [08:11:52]wFMCommunicate request_size=4 [08:11:52]MH_SAM_APDU [08:11:52]CAPDU: 80 0D 01 02 [08:11:52]Write to MH i2c: E2 08 00 BD 37 80 0D 01 02 00 00 00 00 6D [08:11:52]Write i2c OK [08:11:52]MH_I2C_Read... [08:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:52]Read from MH i2c: E2 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 03 00 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 03 00 BD 37 00 90 00 68 [08:11:52]RAPDU: 90 00 [08:11:52]wFMCommunicate OK [08:11:52]wFMCommunicate request_size=255 [08:11:52]MH_SAM_APDU [08:11:52]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [08:11:52]Write to MH i2c: E2 02 01 BE 37 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 75 [08:11:52]Write i2c OK [08:11:52]MH_I2C_Read... [08:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:52]Read from MH i2c: E2 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 03 00 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 03 00 BE 37 00 90 00 69 [08:11:52]RAPDU: 90 00 [08:11:52]wFMCommunicate OK [08:11:52]wFMCommunicate request_size=146 [08:11:52]MH_SAM_APDU [08:11:52]CAPDU: 80 0D 02 02 8D 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D3 EF 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 40 57 00 00 35 04 06 00 3C D2 BC 8C 94 B0 [08:11:52]Write to MH i2c: E2 95 00 BF 37 80 0D 02 02 8D 00 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D3 EF 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 40 57 00 00 35 04 06 00 3C D2 BC 8C 94 B0 00 00 6C [08:11:52]Write i2c OK [08:11:52]MH_I2C_Read... [08:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:52]Read from MH i2c: E2 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 03 00 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 03 00 BF 37 00 90 00 6A [08:11:52]RAPDU: 90 00 [08:11:52]wFMCommunicate OK [08:11:52]wFMCommunicate request_size=4 [08:11:52]MH_SAM_APDU [08:11:52]CAPDU: 80 0D 03 02 [08:11:52]Write to MH i2c: E2 08 00 C0 37 80 0D 03 02 00 00 00 00 72 [08:11:52]Write i2c OK [08:11:52]MH_I2C_Read... [08:11:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:52]Read from MH i2c: E2 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 0B 00 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 0B 00 C0 37 00 4E 5F 09 5C B8 C4 A0 F4 90 00 95 [08:11:52]RAPDU: 4E 5F 09 5C B8 C4 A0 F4 90 00 [08:11:52]wFMCommunicate OK [08:11:52]SAM_PROTO_SignData done [08:11:52]FM_MakeSignedData done [08:11:52]CreateOFDProtocolMessage [08:11:52]wFMCommunicate request_size=4 [08:11:52]MH_SAM_APDU [08:11:52]CAPDU: 80 11 00 00 [08:11:52]Write to MH i2c: E2 08 00 C1 37 80 11 00 00 00 00 00 00 72 [08:11:52]Write i2c OK [08:11:52]MH_I2C_Read... [08:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:52]Read from MH i2c: E2 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 17 00 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: E2 17 00 C1 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 C4 [08:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:11:52]wFMCommunicate OK [08:11:52]CreateOFDProtocolMessage done [08:11:52]OFDSenderStorePacket 22336 [08:11:52]StoreOFDPacket docnum=22336 [08:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 97 01 00 00 C7 5F 8F 01 B4 CE 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D3 EF 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 40 57 00 00 35 04 06 00 3C D2 BC 8C 94 B0 4E 5F 09 5C B8 C4 A0 F4 [08:11:52]CheckFolder [08:11:52]dirname=/storage/ofd_packets [08:11:52]CheckFolder done [08:11:52]ProducePacketName [08:11:52]name=ofd_packets/00022336 [08:11:52]NVStorageSaveData ofd_packets/00022336 [08:11:52]File name is /storage/ofd_packets/00022336 [08:11:52]Write 437 bytes [08:11:52]NVStorageSaveData done [08:11:52]OFDSenderStorePacket done [08:11:52]KKMCreateOFDPacket done [08:11:52]NVStorageSaveData kkm_last_timestamp [08:11:52]File name is /storage/kkm_last_timestamp [08:11:52]Write 4 bytes [08:11:52]NVStorageSaveData done [08:11:52]ExternCall_PrintAddStr [08:11:52]wPrintStart [08:11:52]Write to MH i2c: 01 00 00 C2 37 F9 [08:11:52]Write i2c OK [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: 01 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: 01 07 00 [08:11:52]MH_I2C_Read... [08:11:52]Read from MH i2c: 01 07 00 C2 37 00 00 00 00 00 FF 0F 0E [08:11:52]RasterBufferAndPrint [08:11:52]line Счет N : (3)254546 [08:11:52]line ИНН: 02508201610067 [08:11:52]line Контрольно-Кассовый Чек [08:11:52]line ПРОДАЖА [08:11:52]line Товар: 48747059 [08:11:52]line Сигареты Winston Legend Blue [08:11:52]line 1.000 * 140.00 [08:11:52]line = 140.00 [08:11:52]line НДС 12% НСП 1% [08:11:53]line > о реализуемом товаре [08:11:53]line Товар: 8710732217097 [08:11:53]line Зажигалка Cricket ПН пьезо [08:11:53]line 1.000 * 67.00 [08:11:53]line = 67.00 [08:11:53]line НДС 12% НСП 1% [08:11:53]line > о реализуемом товаре [08:11:53]line ИТОГО: 207.00 [08:11:53]line НСП 1% : 1.83 [08:11:53]line НДС 12% : 21.98 [08:11:53]line Наличными: 207.00 [08:11:53]line Безнал.: 0.00 [08:11:53]line Место: АЗС № 76 "Партнер Нефть" [08:11:53]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [08:11:53]line СНО: Общий режим [08:11:53]line Чек 17 17.06.2024 08:12 [08:11:53]line Смена: 328 ФФД: 1.0 [08:11:53]line ЗНМ: 0300000200 [08:11:53]line РНМ: 0000000000099755 [08:11:53]line Версия ККМ: 001 [08:11:53]line ФМ: 0000000000965344 [08:11:53]line ФД: 22336 [08:11:53]line ФПД: 66875804128432 [08:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T081203&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22336&fm=66875804128432&tin=02508201610067®Number=0000000000099755&sum=20700 [08:11:53]line 0 [08:11:53]OFD Sender: Processing packet 22336 [packets to send 5, broken 4] [08:11:53]ProducePacketName [08:11:53]name=ofd_packets/00022336 [08:11:53]OFD Sender: To server: pG, [08:11:53]CommunicateWithHost lk.salyk.kg:30040 [08:11:53]ConnectInit lk.salyk.kg [08:11:53]written 0, free lines is 4095 [08:11:53]Connected sock=10 [08:11:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 97 01 00 00 C7 5F 8F 01 B4 CE 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 38 37 31 30 37 33 32 32 31 37 30 39 37 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 08 00 00 00 00 07 04 06 00 DC 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D3 EF 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 40 57 00 00 35 04 06 00 3C D2 BC 8C 94 B0 4E 5F 09 5C B8 C4 A0 F4 [08:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 CC 2E 47 00 F4 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 40 57 00 00 F4 03 04 00 8B 98 6F 66 B6 04 01 00 00 E0 B7 18 50 C4 66 D9 F7 [08:11:53]CommunicateWithHost err = 0 [08:11:53]CheckOFDResponse [08:11:53]1017 (14) - 77093643461234 [08:11:53]1041 (16) - 0000000000965344 [08:11:53]1040 (4) - 22336 [08:11:53]1012 (4) - 17.06.2024 01:59 [08:11:53]1206 (1) - 0 [08:11:53]OFD Sender: Remove packet 22336 [08:11:53]ProducePacketName [08:11:53]name=ofd_packets/00022336 [08:11:53]NVStorageDeleteData [08:11:53]Write to MH i2c: 01 00 00 F1 37 28 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: 01 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: 01 07 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: 01 07 00 F1 37 00 00 00 00 00 C0 0C FB [08:11:53]RasterBufferAndPrint [08:11:53]line [08:11:53]line [08:11:53]line [08:11:53]line [08:11:53]line [08:11:53]written 0, free lines is 3271 [08:11:53]MH_Cut [08:11:53]Write to MH i2c: D1 01 00 F8 37 01 01 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: D1 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: D1 01 00 [08:11:53]MH_I2C_Read... [08:11:53]Read from MH i2c: D1 01 00 F8 37 00 00 [08:11:53]Write to MH i2c: 01 00 00 F9 37 30 [08:11:53]Write i2c OK [08:11:53]MH_I2C_Read... [08:11:53]OFD Sender: No OFD packet to send [08:11:54]*** Cut start [08:11:54]*** Partial cut [08:11:54]*** CUTSNS_PIN = 1 [08:11:54]*** CUTSNS_PIN = 0 [08:11:54]*** Brake cut motor [08:11:54]Read from MH i2c: 01 [08:11:54]MH_I2C_Read... [08:11:54]*** Stop cut motor [08:11:55]*** Cut end [08:11:55]Read from MH i2c: 01 07 00 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: 01 07 00 F9 37 00 00 00 00 00 FF 0F 45 [08:11:55]process_action close_receipt done [08:11:55]requested_data is exist [08:11:55]produce_requested_data [08:11:55]requested_item fm.sn is exist - process it [08:11:55]wFMCommunicate request_size=4 [08:11:55]MH_SAM_APDU [08:11:55]CAPDU: 80 11 00 00 [08:11:55]Write to MH i2c: E2 08 00 FA 37 80 11 00 00 00 00 00 00 AB [08:11:55]Write i2c OK [08:11:55]MH_I2C_Read... [08:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:55]Read from MH i2c: E2 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 17 00 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 17 00 FA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 FD [08:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:11:55]wFMCommunicate OK [08:11:55]requested_item fd.num is exist - process it [08:11:55]SAM_PROTO_GetFieldsCounters [08:11:55]wFMCommunicate request_size=4 [08:11:55]MH_SAM_APDU [08:11:55]CAPDU: 80 13 00 00 [08:11:55]Write to MH i2c: E2 08 00 FB 37 80 13 00 00 00 00 00 00 AE [08:11:55]Write i2c OK [08:11:55]MH_I2C_Read... [08:11:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:55]Read from MH i2c: E2 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 62 00 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 62 00 FB 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 40 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [08:11:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 40 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:55]wFMCommunicate OK [08:11:55]SAM_PROTO_GetFieldsCounters done [08:11:55]requested_item shift.num is exist - process it [08:11:55]requested_item shift.opened is exist - process it [08:11:55]req_shift_opened [08:11:55]FM_GetShiftState [08:11:55]SAM_PROTO_GetShiftState [08:11:55]wFMCommunicate request_size=4 [08:11:55]MH_SAM_APDU [08:11:55]CAPDU: 80 13 01 00 [08:11:55]Write to MH i2c: E2 08 00 FC 37 80 13 01 00 00 00 00 00 B0 [08:11:55]Write i2c OK [08:11:55]MH_I2C_Read... [08:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:55]Read from MH i2c: E2 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 0E 00 [08:11:55]MH_I2C_Read... [08:11:55]Read from MH i2c: E2 0E 00 FC 37 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 62 [08:11:55]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [08:11:55]wFMCommunicate OK [08:11:55]SAM_PROTO_GetShiftState done [08:11:55]FM_GetShiftState done [08:11:55]req_shift_opened done [08:11:55]requested_item shift.open_date is exist - process it [08:11:55]req_shift_open_date [08:11:55]req_shift_open_date done [08:11:55]produce_requested_data done [08:11:55]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22336,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [08:11:55]process_action_free close_receipt [08:11:55]json_value_free [08:11:55]json_value_free done [08:11:55]process_json_proto returns [08:11:55]Send response to host [08:11:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22336,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [08:11:55]free response buf [08:11:55]execute_script done [08:11:55]execute_script returns [08:11:55]free content buf [08:11:55]Sock 9.Close socket [08:11:55]Sock 9.Thread stoped [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:49]accept exits with 8 [08:28:49]New connection [08:28:49]New thread 3066695012 created [08:28:49]Thread 3066838372 joined [08:28:49]Waiting for new connection... [08:28:49] Sock 8.Parse request [08:28:49]Sock 8.Check first char [08:28:49]Sock 8.First char is OK [08:28:49]request: POST /json_proto HTTP/1.0 [08:28:49]Method: POST [08:28:49]URL: /json_proto [08:28:49]Method is POST - this is cgi request [08:28:49]url: /json_proto [08:28:49]query_string will be loaded in cgi processing [08:28:49]execute_cgi json_proto POST (null) [08:28:49]execute_cgi path=json_proto method=POST [08:28:49]POST find Content-Length [08:28:49]Host: 172.17.35.133:8080 [08:28:49]Content-Length: 656 [08:28:49]Content-Type: application/json [08:28:49] [08:28:49]POST finish read [08:28:49]Found Content-Length = 656 [08:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254547", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:49]execute_script... [08:28: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 : (3)254547", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:49]POST & json_proto [08:28:49]process_json_proto [08:28:49]json parsed OK: [08:28:49]protocol is kg_v1.0 [08:28:49]action value=close_receipt [08:28:49]process_action close_receipt [08:28:49]cmd_close_receipt [08:28:49]MH_GetDate [08:28:49]Write to MH i2c: F0 00 00 FD 37 23 [08:28:49]Write i2c OK [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: F0 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: F0 09 00 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: F0 09 00 FD 37 00 CE F3 6F 66 8C 55 28 65 30 [08:28:49]GetLastDocTimeStamp 1718611923 [08:28:49]current date 1718612942 [08:28:49]FM_GetShiftState [08:28:49]SAM_PROTO_GetShiftState [08:28:49]wFMCommunicate request_size=4 [08:28:49]MH_SAM_APDU [08:28:49]CAPDU: 80 13 01 00 [08:28:49]Write to MH i2c: E2 08 00 FE 37 80 13 01 00 00 00 00 00 B2 [08:28:49]Write i2c OK [08:28:49]MH_I2C_Read... [08:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:49]Read from MH i2c: E2 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 0E 00 [08:28:49]MH_I2C_Read... [08:28:49]Read from MH i2c: E2 0E 00 FE 37 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 64 [08:28:49]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [08:28:49]wFMCommunicate OK [08:28:49]SAM_PROTO_GetShiftState done [08:28:49]FM_GetShiftState done [08:28:49]opened in 1718583887 [08:28:49]opened+sec_in_day 1718670287 [08:28:49]quantity*price = 400 [08:28:49]sum+1 = 401 [08:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 18 17.06.2024 08:29 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22337 ФПД: 208903009690933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T082902&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22337&fm=208903009690933&tin=02508201610067®Number=0000000000099755&sum=400 0 [08:28:50]StoreToDocumentArchive [08:28:50]shift 328 fd 22337 [08:28:50]save to /storage/0328/doc_00022337 [08:28:50]save last doc name /storage/0328/doc_00022337 to /storage/kkm_last_doc_name [08:28:50]save OK [08:28:50]Clear old archive folders... [08:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=278 [08:28:50]tlvbuf is 001B2EF0 [08:28:50]SAM_PROTO_ClearQueue [08:28:50]wFMCommunicate request_size=4 [08:28:50]MH_SAM_APDU [08:28:50]CAPDU: 80 09 00 00 [08:28:50]Write to MH i2c: E2 08 00 0B 38 80 09 00 00 00 00 00 00 B5 [08:28:50]Write i2c OK [08:28:50]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 0B 38 00 90 00 B7 [08:28:51]RAPDU: 90 00 [08:28:51]wFMCommunicate OK [08:28:51]SAM_PROTO_ClearQueue done [08:28:51]KKMCreateOFDPacket [08:28:51]OFDProtocolAddRootSTLVToBuf [08:28:51]FM_MakeSignedData [08:28:51]FM_MakeSignedData [08:28:51]SAM_PROTO_SignData [08:28:51]wFMCommunicate request_size=4 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 0D 01 02 [08:28:51]Write to MH i2c: E2 08 00 0C 38 80 0D 01 02 00 00 00 00 BD [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 0C 38 00 90 00 B8 [08:28:51]RAPDU: 90 00 [08:28:51]wFMCommunicate OK [08:28:51]wFMCommunicate request_size=255 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 CE F3 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 [08:28:51]Write to MH i2c: E2 02 01 0D 38 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 CE F3 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 00 00 F5 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 0D 38 00 90 00 B9 [08:28:51]RAPDU: 90 00 [08:28:51]wFMCommunicate OK [08:28:51]wFMCommunicate request_size=37 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 41 57 00 00 35 04 06 00 BD FF 05 AF 65 35 [08:28:51]Write to MH i2c: E2 28 00 0E 38 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 41 57 00 00 35 04 06 00 BD FF 05 AF 65 35 00 00 B8 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 0E 38 00 90 00 BA [08:28:51]RAPDU: 90 00 [08:28:51]wFMCommunicate OK [08:28:51]wFMCommunicate request_size=4 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 0D 03 02 [08:28:51]Write to MH i2c: E2 08 00 0F 38 80 0D 03 02 00 00 00 00 C2 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 0B 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 0B 00 0F 38 00 F3 65 95 47 03 DA 13 E1 90 00 C8 [08:28:51]RAPDU: F3 65 95 47 03 DA 13 E1 90 00 [08:28:51]wFMCommunicate OK [08:28:51]SAM_PROTO_SignData done [08:28:51]FM_MakeSignedData done [08:28:51]CreateOFDProtocolMessage [08:28:51]wFMCommunicate request_size=4 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 11 00 00 [08:28:51]Write to MH i2c: E2 08 00 10 38 80 11 00 00 00 00 00 00 C2 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 17 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 17 00 10 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 14 [08:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:28:51]wFMCommunicate OK [08:28:51]CreateOFDProtocolMessage done [08:28:51]OFDSenderStorePacket 22337 [08:28:51]StoreOFDPacket docnum=22337 [08:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 2A 01 00 00 E6 C5 22 01 5A 1E 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 CE F3 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 41 57 00 00 35 04 06 00 BD FF 05 AF 65 35 F3 65 95 47 03 DA 13 E1 [08:28:51]CheckFolder [08:28:51]dirname=/storage/ofd_packets [08:28:51]CheckFolder done [08:28:51]ProducePacketName [08:28:51]name=ofd_packets/00022337 [08:28:51]NVStorageSaveData ofd_packets/00022337 [08:28:51]File name is /storage/ofd_packets/00022337 [08:28:51]Write 328 bytes [08:28:51]NVStorageSaveData done [08:28:51]OFDSenderStorePacket done [08:28:51]KKMCreateOFDPacket done [08:28:51]NVStorageSaveData kkm_last_timestamp [08:28:51]File name is /storage/kkm_last_timestamp [08:28:51]Write 4 bytes [08:28:51]NVStorageSaveData done [08:28:51]ExternCall_PrintAddStr [08:28:51]wPrintStart [08:28:51]Write to MH i2c: 01 00 00 11 38 49 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 07 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 07 00 11 38 00 00 00 00 00 FF 0F 5E [08:28:51]RasterBufferAndPrint [08:28:51]line Счет N : (3)254547 [08:28:51]line ИНН: 02508201610067 [08:28:51]line Контрольно-Кассовый Чек [08:28:51]line ПРОДАЖА [08:28:51]line Товар: 2000031750019 [08:28:51]line Пакет Партнер Нефть [08:28:51]line 1.000 * 4.00 [08:28:51]line = 4.00 [08:28:51]line НДС 12% НСП 1% [08:28:51]line > о реализуемом товаре [08:28:51]line ИТОГО: 4.00 [08:28:51]line НСП 1% : 0.03 [08:28:51]line НДС 12% : 0.42 [08:28:51]line Наличными: 4.00 [08:28:51]line Безнал.: 0.00 [08:28:51]line Место: АЗС № 76 "Партнер Нефть" [08:28:51]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [08:28:51]line СНО: Общий режим [08:28:51]line Чек 18 17.06.2024 08:29 [08:28:51]line Смена: 328 ФФД: 1.0 [08:28:51]line ЗНМ: 0300000200 [08:28:51]line РНМ: 0000000000099755 [08:28:51]line Версия ККМ: 001 [08:28:51]line ФМ: 0000000000965344 [08:28:51]line ФД: 22337 [08:28:51]line ФПД: 208903009690933 [08:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T082902&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22337&fm=208903009690933&tin=02508201610067®Number=0000000000099755&sum=400 [08:28:51]line 0 [08:28:51]OFD Sender: Processing packet 22337 [packets to send 5, broken 4] [08:28:51]ProducePacketName [08:28:51]name=ofd_packets/00022337 [08:28:51]OFD Sender: To server: pG, [08:28:51]CommunicateWithHost lk.salyk.kg:30040 [08:28:51]ConnectInit lk.salyk.kg [08:28:51]written 0, free lines is 4095 [08:28:51]Connected sock=9 [08:28:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 2A 01 00 00 E6 C5 22 01 5A 1E 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 CE F3 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 41 57 00 00 35 04 06 00 BD FF 05 AF 65 35 F3 65 95 47 03 DA 13 E1 [08:28:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 65 5F 47 00 C3 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 39 36 35 33 34 34 10 04 04 00 41 57 00 00 F4 03 04 00 86 9C 6F 66 B6 04 01 00 00 E7 73 FA 19 4E CB E6 AB [08:28:52]CommunicateWithHost err = 0 [08:28:52]CheckOFDResponse [08:28:52]1017 (14) - 77093643461234 [08:28:52]1041 (16) - 0000000000965344 [08:28:52]1040 (4) - 22337 [08:28:52]1012 (4) - 17.06.2024 02:16 [08:28:52]1206 (1) - 0 [08:28:52]OFD Sender: Remove packet 22337 [08:28:52]ProducePacketName [08:28:52]name=ofd_packets/00022337 [08:28:52]NVStorageDeleteData [08:28:52]Write to MH i2c: 01 00 00 39 38 71 [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: 01 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: 01 07 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: 01 07 00 39 38 00 00 00 00 00 2C 0D B1 [08:28:52]RasterBufferAndPrint [08:28:52]line [08:28:52]line [08:28:52]line [08:28:52]line [08:28:52]line [08:28:52]written 0, free lines is 3380 [08:28:52]MH_Cut [08:28:52]Write to MH i2c: D1 01 00 40 38 01 4A [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: D1 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: D1 01 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: D1 01 00 40 38 00 49 [08:28:52]Write to MH i2c: 01 00 00 41 38 79 [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]OFD Sender: No OFD packet to send [08:28:52]*** Cut start [08:28:52]*** Partial cut [08:28:52]*** CUTSNS_PIN = 1 [08:28:53]*** CUTSNS_PIN = 0 [08:28:53]*** Brake cut motor [08:28:53]Read from MH i2c: 01 [08:28:53]MH_I2C_Read... [08:28:53]*** Stop cut motor [08:28:53]*** Cut end [08:28:53]Read from MH i2c: 01 07 00 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: 01 07 00 41 38 00 00 00 00 00 FF 0F 8E [08:28:53]process_action close_receipt done [08:28:53]requested_data is exist [08:28:53]produce_requested_data [08:28:53]requested_item fm.sn is exist - process it [08:28:53]wFMCommunicate request_size=4 [08:28:53]MH_SAM_APDU [08:28:53]CAPDU: 80 11 00 00 [08:28:53]Write to MH i2c: E2 08 00 42 38 80 11 00 00 00 00 00 00 F4 [08:28:53]Write i2c OK [08:28:53]MH_I2C_Read... [08:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:53]Read from MH i2c: E2 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 17 00 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 17 00 42 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 46 [08:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:28:53]wFMCommunicate OK [08:28:53]requested_item fd.num is exist - process it [08:28:53]SAM_PROTO_GetFieldsCounters [08:28:53]wFMCommunicate request_size=4 [08:28:53]MH_SAM_APDU [08:28:53]CAPDU: 80 13 00 00 [08:28:53]Write to MH i2c: E2 08 00 43 38 80 13 00 00 00 00 00 00 F7 [08:28:53]Write i2c OK [08:28:53]MH_I2C_Read... [08:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:53]Read from MH i2c: E2 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 62 00 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 62 00 43 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 41 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [08:28:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 41 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:53]wFMCommunicate OK [08:28:53]SAM_PROTO_GetFieldsCounters done [08:28:53]requested_item shift.num is exist - process it [08:28:53]requested_item shift.opened is exist - process it [08:28:53]req_shift_opened [08:28:53]FM_GetShiftState [08:28:53]SAM_PROTO_GetShiftState [08:28:53]wFMCommunicate request_size=4 [08:28:53]MH_SAM_APDU [08:28:53]CAPDU: 80 13 01 00 [08:28:53]Write to MH i2c: E2 08 00 44 38 80 13 01 00 00 00 00 00 F9 [08:28:53]Write i2c OK [08:28:53]MH_I2C_Read... [08:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:53]Read from MH i2c: E2 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 0E 00 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 0E 00 44 38 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 AB [08:28:53]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [08:28:53]wFMCommunicate OK [08:28:53]SAM_PROTO_GetShiftState done [08:28:53]FM_GetShiftState done [08:28:53]req_shift_opened done [08:28:53]requested_item shift.open_date is exist - process it [08:28:53]req_shift_open_date [08:28:53]req_shift_open_date done [08:28:53]produce_requested_data done [08:28:53]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22337,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [08:28:53]process_action_free close_receipt [08:28:53]json_value_free [08:28:53]json_value_free done [08:28:53]process_json_proto returns [08:28:53]Send response to host [08:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22337,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [08:28:53]free response buf [08:28:53]execute_script done [08:28:53]execute_script returns [08:28:53]free content buf [08:28:53]Sock 8.Close socket [08:28:53]Sock 8.Thread stoped [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:30:27]ConnectInit Can't connect to host [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:33]OFD Sender: No OFD packet to send [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:54]accept exits with 10 [08:50:54]New connection [08:50:54]New thread 3066838372 created [08:50:54]Thread 3066695012 joined [08:50:54]Waiting for new connection... [08:50:54] Sock 10.Parse request [08:50:54]Sock 10.Check first char [08:50:54]Sock 10.First char is OK [08:50:54]request: POST /json_proto HTTP/1.0 [08:50:54]Method: POST [08:50:54]URL: /json_proto [08:50:54]Method is POST - this is cgi request [08:50:54]url: /json_proto [08:50:54]query_string will be loaded in cgi processing [08:50:54]execute_cgi json_proto POST (null) [08:50:54]execute_cgi path=json_proto method=POST [08:50:54]POST find Content-Length [08:50:54]Host: 172.17.35.133:8080 [08:50:54]Content-Length: 668 [08:50:54]Content-Type: application/json [08:50:54] [08:50:54]POST finish read [08:50:54]Found Content-Length = 668 [08:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254548", "tax_sys" : 0, "items" : [ { "code": "4670003195728", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:54]execute_script... [08:50:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254548", "tax_sys" : 0, "items" : [ { "code": "4670003195728", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:54]POST & json_proto [08:50:54]process_json_proto [08:50:54]json parsed OK: [08:50:54]protocol is kg_v1.0 [08:50:54]action value=close_receipt [08:50:54]process_action close_receipt [08:50:54]cmd_close_receipt [08:50:54]MH_GetDate [08:50:54]Write to MH i2c: F0 00 00 45 38 6C [08:50:54]Write i2c OK [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: F0 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: F0 09 00 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: F0 09 00 45 38 00 FB F8 6F 66 8C 55 28 65 AB [08:50:54]GetLastDocTimeStamp 1718612942 [08:50:54]current date 1718614267 [08:50:54]FM_GetShiftState [08:50:54]SAM_PROTO_GetShiftState [08:50:54]wFMCommunicate request_size=4 [08:50:54]MH_SAM_APDU [08:50:54]CAPDU: 80 13 01 00 [08:50:54]Write to MH i2c: E2 08 00 46 38 80 13 01 00 00 00 00 00 FB [08:50:54]Write i2c OK [08:50:54]MH_I2C_Read... [08:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:54]Read from MH i2c: E2 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: E2 0E 00 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: E2 0E 00 46 38 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 AD [08:50:54]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [08:50:54]wFMCommunicate OK [08:50:54]SAM_PROTO_GetShiftState done [08:50:54]FM_GetShiftState done [08:50:54]opened in 1718583887 [08:50:54]opened+sec_in_day 1718670287 [08:50:54]quantity*price = 22500 [08:50:54]sum+1 = 22501 [08:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 19 17.06.2024 08:51 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22338 ФПД: 277197608183104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T085107&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22338&fm=277197608183104&tin=02508201610067®Number=0000000000099755&sum=22500 0 [08:50:55]StoreToDocumentArchive [08:50:55]shift 328 fd 22338 [08:50:55]save to /storage/0328/doc_00022338 [08:50:55]save last doc name /storage/0328/doc_00022338 to /storage/kkm_last_doc_name [08:50:55]save OK [08:50:55]Clear old archive folders... [08:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=296 [08:50:55]tlvbuf is 001EDE10 [08:50:55]SAM_PROTO_ClearQueue [08:50:55]wFMCommunicate request_size=4 [08:50:55]MH_SAM_APDU [08:50:55]CAPDU: 80 09 00 00 [08:50:55]Write to MH i2c: E2 08 00 53 38 80 09 00 00 00 00 00 00 FD [08:50:55]Write i2c OK [08:50:55]MH_I2C_Read... [08:50:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:56]Read from MH i2c: E2 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: E2 03 00 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: E2 03 00 53 38 00 90 00 FF [08:50:56]RAPDU: 90 00 [08:50:56]wFMCommunicate OK [08:50:56]SAM_PROTO_ClearQueue done [08:50:56]KKMCreateOFDPacket [08:50:56]OFDProtocolAddRootSTLVToBuf [08:50:56]FM_MakeSignedData [08:50:56]FM_MakeSignedData [08:50:56]SAM_PROTO_SignData [08:50:56]wFMCommunicate request_size=4 [08:50:56]MH_SAM_APDU [08:50:56]CAPDU: 80 0D 01 02 [08:50:56]Write to MH i2c: E2 08 00 54 38 80 0D 01 02 00 00 00 00 05 [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:56]Read from MH i2c: E2 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: E2 03 00 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: E2 03 00 54 38 00 90 00 00 [08:50:56]RAPDU: 90 00 [08:50:56]wFMCommunicate OK [08:50:56]wFMCommunicate request_size=255 [08:50:56]MH_SAM_APDU [08:50:56]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FB F8 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [08:50:56]Write to MH i2c: E2 02 01 55 38 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FB F8 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 BC [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: E2 [08:50:56]MH_I2C_Read... [08:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:56]Read from MH i2c: E2 03 00 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: E2 03 00 55 38 00 90 00 01 [08:50:56]RAPDU: 90 00 [08:50:56]wFMCommunicate OK [08:50:56]wFMCommunicate request_size=55 [08:50:56]MH_SAM_APDU [08:50:56]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 42 57 00 00 35 04 06 00 FC 1C 18 F7 E5 40 [08:50:56]Write to MH i2c: E2 3A 00 56 38 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 42 57 00 00 35 04 06 00 FC 1C 18 F7 E5 40 00 00 4F [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:56]Read from MH i2c: E2 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: E2 03 00 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: E2 03 00 56 38 00 90 00 02 [08:50:56]RAPDU: 90 00 [08:50:56]wFMCommunicate OK [08:50:56]wFMCommunicate request_size=4 [08:50:56]MH_SAM_APDU [08:50:56]CAPDU: 80 0D 03 02 [08:50:56]Write to MH i2c: E2 08 00 57 38 80 0D 03 02 00 00 00 00 0A [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:56]Read from MH i2c: E2 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: E2 0B 00 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: E2 0B 00 57 38 00 F8 BF 05 3D 80 11 81 92 90 00 A8 [08:50:56]RAPDU: F8 BF 05 3D 80 11 81 92 90 00 [08:50:56]wFMCommunicate OK [08:50:56]SAM_PROTO_SignData done [08:50:56]FM_MakeSignedData done [08:50:56]CreateOFDProtocolMessage [08:50:56]wFMCommunicate request_size=4 [08:50:56]MH_SAM_APDU [08:50:56]CAPDU: 80 11 00 00 [08:50:56]Write to MH i2c: E2 08 00 58 38 80 11 00 00 00 00 00 00 0A [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:56]Read from MH i2c: E2 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: E2 17 00 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: E2 17 00 58 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 5C [08:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:50:56]wFMCommunicate OK [08:50:56]CreateOFDProtocolMessage done [08:50:56]OFDSenderStorePacket 22338 [08:50:56]StoreOFDPacket docnum=22338 [08:50:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 3C 01 00 00 F8 0B 34 01 58 5E 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FB F8 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 42 57 00 00 35 04 06 00 FC 1C 18 F7 E5 40 F8 BF 05 3D 80 11 81 92 [08:50:56]CheckFolder [08:50:56]dirname=/storage/ofd_packets [08:50:56]CheckFolder done [08:50:56]ProducePacketName [08:50:56]name=ofd_packets/00022338 [08:50:56]NVStorageSaveData ofd_packets/00022338 [08:50:56]File name is /storage/ofd_packets/00022338 [08:50:56]Write 346 bytes [08:50:56]NVStorageSaveData done [08:50:56]OFDSenderStorePacket done [08:50:56]KKMCreateOFDPacket done [08:50:56]NVStorageSaveData kkm_last_timestamp [08:50:56]File name is /storage/kkm_last_timestamp [08:50:56]Write 4 bytes [08:50:56]NVStorageSaveData done [08:50:56]ExternCall_PrintAddStr [08:50:56]wPrintStart [08:50:56]Write to MH i2c: 01 00 00 59 38 91 [08:50:56]Write i2c OK [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: 01 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: 01 07 00 [08:50:56]MH_I2C_Read... [08:50:56]Read from MH i2c: 01 07 00 59 38 00 00 00 00 00 FF 0F A6 [08:50:56]RasterBufferAndPrint [08:50:56]line Счет N : (3)254548 [08:50:56]line ИНН: 02508201610067 [08:50:56]line Контрольно-Кассовый Чек [08:50:56]line ПРОДАЖА [08:50:56]line Товар: 4670003195728 [08:50:56]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [08:50:56]line 1.000 * 225.00 [08:50:56]line = 225.00 [08:50:56]line НДС 12% НСП 1% [08:50:56]line > о реализуемом товаре [08:50:56]line ИТОГО: 225.00 [08:50:56]line НСП 1% : 1.99 [08:50:56]line НДС 12% : 23.89 [08:50:56]line Наличными: 225.00 [08:50:56]line Безнал.: 0.00 [08:50:56]line Место: АЗС № 76 "Партнер Нефть" [08:50:56]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [08:50:56]line СНО: Общий режим [08:50:56]line Чек 19 17.06.2024 08:51 [08:50:56]line Смена: 328 ФФД: 1.0 [08:50:56]line ЗНМ: 0300000200 [08:50:56]line РНМ: 0000000000099755 [08:50:56]line Версия ККМ: 001 [08:50:56]line ФМ: 0000000000965344 [08:50:56]line ФД: 22338 [08:50:56]line ФПД: 277197608183104 [08:50:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T085107&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22338&fm=277197608183104&tin=02508201610067®Number=0000000000099755&sum=22500 [08:50:56]line 0 [08:50:56]OFD Sender: Processing packet 22338 [packets to send 5, broken 4] [08:50:56]ProducePacketName [08:50:56]name=ofd_packets/00022338 [08:50:56]OFD Sender: To server: pG, [08:50:56]CommunicateWithHost lk.salyk.kg:30040 [08:50:56]ConnectInit lk.salyk.kg [08:50:56]written 0, free lines is 4095 [08:50:56]Connected sock=9 [08:50:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 3C 01 00 00 F8 0B 34 01 58 5E 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 FB F8 6F 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 42 57 00 00 35 04 06 00 FC 1C 18 F7 E5 40 F8 BF 05 3D 80 11 81 92 [08:50:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 18 7B 47 00 19 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 39 36 35 33 34 34 10 04 04 00 42 57 00 00 F4 03 04 00 B3 A1 6F 66 B6 04 01 00 00 C0 23 DF A5 8E 0B 37 94 [08:50:57]CommunicateWithHost err = 0 [08:50:57]CheckOFDResponse [08:50:57]1017 (14) - 77093643461234 [08:50:57]1041 (16) - 0000000000965344 [08:50:57]1040 (4) - 22338 [08:50:57]1012 (4) - 17.06.2024 02:38 [08:50:57]1206 (1) - 0 [08:50:57]OFD Sender: Remove packet 22338 [08:50:57]ProducePacketName [08:50:57]name=ofd_packets/00022338 [08:50:57]NVStorageDeleteData [08:50:57]Write to MH i2c: 01 00 00 82 38 BA [08:50:57]Write i2c OK [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: 01 [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: 01 07 00 [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: 01 07 00 82 38 00 00 00 00 00 23 0D F1 [08:50:57]RasterBufferAndPrint [08:50:57]line [08:50:57]line [08:50:57]line [08:50:57]line [08:50:57]line [08:50:57]written 0, free lines is 3369 [08:50:57]MH_Cut [08:50:57]Write to MH i2c: D1 01 00 89 38 01 93 [08:50:57]Write i2c OK [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: D1 [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: D1 01 00 [08:50:57]MH_I2C_Read... [08:50:57]Read from MH i2c: D1 01 00 89 38 00 92 [08:50:57]Write to MH i2c: 01 00 00 8A 38 C2 [08:50:57]Write i2c OK [08:50:57]MH_I2C_Read... [08:50:57]OFD Sender: No OFD packet to send [08:50:57]*** Cut start [08:50:57]*** Partial cut [08:50:57]*** CUTSNS_PIN = 1 [08:50:58]*** CUTSNS_PIN = 0 [08:50:58]*** Brake cut motor [08:50:58]Read from MH i2c: 01 [08:50:58]MH_I2C_Read... [08:50:58]*** Stop cut motor [08:50:58]*** Cut end [08:50:58]Read from MH i2c: 01 07 00 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: 01 07 00 8A 38 00 00 00 00 00 FF 0F D7 [08:50:58]process_action close_receipt done [08:50:58]requested_data is exist [08:50:58]produce_requested_data [08:50:58]requested_item fm.sn is exist - process it [08:50:58]wFMCommunicate request_size=4 [08:50:58]MH_SAM_APDU [08:50:58]CAPDU: 80 11 00 00 [08:50:58]Write to MH i2c: E2 08 00 8B 38 80 11 00 00 00 00 00 00 3D [08:50:58]Write i2c OK [08:50:58]MH_I2C_Read... [08:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:58]Read from MH i2c: E2 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: E2 17 00 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: E2 17 00 8B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 8F [08:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [08:50:58]wFMCommunicate OK [08:50:58]requested_item fd.num is exist - process it [08:50:58]SAM_PROTO_GetFieldsCounters [08:50:58]wFMCommunicate request_size=4 [08:50:58]MH_SAM_APDU [08:50:58]CAPDU: 80 13 00 00 [08:50:58]Write to MH i2c: E2 08 00 8C 38 80 13 00 00 00 00 00 00 40 [08:50:58]Write i2c OK [08:50:58]MH_I2C_Read... [08:50:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:58]Read from MH i2c: E2 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: E2 62 00 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: E2 62 00 8C 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 42 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [08:50:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 42 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:58]wFMCommunicate OK [08:50:58]SAM_PROTO_GetFieldsCounters done [08:50:58]requested_item shift.num is exist - process it [08:50:58]requested_item shift.opened is exist - process it [08:50:58]req_shift_opened [08:50:58]FM_GetShiftState [08:50:58]SAM_PROTO_GetShiftState [08:50:58]wFMCommunicate request_size=4 [08:50:58]MH_SAM_APDU [08:50:58]CAPDU: 80 13 01 00 [08:50:58]Write to MH i2c: E2 08 00 8D 38 80 13 01 00 00 00 00 00 42 [08:50:58]Write i2c OK [08:50:58]MH_I2C_Read... [08:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:58]Read from MH i2c: E2 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: E2 0E 00 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: E2 0E 00 8D 38 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 F4 [08:50:58]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [08:50:58]wFMCommunicate OK [08:50:58]SAM_PROTO_GetShiftState done [08:50:58]FM_GetShiftState done [08:50:58]req_shift_opened done [08:50:58]requested_item shift.open_date is exist - process it [08:50:58]req_shift_open_date [08:50:58]req_shift_open_date done [08:50:58]produce_requested_data done [08:50:58]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22338,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [08:50:58]process_action_free close_receipt [08:50:58]json_value_free [08:50:58]json_value_free done [08:50:58]process_json_proto returns [08:50:58]Send response to host [08:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22338,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [08:50:58]free response buf [08:50:58]execute_script done [08:50:58]execute_script returns [08:50:58]free content buf [08:50:58]Sock 10.Close socket [08:50:58]Sock 10.Thread stoped [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:31]accept exits with 8 [09:22:31]New connection [09:22:31]New thread 3066695012 created [09:22:31]Thread 3066838372 joined [09:22:31]Waiting for new connection... [09:22:31] Sock 8.Parse request [09:22:31]Sock 8.Check first char [09:22:31]Sock 8.First char is OK [09:22:31]request: POST /json_proto HTTP/1.0 [09:22:31]Method: POST [09:22:31]URL: /json_proto [09:22:31]Method is POST - this is cgi request [09:22:31]url: /json_proto [09:22:31]query_string will be loaded in cgi processing [09:22:31]execute_cgi json_proto POST (null) [09:22:31]execute_cgi path=json_proto method=POST [09:22:31]POST find Content-Length [09:22:31]Host: 172.17.35.133:8080 [09:22:31]Content-Length: 848 [09:22:31]Content-Type: application/json [09:22:31] [09:22:31]POST finish read [09:22:31]Found Content-Length = 848 [09:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254549", "tax_sys" : 0, "items" : [ { "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030024", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043E\u043F\u0447\u0435\u043D\u043D\u044B\u0439", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:31]execute_script... [09:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254549", "tax_sys" : 0, "items" : [ { "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030024", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043E\u043F\u0447\u0435\u043D\u043D\u044B\u0439", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:31]POST & json_proto [09:22:31]process_json_proto [09:22:31]json parsed OK: [09:22:31]protocol is kg_v1.0 [09:22:31]action value=close_receipt [09:22:31]process_action close_receipt [09:22:31]cmd_close_receipt [09:22:31]MH_GetDate [09:22:31]Write to MH i2c: F0 00 00 8E 38 B5 [09:22:31]Write i2c OK [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: F0 [09:22:31]MH_I2C_Read... [09:22:31]Read from MH i2c: F0 09 00 [09:22:31]MH_I2C_Read... [09:22:32]Read from MH i2c: F0 09 00 8E 38 00 64 00 70 66 8C 55 28 65 66 [09:22:32]GetLastDocTimeStamp 1718614267 [09:22:32]current date 1718616164 [09:22:32]FM_GetShiftState [09:22:32]SAM_PROTO_GetShiftState [09:22:32]wFMCommunicate request_size=4 [09:22:32]MH_SAM_APDU [09:22:32]CAPDU: 80 13 01 00 [09:22:32]Write to MH i2c: E2 08 00 8F 38 80 13 01 00 00 00 00 00 44 [09:22:32]Write i2c OK [09:22:32]MH_I2C_Read... [09:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:32]Read from MH i2c: E2 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: E2 0E 00 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: E2 0E 00 8F 38 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 F6 [09:22:32]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:22:32]wFMCommunicate OK [09:22:32]SAM_PROTO_GetShiftState done [09:22:32]FM_GetShiftState done [09:22:32]opened in 1718583887 [09:22:32]opened+sec_in_day 1718670287 [09:22:32]quantity*price = 4200 [09:22:32]sum+1 = 4201 [09:22:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700026030024 Курут копченный 1.000 * 42.00 = 42.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 84.00 НСП 1% : 0.74 НДС 12% : 8.92 Наличными: 84.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 20 17.06.2024 09:22 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22339 ФПД: 212015804108884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092244&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22339&fm=212015804108884&tin=02508201610067®Number=0000000000099755&sum=8400 0 [09:22:33]StoreToDocumentArchive [09:22:33]shift 328 fd 22339 [09:22:33]save to /storage/0328/doc_00022339 [09:22:33]save last doc name /storage/0328/doc_00022339 to /storage/kkm_last_doc_name [09:22:33]save OK [09:22:33]Clear old archive folders... [09:22:33]ProcessDocumentItem done err = 0, tmpTLVsize=359 [09:22:33]tlvbuf is 0020A1E0 [09:22:33]SAM_PROTO_ClearQueue [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 09 00 00 [09:22:33]Write to MH i2c: E2 08 00 9C 38 80 09 00 00 00 00 00 00 46 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 9C 38 00 90 00 48 [09:22:33]RAPDU: 90 00 [09:22:33]wFMCommunicate OK [09:22:33]SAM_PROTO_ClearQueue done [09:22:33]KKMCreateOFDPacket [09:22:33]OFDProtocolAddRootSTLVToBuf [09:22:33]FM_MakeSignedData [09:22:33]FM_MakeSignedData [09:22:33]SAM_PROTO_SignData [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 0D 01 02 [09:22:33]Write to MH i2c: E2 08 00 9D 38 80 0D 01 02 00 00 00 00 4E [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 9D 38 00 90 00 49 [09:22:33]RAPDU: 90 00 [09:22:33]wFMCommunicate OK [09:22:33]wFMCommunicate request_size=255 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 0D 02 02 FA 03 00 67 01 1E 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 [09:22:33]Write to MH i2c: E2 02 01 9E 38 80 0D 02 02 FA 00 03 00 67 01 1E 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 00 00 68 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 9E 38 00 90 00 4A [09:22:33]RAPDU: 90 00 [09:22:33]wFMCommunicate OK [09:22:33]wFMCommunicate request_size=118 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 0D 02 02 71 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 64 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 43 57 00 00 35 04 06 00 C0 D3 C6 B0 D0 54 [09:22:33]Write to MH i2c: E2 79 00 9F 38 80 0D 02 02 71 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 64 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 43 57 00 00 35 04 06 00 C0 D3 C6 B0 D0 54 00 00 C4 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 03 00 9F 38 00 90 00 4B [09:22:33]RAPDU: 90 00 [09:22:33]wFMCommunicate OK [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 0D 03 02 [09:22:33]Write to MH i2c: E2 08 00 A0 38 80 0D 03 02 00 00 00 00 53 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 0B 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 0B 00 A0 38 00 0D 3C F2 56 BD EE 3F ED 90 00 BC [09:22:33]RAPDU: 0D 3C F2 56 BD EE 3F ED 90 00 [09:22:33]wFMCommunicate OK [09:22:33]SAM_PROTO_SignData done [09:22:33]FM_MakeSignedData done [09:22:33]CreateOFDProtocolMessage [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 11 00 00 [09:22:33]Write to MH i2c: E2 08 00 A1 38 80 11 00 00 00 00 00 00 53 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 17 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 17 00 A1 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 A5 [09:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:22:33]wFMCommunicate OK [09:22:33]CreateOFDProtocolMessage done [09:22:33]OFDSenderStorePacket 22339 [09:22:33]StoreOFDPacket docnum=22339 [09:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 7B 01 00 00 8D A0 73 01 68 09 5A 03 01 00 03 00 67 01 1E 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 64 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 43 57 00 00 35 04 06 00 C0 D3 C6 B0 D0 54 0D 3C F2 56 BD EE 3F ED [09:22:33]CheckFolder [09:22:33]dirname=/storage/ofd_packets [09:22:33]CheckFolder done [09:22:33]ProducePacketName [09:22:33]name=ofd_packets/00022339 [09:22:33]NVStorageSaveData ofd_packets/00022339 [09:22:33]File name is /storage/ofd_packets/00022339 [09:22:33]Write 409 bytes [09:22:33]NVStorageSaveData done [09:22:33]OFDSenderStorePacket done [09:22:33]KKMCreateOFDPacket done [09:22:33]NVStorageSaveData kkm_last_timestamp [09:22:33]File name is /storage/kkm_last_timestamp [09:22:33]Write 4 bytes [09:22:33]NVStorageSaveData done [09:22:33]ExternCall_PrintAddStr [09:22:33]wPrintStart [09:22:33]Write to MH i2c: 01 00 00 A2 38 DA [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: 01 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: 01 07 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: 01 07 00 A2 38 00 00 00 00 00 FF 0F EF [09:22:33]RasterBufferAndPrint [09:22:33]line Счет N : (3)254549 [09:22:33]line ИНН: 02508201610067 [09:22:33]line Контрольно-Кассовый Чек [09:22:33]line ПРОДАЖА [09:22:33]line Товар: 4700026030031 [09:22:33]line Курут orbit [09:22:33]line 1.000 * 42.00 [09:22:33]line = 42.00 [09:22:33]line НДС 12% НСП 1% [09:22:34]line > о реализуемом товаре [09:22:34]line Товар: 4700026030024 [09:22:34]line Курут копченный [09:22:34]line 1.000 * 42.00 [09:22:34]line = 42.00 [09:22:34]line НДС 12% НСП 1% [09:22:34]line > о реализуемом товаре [09:22:34]line ИТОГО: 84.00 [09:22:34]line НСП 1% : 0.74 [09:22:34]line НДС 12% : 8.92 [09:22:34]line Наличными: 84.00 [09:22:34]line Безнал.: 0.00 [09:22:34]line Место: АЗС № 76 "Партнер Нефть" [09:22:34]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [09:22:34]line СНО: Общий режим [09:22:34]line Чек 20 17.06.2024 09:22 [09:22:34]line Смена: 328 ФФД: 1.0 [09:22:34]line ЗНМ: 0300000200 [09:22:34]line РНМ: 0000000000099755 [09:22:34]line Версия ККМ: 001 [09:22:34]line ФМ: 0000000000965344 [09:22:34]line ФД: 22339 [09:22:34]line ФПД: 212015804108884 [09:22:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092244&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22339&fm=212015804108884&tin=02508201610067®Number=0000000000099755&sum=8400 [09:22:34]line 0 [09:22:34]OFD Sender: Processing packet 22339 [packets to send 5, broken 4] [09:22:34]ProducePacketName [09:22:34]name=ofd_packets/00022339 [09:22:34]OFD Sender: To server: pG, [09:22:34]CommunicateWithHost lk.salyk.kg:30040 [09:22:34]ConnectInit lk.salyk.kg [09:22:34]written 0, free lines is 4095 [09:22:34]Connected sock=10 [09:22:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 7B 01 00 00 8D A0 73 01 68 09 5A 03 01 00 03 00 67 01 1E 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 64 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 43 57 00 00 35 04 06 00 C0 D3 C6 B0 D0 54 0D 3C F2 56 BD EE 3F ED [09:22:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 93 74 47 00 00 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 43 57 00 00 F4 03 04 00 1C A9 6F 66 B6 04 01 00 00 5B 0D 8F 1E 3F 02 7A FB [09:22:34]CommunicateWithHost err = 0 [09:22:34]CheckOFDResponse [09:22:34]1017 (14) - 77093643461234 [09:22:34]1041 (16) - 0000000000965344 [09:22:34]1040 (4) - 22339 [09:22:34]1012 (4) - 17.06.2024 03:10 [09:22:34]1206 (1) - 0 [09:22:34]OFD Sender: Remove packet 22339 [09:22:34]ProducePacketName [09:22:34]name=ofd_packets/00022339 [09:22:34]NVStorageDeleteData [09:22:34]Write to MH i2c: 01 00 00 D0 38 08 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 D0 38 00 00 00 00 00 C4 0C DF [09:22:34]RasterBufferAndPrint [09:22:34]line [09:22:34]line [09:22:34]line [09:22:34]line [09:22:34]line [09:22:34]written 0, free lines is 3277 [09:22:34]MH_Cut [09:22:34]Write to MH i2c: D1 01 00 D7 38 01 E1 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: D1 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: D1 01 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: D1 01 00 D7 38 00 E0 [09:22:34]Write to MH i2c: 01 00 00 D8 38 10 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]OFD Sender: No OFD packet to send [09:22:35]*** Cut start [09:22:35]*** Partial cut [09:22:35]*** CUTSNS_PIN = 1 [09:22:35]*** CUTSNS_PIN = 0 [09:22:35]*** Brake cut motor [09:22:35]Read from MH i2c: 01 [09:22:35]MH_I2C_Read... [09:22:35]*** Stop cut motor [09:22:35]*** Cut end [09:22:35]Read from MH i2c: 01 07 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 07 00 D8 38 00 00 00 00 00 FF 0F 25 [09:22:35]process_action close_receipt done [09:22:35]requested_data is exist [09:22:35]produce_requested_data [09:22:35]requested_item fm.sn is exist - process it [09:22:35]wFMCommunicate request_size=4 [09:22:35]MH_SAM_APDU [09:22:35]CAPDU: 80 11 00 00 [09:22:35]Write to MH i2c: E2 08 00 D9 38 80 11 00 00 00 00 00 00 8B [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:35]Read from MH i2c: E2 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 17 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: E2 17 00 D9 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 DD [09:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:22:35]wFMCommunicate OK [09:22:35]requested_item fd.num is exist - process it [09:22:35]SAM_PROTO_GetFieldsCounters [09:22:35]wFMCommunicate request_size=4 [09:22:35]MH_SAM_APDU [09:22:35]CAPDU: 80 13 00 00 [09:22:35]Write to MH i2c: E2 08 00 DA 38 80 13 00 00 00 00 00 00 8E [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:36]Read from MH i2c: E2 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 62 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 62 00 DA 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 43 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [09:22:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 43 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:36]wFMCommunicate OK [09:22:36]SAM_PROTO_GetFieldsCounters done [09:22:36]requested_item shift.num is exist - process it [09:22:36]requested_item shift.opened is exist - process it [09:22:36]req_shift_opened [09:22:36]FM_GetShiftState [09:22:36]SAM_PROTO_GetShiftState [09:22:36]wFMCommunicate request_size=4 [09:22:36]MH_SAM_APDU [09:22:36]CAPDU: 80 13 01 00 [09:22:36]Write to MH i2c: E2 08 00 DB 38 80 13 01 00 00 00 00 00 90 [09:22:36]Write i2c OK [09:22:36]MH_I2C_Read... [09:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:36]Read from MH i2c: E2 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 0E 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 0E 00 DB 38 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 42 [09:22:36]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:22:36]wFMCommunicate OK [09:22:36]SAM_PROTO_GetShiftState done [09:22:36]FM_GetShiftState done [09:22:36]req_shift_opened done [09:22:36]requested_item shift.open_date is exist - process it [09:22:36]req_shift_open_date [09:22:36]req_shift_open_date done [09:22:36]produce_requested_data done [09:22:36]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22339,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [09:22:36]process_action_free close_receipt [09:22:36]json_value_free [09:22:36]json_value_free done [09:22:36]process_json_proto returns [09:22:36]Send response to host [09:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22339,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [09:22:36]free response buf [09:22:36]execute_script done [09:22:36]execute_script returns [09:22:36]free content buf [09:22:36]Sock 8.Close socket [09:22:36]Sock 8.Thread stoped [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:52]accept exits with 9 [09:22:52]New connection [09:22:52]New thread 3066838372 created [09:22:52]Thread 3066695012 joined [09:22:52]Waiting for new connection... [09:22:52] Sock 9.Parse request [09:22:52]Sock 9.Check first char [09:22:52]Sock 9.First char is OK [09:22:52]request: POST /json_proto HTTP/1.0 [09:22:52]Method: POST [09:22:52]URL: /json_proto [09:22:52]Method is POST - this is cgi request [09:22:52]url: /json_proto [09:22:52]query_string will be loaded in cgi processing [09:22:52]execute_cgi json_proto POST (null) [09:22:52]execute_cgi path=json_proto method=POST [09:22:52]POST find Content-Length [09:22:52]Host: 172.17.35.133:8080 [09:22:52]Content-Length: 1088 [09:22:52]Content-Type: application/json [09:22:52] [09:22:52]POST finish read [09:22:52]Found Content-Length = 1088 [09:22:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254550", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:52]execute_script... [09:22:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254550", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:52]POST & json_proto [09:22:52]process_json_proto [09:22:52]json parsed OK: [09:22:52]protocol is kg_v1.0 [09:22:52]action value=close_receipt [09:22:52]process_action close_receipt [09:22:52]cmd_close_receipt [09:22:52]MH_GetDate [09:22:52]Write to MH i2c: F0 00 00 DC 38 03 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: F0 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: F0 09 00 [09:22:52]MH_I2C_Read... [09:22:52]Read from MH i2c: F0 09 00 DC 38 00 79 00 70 66 8C 55 28 65 C9 [09:22:52]GetLastDocTimeStamp 1718616164 [09:22:52]current date 1718616185 [09:22:52]FM_GetShiftState [09:22:52]SAM_PROTO_GetShiftState [09:22:52]wFMCommunicate request_size=4 [09:22:52]MH_SAM_APDU [09:22:52]CAPDU: 80 13 01 00 [09:22:52]Write to MH i2c: E2 08 00 DD 38 80 13 01 00 00 00 00 00 92 [09:22:52]Write i2c OK [09:22:52]MH_I2C_Read... [09:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:53]Read from MH i2c: E2 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 0E 00 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 0E 00 DD 38 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 44 [09:22:53]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:22:53]wFMCommunicate OK [09:22:53]SAM_PROTO_GetShiftState done [09:22:53]FM_GetShiftState done [09:22:53]opened in 1718583887 [09:22:53]opened+sec_in_day 1718670287 [09:22:53]quantity*price = 7000 [09:22:53]sum+1 = 7001 [09:22:53]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521179 Чай холодный MAXI черный персик ПЭТ 0,45 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.86 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 21 17.06.2024 09:23 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22340 ФПД: 27971744712778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092305&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22340&fm=27971744712778&tin=02508201610067®Number=0000000000099755&sum=14000 0 [09:22:54]StoreToDocumentArchive [09:22:54]shift 328 fd 22340 [09:22:54]save to /storage/0328/doc_00022340 [09:22:54]save last doc name /storage/0328/doc_00022340 to /storage/kkm_last_doc_name [09:22:54]save OK [09:22:54]Clear old archive folders... [09:22:54]ProcessDocumentItem done err = 0, tmpTLVsize=450 [09:22:54]tlvbuf is 002FC300 [09:22:54]SAM_PROTO_ClearQueue [09:22:54]wFMCommunicate request_size=4 [09:22:54]MH_SAM_APDU [09:22:54]CAPDU: 80 09 00 00 [09:22:54]Write to MH i2c: E2 08 00 EA 38 80 09 00 00 00 00 00 00 94 [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:54]Read from MH i2c: E2 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 03 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 03 00 EA 38 00 90 00 96 [09:22:54]RAPDU: 90 00 [09:22:54]wFMCommunicate OK [09:22:54]SAM_PROTO_ClearQueue done [09:22:54]KKMCreateOFDPacket [09:22:54]OFDProtocolAddRootSTLVToBuf [09:22:54]FM_MakeSignedData [09:22:54]FM_MakeSignedData [09:22:54]SAM_PROTO_SignData [09:22:54]wFMCommunicate request_size=4 [09:22:54]MH_SAM_APDU [09:22:54]CAPDU: 80 0D 01 02 [09:22:54]Write to MH i2c: E2 08 00 EB 38 80 0D 01 02 00 00 00 00 9C [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:54]Read from MH i2c: E2 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 03 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 03 00 EB 38 00 90 00 97 [09:22:54]RAPDU: 90 00 [09:22:54]wFMCommunicate OK [09:22:54]wFMCommunicate request_size=255 [09:22:54]MH_SAM_APDU [09:22:54]CAPDU: 80 0D 02 02 FA 03 00 C2 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 [09:22:54]Write to MH i2c: E2 02 01 EC 38 80 0D 02 02 FA 00 03 00 C2 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 E6 [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:54]Read from MH i2c: E2 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 03 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 03 00 EC 38 00 90 00 98 [09:22:54]RAPDU: 90 00 [09:22:54]wFMCommunicate OK [09:22:54]wFMCommunicate request_size=209 [09:22:54]MH_SAM_APDU [09:22:54]CAPDU: 80 0D 02 02 CC 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 CE 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 15 00 00 00 F4 03 04 00 79 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 44 57 00 00 35 04 06 00 19 70 AD E8 48 4A [09:22:54]Write to MH i2c: E2 D4 00 ED 38 80 0D 02 02 CC 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 CE 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 15 00 00 00 F4 03 04 00 79 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 44 57 00 00 35 04 06 00 19 70 AD E8 48 4A 00 00 8D [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:54]Read from MH i2c: E2 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 03 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 03 00 ED 38 00 90 00 99 [09:22:54]RAPDU: 90 00 [09:22:54]wFMCommunicate OK [09:22:54]wFMCommunicate request_size=4 [09:22:54]MH_SAM_APDU [09:22:54]CAPDU: 80 0D 03 02 [09:22:54]Write to MH i2c: E2 08 00 EE 38 80 0D 03 02 00 00 00 00 A1 [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:54]Read from MH i2c: E2 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 0B 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 0B 00 EE 38 00 52 79 2C 9F AA 3C 49 D7 90 00 3E [09:22:54]RAPDU: 52 79 2C 9F AA 3C 49 D7 90 00 [09:22:54]wFMCommunicate OK [09:22:54]SAM_PROTO_SignData done [09:22:54]FM_MakeSignedData done [09:22:54]CreateOFDProtocolMessage [09:22:54]wFMCommunicate request_size=4 [09:22:54]MH_SAM_APDU [09:22:54]CAPDU: 80 11 00 00 [09:22:54]Write to MH i2c: E2 08 00 EF 38 80 11 00 00 00 00 00 00 A1 [09:22:54]Write i2c OK [09:22:54]MH_I2C_Read... [09:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:54]Read from MH i2c: E2 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 17 00 [09:22:54]MH_I2C_Read... [09:22:54]Read from MH i2c: E2 17 00 EF 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 F3 [09:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:22:54]wFMCommunicate OK [09:22:54]CreateOFDProtocolMessage done [09:22:54]OFDSenderStorePacket 22340 [09:22:54]StoreOFDPacket docnum=22340 [09:22:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 D6 01 00 00 CF 26 CE 01 72 AE 5A 03 01 00 03 00 C2 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 CE 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 15 00 00 00 F4 03 04 00 79 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 44 57 00 00 35 04 06 00 19 70 AD E8 48 4A 52 79 2C 9F AA 3C 49 D7 [09:22:54]CheckFolder [09:22:54]dirname=/storage/ofd_packets [09:22:54]CheckFolder done [09:22:54]ProducePacketName [09:22:54]name=ofd_packets/00022340 [09:22:55]NVStorageSaveData ofd_packets/00022340 [09:22:55]File name is /storage/ofd_packets/00022340 [09:22:55]Write 500 bytes [09:22:55]NVStorageSaveData done [09:22:55]OFDSenderStorePacket done [09:22:55]KKMCreateOFDPacket done [09:22:55]NVStorageSaveData kkm_last_timestamp [09:22:55]File name is /storage/kkm_last_timestamp [09:22:55]Write 4 bytes [09:22:55]NVStorageSaveData done [09:22:55]ExternCall_PrintAddStr [09:22:55]wPrintStart [09:22:55]Write to MH i2c: 01 00 00 F0 38 28 [09:22:55]OFD Sender: No OFD packet to send [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 07 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 07 00 F0 38 00 00 00 00 00 FF 0F 3D [09:22:55]RasterBufferAndPrint [09:22:55]line Счет N : (3)254550 [09:22:55]line ИНН: 02508201610067 [09:22:55]line Контрольно-Кассовый Чек [09:22:55]line ПРОДАЖА [09:22:55]line Товар: 4870202521186 [09:22:55]line Чай холодный MAXI черный со вкусом клубн [09:22:55]line 1.000 * 70.00 [09:22:55]line = 70.00 [09:22:55]line НДС 12% НСП 1% [09:22:55]line > о реализуемом товаре [09:22:55]line Товар: 4870202521179 [09:22:55]line Чай холодный MAXI черный персик ПЭТ 0,45 [09:22:55]line 1.000 * 70.00 [09:22:55]line = 70.00 [09:22:55]line НДС 12% НСП 1% [09:22:55]line > о реализуемом товаре [09:22:55]line ИТОГО: 140.00 [09:22:55]line НСП 1% : 1.24 [09:22:55]line НДС 12% : 14.86 [09:22:55]line Наличными: 140.00 [09:22:55]line Безнал.: 0.00 [09:22:55]line Место: АЗС № 76 "Партнер Нефть" [09:22:55]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [09:22:55]line СНО: Общий режим [09:22:55]line Чек 21 17.06.2024 09:23 [09:22:55]line Смена: 328 ФФД: 1.0 [09:22:55]line ЗНМ: 0300000200 [09:22:55]line РНМ: 0000000000099755 [09:22:55]line Версия ККМ: 001 [09:22:55]line ФМ: 0000000000965344 [09:22:55]line ФД: 22340 [09:22:55]line ФПД: 27971744712778 [09:22:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092305&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22340&fm=27971744712778&tin=02508201610067®Number=0000000000099755&sum=14000 [09:22:55]line 0 [09:22:55]written 0, free lines is 4095 [09:22:55]OFD Sender: Processing packet 22340 [packets to send 5, broken 4] [09:22:55]ProducePacketName [09:22:55]name=ofd_packets/00022340 [09:22:55]OFD Sender: To server: pG, [09:22:55]CommunicateWithHost lk.salyk.kg:30040 [09:22:55]ConnectInit lk.salyk.kg [09:22:55]Connected sock=10 [09:22:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 D6 01 00 00 CF 26 CE 01 72 AE 5A 03 01 00 03 00 C2 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 CE 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 15 00 00 00 F4 03 04 00 79 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 44 57 00 00 35 04 06 00 19 70 AD E8 48 4A 52 79 2C 9F AA 3C 49 D7 [09:22:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 7D 48 47 00 96 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 39 36 35 33 34 34 10 04 04 00 44 57 00 00 F4 03 04 00 31 A9 6F 66 B6 04 01 00 00 CF 42 93 E4 69 8D 82 51 [09:22:55]CommunicateWithHost err = 0 [09:22:55]CheckOFDResponse [09:22:55]1017 (14) - 77093643461234 [09:22:55]1041 (16) - 0000000000965344 [09:22:55]1040 (4) - 22340 [09:22:55]1012 (4) - 17.06.2024 03:10 [09:22:55]1206 (1) - 0 [09:22:55]OFD Sender: Remove packet 22340 [09:22:55]ProducePacketName [09:22:55]name=ofd_packets/00022340 [09:22:55]NVStorageDeleteData [09:22:55]Write to MH i2c: 01 00 00 20 39 59 [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 07 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 07 00 20 39 00 00 00 00 00 D3 0C 3F [09:22:55]RasterBufferAndPrint [09:22:55]line [09:22:55]line [09:22:55]line [09:22:55]line [09:22:55]line [09:22:55]written 0, free lines is 3292 [09:22:55]MH_Cut [09:22:55]Write to MH i2c: D1 01 00 27 39 01 32 [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: D1 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: D1 01 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: D1 01 00 27 39 00 31 [09:22:55]Write to MH i2c: 01 00 00 28 39 61 [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:56]OFD Sender: No OFD packet to send [09:22:56]*** Cut start [09:22:56]*** Partial cut [09:22:56]*** CUTSNS_PIN = 1 [09:22:56]*** CUTSNS_PIN = 0 [09:22:56]*** Brake cut motor [09:22:57]Read from MH i2c: 01 [09:22:57]MH_I2C_Read... [09:22:57]*** Stop cut motor [09:22:57]*** Cut end [09:22:57]Read from MH i2c: 01 07 00 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: 01 07 00 28 39 00 00 00 00 00 FF 0F 76 [09:22:57]process_action close_receipt done [09:22:57]requested_data is exist [09:22:57]produce_requested_data [09:22:57]requested_item fm.sn is exist - process it [09:22:57]wFMCommunicate request_size=4 [09:22:57]MH_SAM_APDU [09:22:57]CAPDU: 80 11 00 00 [09:22:57]Write to MH i2c: E2 08 00 29 39 80 11 00 00 00 00 00 00 DC [09:22:57]Write i2c OK [09:22:57]MH_I2C_Read... [09:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:57]Read from MH i2c: E2 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: E2 17 00 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: E2 17 00 29 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 2E [09:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:22:57]wFMCommunicate OK [09:22:57]requested_item fd.num is exist - process it [09:22:57]SAM_PROTO_GetFieldsCounters [09:22:57]wFMCommunicate request_size=4 [09:22:57]MH_SAM_APDU [09:22:57]CAPDU: 80 13 00 00 [09:22:57]Write to MH i2c: E2 08 00 2A 39 80 13 00 00 00 00 00 00 DF [09:22:57]Write i2c OK [09:22:57]MH_I2C_Read... [09:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:57]Read from MH i2c: E2 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: E2 62 00 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: E2 62 00 2A 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 44 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [09:22:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 44 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:57]wFMCommunicate OK [09:22:57]SAM_PROTO_GetFieldsCounters done [09:22:57]requested_item shift.num is exist - process it [09:22:57]requested_item shift.opened is exist - process it [09:22:57]req_shift_opened [09:22:57]FM_GetShiftState [09:22:57]SAM_PROTO_GetShiftState [09:22:57]wFMCommunicate request_size=4 [09:22:57]MH_SAM_APDU [09:22:57]CAPDU: 80 13 01 00 [09:22:57]Write to MH i2c: E2 08 00 2B 39 80 13 01 00 00 00 00 00 E1 [09:22:57]Write i2c OK [09:22:57]MH_I2C_Read... [09:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:57]Read from MH i2c: E2 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: E2 0E 00 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: E2 0E 00 2B 39 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 93 [09:22:57]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:22:57]wFMCommunicate OK [09:22:57]SAM_PROTO_GetShiftState done [09:22:57]FM_GetShiftState done [09:22:57]req_shift_opened done [09:22:57]requested_item shift.open_date is exist - process it [09:22:57]req_shift_open_date [09:22:57]req_shift_open_date done [09:22:57]produce_requested_data done [09:22:57]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22340,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [09:22:57]process_action_free close_receipt [09:22:57]json_value_free [09:22:57]json_value_free done [09:22:57]process_json_proto returns [09:22:57]Send response to host [09:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22340,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [09:22:57]free response buf [09:22:57]execute_script done [09:22:57]execute_script returns [09:22:57]free content buf [09:22:57]Sock 9.Close socket [09:22:57]Sock 9.Thread stoped [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:01]accept exits with 8 [09:24:01]New connection [09:24:01]New thread 3066695012 created [09:24:01]Thread 3066838372 joined [09:24:01]Waiting for new connection... [09:24:01] Sock 8.Parse request [09:24:01]Sock 8.Check first char [09:24:01]Sock 8.First char is OK [09:24:01]request: POST /json_proto HTTP/1.0 [09:24:01]Method: POST [09:24:01]URL: /json_proto [09:24:01]Method is POST - this is cgi request [09:24:01]url: /json_proto [09:24:01]query_string will be loaded in cgi processing [09:24:01]execute_cgi json_proto POST (null) [09:24:01]execute_cgi path=json_proto method=POST [09:24:01]POST find Content-Length [09:24:01]Host: 172.17.35.133:8080 [09:24:01]Content-Length: 1198 [09:24:01]Content-Type: application/json [09:24:01] [09:24:01]POST finish read [09:24:01]Found Content-Length = 1198 [09:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254551", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:01]execute_script... [09:24:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254551", "tax_sys" : 0, "items" : [ { "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:01]POST & json_proto [09:24:01]process_json_proto [09:24:01]json parsed OK: [09:24:01]protocol is kg_v1.0 [09:24:01]action value=close_receipt [09:24:01]process_action close_receipt [09:24:01]cmd_close_receipt [09:24:01]MH_GetDate [09:24:01]Write to MH i2c: F0 00 00 2C 39 54 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: F0 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: F0 09 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: F0 09 00 2C 39 00 BE 00 70 66 8C 55 28 65 5F [09:24:01]GetLastDocTimeStamp 1718616185 [09:24:01]current date 1718616254 [09:24:01]FM_GetShiftState [09:24:01]SAM_PROTO_GetShiftState [09:24:01]wFMCommunicate request_size=4 [09:24:01]MH_SAM_APDU [09:24:01]CAPDU: 80 13 01 00 [09:24:01]Write to MH i2c: E2 08 00 2D 39 80 13 01 00 00 00 00 00 E3 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:01]Read from MH i2c: E2 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 0E 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 0E 00 2D 39 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 95 [09:24:01]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:24:01]wFMCommunicate OK [09:24:01]SAM_PROTO_GetShiftState done [09:24:01]FM_GetShiftState done [09:24:01]opened in 1718583887 [09:24:01]opened+sec_in_day 1718670287 [09:24:01]quantity*price = 18000 [09:24:01]sum+1 = 18001 [09:24:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160198 Вода Байтик 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.29 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 22 17.06.2024 09:24 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22341 ФПД: 87805687580214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092414&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22341&fm=87805687580214&tin=02508201610067®Number=0000000000099755&sum=26000 0 [09:24:02]StoreToDocumentArchive [09:24:02]shift 328 fd 22341 [09:24:02]save to /storage/0328/doc_00022341 [09:24:02]save last doc name /storage/0328/doc_00022341 to /storage/kkm_last_doc_name [09:24:02]save OK [09:24:02]Clear old archive folders... [09:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=502 [09:24:02]tlvbuf is 001B2FE0 [09:24:02]SAM_PROTO_ClearQueue [09:24:02]wFMCommunicate request_size=4 [09:24:02]MH_SAM_APDU [09:24:02]CAPDU: 80 09 00 00 [09:24:02]Write to MH i2c: E2 08 00 3A 39 80 09 00 00 00 00 00 00 E5 [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:02]Read from MH i2c: E2 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 03 00 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 03 00 3A 39 00 90 00 E7 [09:24:02]RAPDU: 90 00 [09:24:02]wFMCommunicate OK [09:24:02]SAM_PROTO_ClearQueue done [09:24:02]KKMCreateOFDPacket [09:24:02]OFDProtocolAddRootSTLVToBuf [09:24:02]FM_MakeSignedData [09:24:02]FM_MakeSignedData [09:24:02]SAM_PROTO_SignData [09:24:02]wFMCommunicate request_size=4 [09:24:02]MH_SAM_APDU [09:24:02]CAPDU: 80 0D 01 02 [09:24:02]Write to MH i2c: E2 08 00 3B 39 80 0D 01 02 00 00 00 00 ED [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:02]Read from MH i2c: E2 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 03 00 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 03 00 3B 39 00 90 00 E8 [09:24:02]RAPDU: 90 00 [09:24:02]wFMCommunicate OK [09:24:02]wFMCommunicate request_size=255 [09:24:02]MH_SAM_APDU [09:24:02]CAPDU: 80 0D 02 02 FA 03 00 F6 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 [09:24:02]Write to MH i2c: E2 02 01 3C 39 80 0D 02 02 FA 00 03 00 F6 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 00 00 7D [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:03]Read from MH i2c: E2 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 03 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 03 00 3C 39 00 90 00 E9 [09:24:03]RAPDU: 90 00 [09:24:03]wFMCommunicate OK [09:24:03]wFMCommunicate request_size=255 [09:24:03]MH_SAM_APDU [09:24:03]CAPDU: 80 0D 02 02 FA 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 BE 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 45 57 00 00 35 04 06 00 [09:24:03]Write to MH i2c: E2 02 01 3D 39 80 0D 02 02 FA 00 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 BE 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 45 57 00 00 35 04 06 00 00 00 E4 [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:03]Read from MH i2c: E2 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 03 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 03 00 3D 39 00 90 00 EA [09:24:03]RAPDU: 90 00 [09:24:03]wFMCommunicate OK [09:24:03]wFMCommunicate request_size=11 [09:24:03]MH_SAM_APDU [09:24:03]CAPDU: 80 0D 02 02 06 4F DB DA D1 46 36 [09:24:03]Write to MH i2c: E2 0E 00 3E 39 80 0D 02 02 06 00 4F DB DA D1 46 36 00 00 4E [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:03]Read from MH i2c: E2 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 03 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 03 00 3E 39 00 90 00 EB [09:24:03]RAPDU: 90 00 [09:24:03]wFMCommunicate OK [09:24:03]wFMCommunicate request_size=4 [09:24:03]MH_SAM_APDU [09:24:03]CAPDU: 80 0D 03 02 [09:24:03]Write to MH i2c: E2 08 00 3F 39 80 0D 03 02 00 00 00 00 F3 [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:03]Read from MH i2c: E2 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 0B 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 0B 00 3F 39 00 4C 95 A1 78 A5 E9 03 B3 90 00 32 [09:24:03]RAPDU: 4C 95 A1 78 A5 E9 03 B3 90 00 [09:24:03]wFMCommunicate OK [09:24:03]SAM_PROTO_SignData done [09:24:03]FM_MakeSignedData done [09:24:03]CreateOFDProtocolMessage [09:24:03]wFMCommunicate request_size=4 [09:24:03]MH_SAM_APDU [09:24:03]CAPDU: 80 11 00 00 [09:24:03]Write to MH i2c: E2 08 00 40 39 80 11 00 00 00 00 00 00 F3 [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:03]Read from MH i2c: E2 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 17 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 17 00 40 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 45 [09:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:24:03]wFMCommunicate OK [09:24:03]CreateOFDProtocolMessage done [09:24:03]OFDSenderStorePacket 22341 [09:24:03]StoreOFDPacket docnum=22341 [09:24:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0A 02 00 00 34 43 02 02 FA F7 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 BE 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 45 57 00 00 35 04 06 00 4F DB DA D1 46 36 4C 95 A1 78 A5 E9 03 B3 [09:24:03]CheckFolder [09:24:03]dirname=/storage/ofd_packets [09:24:03]CheckFolder done [09:24:03]ProducePacketName [09:24:03]name=ofd_packets/00022341 [09:24:03]NVStorageSaveData ofd_packets/00022341 [09:24:03]File name is /storage/ofd_packets/00022341 [09:24:03]Write 552 bytes [09:24:03]NVStorageSaveData done [09:24:03]OFDSenderStorePacket done [09:24:03]KKMCreateOFDPacket done [09:24:03]NVStorageSaveData kkm_last_timestamp [09:24:03]File name is /storage/kkm_last_timestamp [09:24:03]Write 4 bytes [09:24:03]NVStorageSaveData done [09:24:03]ExternCall_PrintAddStr [09:24:03]wPrintStart [09:24:03]Write to MH i2c: 01 00 00 41 39 7A [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: 01 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: 01 07 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: 01 07 00 41 39 00 00 00 00 00 FF 0F 8F [09:24:03]RasterBufferAndPrint [09:24:03]line Счет N : (3)254551 [09:24:03]line ИНН: 02508201610067 [09:24:03]line Контрольно-Кассовый Чек [09:24:03]line ПРОДАЖА [09:24:03]line Товар: 5449000273673 [09:24:03]line Сок Piko Pulpy красный виноград ПЭТ 1л [09:24:03]line 1.000 * 180.00 [09:24:03]line = 180.00 [09:24:03]line НДС 12% НСП 1% [09:24:03]line > о реализуемом товаре [09:24:03]line Товар: 4700000160198 [09:24:03]line Вода Байтик 0,5л [09:24:03]line 1.000 * 40.00 [09:24:03]line = 40.00 [09:24:03]line НДС 12% НСП 1% [09:24:03]line > о реализуемом товаре [09:24:03]line Товар: 4700000160211 [09:24:03]line Вода Легенда 0,5л [09:24:03]line 1.000 * 40.00 [09:24:03]line = 40.00 [09:24:03]line НДС 12% НСП 1% [09:24:03]line > о реализуемом товаре [09:24:03]line ИТОГО: 260.00 [09:24:03]line НСП 1% : 2.29 [09:24:03]line НДС 12% : 27.61 [09:24:03]line Наличными: 260.00 [09:24:03]line Безнал.: 0.00 [09:24:03]line Место: АЗС № 76 "Партнер Нефть" [09:24:03]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [09:24:03]line СНО: Общий режим [09:24:03]line Чек 22 17.06.2024 09:24 [09:24:03]line Смена: 328 ФФД: 1.0 [09:24:03]line ЗНМ: 0300000200 [09:24:03]line РНМ: 0000000000099755 [09:24:03]line Версия ККМ: 001 [09:24:03]line ФМ: 0000000000965344 [09:24:03]line ФД: 22341 [09:24:03]line ФПД: 87805687580214 [09:24:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092414&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22341&fm=87805687580214&tin=02508201610067®Number=0000000000099755&sum=26000 [09:24:03]line 0 [09:24:03]written 0, free lines is 4095 [09:24:03]OFD Sender: Processing packet 22341 [packets to send 5, broken 4] [09:24:03]ProducePacketName [09:24:03]name=ofd_packets/00022341 [09:24:03]OFD Sender: To server: pG, [09:24:03]CommunicateWithHost lk.salyk.kg:30040 [09:24:03]ConnectInit lk.salyk.kg [09:24:03]Connected sock=9 [09:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0A 02 00 00 34 43 02 02 FA F7 5A 03 01 00 03 00 F6 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 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 BE 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 45 57 00 00 35 04 06 00 4F DB DA D1 46 36 4C 95 A1 78 A5 E9 03 B3 [09:24:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 21 D4 47 00 9E 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 39 36 35 33 34 34 10 04 04 00 45 57 00 00 F4 03 04 00 76 A9 6F 66 B6 04 01 00 00 12 BB 38 8C B3 ED 4B 03 [09:24:03]CommunicateWithHost err = 0 [09:24:03]CheckOFDResponse [09:24:03]1017 (14) - 77093643461234 [09:24:03]1041 (16) - 0000000000965344 [09:24:03]1040 (4) - 22341 [09:24:03]1012 (4) - 17.06.2024 03:11 [09:24:03]1206 (1) - 0 [09:24:03]OFD Sender: Remove packet 22341 [09:24:03]ProducePacketName [09:24:03]name=ofd_packets/00022341 [09:24:03]NVStorageDeleteData [09:24:04]Write to MH i2c: 01 00 00 76 39 AF [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: 01 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: 01 07 00 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: 01 07 00 76 39 00 00 00 00 00 89 0C 4B [09:24:04]RasterBufferAndPrint [09:24:04]line [09:24:04]line [09:24:04]line [09:24:04]line [09:24:04]line [09:24:04]written 0, free lines is 3218 [09:24:04]MH_Cut [09:24:04]Write to MH i2c: D1 01 00 7D 39 01 88 [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: D1 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: D1 01 00 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: D1 01 00 7D 39 00 87 [09:24:04]Write to MH i2c: 01 00 00 7E 39 B7 [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]OFD Sender: No OFD packet to send [09:24:04]*** Cut start [09:24:04]*** Partial cut [09:24:04]*** CUTSNS_PIN = 1 [09:24:04]*** CUTSNS_PIN = 0 [09:24:05]*** Brake cut motor [09:24:05]Read from MH i2c: 01 [09:24:05]MH_I2C_Read... [09:24:05]*** Stop cut motor [09:24:05]*** Cut end [09:24:05]Read from MH i2c: 01 07 00 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: 01 07 00 7E 39 00 00 00 00 00 FF 0F CC [09:24:05]process_action close_receipt done [09:24:05]requested_data is exist [09:24:05]produce_requested_data [09:24:05]requested_item fm.sn is exist - process it [09:24:05]wFMCommunicate request_size=4 [09:24:05]MH_SAM_APDU [09:24:05]CAPDU: 80 11 00 00 [09:24:05]Write to MH i2c: E2 08 00 7F 39 80 11 00 00 00 00 00 00 32 [09:24:05]Write i2c OK [09:24:05]MH_I2C_Read... [09:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:05]Read from MH i2c: E2 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 17 00 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 17 00 7F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 84 [09:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:24:05]wFMCommunicate OK [09:24:05]requested_item fd.num is exist - process it [09:24:05]SAM_PROTO_GetFieldsCounters [09:24:05]wFMCommunicate request_size=4 [09:24:05]MH_SAM_APDU [09:24:05]CAPDU: 80 13 00 00 [09:24:05]Write to MH i2c: E2 08 00 80 39 80 13 00 00 00 00 00 00 35 [09:24:05]Write i2c OK [09:24:05]MH_I2C_Read... [09:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:05]Read from MH i2c: E2 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 62 00 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 62 00 80 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 45 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [09:24:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 45 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:05]wFMCommunicate OK [09:24:05]SAM_PROTO_GetFieldsCounters done [09:24:05]requested_item shift.num is exist - process it [09:24:05]requested_item shift.opened is exist - process it [09:24:05]req_shift_opened [09:24:05]FM_GetShiftState [09:24:05]SAM_PROTO_GetShiftState [09:24:05]wFMCommunicate request_size=4 [09:24:05]MH_SAM_APDU [09:24:05]CAPDU: 80 13 01 00 [09:24:05]Write to MH i2c: E2 08 00 81 39 80 13 01 00 00 00 00 00 37 [09:24:05]Write i2c OK [09:24:05]MH_I2C_Read... [09:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:05]Read from MH i2c: E2 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 0E 00 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 0E 00 81 39 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 E9 [09:24:05]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:24:05]wFMCommunicate OK [09:24:05]SAM_PROTO_GetShiftState done [09:24:05]FM_GetShiftState done [09:24:05]req_shift_opened done [09:24:05]requested_item shift.open_date is exist - process it [09:24:05]req_shift_open_date [09:24:05]req_shift_open_date done [09:24:05]produce_requested_data done [09:24:05]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22341,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [09:24:05]process_action_free close_receipt [09:24:05]json_value_free [09:24:05]json_value_free done [09:24:05]process_json_proto returns [09:24:05]Send response to host [09:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22341,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [09:24:05]free response buf [09:24:05]execute_script done [09:24:05]execute_script returns [09:24:05]free content buf [09:24:05]Sock 8.Close socket [09:24:05]Sock 8.Thread stoped [09:24:09]OFD Sender: No OFD packet to send [09:24:13]accept exits with 10 [09:24:13]New connection [09:24:13]New thread 3066838372 created [09:24:13]Thread 3066695012 joined [09:24:13]Waiting for new connection... [09:24:13] Sock 10.Parse request [09:24:13]Sock 10.Check first char [09:24:13]Sock 10.First char is OK [09:24:13]request: POST /json_proto HTTP/1.0 [09:24:13]Method: POST [09:24:13]URL: /json_proto [09:24:13]Method is POST - this is cgi request [09:24:13]url: /json_proto [09:24:13]query_string will be loaded in cgi processing [09:24:13]execute_cgi json_proto POST (null) [09:24:13]execute_cgi path=json_proto method=POST [09:24:13]POST find Content-Length [09:24:13]Host: 172.17.35.133:8080 [09:24:13]Content-Length: 705 [09:24:13]Content-Type: application/json [09:24:13] [09:24:13]POST finish read [09:24:13]Found Content-Length = 705 [09:24:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254552", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:13]execute_script... [09:24:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254552", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:13]POST & json_proto [09:24:13]process_json_proto [09:24:13]json parsed OK: [09:24:13]protocol is kg_v1.0 [09:24:13]action value=close_receipt [09:24:13]process_action close_receipt [09:24:13]cmd_close_receipt [09:24:13]MH_GetDate [09:24:13]Write to MH i2c: F0 00 00 82 39 AA [09:24:13]Write i2c OK [09:24:13]MH_I2C_Read... [09:24:13]Read from MH i2c: F0 [09:24:13]MH_I2C_Read... [09:24:13]Read from MH i2c: F0 09 00 [09:24:13]MH_I2C_Read... [09:24:13]Read from MH i2c: F0 09 00 82 39 00 CA 00 70 66 8C 55 28 65 C1 [09:24:13]GetLastDocTimeStamp 1718616254 [09:24:13]current date 1718616266 [09:24:13]FM_GetShiftState [09:24:13]SAM_PROTO_GetShiftState [09:24:13]wFMCommunicate request_size=4 [09:24:13]MH_SAM_APDU [09:24:13]CAPDU: 80 13 01 00 [09:24:13]Write to MH i2c: E2 08 00 83 39 80 13 01 00 00 00 00 00 39 [09:24:13]Write i2c OK [09:24:13]MH_I2C_Read... [09:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:13]Read from MH i2c: E2 [09:24:13]MH_I2C_Read... [09:24:13]Read from MH i2c: E2 0E 00 [09:24:13]MH_I2C_Read... [09:24:13]Read from MH i2c: E2 0E 00 83 39 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 EB [09:24:13]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:24:13]wFMCommunicate OK [09:24:13]SAM_PROTO_GetShiftState done [09:24:13]FM_GetShiftState done [09:24:13]opened in 1718583887 [09:24:13]opened+sec_in_day 1718670287 [09:24:13]quantity*price = 7500 [09:24:13]sum+1 = 7501 [09:24:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 23 17.06.2024 09:24 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22342 ФПД: 166051353408716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092426&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22342&fm=166051353408716&tin=02508201610067®Number=0000000000099755&sum=7500 0 [09:24:15]StoreToDocumentArchive [09:24:15]shift 328 fd 22342 [09:24:15]save to /storage/0328/doc_00022342 [09:24:15]save last doc name /storage/0328/doc_00022342 to /storage/kkm_last_doc_name [09:24:15]save OK [09:24:15]Clear old archive folders... [09:24:15]ProcessDocumentItem done err = 0, tmpTLVsize=300 [09:24:15]tlvbuf is 0021B270 [09:24:15]SAM_PROTO_ClearQueue [09:24:15]wFMCommunicate request_size=4 [09:24:15]MH_SAM_APDU [09:24:15]CAPDU: 80 09 00 00 [09:24:15]Write to MH i2c: E2 08 00 90 39 80 09 00 00 00 00 00 00 3B [09:24:15]Write i2c OK [09:24:15]MH_I2C_Read... [09:24:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:15]Read from MH i2c: E2 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: E2 03 00 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: E2 03 00 90 39 00 90 00 3D [09:24:15]RAPDU: 90 00 [09:24:15]wFMCommunicate OK [09:24:15]SAM_PROTO_ClearQueue done [09:24:15]KKMCreateOFDPacket [09:24:15]OFDProtocolAddRootSTLVToBuf [09:24:15]FM_MakeSignedData [09:24:15]FM_MakeSignedData [09:24:15]SAM_PROTO_SignData [09:24:15]wFMCommunicate request_size=4 [09:24:15]MH_SAM_APDU [09:24:15]CAPDU: 80 0D 01 02 [09:24:15]Write to MH i2c: E2 08 00 91 39 80 0D 01 02 00 00 00 00 43 [09:24:15]Write i2c OK [09:24:15]MH_I2C_Read... [09:24:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:15]Read from MH i2c: E2 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: E2 03 00 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: E2 03 00 91 39 00 90 00 3E [09:24:15]RAPDU: 90 00 [09:24:15]wFMCommunicate OK [09:24:15]wFMCommunicate request_size=255 [09:24:15]MH_SAM_APDU [09:24:15]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CA 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 [09:24:15]Write to MH i2c: E2 02 01 92 39 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CA 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 AE [09:24:15]Write i2c OK [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: E2 [09:24:15]MH_I2C_Read... [09:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:15]Read from MH i2c: E2 03 00 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: E2 03 00 92 39 00 90 00 3F [09:24:15]RAPDU: 90 00 [09:24:15]wFMCommunicate OK [09:24:15]wFMCommunicate request_size=59 [09:24:15]MH_SAM_APDU [09:24:15]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 46 57 00 00 35 04 06 00 97 05 D7 EF 34 CC [09:24:15]Write to MH i2c: E2 3E 00 93 39 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 46 57 00 00 35 04 06 00 97 05 D7 EF 34 CC 00 00 6F [09:24:15]Write i2c OK [09:24:15]MH_I2C_Read... [09:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:15]Read from MH i2c: E2 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: E2 03 00 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: E2 03 00 93 39 00 90 00 40 [09:24:15]RAPDU: 90 00 [09:24:15]wFMCommunicate OK [09:24:15]wFMCommunicate request_size=4 [09:24:15]MH_SAM_APDU [09:24:15]CAPDU: 80 0D 03 02 [09:24:15]Write to MH i2c: E2 08 00 94 39 80 0D 03 02 00 00 00 00 48 [09:24:15]Write i2c OK [09:24:15]MH_I2C_Read... [09:24:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:15]Read from MH i2c: E2 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: E2 0B 00 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: E2 0B 00 94 39 00 F2 05 62 D8 0F 68 1C 85 90 00 92 [09:24:15]RAPDU: F2 05 62 D8 0F 68 1C 85 90 00 [09:24:15]wFMCommunicate OK [09:24:15]SAM_PROTO_SignData done [09:24:15]FM_MakeSignedData done [09:24:15]CreateOFDProtocolMessage [09:24:15]wFMCommunicate request_size=4 [09:24:15]MH_SAM_APDU [09:24:15]CAPDU: 80 11 00 00 [09:24:15]Write to MH i2c: E2 08 00 95 39 80 11 00 00 00 00 00 00 48 [09:24:15]Write i2c OK [09:24:15]MH_I2C_Read... [09:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:15]Read from MH i2c: E2 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: E2 17 00 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: E2 17 00 95 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 9A [09:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:24:15]wFMCommunicate OK [09:24:15]CreateOFDProtocolMessage done [09:24:15]OFDSenderStorePacket 22342 [09:24:15]StoreOFDPacket docnum=22342 [09:24:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 40 01 00 00 94 6F 38 01 7B 42 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CA 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 46 57 00 00 35 04 06 00 97 05 D7 EF 34 CC F2 05 62 D8 0F 68 1C 85 [09:24:15]CheckFolder [09:24:15]dirname=/storage/ofd_packets [09:24:15]CheckFolder done [09:24:15]ProducePacketName [09:24:15]name=ofd_packets/00022342 [09:24:15]NVStorageSaveData ofd_packets/00022342 [09:24:15]File name is /storage/ofd_packets/00022342 [09:24:15]Write 350 bytes [09:24:15]NVStorageSaveData done [09:24:15]OFDSenderStorePacket done [09:24:15]KKMCreateOFDPacket done [09:24:15]NVStorageSaveData kkm_last_timestamp [09:24:15]File name is /storage/kkm_last_timestamp [09:24:15]Write 4 bytes [09:24:15]NVStorageSaveData done [09:24:15]ExternCall_PrintAddStr [09:24:15]wPrintStart [09:24:15]Write to MH i2c: 01 00 00 96 39 CF [09:24:15]Write i2c OK [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: 01 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: 01 07 00 [09:24:15]MH_I2C_Read... [09:24:15]Read from MH i2c: 01 07 00 96 39 00 00 00 00 00 FF 0F E4 [09:24:15]RasterBufferAndPrint [09:24:15]line Счет N : (3)254552 [09:24:15]line ИНН: 02508201610067 [09:24:15]line Контрольно-Кассовый Чек [09:24:15]line ПРОДАЖА [09:24:15]line Товар: 5449000189349 [09:24:15]line Холодный чай Fuse манго ананас 0,5л [09:24:15]line 1.000 * 75.00 [09:24:15]line = 75.00 [09:24:15]line НДС 12% НСП 1% [09:24:15]line > о реализуемом товаре [09:24:15]line ИТОГО: 75.00 [09:24:15]line НСП 1% : 0.66 [09:24:15]line НДС 12% : 7.96 [09:24:15]line Наличными: 75.00 [09:24:15]line Безнал.: 0.00 [09:24:15]line Место: АЗС № 76 "Партнер Нефть" [09:24:15]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [09:24:15]line СНО: Общий режим [09:24:15]line Чек 23 17.06.2024 09:24 [09:24:15]line Смена: 328 ФФД: 1.0 [09:24:15]line ЗНМ: 0300000200 [09:24:15]line РНМ: 0000000000099755 [09:24:15]line Версия ККМ: 001 [09:24:15]line ФМ: 0000000000965344 [09:24:15]line ФД: 22342 [09:24:15]line ФПД: 166051353408716 [09:24:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092426&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22342&fm=166051353408716&tin=02508201610067®Number=0000000000099755&sum=7500 [09:24:15]line 0 [09:24:15]written 0, free lines is 4095 [09:24:15]OFD Sender: Processing packet 22342 [packets to send 5, broken 4] [09:24:15]ProducePacketName [09:24:15]name=ofd_packets/00022342 [09:24:15]OFD Sender: To server: pG, [09:24:15]CommunicateWithHost lk.salyk.kg:30040 [09:24:15]ConnectInit lk.salyk.kg [09:24:15]Connected sock=9 [09:24:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 40 01 00 00 94 6F 38 01 7B 42 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CA 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 46 57 00 00 35 04 06 00 97 05 D7 EF 34 CC F2 05 62 D8 0F 68 1C 85 [09:24:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 2B 5A 47 00 9D 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 46 57 00 00 F4 03 04 00 82 A9 6F 66 B6 04 01 00 00 9A E5 B9 4E 4D 11 BD 61 [09:24:16]CommunicateWithHost err = 0 [09:24:16]CheckOFDResponse [09:24:16]1017 (14) - 77093643461234 [09:24:16]1041 (16) - 0000000000965344 [09:24:16]1040 (4) - 22342 [09:24:16]1012 (4) - 17.06.2024 03:12 [09:24:16]1206 (1) - 0 [09:24:16]OFD Sender: Remove packet 22342 [09:24:16]ProducePacketName [09:24:16]name=ofd_packets/00022342 [09:24:16]NVStorageDeleteData [09:24:16]Write to MH i2c: 01 00 00 BF 39 F8 [09:24:16]Write i2c OK [09:24:16]MH_I2C_Read... [09:24:16]Read from MH i2c: 01 [09:24:16]MH_I2C_Read... [09:24:16]Read from MH i2c: 01 07 00 [09:24:16]MH_I2C_Read... [09:24:16]Read from MH i2c: 01 07 00 BF 39 00 00 00 00 00 0F 0D 1B [09:24:16]RasterBufferAndPrint [09:24:16]line [09:24:16]line [09:24:16]line [09:24:16]line [09:24:16]line [09:24:16]written 0, free lines is 3358 [09:24:16]MH_Cut [09:24:16]Write to MH i2c: D1 01 00 C6 39 01 D1 [09:24:16]Write i2c OK [09:24:16]MH_I2C_Read... [09:24:16]Read from MH i2c: D1 [09:24:16]MH_I2C_Read... [09:24:16]Read from MH i2c: D1 01 00 [09:24:16]MH_I2C_Read... [09:24:16]Read from MH i2c: D1 01 00 C6 39 00 D0 [09:24:16]Write to MH i2c: 01 00 00 C7 39 00 [09:24:16]Write i2c OK [09:24:16]MH_I2C_Read... [09:24:16]OFD Sender: No OFD packet to send [09:24:16]*** Cut start [09:24:16]*** Partial cut [09:24:16]*** CUTSNS_PIN = 1 [09:24:16]*** CUTSNS_PIN = 0 [09:24:17]*** Brake cut motor [09:24:17]Read from MH i2c: 01 [09:24:17]MH_I2C_Read... [09:24:17]*** Stop cut motor [09:24:17]*** Cut end [09:24:17]Read from MH i2c: 01 07 00 [09:24:17]MH_I2C_Read... [09:24:17]Read from MH i2c: 01 07 00 C7 39 00 00 00 00 00 FF 0F 15 [09:24:17]process_action close_receipt done [09:24:17]requested_data is exist [09:24:17]produce_requested_data [09:24:17]requested_item fm.sn is exist - process it [09:24:17]wFMCommunicate request_size=4 [09:24:17]MH_SAM_APDU [09:24:17]CAPDU: 80 11 00 00 [09:24:17]Write to MH i2c: E2 08 00 C8 39 80 11 00 00 00 00 00 00 7B [09:24:17]Write i2c OK [09:24:17]MH_I2C_Read... [09:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:17]Read from MH i2c: E2 [09:24:17]MH_I2C_Read... [09:24:17]Read from MH i2c: E2 17 00 [09:24:17]MH_I2C_Read... [09:24:17]Read from MH i2c: E2 17 00 C8 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 CD [09:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:24:17]wFMCommunicate OK [09:24:17]requested_item fd.num is exist - process it [09:24:17]SAM_PROTO_GetFieldsCounters [09:24:17]wFMCommunicate request_size=4 [09:24:17]MH_SAM_APDU [09:24:17]CAPDU: 80 13 00 00 [09:24:17]Write to MH i2c: E2 08 00 C9 39 80 13 00 00 00 00 00 00 7E [09:24:17]Write i2c OK [09:24:17]MH_I2C_Read... [09:24:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:17]Read from MH i2c: E2 [09:24:17]MH_I2C_Read... [09:24:17]Read from MH i2c: E2 62 00 [09:24:17]MH_I2C_Read... [09:24:17]Read from MH i2c: E2 62 00 C9 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 46 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [09:24:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 46 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:17]wFMCommunicate OK [09:24:17]SAM_PROTO_GetFieldsCounters done [09:24:17]requested_item shift.num is exist - process it [09:24:17]requested_item shift.opened is exist - process it [09:24:17]req_shift_opened [09:24:17]FM_GetShiftState [09:24:17]SAM_PROTO_GetShiftState [09:24:17]wFMCommunicate request_size=4 [09:24:17]MH_SAM_APDU [09:24:17]CAPDU: 80 13 01 00 [09:24:17]Write to MH i2c: E2 08 00 CA 39 80 13 01 00 00 00 00 00 80 [09:24:17]Write i2c OK [09:24:17]MH_I2C_Read... [09:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:17]Read from MH i2c: E2 [09:24:17]MH_I2C_Read... [09:24:17]Read from MH i2c: E2 0E 00 [09:24:17]MH_I2C_Read... [09:24:17]Read from MH i2c: E2 0E 00 CA 39 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 32 [09:24:17]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:24:17]wFMCommunicate OK [09:24:17]SAM_PROTO_GetShiftState done [09:24:17]FM_GetShiftState done [09:24:17]req_shift_opened done [09:24:17]requested_item shift.open_date is exist - process it [09:24:17]req_shift_open_date [09:24:17]req_shift_open_date done [09:24:17]produce_requested_data done [09:24:17]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22342,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [09:24:17]process_action_free close_receipt [09:24:17]json_value_free [09:24:17]json_value_free done [09:24:17]process_json_proto returns [09:24:17]Send response to host [09:24:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22342,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [09:24:17]free response buf [09:24:17]execute_script done [09:24:17]execute_script returns [09:24:17]free content buf [09:24:17]Sock 10.Close socket [09:24:17]Sock 10.Thread stoped [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:26]accept exits with 8 [09:24:26]New connection [09:24:26]New thread 3066695012 created [09:24:26]Thread 3066838372 joined [09:24:26]Waiting for new connection... [09:24:26] Sock 8.Parse request [09:24:26]Sock 8.Check first char [09:24:26]Sock 8.First char is OK [09:24:26]request: POST /json_proto HTTP/1.0 [09:24:26]Method: POST [09:24:26]URL: /json_proto [09:24:26]Method is POST - this is cgi request [09:24:26]url: /json_proto [09:24:26]query_string will be loaded in cgi processing [09:24:26]execute_cgi json_proto POST (null) [09:24:26]execute_cgi path=json_proto method=POST [09:24:26]POST find Content-Length [09:24:26]Host: 172.17.35.133:8080 [09:24:26]Content-Length: 687 [09:24:26]Content-Type: application/json [09:24:26] [09:24:26]POST finish read [09:24:26]Found Content-Length = 687 [09:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254553", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:26]execute_script... [09:24:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254553", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:26]POST & json_proto [09:24:26]process_json_proto [09:24:26]json parsed OK: [09:24:26]protocol is kg_v1.0 [09:24:26]action value=close_receipt [09:24:26]process_action close_receipt [09:24:26]cmd_close_receipt [09:24:26]MH_GetDate [09:24:26]Write to MH i2c: F0 00 00 CB 39 F3 [09:24:26]Write i2c OK [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: F0 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: F0 09 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: F0 09 00 CB 39 00 D7 00 70 66 8C 55 28 65 17 [09:24:26]GetLastDocTimeStamp 1718616266 [09:24:26]current date 1718616279 [09:24:26]FM_GetShiftState [09:24:26]SAM_PROTO_GetShiftState [09:24:26]wFMCommunicate request_size=4 [09:24:26]MH_SAM_APDU [09:24:26]CAPDU: 80 13 01 00 [09:24:26]Write to MH i2c: E2 08 00 CC 39 80 13 01 00 00 00 00 00 82 [09:24:26]Write i2c OK [09:24:26]MH_I2C_Read... [09:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:26]Read from MH i2c: E2 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 0E 00 [09:24:26]MH_I2C_Read... [09:24:26]Read from MH i2c: E2 0E 00 CC 39 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 34 [09:24:26]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:24:26]wFMCommunicate OK [09:24:26]SAM_PROTO_GetShiftState done [09:24:26]FM_GetShiftState done [09:24:26]opened in 1718583887 [09:24:26]opened+sec_in_day 1718670287 [09:24:26]quantity*price = 5000 [09:24:26]sum+1 = 5001 [09:24:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 24 17.06.2024 09:24 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22343 ФПД: 47515313388496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092439&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22343&fm=47515313388496&tin=02508201610067®Number=0000000000099755&sum=5000 0 [09:24:27]StoreToDocumentArchive [09:24:27]shift 328 fd 22343 [09:24:27]save to /storage/0328/doc_00022343 [09:24:27]save last doc name /storage/0328/doc_00022343 to /storage/kkm_last_doc_name [09:24:27]save OK [09:24:27]Clear old archive folders... [09:24:27]ProcessDocumentItem done err = 0, tmpTLVsize=298 [09:24:27]tlvbuf is 00229510 [09:24:27]SAM_PROTO_ClearQueue [09:24:27]wFMCommunicate request_size=4 [09:24:27]MH_SAM_APDU [09:24:27]CAPDU: 80 09 00 00 [09:24:27]Write to MH i2c: E2 08 00 D9 39 80 09 00 00 00 00 00 00 84 [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:27]Read from MH i2c: E2 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 03 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 03 00 D9 39 00 90 00 86 [09:24:27]RAPDU: 90 00 [09:24:27]wFMCommunicate OK [09:24:27]SAM_PROTO_ClearQueue done [09:24:27]KKMCreateOFDPacket [09:24:27]OFDProtocolAddRootSTLVToBuf [09:24:27]FM_MakeSignedData [09:24:27]FM_MakeSignedData [09:24:27]SAM_PROTO_SignData [09:24:27]wFMCommunicate request_size=4 [09:24:27]MH_SAM_APDU [09:24:27]CAPDU: 80 0D 01 02 [09:24:27]Write to MH i2c: E2 08 00 DA 39 80 0D 01 02 00 00 00 00 8C [09:24:27]Write i2c OK [09:24:27]MH_I2C_Read... [09:24:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:27]Read from MH i2c: E2 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 03 00 [09:24:27]MH_I2C_Read... [09:24:27]Read from MH i2c: E2 03 00 DA 39 00 90 00 87 [09:24:27]RAPDU: 90 00 [09:24:27]wFMCommunicate OK [09:24:27]wFMCommunicate request_size=255 [09:24:27]MH_SAM_APDU [09:24:27]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 D7 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [09:24:27]Write to MH i2c: E2 02 01 DB 39 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 D7 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 9A [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 DB 39 00 90 00 88 [09:24:28]RAPDU: 90 00 [09:24:28]wFMCommunicate OK [09:24:28]wFMCommunicate request_size=57 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 47 57 00 00 35 04 06 00 2B 37 05 60 3B D0 [09:24:28]Write to MH i2c: E2 3C 00 DC 39 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 47 57 00 00 35 04 06 00 2B 37 05 60 3B D0 00 00 C5 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 03 00 DC 39 00 90 00 89 [09:24:28]RAPDU: 90 00 [09:24:28]wFMCommunicate OK [09:24:28]wFMCommunicate request_size=4 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 0D 03 02 [09:24:28]Write to MH i2c: E2 08 00 DD 39 80 0D 03 02 00 00 00 00 91 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 0B 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 0B 00 DD 39 00 53 7E A1 98 65 C5 B9 42 90 00 C1 [09:24:28]RAPDU: 53 7E A1 98 65 C5 B9 42 90 00 [09:24:28]wFMCommunicate OK [09:24:28]SAM_PROTO_SignData done [09:24:28]FM_MakeSignedData done [09:24:28]CreateOFDProtocolMessage [09:24:28]wFMCommunicate request_size=4 [09:24:28]MH_SAM_APDU [09:24:28]CAPDU: 80 11 00 00 [09:24:28]Write to MH i2c: E2 08 00 DE 39 80 11 00 00 00 00 00 00 91 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:28]Read from MH i2c: E2 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 17 00 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: E2 17 00 DE 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 E3 [09:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:24:28]wFMCommunicate OK [09:24:28]CreateOFDProtocolMessage done [09:24:28]OFDSenderStorePacket 22343 [09:24:28]StoreOFDPacket docnum=22343 [09:24:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 3E 01 00 00 54 39 36 01 CD CF 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 D7 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 47 57 00 00 35 04 06 00 2B 37 05 60 3B D0 53 7E A1 98 65 C5 B9 42 [09:24:28]CheckFolder [09:24:28]dirname=/storage/ofd_packets [09:24:28]CheckFolder done [09:24:28]ProducePacketName [09:24:28]name=ofd_packets/00022343 [09:24:28]NVStorageSaveData ofd_packets/00022343 [09:24:28]File name is /storage/ofd_packets/00022343 [09:24:28]Write 348 bytes [09:24:28]NVStorageSaveData done [09:24:28]OFDSenderStorePacket done [09:24:28]KKMCreateOFDPacket done [09:24:28]NVStorageSaveData kkm_last_timestamp [09:24:28]File name is /storage/kkm_last_timestamp [09:24:28]Write 4 bytes [09:24:28]NVStorageSaveData done [09:24:28]ExternCall_PrintAddStr [09:24:28]wPrintStart [09:24:28]Write to MH i2c: 01 00 00 DF 39 18 [09:24:28]Write i2c OK [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: 01 [09:24:28]MH_I2C_Read... [09:24:28]Read from MH i2c: 01 07 00 [09:24:28]MH_I2C_Read... [09:24:28]OFD Sender: Processing packet 22343 [packets to send 5, broken 4] [09:24:28]ProducePacketName [09:24:28]name=ofd_packets/00022343 [09:24:28]OFD Sender: To server: pG, [09:24:28]CommunicateWithHost lk.salyk.kg:30040 [09:24:28]ConnectInit lk.salyk.kg [09:24:28]Read from MH i2c: 01 07 00 DF 39 00 00 00 00 00 FF 0F 2D [09:24:28]RasterBufferAndPrint [09:24:28]line Счет N : (3)254553 [09:24:28]line ИНН: 02508201610067 [09:24:28]line Контрольно-Кассовый Чек [09:24:28]line ПРОДАЖА [09:24:28]line Товар: 4700003010032 [09:24:28]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [09:24:28]line 1.000 * 50.00 [09:24:28]line = 50.00 [09:24:28]line НДС 12% НСП 1% [09:24:28]line > о реализуемом товаре [09:24:28]line ИТОГО: 50.00 [09:24:28]line НСП 1% : 0.44 [09:24:28]line НДС 12% : 5.31 [09:24:28]line Наличными: 50.00 [09:24:28]line Безнал.: 0.00 [09:24:28]line Место: АЗС № 76 "Партнер Нефть" [09:24:28]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [09:24:28]line СНО: Общий режим [09:24:28]line Чек 24 17.06.2024 09:24 [09:24:28]line Смена: 328 ФФД: 1.0 [09:24:28]line ЗНМ: 0300000200 [09:24:28]line РНМ: 0000000000099755 [09:24:28]line Версия ККМ: 001 [09:24:28]line ФМ: 0000000000965344 [09:24:28]line ФД: 22343 [09:24:28]line ФПД: 47515313388496 [09:24:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092439&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22343&fm=47515313388496&tin=02508201610067®Number=0000000000099755&sum=5000 [09:24:28]line 0 [09:24:28]written 0, free lines is 4095 [09:24:28]Connected sock=10 [09:24:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 3E 01 00 00 54 39 36 01 CD CF 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 D7 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 47 57 00 00 35 04 06 00 2B 37 05 60 3B D0 53 7E A1 98 65 C5 B9 42 [09:24:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 A6 95 47 00 3A 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 39 36 35 33 34 34 10 04 04 00 47 57 00 00 F4 03 04 00 8F A9 6F 66 B6 04 01 00 00 2E E2 C7 95 66 EE BA B6 [09:24:29]CommunicateWithHost err = 0 [09:24:29]CheckOFDResponse [09:24:29]1017 (14) - 77093643461234 [09:24:29]1041 (16) - 0000000000965344 [09:24:29]1040 (4) - 22343 [09:24:29]1012 (4) - 17.06.2024 03:12 [09:24:29]1206 (1) - 0 [09:24:29]OFD Sender: Remove packet 22343 [09:24:29]ProducePacketName [09:24:29]name=ofd_packets/00022343 [09:24:29]NVStorageDeleteData [09:24:29]Write to MH i2c: 01 00 00 08 3A 42 [09:24:29]Write i2c OK [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: 01 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: 01 07 00 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: 01 07 00 08 3A 00 00 00 00 00 14 0D 6A [09:24:29]RasterBufferAndPrint [09:24:29]line [09:24:29]line [09:24:29]line [09:24:29]line [09:24:29]line [09:24:29]written 0, free lines is 3363 [09:24:29]MH_Cut [09:24:29]Write to MH i2c: D1 01 00 0F 3A 01 1B [09:24:29]Write i2c OK [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: D1 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: D1 01 00 [09:24:29]MH_I2C_Read... [09:24:29]Read from MH i2c: D1 01 00 0F 3A 00 1A [09:24:29]Write to MH i2c: 01 00 00 10 3A 4A [09:24:29]Write i2c OK [09:24:29]MH_I2C_Read... [09:24:29]OFD Sender: No OFD packet to send [09:24:29]*** Cut start [09:24:29]*** Partial cut [09:24:29]*** CUTSNS_PIN = 1 [09:24:29]*** CUTSNS_PIN = 0 [09:24:30]*** Brake cut motor [09:24:30]Read from MH i2c: 01 [09:24:30]MH_I2C_Read... [09:24:30]*** Stop cut motor [09:24:30]*** Cut end [09:24:30]Read from MH i2c: 01 07 00 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: 01 07 00 10 3A 00 00 00 00 00 FF 0F 5F [09:24:30]process_action close_receipt done [09:24:30]requested_data is exist [09:24:30]produce_requested_data [09:24:30]requested_item fm.sn is exist - process it [09:24:30]wFMCommunicate request_size=4 [09:24:30]MH_SAM_APDU [09:24:30]CAPDU: 80 11 00 00 [09:24:30]Write to MH i2c: E2 08 00 11 3A 80 11 00 00 00 00 00 00 C5 [09:24:30]Write i2c OK [09:24:30]MH_I2C_Read... [09:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:30]Read from MH i2c: E2 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 17 00 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 17 00 11 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 17 [09:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:24:30]wFMCommunicate OK [09:24:30]requested_item fd.num is exist - process it [09:24:30]SAM_PROTO_GetFieldsCounters [09:24:30]wFMCommunicate request_size=4 [09:24:30]MH_SAM_APDU [09:24:30]CAPDU: 80 13 00 00 [09:24:30]Write to MH i2c: E2 08 00 12 3A 80 13 00 00 00 00 00 00 C8 [09:24:30]Write i2c OK [09:24:30]MH_I2C_Read... [09:24:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:30]Read from MH i2c: E2 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 62 00 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 62 00 12 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 47 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [09:24:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 47 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:30]wFMCommunicate OK [09:24:30]SAM_PROTO_GetFieldsCounters done [09:24:30]requested_item shift.num is exist - process it [09:24:30]requested_item shift.opened is exist - process it [09:24:30]req_shift_opened [09:24:30]FM_GetShiftState [09:24:30]SAM_PROTO_GetShiftState [09:24:30]wFMCommunicate request_size=4 [09:24:30]MH_SAM_APDU [09:24:30]CAPDU: 80 13 01 00 [09:24:30]Write to MH i2c: E2 08 00 13 3A 80 13 01 00 00 00 00 00 CA [09:24:30]Write i2c OK [09:24:30]MH_I2C_Read... [09:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:30]Read from MH i2c: E2 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 0E 00 [09:24:30]MH_I2C_Read... [09:24:30]Read from MH i2c: E2 0E 00 13 3A 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 7C [09:24:30]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:24:30]wFMCommunicate OK [09:24:30]SAM_PROTO_GetShiftState done [09:24:30]FM_GetShiftState done [09:24:30]req_shift_opened done [09:24:30]requested_item shift.open_date is exist - process it [09:24:30]req_shift_open_date [09:24:30]req_shift_open_date done [09:24:30]produce_requested_data done [09:24:30]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22343,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [09:24:30]process_action_free close_receipt [09:24:30]json_value_free [09:24:30]json_value_free done [09:24:30]process_json_proto returns [09:24:30]Send response to host [09:24:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22343,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [09:24:30]free response buf [09:24:30]execute_script done [09:24:30]execute_script returns [09:24:30]free content buf [09:24:30]Sock 8.Close socket [09:24:30]Sock 8.Thread stoped [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:03]accept exits with 9 [09:25:03]New connection [09:25:03]New thread 3066838372 created [09:25:03]Thread 3066695012 joined [09:25:03]Waiting for new connection... [09:25:03] Sock 9.Parse request [09:25:03]Sock 9.Check first char [09:25:03]Sock 9.First char is OK [09:25:03]request: POST /json_proto HTTP/1.0 [09:25:03]Method: POST [09:25:03]URL: /json_proto [09:25:03]Method is POST - this is cgi request [09:25:03]url: /json_proto [09:25:03]query_string will be loaded in cgi processing [09:25:03]execute_cgi json_proto POST (null) [09:25:03]execute_cgi path=json_proto method=POST [09:25:03]POST find Content-Length [09:25:03]Host: 172.17.35.133:8080 [09:25:03]Content-Length: 1368 [09:25:03]Content-Type: application/json [09:25:03] [09:25:03]POST finish read [09:25:03]Found Content-Length = 1368 [09:25:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254554", "tax_sys" : 0, "items" : [ { "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120852456", "name": "\u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 Light 80 \u0433 \u0441\u043B-\u0441\u044B\u0440", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:03]execute_script... [09:25: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 : (3)254554", "tax_sys" : 0, "items" : [ { "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120852456", "name": "\u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 Light 80 \u0433 \u0441\u043B-\u0441\u044B\u0440", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:03]POST & json_proto [09:25:03]process_json_proto [09:25:03]json parsed OK: [09:25:03]protocol is kg_v1.0 [09:25:03]action value=close_receipt [09:25:03]process_action close_receipt [09:25:03]cmd_close_receipt [09:25:03]MH_GetDate [09:25:03]Write to MH i2c: F0 00 00 14 3A 3D [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: F0 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: F0 09 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: F0 09 00 14 3A 00 FC 00 70 66 8C 55 28 65 86 [09:25:03]GetLastDocTimeStamp 1718616279 [09:25:03]current date 1718616316 [09:25:03]FM_GetShiftState [09:25:03]SAM_PROTO_GetShiftState [09:25:03]wFMCommunicate request_size=4 [09:25:03]MH_SAM_APDU [09:25:03]CAPDU: 80 13 01 00 [09:25:03]Write to MH i2c: E2 08 00 15 3A 80 13 01 00 00 00 00 00 CC [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:03]Read from MH i2c: E2 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 0E 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: E2 0E 00 15 3A 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 7E [09:25:03]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:25:03]wFMCommunicate OK [09:25:03]SAM_PROTO_GetShiftState done [09:25:03]FM_GetShiftState done [09:25:03]opened in 1718583887 [09:25:03]opened+sec_in_day 1718670287 [09:25:03]quantity*price = 4000 [09:25:03]sum+1 = 4001 [09:25:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607120852456 Кириешки Light 80 г сл-сыр 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.76 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 25 17.06.2024 09:25 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22344 ФПД: 192687516151846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092516&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22344&fm=192687516151846&tin=02508201610067®Number=0000000000099755&sum=20000 0 [09:25:04]StoreToDocumentArchive [09:25:04]shift 328 fd 22344 [09:25:04]save to /storage/0328/doc_00022344 [09:25:04]save last doc name /storage/0328/doc_00022344 to /storage/kkm_last_doc_name [09:25:04]save OK [09:25:04]Clear old archive folders... [09:25:04]ProcessDocumentItem done err = 0, tmpTLVsize=564 [09:25:04]tlvbuf is B6EBE9D0 [09:25:04]SAM_PROTO_ClearQueue [09:25:04]wFMCommunicate request_size=4 [09:25:04]MH_SAM_APDU [09:25:04]CAPDU: 80 09 00 00 [09:25:04]Write to MH i2c: E2 08 00 22 3A 80 09 00 00 00 00 00 00 CE [09:25:04]Write i2c OK [09:25:04]MH_I2C_Read... [09:25:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:04]Read from MH i2c: E2 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 03 00 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 03 00 22 3A 00 90 00 D0 [09:25:04]RAPDU: 90 00 [09:25:04]wFMCommunicate OK [09:25:04]SAM_PROTO_ClearQueue done [09:25:04]KKMCreateOFDPacket [09:25:04]OFDProtocolAddRootSTLVToBuf [09:25:04]FM_MakeSignedData [09:25:04]FM_MakeSignedData [09:25:04]SAM_PROTO_SignData [09:25:04]wFMCommunicate request_size=4 [09:25:04]MH_SAM_APDU [09:25:04]CAPDU: 80 0D 01 02 [09:25:04]Write to MH i2c: E2 08 00 23 3A 80 0D 01 02 00 00 00 00 D6 [09:25:04]Write i2c OK [09:25:04]MH_I2C_Read... [09:25:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:04]Read from MH i2c: E2 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 03 00 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 03 00 23 3A 00 90 00 D1 [09:25:04]RAPDU: 90 00 [09:25:04]wFMCommunicate OK [09:25:04]wFMCommunicate request_size=255 [09:25:04]MH_SAM_APDU [09:25:04]CAPDU: 80 0D 02 02 FA 03 00 34 02 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 34 35 36 06 04 28 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D1 81 D0 BB 2D D1 81 D1 8B D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 [09:25:04]Write to MH i2c: E2 02 01 24 3A 80 0D 02 02 FA 00 03 00 34 02 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 34 35 36 06 04 28 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D1 81 D0 BB 2D D1 81 D1 8B D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 00 00 2A [09:25:04]Write i2c OK [09:25:04]MH_I2C_Read... [09:25:04]OFD Sender: No OFD packet to send [09:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:04]Read from MH i2c: E2 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 03 00 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 03 00 24 3A 00 90 00 D2 [09:25:04]RAPDU: 90 00 [09:25:04]wFMCommunicate OK [09:25:04]wFMCommunicate request_size=255 [09:25:04]MH_SAM_APDU [09:25:04]CAPDU: 80 0D 02 02 FA F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 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 19 00 00 00 F4 03 04 00 FC 00 70 66 0E 04 04 [09:25:04]Write to MH i2c: E2 02 01 25 3A 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 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 19 00 00 00 F4 03 04 00 FC 00 70 66 0E 04 04 00 00 ED [09:25:04]Write i2c OK [09:25:04]MH_I2C_Read... [09:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 03 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 03 00 25 3A 00 90 00 D3 [09:25:05]RAPDU: 90 00 [09:25:05]wFMCommunicate OK [09:25:05]wFMCommunicate request_size=73 [09:25:05]MH_SAM_APDU [09:25:05]CAPDU: 80 0D 02 02 44 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 48 57 00 00 35 04 06 00 AF 3F 8E F3 F0 26 [09:25:05]Write to MH i2c: E2 4C 00 26 3A 80 0D 02 02 44 00 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 48 57 00 00 35 04 06 00 AF 3F 8E F3 F0 26 00 00 6D [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 03 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 03 00 26 3A 00 90 00 D4 [09:25:05]RAPDU: 90 00 [09:25:05]wFMCommunicate OK [09:25:05]wFMCommunicate request_size=4 [09:25:05]MH_SAM_APDU [09:25:05]CAPDU: 80 0D 03 02 [09:25:05]Write to MH i2c: E2 08 00 27 3A 80 0D 03 02 00 00 00 00 DC [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 0B 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 0B 00 27 3A 00 CC 42 74 13 7F C5 3A 30 90 00 20 [09:25:05]RAPDU: CC 42 74 13 7F C5 3A 30 90 00 [09:25:05]wFMCommunicate OK [09:25:05]SAM_PROTO_SignData done [09:25:05]FM_MakeSignedData done [09:25:05]CreateOFDProtocolMessage [09:25:05]wFMCommunicate request_size=4 [09:25:05]MH_SAM_APDU [09:25:05]CAPDU: 80 11 00 00 [09:25:05]Write to MH i2c: E2 08 00 28 3A 80 11 00 00 00 00 00 00 DC [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 17 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 17 00 28 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 2E [09:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:25:05]wFMCommunicate OK [09:25:05]CreateOFDProtocolMessage done [09:25:05]OFDSenderStorePacket 22344 [09:25:05]StoreOFDPacket docnum=22344 [09:25:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 48 02 00 00 74 E4 40 02 0E E0 5A 03 01 00 03 00 34 02 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 34 35 36 06 04 28 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D1 81 D0 BB 2D D1 81 D1 8B D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 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 19 00 00 00 F4 03 04 00 FC 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 48 57 00 00 35 04 06 00 AF 3F 8E F3 F0 26 CC 42 74 13 7F C5 3A 30 [09:25:05]CheckFolder [09:25:05]dirname=/storage/ofd_packets [09:25:05]CheckFolder done [09:25:05]ProducePacketName [09:25:05]name=ofd_packets/00022344 [09:25:05]NVStorageSaveData ofd_packets/00022344 [09:25:05]File name is /storage/ofd_packets/00022344 [09:25:05]Write 614 bytes [09:25:05]NVStorageSaveData done [09:25:05]OFDSenderStorePacket done [09:25:05]KKMCreateOFDPacket done [09:25:05]NVStorageSaveData kkm_last_timestamp [09:25:05]File name is /storage/kkm_last_timestamp [09:25:05]Write 4 bytes [09:25:05]NVStorageSaveData done [09:25:05]ExternCall_PrintAddStr [09:25:05]wPrintStart [09:25:05]Write to MH i2c: 01 00 00 29 3A 63 [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: 01 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: 01 07 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: 01 07 00 29 3A 00 00 00 00 00 FF 0F 78 [09:25:05]RasterBufferAndPrint [09:25:05]line Счет N : (3)254554 [09:25:05]line ИНН: 02508201610067 [09:25:05]line Контрольно-Кассовый Чек [09:25:05]line ПРОДАЖА [09:25:05]line Товар: 4630007400969 [09:25:05]line Арахис жарен Караван орехов Стандарт 40 [09:25:05]line 1.000 * 40.00 [09:25:05]line = 40.00 [09:25:05]line НДС 12% НСП 1% [09:25:05]line > о реализуемом товаре [09:25:05]line Товар: 4607120852456 [09:25:05]line Кириешки Light 80 г сл-сыр [09:25:05]line 1.000 * 40.00 [09:25:05]line = 40.00 [09:25:05]line НДС 12% НСП 1% [09:25:05]line > о реализуемом товаре [09:25:05]line Товар: 5449000027474 [09:25:05]line Напиток FuzeTea зел чай манго,ромашка 1л [09:25:05]line 1.000 * 120.00 [09:25:05]line = 120.00 [09:25:05]line НДС 12% НСП 1% [09:25:05]line > о реализуемом товаре [09:25:05]line ИТОГО: 200.00 [09:25:05]line НСП 1% : 1.76 [09:25:05]line НДС 12% : 21.24 [09:25:05]line Наличными: 200.00 [09:25:05]line Безнал.: 0.00 [09:25:05]line Место: АЗС № 76 "Партнер Нефть" [09:25:05]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [09:25:05]line СНО: Общий режим [09:25:05]line Чек 25 17.06.2024 09:25 [09:25:05]line Смена: 328 ФФД: 1.0 [09:25:05]line ЗНМ: 0300000200 [09:25:05]line РНМ: 0000000000099755 [09:25:05]line Версия ККМ: 001 [09:25:05]line ФМ: 0000000000965344 [09:25:05]line ФД: 22344 [09:25:05]line ФПД: 192687516151846 [09:25:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092516&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22344&fm=192687516151846&tin=02508201610067®Number=0000000000099755&sum=20000 [09:25:05]line 0 [09:25:05]OFD Sender: Processing packet 22344 [packets to send 5, broken 4] [09:25:05]ProducePacketName [09:25:05]name=ofd_packets/00022344 [09:25:05]OFD Sender: To server: pG, [09:25:05]CommunicateWithHost lk.salyk.kg:30040 [09:25:05]ConnectInit lk.salyk.kg [09:25:05]written 0, free lines is 4095 [09:25:05]Connected sock=10 [09:25:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 48 02 00 00 74 E4 40 02 0E E0 5A 03 01 00 03 00 34 02 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 32 34 35 36 06 04 28 00 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 4C 69 67 68 74 20 38 30 20 D0 B3 20 D1 81 D0 BB 2D D1 81 D1 8B D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 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 19 00 00 00 F4 03 04 00 FC 00 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 48 57 00 00 35 04 06 00 AF 3F 8E F3 F0 26 CC 42 74 13 7F C5 3A 30 [09:25:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 95 4E 47 00 F4 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 39 36 35 33 34 34 10 04 04 00 48 57 00 00 F4 03 04 00 B4 A9 6F 66 B6 04 01 00 00 2E 98 57 A5 17 40 1E E4 [09:25:05]CommunicateWithHost err = 0 [09:25:05]CheckOFDResponse [09:25:05]1017 (14) - 77093643461234 [09:25:05]1041 (16) - 0000000000965344 [09:25:05]1040 (4) - 22344 [09:25:05]1012 (4) - 17.06.2024 03:12 [09:25:05]1206 (1) - 0 [09:25:05]OFD Sender: Remove packet 22344 [09:25:05]ProducePacketName [09:25:05]name=ofd_packets/00022344 [09:25:05]NVStorageDeleteData [09:25:06]Write to MH i2c: 01 00 00 5F 3A 99 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: 01 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: 01 07 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: 01 07 00 5F 3A 00 00 00 00 00 77 0C 23 [09:25:06]RasterBufferAndPrint [09:25:06]line [09:25:06]line [09:25:06]line [09:25:06]line [09:25:06]line [09:25:06]written 0, free lines is 3200 [09:25:06]MH_Cut [09:25:06]Write to MH i2c: D1 01 00 66 3A 01 72 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: D1 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: D1 01 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: D1 01 00 66 3A 00 71 [09:25:06]Write to MH i2c: 01 00 00 67 3A A1 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]OFD Sender: No OFD packet to send [09:25:06]*** Cut start [09:25:06]*** Partial cut [09:25:06]*** CUTSNS_PIN = 1 [09:25:06]*** CUTSNS_PIN = 0 [09:25:07]*** Brake cut motor [09:25:07]Read from MH i2c: 01 [09:25:07]MH_I2C_Read... [09:25:07]*** Stop cut motor [09:25:07]*** Cut end [09:25:07]Read from MH i2c: 01 07 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: 01 07 00 67 3A 00 00 00 00 00 FF 0F B6 [09:25:07]process_action close_receipt done [09:25:07]requested_data is exist [09:25:07]produce_requested_data [09:25:07]requested_item fm.sn is exist - process it [09:25:07]wFMCommunicate request_size=4 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 11 00 00 [09:25:07]Write to MH i2c: E2 08 00 68 3A 80 11 00 00 00 00 00 00 1C [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 17 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 17 00 68 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 6E [09:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:25:07]wFMCommunicate OK [09:25:07]requested_item fd.num is exist - process it [09:25:07]SAM_PROTO_GetFieldsCounters [09:25:07]wFMCommunicate request_size=4 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 13 00 00 [09:25:07]Write to MH i2c: E2 08 00 69 3A 80 13 00 00 00 00 00 00 1F [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 62 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 62 00 69 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 48 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [09:25:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 48 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:07]wFMCommunicate OK [09:25:07]SAM_PROTO_GetFieldsCounters done [09:25:07]requested_item shift.num is exist - process it [09:25:07]requested_item shift.opened is exist - process it [09:25:07]req_shift_opened [09:25:07]FM_GetShiftState [09:25:07]SAM_PROTO_GetShiftState [09:25:07]wFMCommunicate request_size=4 [09:25:07]MH_SAM_APDU [09:25:07]CAPDU: 80 13 01 00 [09:25:07]Write to MH i2c: E2 08 00 6A 3A 80 13 01 00 00 00 00 00 21 [09:25:07]Write i2c OK [09:25:07]MH_I2C_Read... [09:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:07]Read from MH i2c: E2 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 0E 00 [09:25:07]MH_I2C_Read... [09:25:07]Read from MH i2c: E2 0E 00 6A 3A 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 D3 [09:25:07]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:25:07]wFMCommunicate OK [09:25:07]SAM_PROTO_GetShiftState done [09:25:07]FM_GetShiftState done [09:25:07]req_shift_opened done [09:25:07]requested_item shift.open_date is exist - process it [09:25:07]req_shift_open_date [09:25:07]req_shift_open_date done [09:25:07]produce_requested_data done [09:25:07]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22344,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [09:25:07]process_action_free close_receipt [09:25:07]json_value_free [09:25:07]json_value_free done [09:25:07]process_json_proto returns [09:25:07]Send response to host [09:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22344,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [09:25:07]free response buf [09:25:07]execute_script done [09:25:07]execute_script returns [09:25:07]free content buf [09:25:07]Sock 9.Close socket [09:25:07]Sock 9.Thread stoped [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:05]accept exits with 8 [09:26:05]New connection [09:26:05]New thread 3066695012 created [09:26:05]Thread 3066838372 joined [09:26:05]Waiting for new connection... [09:26:05] Sock 8.Parse request [09:26:05]Sock 8.Check first char [09:26:05]Sock 8.First char is OK [09:26:05]request: POST /json_proto HTTP/1.0 [09:26:05]Method: POST [09:26:05]URL: /json_proto [09:26:05]Method is POST - this is cgi request [09:26:05]url: /json_proto [09:26:05]query_string will be loaded in cgi processing [09:26:05]execute_cgi json_proto POST (null) [09:26:05]execute_cgi path=json_proto method=POST [09:26:05]POST find Content-Length [09:26:05]Host: 172.17.35.133:8080 [09:26:05]Content-Length: 1925 [09:26:05]Content-Type: application/json [09:26:05] [09:26:05]POST finish read [09:26:05]Found Content-Length = 1925 [09:26:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254555", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 485.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:05]execute_script... [09:26:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254555", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000273673", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 485.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:05]POST & json_proto [09:26:05]process_json_proto [09:26:05]json parsed OK: [09:26:05]protocol is kg_v1.0 [09:26:05]action value=close_receipt [09:26:05]process_action close_receipt [09:26:05]cmd_close_receipt [09:26:05]MH_GetDate [09:26:05]Write to MH i2c: F0 00 00 6B 3A 94 [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: F0 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: F0 09 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: F0 09 00 6B 3A 00 3A 01 70 66 8C 55 28 65 1C [09:26:05]GetLastDocTimeStamp 1718616316 [09:26:05]current date 1718616378 [09:26:05]FM_GetShiftState [09:26:05]SAM_PROTO_GetShiftState [09:26:05]wFMCommunicate request_size=4 [09:26:05]MH_SAM_APDU [09:26:05]CAPDU: 80 13 01 00 [09:26:05]Write to MH i2c: E2 08 00 6C 3A 80 13 01 00 00 00 00 00 23 [09:26:05]Write i2c OK [09:26:05]MH_I2C_Read... [09:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:05]Read from MH i2c: E2 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 0E 00 [09:26:05]MH_I2C_Read... [09:26:05]Read from MH i2c: E2 0E 00 6C 3A 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 D5 [09:26:05]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:26:05]wFMCommunicate OK [09:26:05]SAM_PROTO_GetShiftState done [09:26:05]FM_GetShiftState done [09:26:05]opened in 1718583887 [09:26:05]opened+sec_in_day 1718670287 [09:26:05]quantity*price = 10000 [09:26:05]sum+1 = 10001 [09:26:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700007110073 Сэндвич с кетчупом Талас Даамы 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000273673 Сок Piko Pulpy красный виноград ПЭТ 1л 1.000 * 180.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173822 Р/ж Orbit б/сах мята 13,6г 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 485.00 НСП 1% : 4.29 НДС 12% : 51.50 Наличными: 485.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 26 17.06.2024 09:26 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22345 ФПД: 54688228274731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092618&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22345&fm=54688228274731&tin=02508201610067®Number=0000000000099755&sum=48500 0 [09:26:07]StoreToDocumentArchive [09:26:07]shift 328 fd 22345 [09:26:07]save to /storage/0328/doc_00022345 [09:26:07]save last doc name /storage/0328/doc_00022345 to /storage/kkm_last_doc_name [09:26:07]save OK [09:26:07]Clear old archive folders... [09:26:07]ProcessDocumentItem done err = 0, tmpTLVsize=791 [09:26:07]tlvbuf is 002373F0 [09:26:07]SAM_PROTO_ClearQueue [09:26:07]wFMCommunicate request_size=4 [09:26:07]MH_SAM_APDU [09:26:07]CAPDU: 80 09 00 00 [09:26:07]Write to MH i2c: E2 08 00 79 3A 80 09 00 00 00 00 00 00 25 [09:26:07]Write i2c OK [09:26:07]MH_I2C_Read... [09:26:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:07]Read from MH i2c: E2 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: E2 03 00 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: E2 03 00 79 3A 00 90 00 27 [09:26:07]RAPDU: 90 00 [09:26:07]wFMCommunicate OK [09:26:07]SAM_PROTO_ClearQueue done [09:26:07]KKMCreateOFDPacket [09:26:07]OFDProtocolAddRootSTLVToBuf [09:26:07]FM_MakeSignedData [09:26:07]FM_MakeSignedData [09:26:07]SAM_PROTO_SignData [09:26:07]wFMCommunicate request_size=4 [09:26:07]MH_SAM_APDU [09:26:07]CAPDU: 80 0D 01 02 [09:26:07]Write to MH i2c: E2 08 00 7A 3A 80 0D 01 02 00 00 00 00 2D [09:26:07]Write i2c OK [09:26:07]MH_I2C_Read... [09:26:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:07]Read from MH i2c: E2 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: E2 03 00 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: E2 03 00 7A 3A 00 90 00 28 [09:26:07]RAPDU: 90 00 [09:26:07]wFMCommunicate OK [09:26:07]wFMCommunicate request_size=255 [09:26:07]MH_SAM_APDU [09:26:07]CAPDU: 80 0D 02 02 FA 03 00 17 03 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 [09:26:07]Write to MH i2c: E2 02 01 7B 3A 80 0D 02 02 FA 00 03 00 17 03 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 00 00 58 [09:26:07]Write i2c OK [09:26:07]MH_I2C_Read... [09:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:07]Read from MH i2c: E2 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: E2 03 00 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: E2 03 00 7B 3A 00 90 00 29 [09:26:07]RAPDU: 90 00 [09:26:07]wFMCommunicate OK [09:26:07]wFMCommunicate request_size=255 [09:26:07]MH_SAM_APDU [09:26:07]CAPDU: 80 0D 02 02 FA F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 [09:26:07]Write to MH i2c: E2 02 01 7C 3A 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 00 A1 [09:26:07]Write i2c OK [09:26:07]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 03 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 03 00 7C 3A 00 90 00 2A [09:26:08]RAPDU: 90 00 [09:26:08]wFMCommunicate OK [09:26:08]wFMCommunicate request_size=255 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 0D 02 02 FA 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 14 00 00 00 00 07 04 06 00 74 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 3A 01 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [09:26:08]Write to MH i2c: E2 02 01 7D 3A 80 0D 02 02 FA 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 14 00 00 00 00 07 04 06 00 74 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 3A 01 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 FA [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 03 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 03 00 7D 3A 00 90 00 2B [09:26:08]RAPDU: 90 00 [09:26:08]wFMCommunicate OK [09:26:08]wFMCommunicate request_size=50 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 0D 02 02 2D 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 49 57 00 00 35 04 06 00 31 BD 18 6B 72 2B [09:26:08]Write to MH i2c: E2 35 00 7E 3A 80 0D 02 02 2D 00 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 49 57 00 00 35 04 06 00 31 BD 18 6B 72 2B 00 00 48 [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 03 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 03 00 7E 3A 00 90 00 2C [09:26:08]RAPDU: 90 00 [09:26:08]wFMCommunicate OK [09:26:08]wFMCommunicate request_size=4 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 0D 03 02 [09:26:08]Write to MH i2c: E2 08 00 7F 3A 80 0D 03 02 00 00 00 00 34 [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 0B 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 0B 00 7F 3A 00 B0 BA 77 CB 60 74 46 7B 90 00 76 [09:26:08]RAPDU: B0 BA 77 CB 60 74 46 7B 90 00 [09:26:08]wFMCommunicate OK [09:26:08]SAM_PROTO_SignData done [09:26:08]FM_MakeSignedData done [09:26:08]CreateOFDProtocolMessage [09:26:08]wFMCommunicate request_size=4 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 11 00 00 [09:26:08]Write to MH i2c: E2 08 00 80 3A 80 11 00 00 00 00 00 00 34 [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 17 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 17 00 80 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 86 [09:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:26:08]wFMCommunicate OK [09:26:08]CreateOFDProtocolMessage done [09:26:08]OFDSenderStorePacket 22345 [09:26:08]StoreOFDPacket docnum=22345 [09:26:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 2B 03 00 00 AB CA 23 03 94 10 5A 03 01 00 03 00 17 03 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 14 00 00 00 00 07 04 06 00 74 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 3A 01 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 49 57 00 00 35 04 06 00 31 BD 18 6B 72 2B B0 BA 77 CB 60 74 46 7B [09:26:08]CheckFolder [09:26:08]dirname=/storage/ofd_packets [09:26:08]CheckFolder done [09:26:08]ProducePacketName [09:26:08]name=ofd_packets/00022345 [09:26:08]NVStorageSaveData ofd_packets/00022345 [09:26:08]File name is /storage/ofd_packets/00022345 [09:26:08]Write 841 bytes [09:26:08]NVStorageSaveData done [09:26:08]OFDSenderStorePacket done [09:26:08]KKMCreateOFDPacket done [09:26:08]NVStorageSaveData kkm_last_timestamp [09:26:08]File name is /storage/kkm_last_timestamp [09:26:08]Write 4 bytes [09:26:08]NVStorageSaveData done [09:26:08]ExternCall_PrintAddStr [09:26:08]wPrintStart [09:26:08]Write to MH i2c: 01 00 00 81 3A BB [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: 01 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: 01 07 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: 01 07 00 81 3A 00 00 00 00 00 FF 0F D0 [09:26:08]RasterBufferAndPrint [09:26:08]line Счет N : (3)254555 [09:26:08]line ИНН: 02508201610067 [09:26:08]line Контрольно-Кассовый Чек [09:26:08]line ПРОДАЖА [09:26:08]line Товар: 4870001571528 [09:26:08]line Вода ASU пит н.газ персик ПЭТ 1,0 л [09:26:08]line 1.000 * 100.00 [09:26:08]line = 100.00 [09:26:08]line НДС 12% НСП 1% [09:26:08]line > о реализуемом товаре [09:26:08]line Товар: 4700007110073 [09:26:08]line Сэндвич с кетчупом Талас Даамы [09:26:08]line 1.000 * 70.00 [09:26:08]line = 70.00 [09:26:08]line НДС 12% НСП 1% [09:26:08]line > о реализуемом товаре [09:26:08]line Товар: 5449000273673 [09:26:08]line Сок Piko Pulpy красный виноград ПЭТ 1л [09:26:08]line 1.000 * 180.00 [09:26:08]line = 180.00 [09:26:08]line НДС 12% НСП 1% [09:26:08]line > о реализуемом товаре [09:26:08]line Товар: 4660085515163 [09:26:08]line Шок Батончик Сникерс супер 95/80г [09:26:08]line 1.000 * 90.00 [09:26:08]line = 90.00 [09:26:08]line НДС 12% НСП 1% [09:26:08]line > о реализуемом товаре [09:26:08]line Товар: 50173822 [09:26:08]line Р/ж Orbit б/сах мята 13,6г [09:26:08]line 1.000 * 45.00 [09:26:08]line = 45.00 [09:26:08]line НДС 12% НСП 1% [09:26:08]line > о реализуемом товаре [09:26:08]line ИТОГО: 485.00 [09:26:08]line НСП 1% : 4.29 [09:26:08]line НДС 12% : 51.50 [09:26:08]line Наличными: 485.00 [09:26:08]line Безнал.: 0.00 [09:26:08]line Место: АЗС № 76 "Партнер Нефть" [09:26:08]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [09:26:08]line СНО: Общий режим [09:26:08]line Чек 26 17.06.2024 09:26 [09:26:08]line Смена: 328 ФФД: 1.0 [09:26:08]line ЗНМ: 0300000200 [09:26:08]line РНМ: 0000000000099755 [09:26:08]line Версия ККМ: 001 [09:26:08]line ФМ: 0000000000965344 [09:26:08]line ФД: 22345 [09:26:08]line ФПД: 54688228274731 [09:26:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092618&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22345&fm=54688228274731&tin=02508201610067®Number=0000000000099755&sum=48500 [09:26:08]line 0 [09:26:08]OFD Sender: Processing packet 22345 [packets to send 5, broken 4] [09:26:08]ProducePacketName [09:26:08]name=ofd_packets/00022345 [09:26:08]OFD Sender: To server: pG, [09:26:08]CommunicateWithHost lk.salyk.kg:30040 [09:26:08]ConnectInit lk.salyk.kg [09:26:08]written 0, free lines is 4095 [09:26:08]Connected sock=10 [09:26:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 2B 03 00 00 AB CA 23 03 94 10 5A 03 01 00 03 00 17 03 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 14 00 00 00 00 07 04 06 00 74 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 3A 01 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 49 57 00 00 35 04 06 00 31 BD 18 6B 72 2B B0 BA 77 CB 60 74 46 7B [09:26:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 86 91 47 00 B9 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 49 57 00 00 F4 03 04 00 F3 A9 6F 66 B6 04 01 00 00 A5 94 AC 1B 65 C8 2E AD [09:26:09]CommunicateWithHost err = 0 [09:26:09]CheckOFDResponse [09:26:09]1017 (14) - 77093643461234 [09:26:09]1041 (16) - 0000000000965344 [09:26:09]1040 (4) - 22345 [09:26:09]1012 (4) - 17.06.2024 03:13 [09:26:09]1206 (1) - 0 [09:26:09]OFD Sender: Remove packet 22345 [09:26:09]ProducePacketName [09:26:09]name=ofd_packets/00022345 [09:26:09]NVStorageDeleteData [09:26:09]Write to MH i2c: 01 00 00 C5 3A FF [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: 01 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: 01 07 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: 01 07 00 C5 3A 00 00 00 00 00 BF 0B D0 [09:26:09]RasterBufferAndPrint [09:26:09]line [09:26:09]line [09:26:09]line [09:26:09]line [09:26:09]line [09:26:09]written 0, free lines is 3019 [09:26:09]MH_Cut [09:26:09]Write to MH i2c: D1 01 00 CC 3A 01 D8 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: D1 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: D1 01 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: D1 01 00 CC 3A 00 D7 [09:26:09]Write to MH i2c: 01 00 00 CD 3A 07 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]OFD Sender: No OFD packet to send [09:26:10]*** Cut start [09:26:10]*** Partial cut [09:26:10]*** CUTSNS_PIN = 1 [09:26:10]*** CUTSNS_PIN = 0 [09:26:10]*** Brake cut motor [09:26:11]Read from MH i2c: 01 [09:26:11]MH_I2C_Read... [09:26:11]*** Stop cut motor [09:26:11]*** Cut end [09:26:11]Read from MH i2c: 01 07 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: 01 07 00 CD 3A 00 00 00 00 00 FF 0F 1C [09:26:11]process_action close_receipt done [09:26:11]requested_data is exist [09:26:11]produce_requested_data [09:26:11]requested_item fm.sn is exist - process it [09:26:11]wFMCommunicate request_size=4 [09:26:11]MH_SAM_APDU [09:26:11]CAPDU: 80 11 00 00 [09:26:11]Write to MH i2c: E2 08 00 CE 3A 80 11 00 00 00 00 00 00 82 [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:11]Read from MH i2c: E2 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 17 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 17 00 CE 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 D4 [09:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:26:11]wFMCommunicate OK [09:26:11]requested_item fd.num is exist - process it [09:26:11]SAM_PROTO_GetFieldsCounters [09:26:11]wFMCommunicate request_size=4 [09:26:11]MH_SAM_APDU [09:26:11]CAPDU: 80 13 00 00 [09:26:11]Write to MH i2c: E2 08 00 CF 3A 80 13 00 00 00 00 00 00 85 [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:11]Read from MH i2c: E2 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 62 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 62 00 CF 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 49 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [09:26:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 49 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:11]wFMCommunicate OK [09:26:11]SAM_PROTO_GetFieldsCounters done [09:26:11]requested_item shift.num is exist - process it [09:26:11]requested_item shift.opened is exist - process it [09:26:11]req_shift_opened [09:26:11]FM_GetShiftState [09:26:11]SAM_PROTO_GetShiftState [09:26:11]wFMCommunicate request_size=4 [09:26:11]MH_SAM_APDU [09:26:11]CAPDU: 80 13 01 00 [09:26:11]Write to MH i2c: E2 08 00 D0 3A 80 13 01 00 00 00 00 00 87 [09:26:11]Write i2c OK [09:26:11]MH_I2C_Read... [09:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:11]Read from MH i2c: E2 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 0E 00 [09:26:11]MH_I2C_Read... [09:26:11]Read from MH i2c: E2 0E 00 D0 3A 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 39 [09:26:11]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:26:11]wFMCommunicate OK [09:26:11]SAM_PROTO_GetShiftState done [09:26:11]FM_GetShiftState done [09:26:11]req_shift_opened done [09:26:11]requested_item shift.open_date is exist - process it [09:26:11]req_shift_open_date [09:26:11]req_shift_open_date done [09:26:11]produce_requested_data done [09:26:11]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22345,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [09:26:11]process_action_free close_receipt [09:26:11]json_value_free [09:26:11]json_value_free done [09:26:11]process_json_proto returns [09:26:11]Send response to host [09:26:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22345,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [09:26:11]free response buf [09:26:11]execute_script done [09:26:11]execute_script returns [09:26:11]free content buf [09:26:11]Sock 8.Close socket [09:26:11]Sock 8.Thread stoped [09:26:14]OFD Sender: No OFD packet to send [09:26:16]accept exits with 9 [09:26:16]New connection [09:26:16]New thread 3066838372 created [09:26:16]Thread 3066695012 joined [09:26:16]Waiting for new connection... [09:26:16] Sock 9.Parse request [09:26:16]Sock 9.Check first char [09:26:16]Sock 9.First char is OK [09:26:16]request: POST /json_proto HTTP/1.0 [09:26:16]Method: POST [09:26:16]URL: /json_proto [09:26:16]Method is POST - this is cgi request [09:26:16]url: /json_proto [09:26:16]query_string will be loaded in cgi processing [09:26:16]execute_cgi json_proto POST (null) [09:26:16]execute_cgi path=json_proto method=POST [09:26:16]POST find Content-Length [09:26:16]Host: 172.17.35.133:8080 [09:26:16]Content-Length: 721 [09:26:16]Content-Type: application/json [09:26:16] [09:26:16]POST finish read [09:26:16]Found Content-Length = 721 [09:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254556", "tax_sys" : 0, "items" : [ { "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:16]execute_script... [09:26: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 : (3)254556", "tax_sys" : 0, "items" : [ { "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:16]POST & json_proto [09:26:16]process_json_proto [09:26:16]json parsed OK: [09:26:16]protocol is kg_v1.0 [09:26:16]action value=close_receipt [09:26:16]process_action close_receipt [09:26:16]cmd_close_receipt [09:26:16]MH_GetDate [09:26:16]Write to MH i2c: F0 00 00 D1 3A FA [09:26:16]Write i2c OK [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: F0 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: F0 09 00 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: F0 09 00 D1 3A 00 45 01 70 66 8C 55 28 65 8D [09:26:16]GetLastDocTimeStamp 1718616378 [09:26:16]current date 1718616389 [09:26:16]FM_GetShiftState [09:26:16]SAM_PROTO_GetShiftState [09:26:16]wFMCommunicate request_size=4 [09:26:16]MH_SAM_APDU [09:26:16]CAPDU: 80 13 01 00 [09:26:16]Write to MH i2c: E2 08 00 D2 3A 80 13 01 00 00 00 00 00 89 [09:26:16]Write i2c OK [09:26:16]MH_I2C_Read... [09:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:16]Read from MH i2c: E2 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 0E 00 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 0E 00 D2 3A 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 3B [09:26:16]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:26:16]wFMCommunicate OK [09:26:16]SAM_PROTO_GetShiftState done [09:26:16]FM_GetShiftState done [09:26:16]opened in 1718583887 [09:26:16]opened+sec_in_day 1718670287 [09:26:16]quantity*price = 7000 [09:26:16]sum+1 = 7001 [09:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 27 17.06.2024 09:26 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22346 ФПД: 200465035421610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092629&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22346&fm=200465035421610&tin=02508201610067®Number=0000000000099755&sum=7000 0 [09:26:17]StoreToDocumentArchive [09:26:17]shift 328 fd 22346 [09:26:17]save to /storage/0328/doc_00022346 [09:26:17]save last doc name /storage/0328/doc_00022346 to /storage/kkm_last_doc_name [09:26:17]save OK [09:26:17]Clear old archive folders... [09:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=300 [09:26:17]tlvbuf is 0020F400 [09:26:17]SAM_PROTO_ClearQueue [09:26:17]wFMCommunicate request_size=4 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 09 00 00 [09:26:17]Write to MH i2c: E2 08 00 DF 3A 80 09 00 00 00 00 00 00 8B [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 DF 3A 00 90 00 8D [09:26:17]RAPDU: 90 00 [09:26:17]wFMCommunicate OK [09:26:17]SAM_PROTO_ClearQueue done [09:26:17]KKMCreateOFDPacket [09:26:17]OFDProtocolAddRootSTLVToBuf [09:26:17]FM_MakeSignedData [09:26:17]FM_MakeSignedData [09:26:17]SAM_PROTO_SignData [09:26:17]wFMCommunicate request_size=4 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 0D 01 02 [09:26:17]Write to MH i2c: E2 08 00 E0 3A 80 0D 01 02 00 00 00 00 93 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 E0 3A 00 90 00 8E [09:26:17]RAPDU: 90 00 [09:26:17]wFMCommunicate OK [09:26:17]wFMCommunicate request_size=255 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 45 01 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 [09:26:18]Write to MH i2c: E2 02 01 E1 3A 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 45 01 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 81 [09:26:18]Write i2c OK [09:26:18]MH_I2C_Read... [09:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:18]Read from MH i2c: E2 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: E2 03 00 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: E2 03 00 E1 3A 00 90 00 8F [09:26:18]RAPDU: 90 00 [09:26:18]wFMCommunicate OK [09:26:18]wFMCommunicate request_size=59 [09:26:18]MH_SAM_APDU [09:26:18]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4A 57 00 00 35 04 06 00 B6 52 67 39 E7 AA [09:26:18]Write to MH i2c: E2 3E 00 E2 3A 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4A 57 00 00 35 04 06 00 B6 52 67 39 E7 AA 00 00 9A [09:26:18]Write i2c OK [09:26:18]MH_I2C_Read... [09:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:18]Read from MH i2c: E2 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: E2 03 00 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: E2 03 00 E2 3A 00 90 00 90 [09:26:18]RAPDU: 90 00 [09:26:18]wFMCommunicate OK [09:26:18]wFMCommunicate request_size=4 [09:26:18]MH_SAM_APDU [09:26:18]CAPDU: 80 0D 03 02 [09:26:18]Write to MH i2c: E2 08 00 E3 3A 80 0D 03 02 00 00 00 00 98 [09:26:18]Write i2c OK [09:26:18]MH_I2C_Read... [09:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:18]Read from MH i2c: E2 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: E2 0B 00 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: E2 0B 00 E3 3A 00 0C 72 93 B7 6F B9 99 1C 90 00 3E [09:26:18]RAPDU: 0C 72 93 B7 6F B9 99 1C 90 00 [09:26:18]wFMCommunicate OK [09:26:18]SAM_PROTO_SignData done [09:26:18]FM_MakeSignedData done [09:26:18]CreateOFDProtocolMessage [09:26:18]wFMCommunicate request_size=4 [09:26:18]MH_SAM_APDU [09:26:18]CAPDU: 80 11 00 00 [09:26:18]Write to MH i2c: E2 08 00 E4 3A 80 11 00 00 00 00 00 00 98 [09:26:18]Write i2c OK [09:26:18]MH_I2C_Read... [09:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:18]Read from MH i2c: E2 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: E2 17 00 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: E2 17 00 E4 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 EA [09:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:26:18]wFMCommunicate OK [09:26:18]CreateOFDProtocolMessage done [09:26:18]OFDSenderStorePacket 22346 [09:26:18]StoreOFDPacket docnum=22346 [09:26:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 40 01 00 00 51 AF 38 01 3B 3C 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 45 01 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4A 57 00 00 35 04 06 00 B6 52 67 39 E7 AA 0C 72 93 B7 6F B9 99 1C [09:26:18]CheckFolder [09:26:18]dirname=/storage/ofd_packets [09:26:18]CheckFolder done [09:26:18]ProducePacketName [09:26:18]name=ofd_packets/00022346 [09:26:18]NVStorageSaveData ofd_packets/00022346 [09:26:18]File name is /storage/ofd_packets/00022346 [09:26:18]Write 350 bytes [09:26:18]NVStorageSaveData done [09:26:18]OFDSenderStorePacket done [09:26:18]KKMCreateOFDPacket done [09:26:18]NVStorageSaveData kkm_last_timestamp [09:26:18]File name is /storage/kkm_last_timestamp [09:26:18]Write 4 bytes [09:26:18]NVStorageSaveData done [09:26:18]ExternCall_PrintAddStr [09:26:18]wPrintStart [09:26:18]Write to MH i2c: 01 00 00 E5 3A 1F [09:26:18]Write i2c OK [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: 01 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: 01 07 00 [09:26:18]MH_I2C_Read... [09:26:18]Read from MH i2c: 01 07 00 E5 3A 00 00 00 00 00 FF 0F 34 [09:26:18]RasterBufferAndPrint [09:26:18]line Счет N : (3)254556 [09:26:18]line ИНН: 02508201610067 [09:26:18]line Контрольно-Кассовый Чек [09:26:18]line ПРОДАЖА [09:26:18]line Товар: 4700007110066 [09:26:18]line Сэндвич с майонезом Талас Даамы [09:26:18]line 1.000 * 70.00 [09:26:18]line = 70.00 [09:26:18]line НДС 12% НСП 1% [09:26:18]line > о реализуемом товаре [09:26:18]line ИТОГО: 70.00 [09:26:18]line НСП 1% : 0.62 [09:26:18]line НДС 12% : 7.43 [09:26:18]line Наличными: 70.00 [09:26:18]line Безнал.: 0.00 [09:26:18]line Место: АЗС № 76 "Партнер Нефть" [09:26:18]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [09:26:18]line СНО: Общий режим [09:26:18]line Чек 27 17.06.2024 09:26 [09:26:18]line Смена: 328 ФФД: 1.0 [09:26:18]line ЗНМ: 0300000200 [09:26:18]line РНМ: 0000000000099755 [09:26:18]line Версия ККМ: 001 [09:26:18]line ФМ: 0000000000965344 [09:26:18]line ФД: 22346 [09:26:18]line ФПД: 200465035421610 [09:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092629&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22346&fm=200465035421610&tin=02508201610067®Number=0000000000099755&sum=7000 [09:26:18]line 0 [09:26:18]OFD Sender: Processing packet 22346 [packets to send 5, broken 4] [09:26:18]ProducePacketName [09:26:18]name=ofd_packets/00022346 [09:26:18]OFD Sender: To server: pG, [09:26:18]CommunicateWithHost lk.salyk.kg:30040 [09:26:18]ConnectInit lk.salyk.kg [09:26:18]written 0, free lines is 4095 [09:26:19]Connected sock=10 [09:26:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 40 01 00 00 51 AF 38 01 3B 3C 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 45 01 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4A 57 00 00 35 04 06 00 B6 52 67 39 E7 AA 0C 72 93 B7 6F B9 99 1C [09:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 6B CD 47 00 70 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 39 36 35 33 34 34 10 04 04 00 4A 57 00 00 F4 03 04 00 FD A9 6F 66 B6 04 01 00 00 BB E9 9A 7B CF AA 25 F2 [09:26:19]CommunicateWithHost err = 0 [09:26:19]CheckOFDResponse [09:26:19]1017 (14) - 77093643461234 [09:26:19]1041 (16) - 0000000000965344 [09:26:19]1040 (4) - 22346 [09:26:19]1012 (4) - 17.06.2024 03:14 [09:26:19]1206 (1) - 0 [09:26:19]OFD Sender: Remove packet 22346 [09:26:19]ProducePacketName [09:26:19]name=ofd_packets/00022346 [09:26:19]NVStorageDeleteData [09:26:19]Write to MH i2c: 01 00 00 0E 3B 49 [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: 01 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: 01 07 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: 01 07 00 0E 3B 00 00 00 00 00 0B 0D 68 [09:26:19]RasterBufferAndPrint [09:26:19]line [09:26:19]line [09:26:19]line [09:26:19]line [09:26:19]line [09:26:19]written 0, free lines is 3351 [09:26:19]MH_Cut [09:26:19]Write to MH i2c: D1 01 00 15 3B 01 22 [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: D1 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: D1 01 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: D1 01 00 15 3B 00 21 [09:26:19]Write to MH i2c: 01 00 00 16 3B 51 [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]OFD Sender: No OFD packet to send [09:26:20]*** Cut start [09:26:20]*** Partial cut [09:26:20]*** CUTSNS_PIN = 1 [09:26:20]*** CUTSNS_PIN = 0 [09:26:20]*** Brake cut motor [09:26:20]Read from MH i2c: 01 [09:26:20]MH_I2C_Read... [09:26:20]*** Stop cut motor [09:26:20]*** Cut end [09:26:20]Read from MH i2c: 01 07 00 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: 01 07 00 16 3B 00 00 00 00 00 FF 0F 66 [09:26:20]process_action close_receipt done [09:26:20]requested_data is exist [09:26:20]produce_requested_data [09:26:20]requested_item fm.sn is exist - process it [09:26:20]wFMCommunicate request_size=4 [09:26:20]MH_SAM_APDU [09:26:20]CAPDU: 80 11 00 00 [09:26:20]Write to MH i2c: E2 08 00 17 3B 80 11 00 00 00 00 00 00 CC [09:26:20]Write i2c OK [09:26:20]MH_I2C_Read... [09:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:20]Read from MH i2c: E2 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: E2 17 00 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: E2 17 00 17 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 1E [09:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:26:20]wFMCommunicate OK [09:26:20]requested_item fd.num is exist - process it [09:26:20]SAM_PROTO_GetFieldsCounters [09:26:20]wFMCommunicate request_size=4 [09:26:20]MH_SAM_APDU [09:26:20]CAPDU: 80 13 00 00 [09:26:20]Write to MH i2c: E2 08 00 18 3B 80 13 00 00 00 00 00 00 CF [09:26:20]Write i2c OK [09:26:20]MH_I2C_Read... [09:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:20]Read from MH i2c: E2 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: E2 62 00 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: E2 62 00 18 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 4A 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [09:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 4A 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:20]wFMCommunicate OK [09:26:20]SAM_PROTO_GetFieldsCounters done [09:26:20]requested_item shift.num is exist - process it [09:26:20]requested_item shift.opened is exist - process it [09:26:20]req_shift_opened [09:26:20]FM_GetShiftState [09:26:20]SAM_PROTO_GetShiftState [09:26:20]wFMCommunicate request_size=4 [09:26:20]MH_SAM_APDU [09:26:20]CAPDU: 80 13 01 00 [09:26:20]Write to MH i2c: E2 08 00 19 3B 80 13 01 00 00 00 00 00 D1 [09:26:20]Write i2c OK [09:26:20]MH_I2C_Read... [09:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:20]Read from MH i2c: E2 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: E2 0E 00 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: E2 0E 00 19 3B 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 83 [09:26:20]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:26:20]wFMCommunicate OK [09:26:20]SAM_PROTO_GetShiftState done [09:26:20]FM_GetShiftState done [09:26:20]req_shift_opened done [09:26:20]requested_item shift.open_date is exist - process it [09:26:20]req_shift_open_date [09:26:20]req_shift_open_date done [09:26:20]produce_requested_data done [09:26:20]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22346,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [09:26:20]process_action_free close_receipt [09:26:20]json_value_free [09:26:20]json_value_free done [09:26:20]process_json_proto returns [09:26:20]Send response to host [09:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22346,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [09:26:20]free response buf [09:26:20]execute_script done [09:26:20]execute_script returns [09:26:20]free content buf [09:26:20]Sock 9.Close socket [09:26:20]Sock 9.Thread stoped [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:03]accept exits with 8 [09:27:03]New connection [09:27:03]New thread 3066695012 created [09:27:03]Thread 3066838372 joined [09:27:03]Waiting for new connection... [09:27:03] Sock 8.Parse request [09:27:03]Sock 8.Check first char [09:27:03]Sock 8.First char is OK [09:27:03]request: POST /json_proto HTTP/1.0 [09:27:03]Method: POST [09:27:03]URL: /json_proto [09:27:03]Method is POST - this is cgi request [09:27:03]url: /json_proto [09:27:03]query_string will be loaded in cgi processing [09:27:03]execute_cgi json_proto POST (null) [09:27:03]execute_cgi path=json_proto method=POST [09:27:03]POST find Content-Length [09:27:03]Host: 172.17.35.133:8080 [09:27:03]Content-Length: 1191 [09:27:03]Content-Type: application/json [09:27:03] [09:27:03]POST finish read [09:27:03]Found Content-Length = 1191 [09:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254557", "tax_sys" : 0, "items" : [ { "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 238.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:03]execute_script... [09:27: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 : (3)254557", "tax_sys" : 0, "items" : [ { "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227737", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 \u0440\u043E\u043B\u043B 15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 238.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:03]POST & json_proto [09:27:03]process_json_proto [09:27:03]json parsed OK: [09:27:03]protocol is kg_v1.0 [09:27:03]action value=close_receipt [09:27:03]process_action close_receipt [09:27:03]cmd_close_receipt [09:27:03]MH_GetDate [09:27:03]Write to MH i2c: F0 00 00 1A 3B 44 [09:27:03]Write i2c OK [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: F0 [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: F0 09 00 [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: F0 09 00 1A 3B 00 74 01 70 66 8C 55 28 65 06 [09:27:03]GetLastDocTimeStamp 1718616389 [09:27:03]current date 1718616436 [09:27:03]FM_GetShiftState [09:27:03]SAM_PROTO_GetShiftState [09:27:03]wFMCommunicate request_size=4 [09:27:03]MH_SAM_APDU [09:27:03]CAPDU: 80 13 01 00 [09:27:03]Write to MH i2c: E2 08 00 1B 3B 80 13 01 00 00 00 00 00 D3 [09:27:03]Write i2c OK [09:27:03]MH_I2C_Read... [09:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:03]Read from MH i2c: E2 [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: E2 0E 00 [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: E2 0E 00 1B 3B 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 85 [09:27:03]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:27:03]wFMCommunicate OK [09:27:03]SAM_PROTO_GetShiftState done [09:27:03]FM_GetShiftState done [09:27:03]opened in 1718583887 [09:27:03]opened+sec_in_day 1718670287 [09:27:03]quantity*price = 13000 [09:27:03]sum+1 = 13001 [09:27:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46227737 Р/ж mentos pure fresh арбуз ролл 15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 238.00 НСП 1% : 2.10 НДС 12% : 25.26 Наличными: 238.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 28 17.06.2024 09:27 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22347 ФПД: 273310574435207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092716&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22347&fm=273310574435207&tin=02508201610067®Number=0000000000099755&sum=23800 0 [09:27:04]StoreToDocumentArchive [09:27:04]shift 328 fd 22347 [09:27:04]save to /storage/0328/doc_00022347 [09:27:04]save last doc name /storage/0328/doc_00022347 to /storage/kkm_last_doc_name [09:27:04]save OK [09:27:04]Clear old archive folders... [09:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=523 [09:27:04]tlvbuf is 0028CB60 [09:27:04]SAM_PROTO_ClearQueue [09:27:04]wFMCommunicate request_size=4 [09:27:04]MH_SAM_APDU [09:27:04]CAPDU: 80 09 00 00 [09:27:04]Write to MH i2c: E2 08 00 28 3B 80 09 00 00 00 00 00 00 D5 [09:27:04]Write i2c OK [09:27:04]MH_I2C_Read... [09:27:04]Read from MH i2c: E2 [09:27:04]MH_I2C_Read... [09:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:04]Read from MH i2c: E2 03 00 [09:27:04]MH_I2C_Read... [09:27:04]Read from MH i2c: E2 03 00 28 3B 00 90 00 D7 [09:27:04]RAPDU: 90 00 [09:27:04]wFMCommunicate OK [09:27:04]SAM_PROTO_ClearQueue done [09:27:04]KKMCreateOFDPacket [09:27:04]OFDProtocolAddRootSTLVToBuf [09:27:04]FM_MakeSignedData [09:27:04]FM_MakeSignedData [09:27:04]SAM_PROTO_SignData [09:27:04]wFMCommunicate request_size=4 [09:27:04]MH_SAM_APDU [09:27:04]CAPDU: 80 0D 01 02 [09:27:04]Write to MH i2c: E2 08 00 29 3B 80 0D 01 02 00 00 00 00 DD [09:27:04]Write i2c OK [09:27:04]MH_I2C_Read... [09:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:04]Read from MH i2c: E2 [09:27:04]MH_I2C_Read... [09:27:04]Read from MH i2c: E2 03 00 [09:27:04]MH_I2C_Read... [09:27:04]Read from MH i2c: E2 03 00 29 3B 00 90 00 D8 [09:27:04]RAPDU: 90 00 [09:27:04]wFMCommunicate OK [09:27:04]wFMCommunicate request_size=255 [09:27:04]MH_SAM_APDU [09:27:04]CAPDU: 80 0D 02 02 FA 03 00 0B 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [09:27:04]Write to MH i2c: E2 02 01 2A 3B 80 0D 02 02 FA 00 03 00 0B 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 6F [09:27:04]Write i2c OK [09:27:04]MH_I2C_Read... [09:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:04]Read from MH i2c: E2 [09:27:04]MH_I2C_Read... [09:27:04]Read from MH i2c: E2 03 00 [09:27:04]MH_I2C_Read... [09:27:04]Read from MH i2c: E2 03 00 2A 3B 00 90 00 D9 [09:27:04]RAPDU: 90 00 [09:27:04]wFMCommunicate OK [09:27:04]wFMCommunicate request_size=255 [09:27:04]MH_SAM_APDU [09:27:04]CAPDU: 80 0D 02 02 FA 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 09 00 00 00 00 07 04 06 00 F8 5C 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 74 01 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 [09:27:04]Write to MH i2c: E2 02 01 2B 3B 80 0D 02 02 FA 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 09 00 00 00 00 07 04 06 00 F8 5C 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 74 01 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 00 00 A8 [09:27:04]OFD Sender: No OFD packet to send [09:27:04]Write i2c OK [09:27:04]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 2B 3B 00 90 00 DA [09:27:05]RAPDU: 90 00 [09:27:05]wFMCommunicate OK [09:27:05]wFMCommunicate request_size=32 [09:27:05]MH_SAM_APDU [09:27:05]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 34 34 10 04 04 00 4B 57 00 00 35 04 06 00 F8 93 13 B3 DB 87 [09:27:05]Write to MH i2c: E2 23 00 2C 3B 80 0D 02 02 1B 00 30 30 30 39 36 35 33 34 34 10 04 04 00 4B 57 00 00 35 04 06 00 F8 93 13 B3 DB 87 00 00 92 [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 2C 3B 00 90 00 DB [09:27:05]RAPDU: 90 00 [09:27:05]wFMCommunicate OK [09:27:05]wFMCommunicate request_size=4 [09:27:05]MH_SAM_APDU [09:27:05]CAPDU: 80 0D 03 02 [09:27:05]Write to MH i2c: E2 08 00 2D 3B 80 0D 03 02 00 00 00 00 E3 [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 0B 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 0B 00 2D 3B 00 5D 6B 18 5A 93 EA 0A 24 90 00 C9 [09:27:05]RAPDU: 5D 6B 18 5A 93 EA 0A 24 90 00 [09:27:05]wFMCommunicate OK [09:27:05]SAM_PROTO_SignData done [09:27:05]FM_MakeSignedData done [09:27:05]CreateOFDProtocolMessage [09:27:05]wFMCommunicate request_size=4 [09:27:05]MH_SAM_APDU [09:27:05]CAPDU: 80 11 00 00 [09:27:05]Write to MH i2c: E2 08 00 2E 3B 80 11 00 00 00 00 00 00 E3 [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 17 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 17 00 2E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 35 [09:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:27:05]wFMCommunicate OK [09:27:05]CreateOFDProtocolMessage done [09:27:05]OFDSenderStorePacket 22347 [09:27:05]StoreOFDPacket docnum=22347 [09:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 1F 02 00 00 01 F9 17 02 77 35 5A 03 01 00 03 00 0B 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 09 00 00 00 00 07 04 06 00 F8 5C 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 74 01 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4B 57 00 00 35 04 06 00 F8 93 13 B3 DB 87 5D 6B 18 5A 93 EA 0A 24 [09:27:05]CheckFolder [09:27:05]dirname=/storage/ofd_packets [09:27:05]CheckFolder done [09:27:05]ProducePacketName [09:27:05]name=ofd_packets/00022347 [09:27:05]NVStorageSaveData ofd_packets/00022347 [09:27:05]File name is /storage/ofd_packets/00022347 [09:27:05]Write 573 bytes [09:27:05]NVStorageSaveData done [09:27:05]OFDSenderStorePacket done [09:27:05]KKMCreateOFDPacket done [09:27:05]NVStorageSaveData kkm_last_timestamp [09:27:05]File name is /storage/kkm_last_timestamp [09:27:05]Write 4 bytes [09:27:05]NVStorageSaveData done [09:27:05]ExternCall_PrintAddStr [09:27:05]wPrintStart [09:27:05]Write to MH i2c: 01 00 00 2F 3B 6A [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: 01 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: 01 07 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: 01 07 00 2F 3B 00 00 00 00 00 FF 0F 7F [09:27:05]RasterBufferAndPrint [09:27:05]line Счет N : (3)254557 [09:27:05]line ИНН: 02508201610067 [09:27:05]line Контрольно-Кассовый Чек [09:27:05]line ПРОДАЖА [09:27:05]line Товар: 4870002329937 [09:27:05]line Напиток Lipton IceTea 1л персик Regular [09:27:05]line 1.000 * 130.00 [09:27:05]line = 130.00 [09:27:05]line НДС 12% НСП 1% [09:27:05]line > о реализуемом товаре [09:27:05]line Товар: 46227737 [09:27:05]line Р/ж mentos pure fresh арбуз ролл 15,5г [09:27:05]line 1.000 * 49.00 [09:27:05]line = 49.00 [09:27:05]line НДС 12% НСП 1% [09:27:05]line > о реализуемом товаре [09:27:05]line Товар: 4607065001445 [09:27:05]line Шок батончик Snickers 50,5г [09:27:05]line 1.000 * 59.00 [09:27:05]line = 59.00 [09:27:05]line НДС 12% НСП 1% [09:27:05]line > о реализуемом товаре [09:27:05]line ИТОГО: 238.00 [09:27:05]line НСП 1% : 2.10 [09:27:05]line НДС 12% : 25.26 [09:27:05]line Наличными: 238.00 [09:27:05]line Безнал.: 0.00 [09:27:05]line Место: АЗС № 76 "Партнер Нефть" [09:27:05]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [09:27:05]line СНО: Общий режим [09:27:05]line Чек 28 17.06.2024 09:27 [09:27:05]line Смена: 328 ФФД: 1.0 [09:27:05]line ЗНМ: 0300000200 [09:27:05]line РНМ: 0000000000099755 [09:27:05]line Версия ККМ: 001 [09:27:05]line ФМ: 0000000000965344 [09:27:05]line ФД: 22347 [09:27:05]line ФПД: 273310574435207 [09:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T092716&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22347&fm=273310574435207&tin=02508201610067®Number=0000000000099755&sum=23800 [09:27:05]line 0 [09:27:05]OFD Sender: Processing packet 22347 [packets to send 5, broken 4] [09:27:05]ProducePacketName [09:27:05]name=ofd_packets/00022347 [09:27:05]OFD Sender: To server: pG, [09:27:05]CommunicateWithHost lk.salyk.kg:30040 [09:27:05]ConnectInit lk.salyk.kg [09:27:05]written 0, free lines is 4095 [09:27:05]Connected sock=11 [09:27:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 1F 02 00 00 01 F9 17 02 77 35 5A 03 01 00 03 00 0B 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 32 37 37 33 37 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 09 00 00 00 00 07 04 06 00 F8 5C 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 74 01 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4B 57 00 00 35 04 06 00 F8 93 13 B3 DB 87 5D 6B 18 5A 93 EA 0A 24 [09:27:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 6E 01 47 00 52 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 39 36 35 33 34 34 10 04 04 00 4B 57 00 00 F4 03 04 00 2C AA 6F 66 B6 04 01 00 00 38 C5 B3 64 09 07 04 A4 [09:27:05]CommunicateWithHost err = 0 [09:27:05]CheckOFDResponse [09:27:05]1017 (14) - 77093643461234 [09:27:05]1041 (16) - 0000000000965344 [09:27:05]1040 (4) - 22347 [09:27:05]1012 (4) - 17.06.2024 03:14 [09:27:05]1206 (1) - 0 [09:27:05]OFD Sender: Remove packet 22347 [09:27:05]ProducePacketName [09:27:05]name=ofd_packets/00022347 [09:27:05]NVStorageDeleteData [09:27:06]Write to MH i2c: 01 00 00 65 3B A0 [09:27:06]Write i2c OK [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: 01 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: 01 07 00 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: 01 07 00 65 3B 00 00 00 00 00 71 0C 24 [09:27:06]RasterBufferAndPrint [09:27:06]line [09:27:06]line [09:27:06]line [09:27:06]line [09:27:06]line [09:27:06]written 0, free lines is 3194 [09:27:06]MH_Cut [09:27:06]Write to MH i2c: D1 01 00 6C 3B 01 79 [09:27:06]Write i2c OK [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: D1 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: D1 01 00 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: D1 01 00 6C 3B 00 78 [09:27:06]Write to MH i2c: 01 00 00 6D 3B A8 [09:27:06]Write i2c OK [09:27:06]MH_I2C_Read... [09:27:06]OFD Sender: No OFD packet to send [09:27:06]*** Cut start [09:27:06]*** Partial cut [09:27:06]*** CUTSNS_PIN = 1 [09:27:06]*** CUTSNS_PIN = 0 [09:27:07]*** Brake cut motor [09:27:07]Read from MH i2c: 01 [09:27:07]MH_I2C_Read... [09:27:07]*** Stop cut motor [09:27:07]*** Cut end [09:27:07]Read from MH i2c: 01 07 00 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: 01 07 00 6D 3B 00 00 00 00 00 FF 0F BD [09:27:07]process_action close_receipt done [09:27:07]requested_data is exist [09:27:07]produce_requested_data [09:27:07]requested_item fm.sn is exist - process it [09:27:07]wFMCommunicate request_size=4 [09:27:07]MH_SAM_APDU [09:27:07]CAPDU: 80 11 00 00 [09:27:07]Write to MH i2c: E2 08 00 6E 3B 80 11 00 00 00 00 00 00 23 [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:07]Read from MH i2c: E2 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 17 00 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 17 00 6E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 75 [09:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [09:27:07]wFMCommunicate OK [09:27:07]requested_item fd.num is exist - process it [09:27:07]SAM_PROTO_GetFieldsCounters [09:27:07]wFMCommunicate request_size=4 [09:27:07]MH_SAM_APDU [09:27:07]CAPDU: 80 13 00 00 [09:27:07]Write to MH i2c: E2 08 00 6F 3B 80 13 00 00 00 00 00 00 26 [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:07]Read from MH i2c: E2 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 62 00 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 62 00 6F 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 4B 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [09:27:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 4B 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:07]wFMCommunicate OK [09:27:07]SAM_PROTO_GetFieldsCounters done [09:27:07]requested_item shift.num is exist - process it [09:27:07]requested_item shift.opened is exist - process it [09:27:07]req_shift_opened [09:27:07]FM_GetShiftState [09:27:07]SAM_PROTO_GetShiftState [09:27:07]wFMCommunicate request_size=4 [09:27:07]MH_SAM_APDU [09:27:07]CAPDU: 80 13 01 00 [09:27:07]Write to MH i2c: E2 08 00 70 3B 80 13 01 00 00 00 00 00 28 [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:07]Read from MH i2c: E2 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 0E 00 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 0E 00 70 3B 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 DA [09:27:07]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [09:27:07]wFMCommunicate OK [09:27:07]SAM_PROTO_GetShiftState done [09:27:07]FM_GetShiftState done [09:27:07]req_shift_opened done [09:27:07]requested_item shift.open_date is exist - process it [09:27:07]req_shift_open_date [09:27:07]req_shift_open_date done [09:27:07]produce_requested_data done [09:27:07]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22347,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [09:27:07]process_action_free close_receipt [09:27:07]json_value_free [09:27:07]json_value_free done [09:27:07]process_json_proto returns [09:27:07]Send response to host [09:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22347,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [09:27:07]free response buf [09:27:07]execute_script done [09:27:07]execute_script returns [09:27:07]free content buf [09:27:07]Sock 8.Close socket [09:27:07]Sock 8.Thread stoped [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:37:58]recv_with_timeout no data received [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:20]accept exits with 9 [10:09:20]New connection [10:09:20]New thread 3066838372 created [10:09:20]Thread 3066695012 joined [10:09:20]Waiting for new connection... [10:09:20] Sock 9.Parse request [10:09:20]Sock 9.Check first char [10:09:20]Sock 9.First char is OK [10:09:20]request: POST /json_proto HTTP/1.0 [10:09:20]Method: POST [10:09:20]URL: /json_proto [10:09:20]Method is POST - this is cgi request [10:09:20]url: /json_proto [10:09:20]query_string will be loaded in cgi processing [10:09:20]execute_cgi json_proto POST (null) [10:09:20]execute_cgi path=json_proto method=POST [10:09:20]POST find Content-Length [10:09:20]Host: 172.17.35.133:8080 [10:09:20]Content-Length: 644 [10:09:20]Content-Type: application/json [10:09:20] [10:09:20]POST finish read [10:09:20]Found Content-Length = 644 [10:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254558", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 2.000, "sum" : 1120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:20]execute_script... [10:09:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254558", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 2.000, "sum" : 1120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:20]POST & json_proto [10:09:20]process_json_proto [10:09:20]json parsed OK: [10:09:20]protocol is kg_v1.0 [10:09:20]action value=close_receipt [10:09:20]process_action close_receipt [10:09:20]cmd_close_receipt [10:09:20]MH_GetDate [10:09:20]Write to MH i2c: F0 00 00 71 3B 9B [10:09:20]Write i2c OK [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: F0 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: F0 09 00 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: F0 09 00 71 3B 00 5D 0B 70 66 8C 55 28 65 50 [10:09:20]GetLastDocTimeStamp 1718616436 [10:09:20]current date 1718618973 [10:09:20]FM_GetShiftState [10:09:20]SAM_PROTO_GetShiftState [10:09:20]wFMCommunicate request_size=4 [10:09:20]MH_SAM_APDU [10:09:20]CAPDU: 80 13 01 00 [10:09:20]Write to MH i2c: E2 08 00 72 3B 80 13 01 00 00 00 00 00 2A [10:09:20]Write i2c OK [10:09:20]MH_I2C_Read... [10:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:20]Read from MH i2c: E2 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: E2 0E 00 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: E2 0E 00 72 3B 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 DC [10:09:20]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [10:09:20]wFMCommunicate OK [10:09:20]SAM_PROTO_GetShiftState done [10:09:20]FM_GetShiftState done [10:09:20]opened in 1718583887 [10:09:20]opened+sec_in_day 1718670287 [10:09:20]quantity*price = 112000 [10:09:20]sum+1 = 112001 [10:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1120.00 НСП 1% : 9.91 НДС 12% : 118.94 Наличными: 1120.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 29 17.06.2024 10:09 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22348 ФПД: 30462671880027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T100933&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22348&fm=30462671880027&tin=02508201610067®Number=0000000000099755&sum=112000 0 [10:09:21]StoreToDocumentArchive [10:09:21]shift 328 fd 22348 [10:09:21]save to /storage/0328/doc_00022348 [10:09:21]save last doc name /storage/0328/doc_00022348 to /storage/kkm_last_doc_name [10:09:21]save OK [10:09:21]Clear old archive folders... [10:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:09:21]tlvbuf is B6D8C7F0 [10:09:21]SAM_PROTO_ClearQueue [10:09:21]wFMCommunicate request_size=4 [10:09:21]MH_SAM_APDU [10:09:21]CAPDU: 80 09 00 00 [10:09:21]Write to MH i2c: E2 08 00 7F 3B 80 09 00 00 00 00 00 00 2C [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:21]Read from MH i2c: E2 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: E2 03 00 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: E2 03 00 7F 3B 00 90 00 2E [10:09:21]RAPDU: 90 00 [10:09:21]wFMCommunicate OK [10:09:21]SAM_PROTO_ClearQueue done [10:09:21]KKMCreateOFDPacket [10:09:21]OFDProtocolAddRootSTLVToBuf [10:09:21]FM_MakeSignedData [10:09:21]FM_MakeSignedData [10:09:21]SAM_PROTO_SignData [10:09:21]wFMCommunicate request_size=4 [10:09:21]MH_SAM_APDU [10:09:21]CAPDU: 80 0D 01 02 [10:09:21]Write to MH i2c: E2 08 00 80 3B 80 0D 01 02 00 00 00 00 34 [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:21]Read from MH i2c: E2 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: E2 03 00 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: E2 03 00 80 3B 00 90 00 2F [10:09:21]RAPDU: 90 00 [10:09:21]wFMCommunicate OK [10:09:21]wFMCommunicate request_size=255 [10:09:21]MH_SAM_APDU [10:09:21]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 80 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 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 5D 0B 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 [10:09:21]Write to MH i2c: E2 02 01 81 3B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 80 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 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 5D 0B 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 00 00 7E [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:22]Read from MH i2c: E2 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 03 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 03 00 81 3B 00 90 00 30 [10:09:22]RAPDU: 90 00 [10:09:22]wFMCommunicate OK [10:09:22]wFMCommunicate request_size=41 [10:09:22]MH_SAM_APDU [10:09:22]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4C 57 00 00 35 04 06 00 1B B4 A4 BC 7F 5B [10:09:22]Write to MH i2c: E2 2C 00 82 3B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4C 57 00 00 35 04 06 00 1B B4 A4 BC 7F 5B 00 00 B1 [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:22]Read from MH i2c: E2 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 03 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 03 00 82 3B 00 90 00 31 [10:09:22]RAPDU: 90 00 [10:09:22]wFMCommunicate OK [10:09:22]wFMCommunicate request_size=4 [10:09:22]MH_SAM_APDU [10:09:22]CAPDU: 80 0D 03 02 [10:09:22]Write to MH i2c: E2 08 00 83 3B 80 0D 03 02 00 00 00 00 39 [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:22]Read from MH i2c: E2 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 0B 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 0B 00 83 3B 00 FB 16 AC 9C 28 32 79 FB 90 00 61 [10:09:22]RAPDU: FB 16 AC 9C 28 32 79 FB 90 00 [10:09:22]wFMCommunicate OK [10:09:22]SAM_PROTO_SignData done [10:09:22]FM_MakeSignedData done [10:09:22]CreateOFDProtocolMessage [10:09:22]wFMCommunicate request_size=4 [10:09:22]MH_SAM_APDU [10:09:22]CAPDU: 80 11 00 00 [10:09:22]Write to MH i2c: E2 08 00 84 3B 80 11 00 00 00 00 00 00 39 [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:22]Read from MH i2c: E2 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 17 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 17 00 84 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 8B [10:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:09:22]wFMCommunicate OK [10:09:22]CreateOFDProtocolMessage done [10:09:22]OFDSenderStorePacket 22348 [10:09:22]StoreOFDPacket docnum=22348 [10:09:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 2E 01 00 00 5C 05 26 01 18 E3 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 80 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 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 5D 0B 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4C 57 00 00 35 04 06 00 1B B4 A4 BC 7F 5B FB 16 AC 9C 28 32 79 FB [10:09:22]CheckFolder [10:09:22]dirname=/storage/ofd_packets [10:09:22]CheckFolder done [10:09:22]ProducePacketName [10:09:22]name=ofd_packets/00022348 [10:09:22]NVStorageSaveData ofd_packets/00022348 [10:09:22]File name is /storage/ofd_packets/00022348 [10:09:22]Write 332 bytes [10:09:22]NVStorageSaveData done [10:09:22]OFDSenderStorePacket done [10:09:22]KKMCreateOFDPacket done [10:09:22]NVStorageSaveData kkm_last_timestamp [10:09:22]File name is /storage/kkm_last_timestamp [10:09:22]Write 4 bytes [10:09:22]NVStorageSaveData done [10:09:22]ExternCall_PrintAddStr [10:09:22]wPrintStart [10:09:22]Write to MH i2c: 01 00 00 85 3B C0 [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: 01 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: 01 07 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: 01 07 00 85 3B 00 00 00 00 00 FF 0F D5 [10:09:22]RasterBufferAndPrint [10:09:22]line Счет N : (3)254558 [10:09:22]line ИНН: 02508201610067 [10:09:22]line Контрольно-Кассовый Чек [10:09:22]line ПРОДАЖА [10:09:22]line Товар: 4700003150936 [10:09:22]line Новая Водка Organic 40% 0,48л [10:09:22]line 2.000 * 560.00 [10:09:22]line = 1120.00 [10:09:22]line НДС 12% НСП 1% [10:09:22]line > о реализуемом товаре [10:09:22]line ИТОГО: 1120.00 [10:09:22]line НСП 1% : 9.91 [10:09:22]line НДС 12% : 118.94 [10:09:22]line Наличными: 1120.00 [10:09:22]line Безнал.: 0.00 [10:09:22]line Место: АЗС № 76 "Партнер Нефть" [10:09:22]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [10:09:22]line СНО: Общий режим [10:09:22]line Чек 29 17.06.2024 10:09 [10:09:22]line Смена: 328 ФФД: 1.0 [10:09:22]line ЗНМ: 0300000200 [10:09:22]line РНМ: 0000000000099755 [10:09:22]line Версия ККМ: 001 [10:09:22]line ФМ: 0000000000965344 [10:09:22]line ФД: 22348 [10:09:22]line ФПД: 30462671880027 [10:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T100933&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22348&fm=30462671880027&tin=02508201610067®Number=0000000000099755&sum=112000 [10:09:22]line 0 [10:09:22]written 0, free lines is 4095 [10:09:22]OFD Sender: Processing packet 22348 [packets to send 5, broken 4] [10:09:22]ProducePacketName [10:09:22]name=ofd_packets/00022348 [10:09:22]OFD Sender: To server: pG, [10:09:22]CommunicateWithHost lk.salyk.kg:30040 [10:09:22]ConnectInit lk.salyk.kg [10:09:22]Connected sock=10 [10:09:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 2E 01 00 00 5C 05 26 01 18 E3 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 80 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DF 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 2E 00 00 00 00 07 04 06 00 80 B5 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 5D 0B 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4C 57 00 00 35 04 06 00 1B B4 A4 BC 7F 5B FB 16 AC 9C 28 32 79 FB [10:09:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 2E 78 47 00 D8 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4C 57 00 00 F4 03 04 00 15 B4 6F 66 B6 04 01 00 00 32 78 E3 7C 28 D1 4E AE [10:09:22]CommunicateWithHost err = 0 [10:09:22]CheckOFDResponse [10:09:22]1017 (14) - 77093643461234 [10:09:22]1041 (16) - 0000000000965344 [10:09:22]1040 (4) - 22348 [10:09:22]1012 (4) - 17.06.2024 03:57 [10:09:22]1206 (1) - 0 [10:09:22]OFD Sender: Remove packet 22348 [10:09:22]ProducePacketName [10:09:22]name=ofd_packets/00022348 [10:09:22]NVStorageDeleteData [10:09:22]Write to MH i2c: 01 00 00 AE 3B E9 [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: 01 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: 01 07 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: 01 07 00 AE 3B 00 00 00 00 00 23 0D 20 [10:09:22]RasterBufferAndPrint [10:09:22]line [10:09:22]line [10:09:22]line [10:09:22]line [10:09:22]line [10:09:22]written 0, free lines is 3370 [10:09:22]MH_Cut [10:09:22]Write to MH i2c: D1 01 00 B5 3B 01 C2 [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: D1 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: D1 01 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: D1 01 00 B5 3B 00 C1 [10:09:22]Write to MH i2c: 01 00 00 B6 3B F1 [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:23]OFD Sender: No OFD packet to send [10:09:23]*** Cut start [10:09:23]*** Partial cut [10:09:23]*** CUTSNS_PIN = 1 [10:09:23]*** CUTSNS_PIN = 0 [10:09:23]*** Brake cut motor [10:09:24]Read from MH i2c: 01 [10:09:24]MH_I2C_Read... [10:09:24]*** Stop cut motor [10:09:24]*** Cut end [10:09:24]Read from MH i2c: 01 07 00 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: 01 07 00 B6 3B 00 00 00 00 00 FF 0F 06 [10:09:24]process_action close_receipt done [10:09:24]requested_data is exist [10:09:24]produce_requested_data [10:09:24]requested_item fm.sn is exist - process it [10:09:24]wFMCommunicate request_size=4 [10:09:24]MH_SAM_APDU [10:09:24]CAPDU: 80 11 00 00 [10:09:24]Write to MH i2c: E2 08 00 B7 3B 80 11 00 00 00 00 00 00 6C [10:09:24]Write i2c OK [10:09:24]MH_I2C_Read... [10:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:24]Read from MH i2c: E2 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: E2 17 00 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: E2 17 00 B7 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 BE [10:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:09:24]wFMCommunicate OK [10:09:24]requested_item fd.num is exist - process it [10:09:24]SAM_PROTO_GetFieldsCounters [10:09:24]wFMCommunicate request_size=4 [10:09:24]MH_SAM_APDU [10:09:24]CAPDU: 80 13 00 00 [10:09:24]Write to MH i2c: E2 08 00 B8 3B 80 13 00 00 00 00 00 00 6F [10:09:24]Write i2c OK [10:09:24]MH_I2C_Read... [10:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:24]Read from MH i2c: E2 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: E2 62 00 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: E2 62 00 B8 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 4C 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [10:09:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 4C 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:24]wFMCommunicate OK [10:09:24]SAM_PROTO_GetFieldsCounters done [10:09:24]requested_item shift.num is exist - process it [10:09:24]requested_item shift.opened is exist - process it [10:09:24]req_shift_opened [10:09:24]FM_GetShiftState [10:09:24]SAM_PROTO_GetShiftState [10:09:24]wFMCommunicate request_size=4 [10:09:24]MH_SAM_APDU [10:09:24]CAPDU: 80 13 01 00 [10:09:24]Write to MH i2c: E2 08 00 B9 3B 80 13 01 00 00 00 00 00 71 [10:09:24]Write i2c OK [10:09:24]MH_I2C_Read... [10:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:24]Read from MH i2c: E2 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: E2 0E 00 [10:09:24]MH_I2C_Read... [10:09:24]Read from MH i2c: E2 0E 00 B9 3B 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 23 [10:09:24]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [10:09:24]wFMCommunicate OK [10:09:24]SAM_PROTO_GetShiftState done [10:09:24]FM_GetShiftState done [10:09:24]req_shift_opened done [10:09:24]requested_item shift.open_date is exist - process it [10:09:24]req_shift_open_date [10:09:24]req_shift_open_date done [10:09:24]produce_requested_data done [10:09:24]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22348,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [10:09:24]process_action_free close_receipt [10:09:24]json_value_free [10:09:24]json_value_free done [10:09:24]process_json_proto returns [10:09:24]Send response to host [10:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22348,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [10:09:24]free response buf [10:09:24]execute_script done [10:09:24]execute_script returns [10:09:24]free content buf [10:09:24]Sock 9.Close socket [10:09:24]Sock 9.Thread stoped [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:12]accept exits with 8 [10:36:12]New connection [10:36:12]New thread 3066695012 created [10:36:12]Thread 3066838372 joined [10:36:12]Waiting for new connection... [10:36:12] Sock 8.Parse request [10:36:12]Sock 8.Check first char [10:36:12]Sock 8.First char is OK [10:36:12]request: POST /json_proto HTTP/1.0 [10:36:12]Method: POST [10:36:12]URL: /json_proto [10:36:12]Method is POST - this is cgi request [10:36:12]url: /json_proto [10:36:12]query_string will be loaded in cgi processing [10:36:12]execute_cgi json_proto POST (null) [10:36:12]execute_cgi path=json_proto method=POST [10:36:12]POST find Content-Length [10:36:12]Host: 172.17.35.133:8080 [10:36:12]Content-Length: 1172 [10:36:12]Content-Type: application/json [10:36:12] [10:36:12]POST finish read [10:36:12]Found Content-Length = 1172 [10:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254559", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:12]execute_script... [10:36: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 : (3)254559", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:12]POST & json_proto [10:36:12]process_json_proto [10:36:12]json parsed OK: [10:36:12]protocol is kg_v1.0 [10:36:12]action value=close_receipt [10:36:12]process_action close_receipt [10:36:12]cmd_close_receipt [10:36:12]MH_GetDate [10:36:12]Write to MH i2c: F0 00 00 BA 3B E4 [10:36:12]Write i2c OK [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: F0 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: F0 09 00 [10:36:12]MH_I2C_Read... [10:36:12]Read from MH i2c: F0 09 00 BA 3B 00 AA 11 70 66 8C 55 28 65 EC [10:36:12]GetLastDocTimeStamp 1718618973 [10:36:12]current date 1718620586 [10:36:12]FM_GetShiftState [10:36:12]SAM_PROTO_GetShiftState [10:36:12]wFMCommunicate request_size=4 [10:36:12]MH_SAM_APDU [10:36:12]CAPDU: 80 13 01 00 [10:36:12]Write to MH i2c: E2 08 00 BB 3B 80 13 01 00 00 00 00 00 73 [10:36:12]Write i2c OK [10:36:12]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 0E 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 0E 00 BB 3B 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 25 [10:36:13]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [10:36:13]wFMCommunicate OK [10:36:13]SAM_PROTO_GetShiftState done [10:36:13]FM_GetShiftState done [10:36:13]opened in 1718583887 [10:36:13]opened+sec_in_day 1718670287 [10:36:13]quantity*price = 11300 [10:36:13]sum+1 = 11301 [10:36:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481989 Напиток энерг Nitro киви-мангостин 0,45 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 208.00 НСП 1% : 1.84 НДС 12% : 22.09 Наличными: 0.00 Безнал.: 208.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 30 17.06.2024 10:36 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965344 ФД: 22349 ФПД: 182385238636131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T103626&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22349&fm=182385238636131&tin=02508201610067®Number=0000000000099755&sum=20800 0 [10:36:14]StoreToDocumentArchive [10:36:14]shift 328 fd 22349 [10:36:14]save to /storage/0328/doc_00022349 [10:36:14]save last doc name /storage/0328/doc_00022349 to /storage/kkm_last_doc_name [10:36:14]save OK [10:36:14]Clear old archive folders... [10:36:14]ProcessDocumentItem done err = 0, tmpTLVsize=415 [10:36:14]tlvbuf is 00260D90 [10:36:14]SAM_PROTO_ClearQueue [10:36:14]wFMCommunicate request_size=4 [10:36:14]MH_SAM_APDU [10:36:14]CAPDU: 80 09 00 00 [10:36:14]Write to MH i2c: E2 08 00 C8 3B 80 09 00 00 00 00 00 00 75 [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:14]Read from MH i2c: E2 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 03 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 03 00 C8 3B 00 90 00 77 [10:36:14]RAPDU: 90 00 [10:36:14]wFMCommunicate OK [10:36:14]SAM_PROTO_ClearQueue done [10:36:14]KKMCreateOFDPacket [10:36:14]OFDProtocolAddRootSTLVToBuf [10:36:14]FM_MakeSignedData [10:36:14]FM_MakeSignedData [10:36:14]SAM_PROTO_SignData [10:36:14]wFMCommunicate request_size=4 [10:36:14]MH_SAM_APDU [10:36:14]CAPDU: 80 0D 01 02 [10:36:14]Write to MH i2c: E2 08 00 C9 3B 80 0D 01 02 00 00 00 00 7D [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:14]Read from MH i2c: E2 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 03 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 03 00 C9 3B 00 90 00 78 [10:36:14]RAPDU: 90 00 [10:36:14]wFMCommunicate OK [10:36:14]wFMCommunicate request_size=255 [10:36:14]MH_SAM_APDU [10:36:14]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [10:36:14]Write to MH i2c: E2 02 01 CA 3B 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 FF [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:14]Read from MH i2c: E2 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 03 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 03 00 CA 3B 00 90 00 79 [10:36:14]RAPDU: 90 00 [10:36:14]wFMCommunicate OK [10:36:14]wFMCommunicate request_size=174 [10:36:14]MH_SAM_APDU [10:36:14]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AA 11 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4D 57 00 00 35 04 06 00 A5 E0 DF 5C 76 63 [10:36:14]Write to MH i2c: E2 B1 00 CB 3B 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AA 11 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4D 57 00 00 35 04 06 00 A5 E0 DF 5C 76 63 00 00 DB [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]OFD Sender: No OFD packet to send [10:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:14]Read from MH i2c: E2 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 03 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 03 00 CB 3B 00 90 00 7A [10:36:14]RAPDU: 90 00 [10:36:14]wFMCommunicate OK [10:36:14]wFMCommunicate request_size=4 [10:36:14]MH_SAM_APDU [10:36:14]CAPDU: 80 0D 03 02 [10:36:14]Write to MH i2c: E2 08 00 CC 3B 80 0D 03 02 00 00 00 00 82 [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:14]Read from MH i2c: E2 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 0B 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 0B 00 CC 3B 00 E5 11 D0 73 3F 9B C3 86 90 00 DF [10:36:14]RAPDU: E5 11 D0 73 3F 9B C3 86 90 00 [10:36:14]wFMCommunicate OK [10:36:14]SAM_PROTO_SignData done [10:36:14]FM_MakeSignedData done [10:36:14]CreateOFDProtocolMessage [10:36:14]wFMCommunicate request_size=4 [10:36:14]MH_SAM_APDU [10:36:14]CAPDU: 80 11 00 00 [10:36:14]Write to MH i2c: E2 08 00 CD 3B 80 11 00 00 00 00 00 00 82 [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:14]Read from MH i2c: E2 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 17 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: E2 17 00 CD 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 D4 [10:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:36:14]wFMCommunicate OK [10:36:14]CreateOFDProtocolMessage done [10:36:14]OFDSenderStorePacket 22349 [10:36:14]StoreOFDPacket docnum=22349 [10:36:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 B3 01 00 00 DF E2 AB 01 87 52 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AA 11 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4D 57 00 00 35 04 06 00 A5 E0 DF 5C 76 63 E5 11 D0 73 3F 9B C3 86 [10:36:15]CheckFolder [10:36:15]dirname=/storage/ofd_packets [10:36:15]CheckFolder done [10:36:15]ProducePacketName [10:36:15]name=ofd_packets/00022349 [10:36:15]NVStorageSaveData ofd_packets/00022349 [10:36:15]File name is /storage/ofd_packets/00022349 [10:36:15]Write 465 bytes [10:36:15]NVStorageSaveData done [10:36:15]OFDSenderStorePacket done [10:36:15]KKMCreateOFDPacket done [10:36:15]NVStorageSaveData kkm_last_timestamp [10:36:15]File name is /storage/kkm_last_timestamp [10:36:15]Write 4 bytes [10:36:15]NVStorageSaveData done [10:36:15]ExternCall_PrintAddStr [10:36:15]wPrintStart [10:36:15]Write to MH i2c: 01 00 00 CE 3B 09 [10:36:15]Write i2c OK [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: 01 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: 01 07 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: 01 07 00 CE 3B 00 00 00 00 00 FF 0F 1E [10:36:15]RasterBufferAndPrint [10:36:15]line Счет N : (3)254559 [10:36:15]line ИНН: 02508201610067 [10:36:15]line Контрольно-Кассовый Чек [10:36:15]line ПРОДАЖА [10:36:15]line Товар: 5449000054227 [10:36:15]line Напиток Кока-Кола 1л [10:36:15]line 1.000 * 113.00 [10:36:15]line = 113.00 [10:36:15]line НДС 12% НСП 1% [10:36:15]line > о реализуемом товаре [10:36:15]line Товар: 4700000481989 [10:36:15]line Напиток энерг Nitro киви-мангостин 0,45 [10:36:15]line 1.000 * 95.00 [10:36:15]line = 95.00 [10:36:15]line НДС 12% НСП 1% [10:36:15]line > о реализуемом товаре [10:36:15]line ИТОГО: 208.00 [10:36:15]line НСП 1% : 1.84 [10:36:15]line НДС 12% : 22.09 [10:36:15]line Наличными: 0.00 [10:36:15]line Безнал.: 208.00 [10:36:15]line Место: АЗС № 76 "Партнер Нефть" [10:36:15]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [10:36:15]line СНО: Общий режим [10:36:15]line Чек 30 17.06.2024 10:36 [10:36:15]line Смена: 328 ФФД: 1.0 [10:36:15]line ЗНМ: 0300000200 [10:36:15]line РНМ: 0000000000099755 [10:36:15]line Версия ККМ: 001 [10:36:15]line Платежная система: Бакай Банк [10:36:15]line ФМ: 0000000000965344 [10:36:15]line ФД: 22349 [10:36:15]line ФПД: 182385238636131 [10:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T103626&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22349&fm=182385238636131&tin=02508201610067®Number=0000000000099755&sum=20800 [10:36:15]line 0 [10:36:15]OFD Sender: Processing packet 22349 [packets to send 5, broken 4] [10:36:15]ProducePacketName [10:36:15]name=ofd_packets/00022349 [10:36:15]OFD Sender: To server: pG, [10:36:15]CommunicateWithHost lk.salyk.kg:30040 [10:36:15]ConnectInit lk.salyk.kg [10:36:15]written 0, free lines is 4095 [10:36:15]Connected sock=9 [10:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 B3 01 00 00 DF E2 AB 01 87 52 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 51 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AA 11 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4D 57 00 00 35 04 06 00 A5 E0 DF 5C 76 63 E5 11 D0 73 3F 9B C3 86 [10:36:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 F7 6D 47 00 11 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 39 36 35 33 34 34 10 04 04 00 4D 57 00 00 F4 03 04 00 61 BA 6F 66 B6 04 01 00 00 3B B2 93 68 18 2B E4 14 [10:36:15]CommunicateWithHost err = 0 [10:36:15]CheckOFDResponse [10:36:15]1017 (14) - 77093643461234 [10:36:15]1041 (16) - 0000000000965344 [10:36:15]1040 (4) - 22349 [10:36:15]1012 (4) - 17.06.2024 04:24 [10:36:15]1206 (1) - 0 [10:36:15]OFD Sender: Remove packet 22349 [10:36:15]ProducePacketName [10:36:15]name=ofd_packets/00022349 [10:36:15]NVStorageDeleteData [10:36:15]Write to MH i2c: 01 00 00 FF 3B 3A [10:36:15]Write i2c OK [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: 01 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: 01 07 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: 01 07 00 FF 3B 00 00 00 00 00 AA 0C F7 [10:36:15]RasterBufferAndPrint [10:36:15]line [10:36:15]line [10:36:15]line [10:36:15]line [10:36:15]line [10:36:15]written 0, free lines is 3251 [10:36:15]MH_Cut [10:36:15]Write to MH i2c: D1 01 00 06 3C 01 14 [10:36:15]Write i2c OK [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: D1 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: D1 01 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: D1 01 00 06 3C 00 13 [10:36:15]Write to MH i2c: 01 00 00 07 3C 43 [10:36:15]Write i2c OK [10:36:15]MH_I2C_Read... [10:36:15]OFD Sender: No OFD packet to send [10:36:16]*** Cut start [10:36:16]*** Partial cut [10:36:16]*** CUTSNS_PIN = 1 [10:36:16]*** CUTSNS_PIN = 0 [10:36:16]*** Brake cut motor [10:36:17]Read from MH i2c: 01 [10:36:17]MH_I2C_Read... [10:36:17]*** Stop cut motor [10:36:17]*** Cut end [10:36:17]Read from MH i2c: 01 07 00 [10:36:17]MH_I2C_Read... [10:36:17]Read from MH i2c: 01 07 00 07 3C 00 00 00 00 00 FF 0F 58 [10:36:17]process_action close_receipt done [10:36:17]requested_data is exist [10:36:17]produce_requested_data [10:36:17]requested_item fm.sn is exist - process it [10:36:17]wFMCommunicate request_size=4 [10:36:17]MH_SAM_APDU [10:36:17]CAPDU: 80 11 00 00 [10:36:17]Write to MH i2c: E2 08 00 08 3C 80 11 00 00 00 00 00 00 BE [10:36:17]Write i2c OK [10:36:17]MH_I2C_Read... [10:36:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:17]Read from MH i2c: E2 [10:36:17]MH_I2C_Read... [10:36:17]Read from MH i2c: E2 17 00 [10:36:17]MH_I2C_Read... [10:36:17]Read from MH i2c: E2 17 00 08 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 10 [10:36:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:36:17]wFMCommunicate OK [10:36:17]requested_item fd.num is exist - process it [10:36:17]SAM_PROTO_GetFieldsCounters [10:36:17]wFMCommunicate request_size=4 [10:36:17]MH_SAM_APDU [10:36:17]CAPDU: 80 13 00 00 [10:36:17]Write to MH i2c: E2 08 00 09 3C 80 13 00 00 00 00 00 00 C1 [10:36:17]Write i2c OK [10:36:17]MH_I2C_Read... [10:36:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:17]Read from MH i2c: E2 [10:36:17]MH_I2C_Read... [10:36:17]Read from MH i2c: E2 62 00 [10:36:17]MH_I2C_Read... [10:36:17]Read from MH i2c: E2 62 00 09 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 4D 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [10:36:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 4D 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:17]wFMCommunicate OK [10:36:17]SAM_PROTO_GetFieldsCounters done [10:36:17]requested_item shift.num is exist - process it [10:36:17]requested_item shift.opened is exist - process it [10:36:17]req_shift_opened [10:36:17]FM_GetShiftState [10:36:17]SAM_PROTO_GetShiftState [10:36:17]wFMCommunicate request_size=4 [10:36:17]MH_SAM_APDU [10:36:17]CAPDU: 80 13 01 00 [10:36:17]Write to MH i2c: E2 08 00 0A 3C 80 13 01 00 00 00 00 00 C3 [10:36:17]Write i2c OK [10:36:17]MH_I2C_Read... [10:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:17]Read from MH i2c: E2 [10:36:17]MH_I2C_Read... [10:36:17]Read from MH i2c: E2 0E 00 [10:36:17]MH_I2C_Read... [10:36:17]Read from MH i2c: E2 0E 00 0A 3C 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 75 [10:36:17]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [10:36:17]wFMCommunicate OK [10:36:17]SAM_PROTO_GetShiftState done [10:36:17]FM_GetShiftState done [10:36:17]req_shift_opened done [10:36:17]requested_item shift.open_date is exist - process it [10:36:17]req_shift_open_date [10:36:17]req_shift_open_date done [10:36:17]produce_requested_data done [10:36:17]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22349,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [10:36:17]process_action_free close_receipt [10:36:17]json_value_free [10:36:17]json_value_free done [10:36:17]process_json_proto returns [10:36:17]Send response to host [10:36:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22349,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [10:36:17]free response buf [10:36:17]execute_script done [10:36:17]execute_script returns [10:36:17]free content buf [10:36:17]Sock 8.Close socket [10:36:17]Sock 8.Thread stoped [10:36:20]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:19]accept exits with 10 [10:37:19]New connection [10:37:19]New thread 3066838372 created [10:37:19]Thread 3066695012 joined [10:37:19]Waiting for new connection... [10:37:19] Sock 10.Parse request [10:37:19]Sock 10.Check first char [10:37:19]Sock 10.First char is OK [10:37:19]request: POST /json_proto HTTP/1.0 [10:37:19]Method: POST [10:37:19]URL: /json_proto [10:37:19]Method is POST - this is cgi request [10:37:19]url: /json_proto [10:37:19]query_string will be loaded in cgi processing [10:37:19]execute_cgi json_proto POST (null) [10:37:19]execute_cgi path=json_proto method=POST [10:37:19]POST find Content-Length [10:37:19]Host: 172.17.35.133:8080 [10:37:19]Content-Length: 678 [10:37:19]Content-Type: application/json [10:37:19] [10:37:19]POST finish read [10:37:19]Found Content-Length = 678 [10:37:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1610832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [10:37:19]execute_script... [10:37: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)1610832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "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" ] } } [10:37:19]POST & json_proto [10:37:19]process_json_proto [10:37:19]json parsed OK: [10:37:19]protocol is kg_v1.0 [10:37:19]action value=close_receipt [10:37:19]process_action close_receipt [10:37:19]cmd_close_receipt [10:37:19]MH_GetDate [10:37:19]Write to MH i2c: F0 00 00 0B 3C 36 [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: F0 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: F0 09 00 [10:37:19]MH_I2C_Read... [10:37:19]Read from MH i2c: F0 09 00 0B 3C 00 ED 11 70 66 8C 55 28 65 81 [10:37:19]GetLastDocTimeStamp 1718620586 [10:37:19]current date 1718620653 [10:37:19]FM_GetShiftState [10:37:19]SAM_PROTO_GetShiftState [10:37:19]wFMCommunicate request_size=4 [10:37:19]MH_SAM_APDU [10:37:19]CAPDU: 80 13 01 00 [10:37:19]Write to MH i2c: E2 08 00 0C 3C 80 13 01 00 00 00 00 00 C5 [10:37:19]Write i2c OK [10:37:19]MH_I2C_Read... [10:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:20]Read from MH i2c: E2 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: E2 0E 00 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: E2 0E 00 0C 3C 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 77 [10:37:20]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [10:37:20]wFMCommunicate OK [10:37:20]SAM_PROTO_GetShiftState done [10:37:20]FM_GetShiftState done [10:37:20]opened in 1718583887 [10:37:20]opened+sec_in_day 1718670287 [10:37:20]quantity*price = 30004 [10:37:20]sum+1 = 30006 [10:37:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 31 17.06.2024 10:37 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22350 ФПД: 217710641129566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T103733&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22350&fm=217710641129566&tin=02508201610067®Number=0000000000099755&sum=30000 [10:37:21]StoreToDocumentArchive [10:37:21]shift 328 fd 22350 [10:37:21]save to /storage/0328/doc_00022350 [10:37:21]save last doc name /storage/0328/doc_00022350 to /storage/kkm_last_doc_name [10:37:21]save OK [10:37:21]Clear old archive folders... [10:37:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:21]tlvbuf is 002454B0 [10:37:21]SAM_PROTO_ClearQueue [10:37:21]wFMCommunicate request_size=4 [10:37:21]MH_SAM_APDU [10:37:21]CAPDU: 80 09 00 00 [10:37:21]Write to MH i2c: E2 08 00 19 3C 80 09 00 00 00 00 00 00 C7 [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:21]Read from MH i2c: E2 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 03 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 03 00 19 3C 00 90 00 C9 [10:37:21]RAPDU: 90 00 [10:37:21]wFMCommunicate OK [10:37:21]SAM_PROTO_ClearQueue done [10:37:21]KKMCreateOFDPacket [10:37:21]OFDProtocolAddRootSTLVToBuf [10:37:21]FM_MakeSignedData [10:37:21]FM_MakeSignedData [10:37:21]SAM_PROTO_SignData [10:37:21]wFMCommunicate request_size=4 [10:37:21]MH_SAM_APDU [10:37:21]CAPDU: 80 0D 01 02 [10:37:21]Write to MH i2c: E2 08 00 1A 3C 80 0D 01 02 00 00 00 00 CF [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:21]Read from MH i2c: E2 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 03 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 03 00 1A 3C 00 90 00 CA [10:37:21]RAPDU: 90 00 [10:37:21]wFMCommunicate OK [10:37:21]wFMCommunicate request_size=255 [10:37:21]MH_SAM_APDU [10:37: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 1F 00 00 00 F4 03 04 00 ED 11 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4E 57 00 00 35 04 06 00 C6 [10:37:21]Write to MH i2c: E2 02 01 1B 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 1F 00 00 00 F4 03 04 00 ED 11 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4E 57 00 00 35 04 06 00 C6 00 00 B3 [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:21]Read from MH i2c: E2 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 03 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 03 00 1B 3C 00 90 00 CB [10:37:21]RAPDU: 90 00 [10:37:21]wFMCommunicate OK [10:37:21]wFMCommunicate request_size=10 [10:37:21]MH_SAM_APDU [10:37:21]CAPDU: 80 0D 02 02 05 01 B5 6D A8 5E [10:37:21]Write to MH i2c: E2 0D 00 1C 3C 80 0D 02 02 05 00 01 B5 6D A8 5E 00 00 05 [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:21]Read from MH i2c: E2 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 03 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 03 00 1C 3C 00 90 00 CC [10:37:21]RAPDU: 90 00 [10:37:21]wFMCommunicate OK [10:37:21]wFMCommunicate request_size=4 [10:37:21]MH_SAM_APDU [10:37:21]CAPDU: 80 0D 03 02 [10:37:21]Write to MH i2c: E2 08 00 1D 3C 80 0D 03 02 00 00 00 00 D4 [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:21]Read from MH i2c: E2 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 0B 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 0B 00 1D 3C 00 FA 17 6A BA 11 96 B3 AC 90 00 10 [10:37:21]RAPDU: FA 17 6A BA 11 96 B3 AC 90 00 [10:37:21]wFMCommunicate OK [10:37:21]SAM_PROTO_SignData done [10:37:21]FM_MakeSignedData done [10:37:21]CreateOFDProtocolMessage [10:37:21]wFMCommunicate request_size=4 [10:37:21]MH_SAM_APDU [10:37:21]CAPDU: 80 11 00 00 [10:37:21]Write to MH i2c: E2 08 00 1E 3C 80 11 00 00 00 00 00 00 D4 [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:21]Read from MH i2c: E2 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 17 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 17 00 1E 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 26 [10:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:37:21]wFMCommunicate OK [10:37:21]CreateOFDProtocolMessage done [10:37:21]OFDSenderStorePacket 22350 [10:37:21]StoreOFDPacket docnum=22350 [10:37:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0F 01 00 00 18 1E 07 01 99 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 1F 00 00 00 F4 03 04 00 ED 11 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4E 57 00 00 35 04 06 00 C6 01 B5 6D A8 5E FA 17 6A BA 11 96 B3 AC [10:37:21]CheckFolder [10:37:21]dirname=/storage/ofd_packets [10:37:21]CheckFolder done [10:37:21]ProducePacketName [10:37:21]name=ofd_packets/00022350 [10:37:21]NVStorageSaveData ofd_packets/00022350 [10:37:21]File name is /storage/ofd_packets/00022350 [10:37:21]Write 301 bytes [10:37:21]NVStorageSaveData done [10:37:21]OFDSenderStorePacket done [10:37:21]KKMCreateOFDPacket done [10:37:21]NVStorageSaveData kkm_last_timestamp [10:37:21]File name is /storage/kkm_last_timestamp [10:37:21]Write 4 bytes [10:37:21]NVStorageSaveData done [10:37:21]ExternCall_PrintAddStr [10:37:21]wPrintStart [10:37:21]Write to MH i2c: 01 00 00 1F 3C 5B [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: 01 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: 01 07 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: 01 07 00 1F 3C 00 00 00 00 00 FF 0F 70 [10:37:21]RasterBufferAndPrint [10:37:21]line Счет N : (1)1610832 [10:37:21]line ИНН: 02508201610067 [10:37:21]line Контрольно-Кассовый Чек [10:37:21]line ПРОДАЖА [10:37:21]line ТРК (МРК, ГНК) : 24 [10:37:21]line Товар: 2710124130 [10:37:21]line Аи-92-К-5 [10:37:21]line 4.560 * 65.80 [10:37:21]line = 300.05 [10:37:21]line НДС 12% НСП 1% [10:37:21]line > о реализуемом товаре [10:37:21]line ОКРУГЛЕНИЕ: -0.05 [10:37:21]line ИТОГО: 300.00 [10:37:21]line Внесено: 300.00 [10:37:21]line СДАЧА: 0.00 [10:37:21]line НСП 1% : 2.65 [10:37:21]line НДС 12% : 31.86 [10:37:21]line Наличными: 300.00 [10:37:21]line Безнал.: 0.00 [10:37:21]line Место: АЗС № 76 "Партнер Нефть" [10:37:21]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [10:37:21]line СНО: Общий режим [10:37:21]line Чек 31 17.06.2024 10:37 [10:37:21]line Смена: 328 ФФД: 1.0 [10:37:21]line ЗНМ: 0300000200 [10:37:21]line РНМ: 0000000000099755 [10:37:21]line Версия ККМ: 001 [10:37:21]line ФМ: 0000000000965344 [10:37:21]line ФД: 22350 [10:37:21]line ФПД: 217710641129566 [10:37:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T103733&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22350&fm=217710641129566&tin=02508201610067®Number=0000000000099755&sum=30000 [10:37:21]OFD Sender: Processing packet 22350 [packets to send 5, broken 4] [10:37:21]ProducePacketName [10:37:21]name=ofd_packets/00022350 [10:37:21]OFD Sender: To server: pG, [10:37:21]CommunicateWithHost lk.salyk.kg:30040 [10:37:21]ConnectInit lk.salyk.kg [10:37:21]written 0, free lines is 4095 [10:37:22]Connected sock=9 [10:37:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0F 01 00 00 18 1E 07 01 99 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 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 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 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 1F 00 00 00 F4 03 04 00 ED 11 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4E 57 00 00 35 04 06 00 C6 01 B5 6D A8 5E FA 17 6A BA 11 96 B3 AC [10:37:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 AC 18 47 00 A8 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4E 57 00 00 F4 03 04 00 A4 BA 6F 66 B6 04 01 00 00 0F 2E FB 9F 08 50 47 EB [10:37:22]CommunicateWithHost err = 0 [10:37:22]CheckOFDResponse [10:37:22]1017 (14) - 77093643461234 [10:37:22]1041 (16) - 0000000000965344 [10:37:22]1040 (4) - 22350 [10:37:22]1012 (4) - 17.06.2024 04:25 [10:37:22]1206 (1) - 0 [10:37:22]OFD Sender: Remove packet 22350 [10:37:22]ProducePacketName [10:37:22]name=ofd_packets/00022350 [10:37:22]NVStorageDeleteData [10:37:22]Write to MH i2c: 01 00 00 4A 3C 86 [10:37:22]Write i2c OK [10:37:22]MH_I2C_Read... [10:37:22]Read from MH i2c: 01 [10:37:22]MH_I2C_Read... [10:37:22]Read from MH i2c: 01 07 00 [10:37:22]MH_I2C_Read... [10:37:22]Read from MH i2c: 01 07 00 4A 3C 00 00 00 00 00 EC 0C 85 [10:37:22]RasterBufferAndPrint [10:37:22]line [10:37:22]line [10:37:22]line [10:37:22]line [10:37:22]line [10:37:22]written 0, free lines is 3314 [10:37:22]MH_Cut [10:37:22]Write to MH i2c: D1 01 00 51 3C 01 5F [10:37:22]Write i2c OK [10:37:22]MH_I2C_Read... [10:37:22]Read from MH i2c: D1 [10:37:22]MH_I2C_Read... [10:37:22]Read from MH i2c: D1 01 00 [10:37:22]MH_I2C_Read... [10:37:22]Read from MH i2c: D1 01 00 51 3C 00 5E [10:37:22]Write to MH i2c: 01 00 00 52 3C 8E [10:37:22]Write i2c OK [10:37:22]MH_I2C_Read... [10:37:22]OFD Sender: No OFD packet to send [10:37:23]*** Cut start [10:37:23]*** Partial cut [10:37:23]*** CUTSNS_PIN = 1 [10:37:23]*** CUTSNS_PIN = 0 [10:37:23]*** Brake cut motor [10:37:23]Read from MH i2c: 01 [10:37:23]MH_I2C_Read... [10:37:23]*** Stop cut motor [10:37:23]*** Cut end [10:37:23]Read from MH i2c: 01 07 00 [10:37:23]MH_I2C_Read... [10:37:23]Read from MH i2c: 01 07 00 52 3C 00 00 00 00 00 FF 0F A3 [10:37:23]process_action close_receipt done [10:37:23]requested_data is exist [10:37:23]produce_requested_data [10:37:23]requested_item fm.sn is exist - process it [10:37:23]wFMCommunicate request_size=4 [10:37:23]MH_SAM_APDU [10:37:23]CAPDU: 80 11 00 00 [10:37:23]Write to MH i2c: E2 08 00 53 3C 80 11 00 00 00 00 00 00 09 [10:37:23]Write i2c OK [10:37:23]MH_I2C_Read... [10:37:23]Read from MH i2c: E2 [10:37:23]MH_I2C_Read... [10:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:23]Read from MH i2c: E2 17 00 [10:37:23]MH_I2C_Read... [10:37:23]Read from MH i2c: E2 17 00 53 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 5B [10:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [10:37:23]wFMCommunicate OK [10:37:23]requested_item fd.num is exist - process it [10:37:23]SAM_PROTO_GetFieldsCounters [10:37:23]wFMCommunicate request_size=4 [10:37:23]MH_SAM_APDU [10:37:23]CAPDU: 80 13 00 00 [10:37:23]Write to MH i2c: E2 08 00 54 3C 80 13 00 00 00 00 00 00 0C [10:37:23]Write i2c OK [10:37:23]MH_I2C_Read... [10:37:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:23]Read from MH i2c: E2 [10:37:23]MH_I2C_Read... [10:37:23]Read from MH i2c: E2 62 00 [10:37:23]MH_I2C_Read... [10:37:23]Read from MH i2c: E2 62 00 54 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 4E 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [10:37:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 4E 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:23]wFMCommunicate OK [10:37:23]SAM_PROTO_GetFieldsCounters done [10:37:23]requested_item shift.num is exist - process it [10:37:23]requested_item shift.opened is exist - process it [10:37:23]req_shift_opened [10:37:23]FM_GetShiftState [10:37:23]SAM_PROTO_GetShiftState [10:37:23]wFMCommunicate request_size=4 [10:37:23]MH_SAM_APDU [10:37:23]CAPDU: 80 13 01 00 [10:37:23]Write to MH i2c: E2 08 00 55 3C 80 13 01 00 00 00 00 00 0E [10:37:23]Write i2c OK [10:37:23]MH_I2C_Read... [10:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:24]Read from MH i2c: E2 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 0E 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 0E 00 55 3C 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 C0 [10:37:24]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [10:37:24]wFMCommunicate OK [10:37:24]SAM_PROTO_GetShiftState done [10:37:24]FM_GetShiftState done [10:37:24]req_shift_opened done [10:37:24]requested_item shift.open_date is exist - process it [10:37:24]req_shift_open_date [10:37:24]req_shift_open_date done [10:37:24]produce_requested_data done [10:37:24]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22350,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [10:37:24]process_action_free close_receipt [10:37:24]json_value_free [10:37:24]json_value_free done [10:37:24]process_json_proto returns [10:37:24]Send response to host [10:37:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22350,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [10:37:24]free response buf [10:37:24]execute_script done [10:37:24]execute_script returns [10:37:24]free content buf [10:37:24]Sock 10.Close socket [10:37:24]Sock 10.Thread stoped [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:41]accept exits with 8 [11:13:41]New connection [11:13:41]New thread 3066695012 created [11:13:41]Thread 3066838372 joined [11:13:41]Waiting for new connection... [11:13:41] Sock 8.Parse request [11:13:41]Sock 8.Check first char [11:13:41]Sock 8.First char is OK [11:13:41]request: POST /json_proto HTTP/1.0 [11:13:41]Method: POST [11:13:41]URL: /json_proto [11:13:41]Method is POST - this is cgi request [11:13:41]url: /json_proto [11:13:41]query_string will be loaded in cgi processing [11:13:41]execute_cgi json_proto POST (null) [11:13:41]execute_cgi path=json_proto method=POST [11:13:41]POST find Content-Length [11:13:41]Host: 172.17.35.133:8080 [11:13:41]Content-Length: 654 [11:13:41]Content-Type: application/json [11:13:41] [11:13:41]POST finish read [11:13:41]Found Content-Length = 654 [11:13:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254560", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:41]execute_script... [11: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 : (3)254560", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:41]POST & json_proto [11:13:41]process_json_proto [11:13:41]json parsed OK: [11:13:41]protocol is kg_v1.0 [11:13:41]action value=close_receipt [11:13:41]process_action close_receipt [11:13:41]cmd_close_receipt [11:13:41]MH_GetDate [11:13:41]Write to MH i2c: F0 00 00 56 3C 81 [11:13:41]Write i2c OK [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: F0 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: F0 09 00 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: F0 09 00 56 3C 00 72 1A 70 66 8C 55 28 65 5A [11:13:41]GetLastDocTimeStamp 1718620653 [11:13:41]current date 1718622834 [11:13:41]FM_GetShiftState [11:13:41]SAM_PROTO_GetShiftState [11:13:41]wFMCommunicate request_size=4 [11:13:41]MH_SAM_APDU [11:13:41]CAPDU: 80 13 01 00 [11:13:41]Write to MH i2c: E2 08 00 57 3C 80 13 01 00 00 00 00 00 10 [11:13:41]Write i2c OK [11:13:41]MH_I2C_Read... [11:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:41]Read from MH i2c: E2 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 0E 00 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: E2 0E 00 57 3C 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 C2 [11:13:41]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [11:13:41]wFMCommunicate OK [11:13:41]SAM_PROTO_GetShiftState done [11:13:41]FM_GetShiftState done [11:13:41]opened in 1718583887 [11:13:41]opened+sec_in_day 1718670287 [11:13:41]quantity*price = 9500 [11:13:41]sum+1 = 9501 [11:13:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 32 17.06.2024 11:13 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22351 ФПД: 231761468904381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T111354&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22351&fm=231761468904381&tin=02508201610067®Number=0000000000099755&sum=9500 0 [11:13:42]StoreToDocumentArchive [11:13:42]shift 328 fd 22351 [11:13:42]save to /storage/0328/doc_00022351 [11:13:42]save last doc name /storage/0328/doc_00022351 to /storage/kkm_last_doc_name [11:13:42]save OK [11:13:42]Clear old archive folders... [11:13:42]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:13:42]tlvbuf is 001CCCA0 [11:13:42]SAM_PROTO_ClearQueue [11:13:42]wFMCommunicate request_size=4 [11:13:42]MH_SAM_APDU [11:13:42]CAPDU: 80 09 00 00 [11:13:42]Write to MH i2c: E2 08 00 64 3C 80 09 00 00 00 00 00 00 12 [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:42]Read from MH i2c: E2 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 03 00 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 03 00 64 3C 00 90 00 14 [11:13:42]RAPDU: 90 00 [11:13:42]wFMCommunicate OK [11:13:42]SAM_PROTO_ClearQueue done [11:13:42]KKMCreateOFDPacket [11:13:42]OFDProtocolAddRootSTLVToBuf [11:13:42]FM_MakeSignedData [11:13:42]FM_MakeSignedData [11:13:42]SAM_PROTO_SignData [11:13:42]wFMCommunicate request_size=4 [11:13:42]MH_SAM_APDU [11:13:42]CAPDU: 80 0D 01 02 [11:13:42]Write to MH i2c: E2 08 00 65 3C 80 0D 01 02 00 00 00 00 1A [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:42]Read from MH i2c: E2 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 03 00 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 03 00 65 3C 00 90 00 15 [11:13:42]RAPDU: 90 00 [11:13:42]wFMCommunicate OK [11:13:42]wFMCommunicate request_size=255 [11:13:42]MH_SAM_APDU [11:13:42]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 72 1A 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:13:42]Write to MH i2c: E2 02 01 66 3C 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 72 1A 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 85 [11:13:42]Write i2c OK [11:13:42]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 66 3C 00 90 00 16 [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]wFMCommunicate request_size=52 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4F 57 00 00 35 04 06 00 D2 C9 2C 06 D3 BD [11:13:43]Write to MH i2c: E2 37 00 67 3C 80 0D 02 02 2F 00 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4F 57 00 00 35 04 06 00 D2 C9 2C 06 D3 BD 00 00 EC [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 67 3C 00 90 00 17 [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 0D 03 02 [11:13:43]Write to MH i2c: E2 08 00 68 3C 80 0D 03 02 00 00 00 00 1F [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 0B 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 0B 00 68 3C 00 8F 8F B5 01 37 A5 51 79 90 00 9A [11:13:43]RAPDU: 8F 8F B5 01 37 A5 51 79 90 00 [11:13:43]wFMCommunicate OK [11:13:43]SAM_PROTO_SignData done [11:13:43]FM_MakeSignedData done [11:13:43]CreateOFDProtocolMessage [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 11 00 00 [11:13:43]Write to MH i2c: E2 08 00 69 3C 80 11 00 00 00 00 00 00 1F [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 17 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 17 00 69 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 71 [11:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [11:13:43]wFMCommunicate OK [11:13:43]CreateOFDProtocolMessage done [11:13:43]OFDSenderStorePacket 22351 [11:13:43]StoreOFDPacket docnum=22351 [11:13:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 39 01 00 00 89 10 31 01 FD 2B 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 72 1A 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4F 57 00 00 35 04 06 00 D2 C9 2C 06 D3 BD 8F 8F B5 01 37 A5 51 79 [11:13:43]CheckFolder [11:13:43]dirname=/storage/ofd_packets [11:13:43]CheckFolder done [11:13:43]ProducePacketName [11:13:43]name=ofd_packets/00022351 [11:13:43]NVStorageSaveData ofd_packets/00022351 [11:13:43]File name is /storage/ofd_packets/00022351 [11:13:43]Write 343 bytes [11:13:43]NVStorageSaveData done [11:13:43]OFDSenderStorePacket done [11:13:43]KKMCreateOFDPacket done [11:13:43]NVStorageSaveData kkm_last_timestamp [11:13:43]File name is /storage/kkm_last_timestamp [11:13:43]Write 4 bytes [11:13:43]NVStorageSaveData done [11:13:43]ExternCall_PrintAddStr [11:13:43]wPrintStart [11:13:43]Write to MH i2c: 01 00 00 6A 3C A6 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 07 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 07 00 6A 3C 00 00 00 00 00 FF 0F BB [11:13:43]RasterBufferAndPrint [11:13:43]line Счет N : (3)254560 [11:13:43]line ИНН: 02508201610067 [11:13:43]line Контрольно-Кассовый Чек [11:13:43]line ПРОДАЖА [11:13:43]line Товар: 4700000480050 [11:13:43]line Напиток Nitro Energy эн green ж/б 0,45л [11:13:43]line 1.000 * 95.00 [11:13:43]line = 95.00 [11:13:43]line НДС 12% НСП 1% [11:13:43]line > о реализуемом товаре [11:13:43]line ИТОГО: 95.00 [11:13:43]line НСП 1% : 0.84 [11:13:43]line НДС 12% : 10.09 [11:13:43]line Наличными: 95.00 [11:13:43]line Безнал.: 0.00 [11:13:43]line Место: АЗС № 76 "Партнер Нефть" [11:13:43]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [11:13:43]line СНО: Общий режим [11:13:43]line Чек 32 17.06.2024 11:13 [11:13:43]line Смена: 328 ФФД: 1.0 [11:13:43]line ЗНМ: 0300000200 [11:13:43]line РНМ: 0000000000099755 [11:13:43]line Версия ККМ: 001 [11:13:43]line ФМ: 0000000000965344 [11:13:43]line ФД: 22351 [11:13:43]line ФПД: 231761468904381 [11:13:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T111354&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22351&fm=231761468904381&tin=02508201610067®Number=0000000000099755&sum=9500 [11:13:43]line 0 [11:13:43]OFD Sender: Processing packet 22351 [packets to send 5, broken 4] [11:13:43]ProducePacketName [11:13:43]name=ofd_packets/00022351 [11:13:43]OFD Sender: To server: pG, [11:13:43]CommunicateWithHost lk.salyk.kg:30040 [11:13:43]ConnectInit lk.salyk.kg [11:13:43]written 0, free lines is 4095 [11:13:43]Connected sock=10 [11:13:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 39 01 00 00 89 10 31 01 FD 2B 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 72 1A 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 4F 57 00 00 35 04 06 00 D2 C9 2C 06 D3 BD 8F 8F B5 01 37 A5 51 79 [11:13:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 6F F9 47 00 B9 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 39 36 35 33 34 34 10 04 04 00 4F 57 00 00 F4 03 04 00 2A C3 6F 66 B6 04 01 00 00 3D 3D 9F A8 58 80 E0 C9 [11:13:44]CommunicateWithHost err = 0 [11:13:44]CheckOFDResponse [11:13:44]1017 (14) - 77093643461234 [11:13:44]1041 (16) - 0000000000965344 [11:13:44]1040 (4) - 22351 [11:13:44]1012 (4) - 17.06.2024 05:01 [11:13:44]1206 (1) - 0 [11:13:44]OFD Sender: Remove packet 22351 [11:13:44]ProducePacketName [11:13:44]name=ofd_packets/00022351 [11:13:44]NVStorageDeleteData [11:13:44]Write to MH i2c: 01 00 00 93 3C CF [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 07 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 07 00 93 3C 00 00 00 00 00 0B 0D EE [11:13:44]RasterBufferAndPrint [11:13:44]line [11:13:44]line [11:13:44]line [11:13:44]line [11:13:44]line [11:13:44]written 0, free lines is 3345 [11:13:44]MH_Cut [11:13:44]Write to MH i2c: D1 01 00 9A 3C 01 A8 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: D1 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: D1 01 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: D1 01 00 9A 3C 00 A7 [11:13:44]Write to MH i2c: 01 00 00 9B 3C D7 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]OFD Sender: No OFD packet to send [11:13:44]*** Cut start [11:13:44]*** Partial cut [11:13:44]*** CUTSNS_PIN = 1 [11:13:44]*** CUTSNS_PIN = 0 [11:13:45]*** Brake cut motor [11:13:45]Read from MH i2c: 01 [11:13:45]MH_I2C_Read... [11:13:45]*** Stop cut motor [11:13:45]*** Cut end [11:13:45]Read from MH i2c: 01 07 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 9B 3C 00 00 00 00 00 FF 0F EC [11:13:45]process_action close_receipt done [11:13:45]requested_data is exist [11:13:45]produce_requested_data [11:13:45]requested_item fm.sn is exist - process it [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 11 00 00 [11:13:45]Write to MH i2c: E2 08 00 9C 3C 80 11 00 00 00 00 00 00 52 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 17 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 17 00 9C 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 A4 [11:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [11:13:45]wFMCommunicate OK [11:13:45]requested_item fd.num is exist - process it [11:13:45]SAM_PROTO_GetFieldsCounters [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 13 00 00 [11:13:45]Write to MH i2c: E2 08 00 9D 3C 80 13 00 00 00 00 00 00 55 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 62 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 62 00 9D 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 4F 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [11:13:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 4F 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:45]wFMCommunicate OK [11:13:45]SAM_PROTO_GetFieldsCounters done [11:13:45]requested_item shift.num is exist - process it [11:13:45]requested_item shift.opened is exist - process it [11:13:45]req_shift_opened [11:13:45]FM_GetShiftState [11:13:45]SAM_PROTO_GetShiftState [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 13 01 00 [11:13:45]Write to MH i2c: E2 08 00 9E 3C 80 13 01 00 00 00 00 00 57 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:45]Read from MH i2c: E2 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 0E 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: E2 0E 00 9E 3C 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 09 [11:13:45]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [11:13:45]wFMCommunicate OK [11:13:45]SAM_PROTO_GetShiftState done [11:13:45]FM_GetShiftState done [11:13:45]req_shift_opened done [11:13:45]requested_item shift.open_date is exist - process it [11:13:45]req_shift_open_date [11:13:45]req_shift_open_date done [11:13:45]produce_requested_data done [11:13:45]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22351,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [11:13:45]process_action_free close_receipt [11:13:45]json_value_free [11:13:45]json_value_free done [11:13:45]process_json_proto returns [11:13:45]Send response to host [11:13:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22351,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [11:13:45]free response buf [11:13:45]execute_script done [11:13:45]execute_script returns [11:13:45]free content buf [11:13:45]Sock 8.Close socket [11:13:45]Sock 8.Thread stoped [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:07]accept exits with 9 [11:28:07]New connection [11:28:07]New thread 3066838372 created [11:28:07]Thread 3066695012 joined [11:28:07]Waiting for new connection... [11:28:07] Sock 9.Parse request [11:28:07]Sock 9.Check first char [11:28:07]Sock 9.First char is OK [11:28:07]request: POST /json_proto HTTP/1.0 [11:28:07]Method: POST [11:28:07]URL: /json_proto [11:28:07]Method is POST - this is cgi request [11:28:07]url: /json_proto [11:28:07]query_string will be loaded in cgi processing [11:28:07]execute_cgi json_proto POST (null) [11:28:07]execute_cgi path=json_proto method=POST [11:28:07]POST find Content-Length [11:28:07]Host: 172.17.35.133:8080 [11:28:07]Content-Length: 649 [11:28:07]Content-Type: application/json [11:28:07] [11:28:07]POST finish read [11:28:07]Found Content-Length = 649 [11:28:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254561", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:07]execute_script... [11:28: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 : (3)254561", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:07]POST & json_proto [11:28:07]process_json_proto [11:28:07]json parsed OK: [11:28:07]protocol is kg_v1.0 [11:28:07]action value=close_receipt [11:28:07]process_action close_receipt [11:28:07]cmd_close_receipt [11:28:07]MH_GetDate [11:28:07]Write to MH i2c: F0 00 00 9F 3C CA [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: F0 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: F0 09 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: F0 09 00 9F 3C 00 D4 1D 70 66 8C 55 28 65 08 [11:28:07]GetLastDocTimeStamp 1718622834 [11:28:07]current date 1718623700 [11:28:07]FM_GetShiftState [11:28:07]SAM_PROTO_GetShiftState [11:28:07]wFMCommunicate request_size=4 [11:28:07]MH_SAM_APDU [11:28:07]CAPDU: 80 13 01 00 [11:28:07]Write to MH i2c: E2 08 00 A0 3C 80 13 01 00 00 00 00 00 59 [11:28:07]Write i2c OK [11:28:07]MH_I2C_Read... [11:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:07]Read from MH i2c: E2 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 0E 00 [11:28:07]MH_I2C_Read... [11:28:07]Read from MH i2c: E2 0E 00 A0 3C 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 0B [11:28:07]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [11:28:07]wFMCommunicate OK [11:28:07]SAM_PROTO_GetShiftState done [11:28:07]FM_GetShiftState done [11:28:07]opened in 1718583887 [11:28:07]opened+sec_in_day 1718670287 [11:28:07]quantity*price = 9500 [11:28:07]sum+1 = 9501 [11:28:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 33 17.06.2024 11:28 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22352 ФПД: 54386035378841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T112820&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22352&fm=54386035378841&tin=02508201610067®Number=0000000000099755&sum=9500 0 [11:28:08]StoreToDocumentArchive [11:28:08]shift 328 fd 22352 [11:28:08]save to /storage/0328/doc_00022352 [11:28:08]save last doc name /storage/0328/doc_00022352 to /storage/kkm_last_doc_name [11:28:08]save OK [11:28:08]Clear old archive folders... [11:28:08]ProcessDocumentItem done err = 0, tmpTLVsize=284 [11:28:08]tlvbuf is 002F9BB0 [11:28:08]SAM_PROTO_ClearQueue [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 09 00 00 [11:28:08]Write to MH i2c: E2 08 00 AD 3C 80 09 00 00 00 00 00 00 5B [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 AD 3C 00 90 00 5D [11:28:08]RAPDU: 90 00 [11:28:08]wFMCommunicate OK [11:28:08]SAM_PROTO_ClearQueue done [11:28:08]KKMCreateOFDPacket [11:28:08]OFDProtocolAddRootSTLVToBuf [11:28:08]FM_MakeSignedData [11:28:08]FM_MakeSignedData [11:28:08]SAM_PROTO_SignData [11:28:08]wFMCommunicate request_size=4 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 0D 01 02 [11:28:08]Write to MH i2c: E2 08 00 AE 3C 80 0D 01 02 00 00 00 00 63 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:08]Read from MH i2c: E2 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 [11:28:08]MH_I2C_Read... [11:28:08]Read from MH i2c: E2 03 00 AE 3C 00 90 00 5E [11:28:08]RAPDU: 90 00 [11:28:08]wFMCommunicate OK [11:28:08]wFMCommunicate request_size=255 [11:28:08]MH_SAM_APDU [11:28:08]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D4 1D 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 [11:28:08]Write to MH i2c: E2 02 01 AF 3C 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D4 1D 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 00 00 D9 [11:28:08]Write i2c OK [11:28:08]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 03 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 03 00 AF 3C 00 90 00 5F [11:28:09]RAPDU: 90 00 [11:28:09]wFMCommunicate OK [11:28:09]wFMCommunicate request_size=43 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 50 57 00 00 35 04 06 00 31 76 BC 51 CA 99 [11:28:09]Write to MH i2c: E2 2E 00 B0 3C 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 50 57 00 00 35 04 06 00 31 76 BC 51 CA 99 00 00 0B [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 03 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 03 00 B0 3C 00 90 00 60 [11:28:09]RAPDU: 90 00 [11:28:09]wFMCommunicate OK [11:28:09]wFMCommunicate request_size=4 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 0D 03 02 [11:28:09]Write to MH i2c: E2 08 00 B1 3C 80 0D 03 02 00 00 00 00 68 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 0B 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 0B 00 B1 3C 00 8D C3 E0 C0 04 3A A1 4C 90 00 84 [11:28:09]RAPDU: 8D C3 E0 C0 04 3A A1 4C 90 00 [11:28:09]wFMCommunicate OK [11:28:09]SAM_PROTO_SignData done [11:28:09]FM_MakeSignedData done [11:28:09]CreateOFDProtocolMessage [11:28:09]wFMCommunicate request_size=4 [11:28:09]MH_SAM_APDU [11:28:09]CAPDU: 80 11 00 00 [11:28:09]Write to MH i2c: E2 08 00 B2 3C 80 11 00 00 00 00 00 00 68 [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:09]Read from MH i2c: E2 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 17 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: E2 17 00 B2 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 BA [11:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [11:28:09]wFMCommunicate OK [11:28:09]CreateOFDProtocolMessage done [11:28:09]OFDSenderStorePacket 22352 [11:28:09]StoreOFDPacket docnum=22352 [11:28:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 30 01 00 00 74 0F 28 01 13 CD 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D4 1D 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 50 57 00 00 35 04 06 00 31 76 BC 51 CA 99 8D C3 E0 C0 04 3A A1 4C [11:28:09]CheckFolder [11:28:09]dirname=/storage/ofd_packets [11:28:09]CheckFolder done [11:28:09]ProducePacketName [11:28:09]name=ofd_packets/00022352 [11:28:09]NVStorageSaveData ofd_packets/00022352 [11:28:09]File name is /storage/ofd_packets/00022352 [11:28:09]Write 334 bytes [11:28:09]NVStorageSaveData done [11:28:09]OFDSenderStorePacket done [11:28:09]KKMCreateOFDPacket done [11:28:09]NVStorageSaveData kkm_last_timestamp [11:28:09]File name is /storage/kkm_last_timestamp [11:28:09]Write 4 bytes [11:28:09]NVStorageSaveData done [11:28:09]ExternCall_PrintAddStr [11:28:09]wPrintStart [11:28:09]Write to MH i2c: 01 00 00 B3 3C EF [11:28:09]Write i2c OK [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 [11:28:09]MH_I2C_Read... [11:28:09]Read from MH i2c: 01 07 00 B3 3C 00 00 00 00 00 FF 0F 04 [11:28:09]RasterBufferAndPrint [11:28:09]line Счет N : (3)254561 [11:28:09]line ИНН: 02508201610067 [11:28:09]line Контрольно-Кассовый Чек [11:28:09]line ПРОДАЖА [11:28:09]line Товар: 2000036190018 [11:28:09]line Кофе Американо XL(GABB TRADE) [11:28:09]line 1.000 * 95.00 [11:28:09]line = 95.00 [11:28:09]line НДС 12% НСП 1% [11:28:09]line > о реализуемом товаре [11:28:09]line ИТОГО: 95.00 [11:28:09]line НСП 1% : 0.84 [11:28:09]line НДС 12% : 10.09 [11:28:09]line Наличными: 95.00 [11:28:09]line Безнал.: 0.00 [11:28:09]line Место: АЗС № 76 "Партнер Нефть" [11:28:09]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [11:28:09]line СНО: Общий режим [11:28:09]line Чек 33 17.06.2024 11:28 [11:28:09]line Смена: 328 ФФД: 1.0 [11:28:09]line ЗНМ: 0300000200 [11:28:09]line РНМ: 0000000000099755 [11:28:09]line Версия ККМ: 001 [11:28:09]line ФМ: 0000000000965344 [11:28:09]line ФД: 22352 [11:28:09]line ФПД: 54386035378841 [11:28:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T112820&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22352&fm=54386035378841&tin=02508201610067®Number=0000000000099755&sum=9500 [11:28:09]line 0 [11:28:09]OFD Sender: Processing packet 22352 [packets to send 5, broken 4] [11:28:09]ProducePacketName [11:28:09]name=ofd_packets/00022352 [11:28:09]OFD Sender: To server: pG, [11:28:09]CommunicateWithHost lk.salyk.kg:30040 [11:28:09]ConnectInit lk.salyk.kg [11:28:09]written 0, free lines is 4095 [11:28:09]Connected sock=10 [11:28:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 30 01 00 00 74 0F 28 01 13 CD 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D4 1D 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 50 57 00 00 35 04 06 00 31 76 BC 51 CA 99 8D C3 E0 C0 04 3A A1 4C [11:28:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 FA 39 47 00 5E 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 39 36 35 33 34 34 10 04 04 00 50 57 00 00 F4 03 04 00 8C C6 6F 66 B6 04 01 00 00 45 19 BC 9A D0 71 7B 9B [11:28:09]CommunicateWithHost err = 0 [11:28:09]CheckOFDResponse [11:28:09]1017 (14) - 77093643461234 [11:28:09]1041 (16) - 0000000000965344 [11:28:09]1040 (4) - 22352 [11:28:09]1012 (4) - 17.06.2024 05:15 [11:28:09]1206 (1) - 0 [11:28:09]OFD Sender: Remove packet 22352 [11:28:09]ProducePacketName [11:28:09]name=ofd_packets/00022352 [11:28:09]NVStorageDeleteData [11:28:10]Write to MH i2c: 01 00 00 DC 3C 18 [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: 01 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: 01 07 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: 01 07 00 DC 3C 00 00 00 00 00 12 0D 3E [11:28:10]RasterBufferAndPrint [11:28:10]line [11:28:10]line [11:28:10]line [11:28:10]line [11:28:10]line [11:28:10]written 0, free lines is 3352 [11:28:10]MH_Cut [11:28:10]Write to MH i2c: D1 01 00 E3 3C 01 F1 [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: D1 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: D1 01 00 [11:28:10]MH_I2C_Read... [11:28:10]Read from MH i2c: D1 01 00 E3 3C 00 F0 [11:28:10]Write to MH i2c: 01 00 00 E4 3C 20 [11:28:10]Write i2c OK [11:28:10]MH_I2C_Read... [11:28:10]OFD Sender: No OFD packet to send [11:28:10]*** Cut start [11:28:10]*** Partial cut [11:28:10]*** CUTSNS_PIN = 1 [11:28:10]*** CUTSNS_PIN = 0 [11:28:11]*** Brake cut motor [11:28:11]Read from MH i2c: 01 [11:28:11]MH_I2C_Read... [11:28:11]*** Stop cut motor [11:28:11]*** Cut end [11:28:11]Read from MH i2c: 01 07 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: 01 07 00 E4 3C 00 00 00 00 00 FF 0F 35 [11:28:11]process_action close_receipt done [11:28:11]requested_data is exist [11:28:11]produce_requested_data [11:28:11]requested_item fm.sn is exist - process it [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 11 00 00 [11:28:11]Write to MH i2c: E2 08 00 E5 3C 80 11 00 00 00 00 00 00 9B [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 17 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 17 00 E5 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 ED [11:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [11:28:11]wFMCommunicate OK [11:28:11]requested_item fd.num is exist - process it [11:28:11]SAM_PROTO_GetFieldsCounters [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 13 00 00 [11:28:11]Write to MH i2c: E2 08 00 E6 3C 80 13 00 00 00 00 00 00 9E [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 62 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 62 00 E6 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 50 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [11:28:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 50 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:11]wFMCommunicate OK [11:28:11]SAM_PROTO_GetFieldsCounters done [11:28:11]requested_item shift.num is exist - process it [11:28:11]requested_item shift.opened is exist - process it [11:28:11]req_shift_opened [11:28:11]FM_GetShiftState [11:28:11]SAM_PROTO_GetShiftState [11:28:11]wFMCommunicate request_size=4 [11:28:11]MH_SAM_APDU [11:28:11]CAPDU: 80 13 01 00 [11:28:11]Write to MH i2c: E2 08 00 E7 3C 80 13 01 00 00 00 00 00 A0 [11:28:11]Write i2c OK [11:28:11]MH_I2C_Read... [11:28:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:11]Read from MH i2c: E2 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0E 00 [11:28:11]MH_I2C_Read... [11:28:11]Read from MH i2c: E2 0E 00 E7 3C 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 52 [11:28:11]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [11:28:11]wFMCommunicate OK [11:28:11]SAM_PROTO_GetShiftState done [11:28:11]FM_GetShiftState done [11:28:11]req_shift_opened done [11:28:11]requested_item shift.open_date is exist - process it [11:28:11]req_shift_open_date [11:28:11]req_shift_open_date done [11:28:11]produce_requested_data done [11:28:11]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22352,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [11:28:11]process_action_free close_receipt [11:28:11]json_value_free [11:28:11]json_value_free done [11:28:11]process_json_proto returns [11:28:11]Send response to host [11:28:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22352,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [11:28:11]free response buf [11:28:11]execute_script done [11:28:11]execute_script returns [11:28:11]free content buf [11:28:11]Sock 9.Close socket [11:28:11]Sock 9.Thread stoped [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:02]accept exits with 8 [11:41:02]New connection [11:41:02]New thread 3066695012 created [11:41:02]Thread 3066838372 joined [11:41:02]Waiting for new connection... [11:41:02] Sock 8.Parse request [11:41:02]Sock 8.Check first char [11:41:02]Sock 8.First char is OK [11:41:02]request: POST /json_proto HTTP/1.0 [11:41:02]Method: POST [11:41:02]URL: /json_proto [11:41:02]Method is POST - this is cgi request [11:41:02]url: /json_proto [11:41:02]query_string will be loaded in cgi processing [11:41:02]execute_cgi json_proto POST (null) [11:41:02]execute_cgi path=json_proto method=POST [11:41:02]POST find Content-Length [11:41:02]Host: 172.17.35.133:8080 [11:41:02]Content-Length: 631 [11:41:02]Content-Type: application/json [11:41:02] [11:41:02]POST finish read [11:41:02]Found Content-Length = 631 [11:41:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254562", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:02]execute_script... [11:41:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254562", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:02]POST & json_proto [11:41:02]process_json_proto [11:41:02]json parsed OK: [11:41:02]protocol is kg_v1.0 [11:41:02]action value=close_receipt [11:41:02]process_action close_receipt [11:41:02]cmd_close_receipt [11:41:02]MH_GetDate [11:41:02]Write to MH i2c: F0 00 00 E8 3C 13 [11:41:02]Write i2c OK [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: F0 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: F0 09 00 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: F0 09 00 E8 3C 00 DC 20 70 66 8C 55 28 65 5C [11:41:02]GetLastDocTimeStamp 1718623700 [11:41:02]current date 1718624476 [11:41:02]FM_GetShiftState [11:41:02]SAM_PROTO_GetShiftState [11:41:02]wFMCommunicate request_size=4 [11:41:02]MH_SAM_APDU [11:41:02]CAPDU: 80 13 01 00 [11:41:02]Write to MH i2c: E2 08 00 E9 3C 80 13 01 00 00 00 00 00 A2 [11:41:02]Write i2c OK [11:41:02]MH_I2C_Read... [11:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:02]Read from MH i2c: E2 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: E2 0E 00 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: E2 0E 00 E9 3C 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 54 [11:41:02]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [11:41:02]wFMCommunicate OK [11:41:02]SAM_PROTO_GetShiftState done [11:41:02]FM_GetShiftState done [11:41:02]opened in 1718583887 [11:41:02]opened+sec_in_day 1718670287 [11:41:02]quantity*price = 4500 [11:41:02]sum+1 = 4501 [11:41:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 34 17.06.2024 11:41 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22353 ФПД: 184517556294835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T114116&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22353&fm=184517556294835&tin=02508201610067®Number=0000000000099755&sum=4500 0 [11:41:03]StoreToDocumentArchive [11:41:03]shift 328 fd 22353 [11:41:03]save to /storage/0328/doc_00022353 [11:41:03]save last doc name /storage/0328/doc_00022353 to /storage/kkm_last_doc_name [11:41:03]save OK [11:41:03]Clear old archive folders... [11:41:03]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:41:03]tlvbuf is 00267CC0 [11:41:03]SAM_PROTO_ClearQueue [11:41:03]wFMCommunicate request_size=4 [11:41:03]MH_SAM_APDU [11:41:03]CAPDU: 80 09 00 00 [11:41:03]Write to MH i2c: E2 08 00 F6 3C 80 09 00 00 00 00 00 00 A4 [11:41:03]Write i2c OK [11:41:03]MH_I2C_Read... [11:41:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:03]Read from MH i2c: E2 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: E2 03 00 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: E2 03 00 F6 3C 00 90 00 A6 [11:41:03]RAPDU: 90 00 [11:41:03]wFMCommunicate OK [11:41:03]SAM_PROTO_ClearQueue done [11:41:03]KKMCreateOFDPacket [11:41:03]OFDProtocolAddRootSTLVToBuf [11:41:03]FM_MakeSignedData [11:41:03]FM_MakeSignedData [11:41:03]SAM_PROTO_SignData [11:41:03]wFMCommunicate request_size=4 [11:41:03]MH_SAM_APDU [11:41:03]CAPDU: 80 0D 01 02 [11:41:03]Write to MH i2c: E2 08 00 F7 3C 80 0D 01 02 00 00 00 00 AC [11:41:03]Write i2c OK [11:41:03]MH_I2C_Read... [11:41:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:03]Read from MH i2c: E2 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: E2 03 00 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: E2 03 00 F7 3C 00 90 00 A7 [11:41:03]RAPDU: 90 00 [11:41:03]wFMCommunicate OK [11:41:03]wFMCommunicate request_size=255 [11:41:03]MH_SAM_APDU [11:41:03]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DC 20 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 [11:41:03]Write to MH i2c: E2 02 01 F8 3C 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DC 20 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 00 00 25 [11:41:03]Write i2c OK [11:41:03]MH_I2C_Read... [11:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:04]Read from MH i2c: E2 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 03 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 03 00 F8 3C 00 90 00 A8 [11:41:04]RAPDU: 90 00 [11:41:04]wFMCommunicate OK [11:41:04]wFMCommunicate request_size=33 [11:41:04]MH_SAM_APDU [11:41:04]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 35 33 34 34 10 04 04 00 51 57 00 00 35 04 06 00 A7 D1 57 65 D4 B3 [11:41:04]Write to MH i2c: E2 24 00 F9 3C 80 0D 02 02 1C 00 30 30 30 30 39 36 35 33 34 34 10 04 04 00 51 57 00 00 35 04 06 00 A7 D1 57 65 D4 B3 00 00 A0 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:04]Read from MH i2c: E2 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 03 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 03 00 F9 3C 00 90 00 A9 [11:41:04]RAPDU: 90 00 [11:41:04]wFMCommunicate OK [11:41:04]wFMCommunicate request_size=4 [11:41:04]MH_SAM_APDU [11:41:04]CAPDU: 80 0D 03 02 [11:41:04]Write to MH i2c: E2 08 00 FA 3C 80 0D 03 02 00 00 00 00 B1 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:04]Read from MH i2c: E2 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 0B 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 0B 00 FA 3C 00 4B 9F 27 53 16 37 68 52 90 00 1D [11:41:04]RAPDU: 4B 9F 27 53 16 37 68 52 90 00 [11:41:04]wFMCommunicate OK [11:41:04]SAM_PROTO_SignData done [11:41:04]FM_MakeSignedData done [11:41:04]CreateOFDProtocolMessage [11:41:04]wFMCommunicate request_size=4 [11:41:04]MH_SAM_APDU [11:41:04]CAPDU: 80 11 00 00 [11:41:04]Write to MH i2c: E2 08 00 FB 3C 80 11 00 00 00 00 00 00 B1 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:04]Read from MH i2c: E2 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 17 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 17 00 FB 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 03 [11:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [11:41:04]wFMCommunicate OK [11:41:04]CreateOFDProtocolMessage done [11:41:04]OFDSenderStorePacket 22353 [11:41:04]StoreOFDPacket docnum=22353 [11:41:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 26 01 00 00 FC 57 1E 01 02 87 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DC 20 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 51 57 00 00 35 04 06 00 A7 D1 57 65 D4 B3 4B 9F 27 53 16 37 68 52 [11:41:04]CheckFolder [11:41:04]dirname=/storage/ofd_packets [11:41:04]CheckFolder done [11:41:04]ProducePacketName [11:41:04]name=ofd_packets/00022353 [11:41:04]NVStorageSaveData ofd_packets/00022353 [11:41:04]File name is /storage/ofd_packets/00022353 [11:41:04]Write 324 bytes [11:41:04]NVStorageSaveData done [11:41:04]OFDSenderStorePacket done [11:41:04]KKMCreateOFDPacket done [11:41:04]NVStorageSaveData kkm_last_timestamp [11:41:04]File name is /storage/kkm_last_timestamp [11:41:04]Write 4 bytes [11:41:04]NVStorageSaveData done [11:41:04]ExternCall_PrintAddStr [11:41:04]wPrintStart [11:41:04]Write to MH i2c: 01 00 00 FC 3C 38 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: 01 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: 01 07 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: 01 07 00 FC 3C 00 00 00 00 00 FF 0F 4D [11:41:04]RasterBufferAndPrint [11:41:04]line Счет N : (3)254562 [11:41:04]line ИНН: 02508201610067 [11:41:04]line Контрольно-Кассовый Чек [11:41:04]line ПРОДАЖА [11:41:04]line Товар: 50173822 [11:41:04]line Р/ж Orbit б/сах мята 13,6г [11:41:04]line 1.000 * 45.00 [11:41:04]line = 45.00 [11:41:04]line НДС 12% НСП 1% [11:41:04]line > о реализуемом товаре [11:41:04]line ИТОГО: 45.00 [11:41:04]line НСП 1% : 0.40 [11:41:04]line НДС 12% : 4.78 [11:41:04]line Наличными: 45.00 [11:41:04]line Безнал.: 0.00 [11:41:04]line Место: АЗС № 76 "Партнер Нефть" [11:41:04]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [11:41:04]line СНО: Общий режим [11:41:04]line Чек 34 17.06.2024 11:41 [11:41:04]line Смена: 328 ФФД: 1.0 [11:41:04]line ЗНМ: 0300000200 [11:41:04]line РНМ: 0000000000099755 [11:41:04]line Версия ККМ: 001 [11:41:04]line ФМ: 0000000000965344 [11:41:04]line ФД: 22353 [11:41:04]line ФПД: 184517556294835 [11:41:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T114116&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22353&fm=184517556294835&tin=02508201610067®Number=0000000000099755&sum=4500 [11:41:04]line 0 [11:41:04]written 0, free lines is 4095 [11:41:04]OFD Sender: Processing packet 22353 [packets to send 5, broken 4] [11:41:04]ProducePacketName [11:41:04]name=ofd_packets/00022353 [11:41:04]OFD Sender: To server: pG, [11:41:04]CommunicateWithHost lk.salyk.kg:30040 [11:41:04]ConnectInit lk.salyk.kg [11:41:04]Connected sock=9 [11:41:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 26 01 00 00 FC 57 1E 01 02 87 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 35 30 31 37 33 38 32 32 06 04 25 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 D0 B1 2F D1 81 D0 B0 D1 85 20 D0 BC D1 8F D1 82 D0 B0 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 DC 20 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 51 57 00 00 35 04 06 00 A7 D1 57 65 D4 B3 4B 9F 27 53 16 37 68 52 [11:41:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 68 4F 47 00 15 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 39 36 35 33 34 34 10 04 04 00 51 57 00 00 F4 03 04 00 93 C9 6F 66 B6 04 01 00 00 0A 34 B3 CC EA 6A 44 81 [11:41:04]CommunicateWithHost err = 0 [11:41:04]CheckOFDResponse [11:41:04]1017 (14) - 77093643461234 [11:41:04]1041 (16) - 0000000000965344 [11:41:04]1040 (4) - 22353 [11:41:04]1012 (4) - 17.06.2024 05:28 [11:41:04]1206 (1) - 0 [11:41:04]OFD Sender: Remove packet 22353 [11:41:04]ProducePacketName [11:41:04]name=ofd_packets/00022353 [11:41:04]NVStorageDeleteData [11:41:04]Write to MH i2c: 01 00 00 24 3D 61 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: 01 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: 01 07 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: 01 07 00 24 3D 00 00 00 00 00 18 0D 8D [11:41:04]RasterBufferAndPrint [11:41:04]line [11:41:04]line [11:41:04]line [11:41:04]line [11:41:04]line [11:41:04]written 0, free lines is 3362 [11:41:04]MH_Cut [11:41:04]Write to MH i2c: D1 01 00 2B 3D 01 3A [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: D1 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: D1 01 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: D1 01 00 2B 3D 00 39 [11:41:04]Write to MH i2c: 01 00 00 2C 3D 69 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:05]OFD Sender: No OFD packet to send [11:41:05]*** Cut start [11:41:05]*** Partial cut [11:41:05]*** CUTSNS_PIN = 1 [11:41:05]*** CUTSNS_PIN = 0 [11:41:05]*** Brake cut motor [11:41:06]Read from MH i2c: 01 [11:41:06]MH_I2C_Read... [11:41:06]*** Stop cut motor [11:41:06]*** Cut end [11:41:06]Read from MH i2c: 01 07 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: 01 07 00 2C 3D 00 00 00 00 00 FF 0F 7E [11:41:06]process_action close_receipt done [11:41:06]requested_data is exist [11:41:06]produce_requested_data [11:41:06]requested_item fm.sn is exist - process it [11:41:06]wFMCommunicate request_size=4 [11:41:06]MH_SAM_APDU [11:41:06]CAPDU: 80 11 00 00 [11:41:06]Write to MH i2c: E2 08 00 2D 3D 80 11 00 00 00 00 00 00 E4 [11:41:06]Write i2c OK [11:41:06]MH_I2C_Read... [11:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:06]Read from MH i2c: E2 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 17 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 17 00 2D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 36 [11:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [11:41:06]wFMCommunicate OK [11:41:06]requested_item fd.num is exist - process it [11:41:06]SAM_PROTO_GetFieldsCounters [11:41:06]wFMCommunicate request_size=4 [11:41:06]MH_SAM_APDU [11:41:06]CAPDU: 80 13 00 00 [11:41:06]Write to MH i2c: E2 08 00 2E 3D 80 13 00 00 00 00 00 00 E7 [11:41:06]Write i2c OK [11:41:06]MH_I2C_Read... [11:41:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:06]Read from MH i2c: E2 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 62 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 62 00 2E 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 51 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [11:41:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 51 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:06]wFMCommunicate OK [11:41:06]SAM_PROTO_GetFieldsCounters done [11:41:06]requested_item shift.num is exist - process it [11:41:06]requested_item shift.opened is exist - process it [11:41:06]req_shift_opened [11:41:06]FM_GetShiftState [11:41:06]SAM_PROTO_GetShiftState [11:41:06]wFMCommunicate request_size=4 [11:41:06]MH_SAM_APDU [11:41:06]CAPDU: 80 13 01 00 [11:41:06]Write to MH i2c: E2 08 00 2F 3D 80 13 01 00 00 00 00 00 E9 [11:41:06]Write i2c OK [11:41:06]MH_I2C_Read... [11:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:06]Read from MH i2c: E2 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 0E 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 0E 00 2F 3D 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 9B [11:41:06]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [11:41:06]wFMCommunicate OK [11:41:06]SAM_PROTO_GetShiftState done [11:41:06]FM_GetShiftState done [11:41:06]req_shift_opened done [11:41:06]requested_item shift.open_date is exist - process it [11:41:06]req_shift_open_date [11:41:06]req_shift_open_date done [11:41:06]produce_requested_data done [11:41:06]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22353,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [11:41:06]process_action_free close_receipt [11:41:06]json_value_free [11:41:06]json_value_free done [11:41:06]process_json_proto returns [11:41:06]Send response to host [11:41:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22353,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [11:41:06]free response buf [11:41:06]execute_script done [11:41:06]execute_script returns [11:41:06]free content buf [11:41:06]Sock 8.Close socket [11:41:06]Sock 8.Thread stoped [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:16]accept exits with 10 [11:57:16]New connection [11:57:16]New thread 3066838372 created [11:57:16]Thread 3066695012 joined [11:57:16]Waiting for new connection... [11:57:16] Sock 10.Parse request [11:57:16]Sock 10.Check first char [11:57:16]Sock 10.First char is OK [11:57:16]request: POST /json_proto HTTP/1.0 [11:57:16]Method: POST [11:57:16]URL: /json_proto [11:57:16]Method is POST - this is cgi request [11:57:16]url: /json_proto [11:57:16]query_string will be loaded in cgi processing [11:57:16]execute_cgi json_proto POST (null) [11:57:16]execute_cgi path=json_proto method=POST [11:57:16]POST find Content-Length [11:57:16]Host: 172.17.35.133:8080 [11:57:16]Content-Length: 711 [11:57:16]Content-Type: application/json [11:57:16] [11:57:16]POST finish read [11:57:16]Found Content-Length = 711 [11:57:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254563", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:16]execute_script... [11:57: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 : (3)254563", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:16]POST & json_proto [11:57:16]process_json_proto [11:57:16]json parsed OK: [11:57:16]protocol is kg_v1.0 [11:57:16]action value=close_receipt [11:57:16]process_action close_receipt [11:57:16]cmd_close_receipt [11:57:16]MH_GetDate [11:57:16]Write to MH i2c: F0 00 00 30 3D 5C [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: F0 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: F0 09 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: F0 09 00 30 3D 00 A9 24 70 66 8C 55 28 65 76 [11:57:16]GetLastDocTimeStamp 1718624476 [11:57:16]current date 1718625449 [11:57:16]FM_GetShiftState [11:57:16]SAM_PROTO_GetShiftState [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 13 01 00 [11:57:16]Write to MH i2c: E2 08 00 31 3D 80 13 01 00 00 00 00 00 EB [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 0E 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 0E 00 31 3D 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 9D [11:57:16]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [11:57:16]wFMCommunicate OK [11:57:16]SAM_PROTO_GetShiftState done [11:57:16]FM_GetShiftState done [11:57:16]opened in 1718583887 [11:57:16]opened+sec_in_day 1718670287 [11:57:16]quantity*price = 11300 [11:57:16]sum+1 = 11301 [11:57:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 35 17.06.2024 11:57 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22354 ФПД: 88011696992622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T115730&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22354&fm=88011696992622&tin=02508201610067®Number=0000000000099755&sum=11300 0 [11:57:17]StoreToDocumentArchive [11:57:17]shift 328 fd 22354 [11:57:17]save to /storage/0328/doc_00022354 [11:57:17]save last doc name /storage/0328/doc_00022354 to /storage/kkm_last_doc_name [11:57:17]save OK [11:57:17]Clear old archive folders... [11:57:17]ProcessDocumentItem done err = 0, tmpTLVsize=303 [11:57:17]tlvbuf is 001F5900 [11:57:17]SAM_PROTO_ClearQueue [11:57:17]wFMCommunicate request_size=4 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 09 00 00 [11:57:17]Write to MH i2c: E2 08 00 3E 3D 80 09 00 00 00 00 00 00 ED [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 03 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 03 00 3E 3D 00 90 00 EF [11:57:17]RAPDU: 90 00 [11:57:17]wFMCommunicate OK [11:57:17]SAM_PROTO_ClearQueue done [11:57:17]KKMCreateOFDPacket [11:57:17]OFDProtocolAddRootSTLVToBuf [11:57:17]FM_MakeSignedData [11:57:17]FM_MakeSignedData [11:57:17]SAM_PROTO_SignData [11:57:17]wFMCommunicate request_size=4 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 0D 01 02 [11:57:17]Write to MH i2c: E2 08 00 3F 3D 80 0D 01 02 00 00 00 00 F5 [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 03 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 03 00 3F 3D 00 90 00 F0 [11:57:17]RAPDU: 90 00 [11:57:17]wFMCommunicate OK [11:57:17]wFMCommunicate request_size=255 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AA 24 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D [11:57:17]Write to MH i2c: E2 02 01 40 3D 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AA 24 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 00 00 D0 [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 40 3D 00 90 00 F1 [11:57:18]RAPDU: 90 00 [11:57:18]wFMCommunicate OK [11:57:18]wFMCommunicate request_size=62 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 52 57 00 00 35 04 06 00 50 0B D1 EF 71 6E [11:57:18]Write to MH i2c: E2 41 00 41 3D 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 52 57 00 00 35 04 06 00 50 0B D1 EF 71 6E 00 00 DF [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 41 3D 00 90 00 F2 [11:57:18]RAPDU: 90 00 [11:57:18]wFMCommunicate OK [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 0D 03 02 [11:57:18]Write to MH i2c: E2 08 00 42 3D 80 0D 03 02 00 00 00 00 FA [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 0B 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 0B 00 42 3D 00 C1 74 B1 A1 49 11 46 0B 90 00 2D [11:57:18]RAPDU: C1 74 B1 A1 49 11 46 0B 90 00 [11:57:18]wFMCommunicate OK [11:57:18]SAM_PROTO_SignData done [11:57:18]FM_MakeSignedData done [11:57:18]CreateOFDProtocolMessage [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 11 00 00 [11:57:18]Write to MH i2c: E2 08 00 43 3D 80 11 00 00 00 00 00 00 FA [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 17 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 17 00 43 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 4C [11:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [11:57:18]wFMCommunicate OK [11:57:18]CreateOFDProtocolMessage done [11:57:18]OFDSenderStorePacket 22354 [11:57:18]StoreOFDPacket docnum=22354 [11:57:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 43 01 00 00 24 E0 3B 01 F2 BC 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AA 24 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 52 57 00 00 35 04 06 00 50 0B D1 EF 71 6E C1 74 B1 A1 49 11 46 0B [11:57:18]CheckFolder [11:57:18]dirname=/storage/ofd_packets [11:57:18]CheckFolder done [11:57:18]ProducePacketName [11:57:18]name=ofd_packets/00022354 [11:57:18]NVStorageSaveData ofd_packets/00022354 [11:57:18]File name is /storage/ofd_packets/00022354 [11:57:18]Write 353 bytes [11:57:18]NVStorageSaveData done [11:57:18]OFDSenderStorePacket done [11:57:18]KKMCreateOFDPacket done [11:57:18]NVStorageSaveData kkm_last_timestamp [11:57:18]File name is /storage/kkm_last_timestamp [11:57:18]Write 4 bytes [11:57:18]NVStorageSaveData done [11:57:18]ExternCall_PrintAddStr [11:57:18]wPrintStart [11:57:18]Write to MH i2c: 01 00 00 44 3D 81 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 07 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 07 00 44 3D 00 00 00 00 00 FF 0F 96 [11:57:18]RasterBufferAndPrint [11:57:18]line Счет N : (3)254563 [11:57:18]line ИНН: 02508201610067 [11:57:18]line Контрольно-Кассовый Чек [11:57:18]line ПРОДАЖА [11:57:18]line Товар: 4870202521216 [11:57:18]line Напиток MAXI чай 1,2 зел.лимон (новый) [11:57:18]line 1.000 * 113.00 [11:57:18]line = 113.00 [11:57:18]line НДС 12% НСП 1% [11:57:18]line > о реализуемом товаре [11:57:18]line ИТОГО: 113.00 [11:57:18]line НСП 1% : 1.00 [11:57:18]line НДС 12% : 12.00 [11:57:18]line Наличными: 113.00 [11:57:18]line Безнал.: 0.00 [11:57:18]line Место: АЗС № 76 "Партнер Нефть" [11:57:18]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [11:57:18]line СНО: Общий режим [11:57:18]line Чек 35 17.06.2024 11:57 [11:57:18]line Смена: 328 ФФД: 1.0 [11:57:18]line ЗНМ: 0300000200 [11:57:18]line РНМ: 0000000000099755 [11:57:18]line Версия ККМ: 001 [11:57:18]line ФМ: 0000000000965344 [11:57:18]line ФД: 22354 [11:57:18]line ФПД: 88011696992622 [11:57:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T115730&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22354&fm=88011696992622&tin=02508201610067®Number=0000000000099755&sum=11300 [11:57:18]line 0 [11:57:18]OFD Sender: Processing packet 22354 [packets to send 5, broken 4] [11:57:18]ProducePacketName [11:57:18]name=ofd_packets/00022354 [11:57:18]OFD Sender: To server: pG, [11:57:18]CommunicateWithHost lk.salyk.kg:30040 [11:57:18]ConnectInit lk.salyk.kg [11:57:18]written 0, free lines is 4095 [11:57:18]Connected sock=9 [11:57:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 43 01 00 00 24 E0 3B 01 F2 BC 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 AA 24 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 52 57 00 00 35 04 06 00 50 0B D1 EF 71 6E C1 74 B1 A1 49 11 46 0B [11:57:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 B2 CC 47 00 D2 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 39 36 35 33 34 34 10 04 04 00 52 57 00 00 F4 03 04 00 61 CD 6F 66 B6 04 01 00 00 DC 13 5B 85 2C 86 6F 2A [11:57:18]CommunicateWithHost err = 0 [11:57:18]CheckOFDResponse [11:57:18]1017 (14) - 77093643461234 [11:57:18]1041 (16) - 0000000000965344 [11:57:18]1040 (4) - 22354 [11:57:18]1012 (4) - 17.06.2024 05:45 [11:57:18]1206 (1) - 0 [11:57:18]OFD Sender: Remove packet 22354 [11:57:18]ProducePacketName [11:57:18]name=ofd_packets/00022354 [11:57:18]NVStorageDeleteData [11:57:19]Write to MH i2c: 01 00 00 6D 3D AA [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: 01 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: 01 07 00 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: 01 07 00 6D 3D 00 00 00 00 00 01 0D BF [11:57:19]RasterBufferAndPrint [11:57:19]line [11:57:19]line [11:57:19]line [11:57:19]line [11:57:19]line [11:57:19]written 0, free lines is 3335 [11:57:19]MH_Cut [11:57:19]Write to MH i2c: D1 01 00 74 3D 01 83 [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: D1 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: D1 01 00 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: D1 01 00 74 3D 00 82 [11:57:19]Write to MH i2c: 01 00 00 75 3D B2 [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]OFD Sender: No OFD packet to send [11:57:19]*** Cut start [11:57:19]*** Partial cut [11:57:19]*** CUTSNS_PIN = 1 [11:57:19]*** CUTSNS_PIN = 0 [11:57:20]*** Brake cut motor [11:57:20]Read from MH i2c: 01 [11:57:20]MH_I2C_Read... [11:57:20]*** Stop cut motor [11:57:20]*** Cut end [11:57:20]Read from MH i2c: 01 07 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: 01 07 00 75 3D 00 00 00 00 00 FF 0F C7 [11:57:20]process_action close_receipt done [11:57:20]requested_data is exist [11:57:20]produce_requested_data [11:57:20]requested_item fm.sn is exist - process it [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 11 00 00 [11:57:20]Write to MH i2c: E2 08 00 76 3D 80 11 00 00 00 00 00 00 2D [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 17 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 17 00 76 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 7F [11:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [11:57:20]wFMCommunicate OK [11:57:20]requested_item fd.num is exist - process it [11:57:20]SAM_PROTO_GetFieldsCounters [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 13 00 00 [11:57:20]Write to MH i2c: E2 08 00 77 3D 80 13 00 00 00 00 00 00 30 [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 62 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 62 00 77 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 52 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [11:57:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 52 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:20]wFMCommunicate OK [11:57:20]SAM_PROTO_GetFieldsCounters done [11:57:20]requested_item shift.num is exist - process it [11:57:20]requested_item shift.opened is exist - process it [11:57:20]req_shift_opened [11:57:20]FM_GetShiftState [11:57:20]SAM_PROTO_GetShiftState [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 13 01 00 [11:57:20]Write to MH i2c: E2 08 00 78 3D 80 13 01 00 00 00 00 00 32 [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 0E 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 0E 00 78 3D 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 E4 [11:57:20]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [11:57:20]wFMCommunicate OK [11:57:20]SAM_PROTO_GetShiftState done [11:57:20]FM_GetShiftState done [11:57:20]req_shift_opened done [11:57:20]requested_item shift.open_date is exist - process it [11:57:20]req_shift_open_date [11:57:20]req_shift_open_date done [11:57:20]produce_requested_data done [11:57:20]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22354,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [11:57:20]process_action_free close_receipt [11:57:20]json_value_free [11:57:20]json_value_free done [11:57:20]process_json_proto returns [11:57:20]Send response to host [11:57:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22354,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [11:57:20]free response buf [11:57:20]execute_script done [11:57:20]execute_script returns [11:57:20]free content buf [11:57:20]Sock 10.Close socket [11:57:20]Sock 10.Thread stoped [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:26]accept exits with 8 [12:22:26]New connection [12:22:26]New thread 3066695012 created [12:22:26]Thread 3066838372 joined [12:22:26]Waiting for new connection... [12:22:26] Sock 8.Parse request [12:22:26]Sock 8.Check first char [12:22:26]Sock 8.First char is OK [12:22:26]request: POST /json_proto HTTP/1.0 [12:22:26]Method: POST [12:22:26]URL: /json_proto [12:22:26]Method is POST - this is cgi request [12:22:26]url: /json_proto [12:22:26]query_string will be loaded in cgi processing [12:22:26]execute_cgi json_proto POST (null) [12:22:26]execute_cgi path=json_proto method=POST [12:22:26]POST find Content-Length [12:22:26]Host: 172.17.35.133:8080 [12:22:26]Content-Length: 668 [12:22:26]Content-Type: application/json [12:22:26] [12:22:26]POST finish read [12:22:26]Found Content-Length = 668 [12:22:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254564", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:26]execute_script... [12:22:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254564", "tax_sys" : 0, "items" : [ { "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:26]POST & json_proto [12:22:26]process_json_proto [12:22:26]json parsed OK: [12:22:26]protocol is kg_v1.0 [12:22:26]action value=close_receipt [12:22:26]process_action close_receipt [12:22:26]cmd_close_receipt [12:22:26]MH_GetDate [12:22:26]Write to MH i2c: F0 00 00 79 3D A5 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: F0 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: F0 09 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: F0 09 00 79 3D 00 90 2A 70 66 8C 55 28 65 AC [12:22:26]GetLastDocTimeStamp 1718625450 [12:22:26]current date 1718626960 [12:22:26]FM_GetShiftState [12:22:26]SAM_PROTO_GetShiftState [12:22:26]wFMCommunicate request_size=4 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 13 01 00 [12:22:26]Write to MH i2c: E2 08 00 7A 3D 80 13 01 00 00 00 00 00 34 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 0E 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 0E 00 7A 3D 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 E6 [12:22:26]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [12:22:26]wFMCommunicate OK [12:22:26]SAM_PROTO_GetShiftState done [12:22:26]FM_GetShiftState done [12:22:26]opened in 1718583887 [12:22:26]opened+sec_in_day 1718670287 [12:22:26]quantity*price = 11000 [12:22:26]sum+1 = 11001 [12:22:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 36 17.06.2024 12:22 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22355 ФПД: 46848775886883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T122240&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22355&fm=46848775886883&tin=02508201610067®Number=0000000000099755&sum=11000 0 [12:22:27]StoreToDocumentArchive [12:22:27]shift 328 fd 22355 [12:22:27]save to /storage/0328/doc_00022355 [12:22:27]save last doc name /storage/0328/doc_00022355 to /storage/kkm_last_doc_name [12:22:27]save OK [12:22:27]Clear old archive folders... [12:22:27]ProcessDocumentItem done err = 0, tmpTLVsize=296 [12:22:27]tlvbuf is 001EDE60 [12:22:27]SAM_PROTO_ClearQueue [12:22:27]wFMCommunicate request_size=4 [12:22:27]MH_SAM_APDU [12:22:27]CAPDU: 80 09 00 00 [12:22:27]Write to MH i2c: E2 08 00 87 3D 80 09 00 00 00 00 00 00 36 [12:22:27]Write i2c OK [12:22:27]MH_I2C_Read... [12:22:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:27]Read from MH i2c: E2 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: E2 03 00 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: E2 03 00 87 3D 00 90 00 38 [12:22:27]RAPDU: 90 00 [12:22:27]wFMCommunicate OK [12:22:27]SAM_PROTO_ClearQueue done [12:22:27]KKMCreateOFDPacket [12:22:27]OFDProtocolAddRootSTLVToBuf [12:22:27]FM_MakeSignedData [12:22:27]FM_MakeSignedData [12:22:27]SAM_PROTO_SignData [12:22:27]wFMCommunicate request_size=4 [12:22:27]MH_SAM_APDU [12:22:27]CAPDU: 80 0D 01 02 [12:22:27]Write to MH i2c: E2 08 00 88 3D 80 0D 01 02 00 00 00 00 3E [12:22:27]Write i2c OK [12:22:27]MH_I2C_Read... [12:22:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:27]Read from MH i2c: E2 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: E2 03 00 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: E2 03 00 88 3D 00 90 00 39 [12:22:27]RAPDU: 90 00 [12:22:27]wFMCommunicate OK [12:22:27]wFMCommunicate request_size=255 [12:22:27]MH_SAM_APDU [12:22:27]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 90 2A 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [12:22:27]Write to MH i2c: E2 02 01 89 3D 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 90 2A 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 CA [12:22:27]Write i2c OK [12:22:27]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 03 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 03 00 89 3D 00 90 00 3A [12:22:28]RAPDU: 90 00 [12:22:28]wFMCommunicate OK [12:22:28]wFMCommunicate request_size=55 [12:22:28]MH_SAM_APDU [12:22:28]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 53 57 00 00 35 04 06 00 2A 9B D4 A5 18 23 [12:22:28]Write to MH i2c: E2 3A 00 8A 3D 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 53 57 00 00 35 04 06 00 2A 9B D4 A5 18 23 00 00 C6 [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 03 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 03 00 8A 3D 00 90 00 3B [12:22:28]RAPDU: 90 00 [12:22:28]wFMCommunicate OK [12:22:28]wFMCommunicate request_size=4 [12:22:28]MH_SAM_APDU [12:22:28]CAPDU: 80 0D 03 02 [12:22:28]Write to MH i2c: E2 08 00 8B 3D 80 0D 03 02 00 00 00 00 43 [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 0B 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 0B 00 8B 3D 00 7D EE 9E 65 CD 46 3A A0 90 00 9F [12:22:28]RAPDU: 7D EE 9E 65 CD 46 3A A0 90 00 [12:22:28]wFMCommunicate OK [12:22:28]SAM_PROTO_SignData done [12:22:28]FM_MakeSignedData done [12:22:28]CreateOFDProtocolMessage [12:22:28]wFMCommunicate request_size=4 [12:22:28]MH_SAM_APDU [12:22:28]CAPDU: 80 11 00 00 [12:22:28]Write to MH i2c: E2 08 00 8C 3D 80 11 00 00 00 00 00 00 43 [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 17 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 17 00 8C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 95 [12:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:22:28]wFMCommunicate OK [12:22:28]CreateOFDProtocolMessage done [12:22:28]OFDSenderStorePacket 22355 [12:22:28]StoreOFDPacket docnum=22355 [12:22:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 3C 01 00 00 55 95 34 01 DE F0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 90 2A 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 53 57 00 00 35 04 06 00 2A 9B D4 A5 18 23 7D EE 9E 65 CD 46 3A A0 [12:22:28]CheckFolder [12:22:28]dirname=/storage/ofd_packets [12:22:28]CheckFolder done [12:22:28]ProducePacketName [12:22:28]name=ofd_packets/00022355 [12:22:28]NVStorageSaveData ofd_packets/00022355 [12:22:28]File name is /storage/ofd_packets/00022355 [12:22:28]Write 346 bytes [12:22:28]NVStorageSaveData done [12:22:28]OFDSenderStorePacket done [12:22:28]KKMCreateOFDPacket done [12:22:28]NVStorageSaveData kkm_last_timestamp [12:22:28]File name is /storage/kkm_last_timestamp [12:22:28]Write 4 bytes [12:22:28]NVStorageSaveData done [12:22:28]ExternCall_PrintAddStr [12:22:28]wPrintStart [12:22:28]Write to MH i2c: 01 00 00 8D 3D CA [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: 01 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: 01 07 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: 01 07 00 8D 3D 00 00 00 00 00 FF 0F DF [12:22:28]RasterBufferAndPrint [12:22:28]line Счет N : (3)254564 [12:22:28]line ИНН: 02508201610067 [12:22:28]line Контрольно-Кассовый Чек [12:22:28]line ПРОДАЖА [12:22:28]line Товар: 4870002329951 [12:22:28]line Напиток Lipton IceTea 1л зел чай Regular [12:22:28]line 1.000 * 110.00 [12:22:28]line = 110.00 [12:22:28]line НДС 12% НСП 1% [12:22:28]line > о реализуемом товаре [12:22:28]line ИТОГО: 110.00 [12:22:28]line НСП 1% : 0.97 [12:22:28]line НДС 12% : 11.68 [12:22:28]line Наличными: 110.00 [12:22:28]line Безнал.: 0.00 [12:22:28]line Место: АЗС № 76 "Партнер Нефть" [12:22:28]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [12:22:28]line СНО: Общий режим [12:22:28]line Чек 36 17.06.2024 12:22 [12:22:28]line Смена: 328 ФФД: 1.0 [12:22:28]line ЗНМ: 0300000200 [12:22:28]line РНМ: 0000000000099755 [12:22:28]line Версия ККМ: 001 [12:22:28]line ФМ: 0000000000965344 [12:22:28]line ФД: 22355 [12:22:28]line ФПД: 46848775886883 [12:22:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T122240&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22355&fm=46848775886883&tin=02508201610067®Number=0000000000099755&sum=11000 [12:22:28]line 0 [12:22:28]OFD Sender: Processing packet 22355 [packets to send 5, broken 4] [12:22:28]ProducePacketName [12:22:28]name=ofd_packets/00022355 [12:22:28]OFD Sender: To server: pG, [12:22:28]CommunicateWithHost lk.salyk.kg:30040 [12:22:28]ConnectInit lk.salyk.kg [12:22:28]written 0, free lines is 4095 [12:22:28]Connected sock=10 [12:22:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 3C 01 00 00 55 95 34 01 DE F0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 90 2A 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 53 57 00 00 35 04 06 00 2A 9B D4 A5 18 23 7D EE 9E 65 CD 46 3A A0 [12:22:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 FD F4 47 00 8D 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 39 36 35 33 34 34 10 04 04 00 53 57 00 00 F4 03 04 00 47 D3 6F 66 B6 04 01 00 00 A5 7F 07 34 0C CB 01 02 [12:22:28]CommunicateWithHost err = 0 [12:22:28]CheckOFDResponse [12:22:28]1017 (14) - 77093643461234 [12:22:28]1041 (16) - 0000000000965344 [12:22:28]1040 (4) - 22355 [12:22:28]1012 (4) - 17.06.2024 06:10 [12:22:28]1206 (1) - 0 [12:22:28]OFD Sender: Remove packet 22355 [12:22:28]ProducePacketName [12:22:28]name=ofd_packets/00022355 [12:22:28]NVStorageDeleteData [12:22:29]Write to MH i2c: 01 00 00 B6 3D F3 [12:22:29]Write i2c OK [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: 01 [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: 01 07 00 [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: 01 07 00 B6 3D 00 00 00 00 00 01 0D 08 [12:22:29]RasterBufferAndPrint [12:22:29]line [12:22:29]line [12:22:29]line [12:22:29]line [12:22:29]line [12:22:29]written 0, free lines is 3338 [12:22:29]MH_Cut [12:22:29]Write to MH i2c: D1 01 00 BD 3D 01 CC [12:22:29]Write i2c OK [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: D1 [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: D1 01 00 [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: D1 01 00 BD 3D 00 CB [12:22:29]Write to MH i2c: 01 00 00 BE 3D FB [12:22:29]Write i2c OK [12:22:29]MH_I2C_Read... [12:22:29]OFD Sender: No OFD packet to send [12:22:29]*** Cut start [12:22:29]*** Partial cut [12:22:29]*** CUTSNS_PIN = 1 [12:22:29]*** CUTSNS_PIN = 0 [12:22:30]*** Brake cut motor [12:22:30]Read from MH i2c: 01 [12:22:30]MH_I2C_Read... [12:22:30]*** Stop cut motor [12:22:30]*** Cut end [12:22:30]Read from MH i2c: 01 07 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: 01 07 00 BE 3D 00 00 00 00 00 FF 0F 10 [12:22:30]process_action close_receipt done [12:22:30]requested_data is exist [12:22:30]produce_requested_data [12:22:30]requested_item fm.sn is exist - process it [12:22:30]wFMCommunicate request_size=4 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 11 00 00 [12:22:30]Write to MH i2c: E2 08 00 BF 3D 80 11 00 00 00 00 00 00 76 [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 17 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 17 00 BF 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 C8 [12:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:22:30]wFMCommunicate OK [12:22:30]requested_item fd.num is exist - process it [12:22:30]SAM_PROTO_GetFieldsCounters [12:22:30]wFMCommunicate request_size=4 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 13 00 00 [12:22:30]Write to MH i2c: E2 08 00 C0 3D 80 13 00 00 00 00 00 00 79 [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 62 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 62 00 C0 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 53 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [12:22:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 53 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:30]wFMCommunicate OK [12:22:30]SAM_PROTO_GetFieldsCounters done [12:22:30]requested_item shift.num is exist - process it [12:22:30]requested_item shift.opened is exist - process it [12:22:30]req_shift_opened [12:22:30]FM_GetShiftState [12:22:30]SAM_PROTO_GetShiftState [12:22:30]wFMCommunicate request_size=4 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 13 01 00 [12:22:30]Write to MH i2c: E2 08 00 C1 3D 80 13 01 00 00 00 00 00 7B [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 0E 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 0E 00 C1 3D 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 2D [12:22:30]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [12:22:30]wFMCommunicate OK [12:22:30]SAM_PROTO_GetShiftState done [12:22:30]FM_GetShiftState done [12:22:30]req_shift_opened done [12:22:30]requested_item shift.open_date is exist - process it [12:22:30]req_shift_open_date [12:22:30]req_shift_open_date done [12:22:30]produce_requested_data done [12:22:30]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22355,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [12:22:30]process_action_free close_receipt [12:22:30]json_value_free [12:22:30]json_value_free done [12:22:30]process_json_proto returns [12:22:30]Send response to host [12:22:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22355,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [12:22:30]free response buf [12:22:30]execute_script done [12:22:30]execute_script returns [12:22:30]free content buf [12:22:30]Sock 8.Close socket [12:22:30]Sock 8.Thread stoped [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:36:59]accept exits with 9 [12:36:59]New connection [12:36:59]New thread 3066838372 created [12:36:59]Thread 3066695012 joined [12:36:59]Waiting for new connection... [12:36:59] Sock 9.Parse request [12:36:59]Sock 9.Check first char [12:36:59]Sock 9.First char is OK [12:36:59]request: POST /json_proto HTTP/1.0 [12:36:59]Method: POST [12:36:59]URL: /json_proto [12:36:59]Method is POST - this is cgi request [12:36:59]url: /json_proto [12:36:59]query_string will be loaded in cgi processing [12:36:59]execute_cgi json_proto POST (null) [12:36:59]execute_cgi path=json_proto method=POST [12:36:59]POST find Content-Length [12:36:59]Host: 172.17.35.133:8080 [12:36:59]Content-Length: 698 [12:36:59]Content-Type: application/json [12:36:59] [12:36:59]POST finish read [12:36:59]Found Content-Length = 698 [12:36:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254565", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:59]execute_script... [12:36:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254565", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:59]POST & json_proto [12:36:59]process_json_proto [12:36:59]json parsed OK: [12:36:59]protocol is kg_v1.0 [12:36:59]action value=close_receipt [12:36:59]process_action close_receipt [12:36:59]cmd_close_receipt [12:36:59]MH_GetDate [12:36:59]Write to MH i2c: F0 00 00 C2 3D EE [12:36:59]Write i2c OK [12:36:59]MH_I2C_Read... [12:36:59]Read from MH i2c: F0 [12:36:59]MH_I2C_Read... [12:36:59]Read from MH i2c: F0 09 00 [12:36:59]MH_I2C_Read... [12:36:59]Read from MH i2c: F0 09 00 C2 3D 00 F9 2D 70 66 8C 55 28 65 61 [12:36:59]GetLastDocTimeStamp 1718626960 [12:36:59]current date 1718627833 [12:36:59]FM_GetShiftState [12:36:59]SAM_PROTO_GetShiftState [12:36:59]wFMCommunicate request_size=4 [12:36:59]MH_SAM_APDU [12:36:59]CAPDU: 80 13 01 00 [12:36:59]Write to MH i2c: E2 08 00 C3 3D 80 13 01 00 00 00 00 00 7D [12:36:59]Write i2c OK [12:36:59]MH_I2C_Read... [12:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:59]Read from MH i2c: E2 [12:36:59]MH_I2C_Read... [12:36:59]Read from MH i2c: E2 0E 00 [12:36:59]MH_I2C_Read... [12:36:59]Read from MH i2c: E2 0E 00 C3 3D 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 2F [12:36:59]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [12:36:59]wFMCommunicate OK [12:36:59]SAM_PROTO_GetShiftState done [12:36:59]FM_GetShiftState done [12:36:59]opened in 1718583887 [12:36:59]opened+sec_in_day 1718670287 [12:36:59]quantity*price = 10000 [12:36:59]sum+1 = 10001 [12:36:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 37 17.06.2024 12:37 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22356 ФПД: 242774046508482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T123713&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22356&fm=242774046508482&tin=02508201610067®Number=0000000000099755&sum=10000 0 [12:37:00]StoreToDocumentArchive [12:37:00]shift 328 fd 22356 [12:37:00]save to /storage/0328/doc_00022356 [12:37:00]save last doc name /storage/0328/doc_00022356 to /storage/kkm_last_doc_name [12:37:00]save OK [12:37:00]Clear old archive folders... [12:37:00]ProcessDocumentItem done err = 0, tmpTLVsize=298 [12:37:00]tlvbuf is 001E5080 [12:37:00]SAM_PROTO_ClearQueue [12:37:00]wFMCommunicate request_size=4 [12:37:00]MH_SAM_APDU [12:37:00]CAPDU: 80 09 00 00 [12:37:00]Write to MH i2c: E2 08 00 D0 3D 80 09 00 00 00 00 00 00 7F [12:37:00]Write i2c OK [12:37:00]MH_I2C_Read... [12:37:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:00]Read from MH i2c: E2 [12:37:00]MH_I2C_Read... [12:37:00]Read from MH i2c: E2 03 00 [12:37:00]MH_I2C_Read... [12:37:00]Read from MH i2c: E2 03 00 D0 3D 00 90 00 81 [12:37:00]RAPDU: 90 00 [12:37:00]wFMCommunicate OK [12:37:00]SAM_PROTO_ClearQueue done [12:37:00]KKMCreateOFDPacket [12:37:00]OFDProtocolAddRootSTLVToBuf [12:37:00]FM_MakeSignedData [12:37:00]FM_MakeSignedData [12:37:00]SAM_PROTO_SignData [12:37:00]wFMCommunicate request_size=4 [12:37:00]MH_SAM_APDU [12:37:00]CAPDU: 80 0D 01 02 [12:37:00]Write to MH i2c: E2 08 00 D1 3D 80 0D 01 02 00 00 00 00 87 [12:37:00]Write i2c OK [12:37:00]MH_I2C_Read... [12:37:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:00]Read from MH i2c: E2 [12:37:00]MH_I2C_Read... [12:37:00]Read from MH i2c: E2 03 00 [12:37:00]MH_I2C_Read... [12:37:00]Read from MH i2c: E2 03 00 D1 3D 00 90 00 82 [12:37:00]RAPDU: 90 00 [12:37:00]wFMCommunicate OK [12:37:00]wFMCommunicate request_size=255 [12:37:00]MH_SAM_APDU [12:37:00]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F9 2D 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [12:37:00]Write to MH i2c: E2 02 01 D2 3D 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F9 2D 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 5A [12:37:00]Write i2c OK [12:37:00]MH_I2C_Read... [12:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:01]Read from MH i2c: E2 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: E2 03 00 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: E2 03 00 D2 3D 00 90 00 83 [12:37:01]RAPDU: 90 00 [12:37:01]wFMCommunicate OK [12:37:01]wFMCommunicate request_size=57 [12:37:01]MH_SAM_APDU [12:37:01]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 54 57 00 00 35 04 06 00 DC CD 3C CD 85 C2 [12:37:01]Write to MH i2c: E2 3C 00 D3 3D 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 54 57 00 00 35 04 06 00 DC CD 3C CD 85 C2 00 00 F4 [12:37:01]Write i2c OK [12:37:01]MH_I2C_Read... [12:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:01]Read from MH i2c: E2 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: E2 03 00 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: E2 03 00 D3 3D 00 90 00 84 [12:37:01]RAPDU: 90 00 [12:37:01]wFMCommunicate OK [12:37:01]wFMCommunicate request_size=4 [12:37:01]MH_SAM_APDU [12:37:01]CAPDU: 80 0D 03 02 [12:37:01]Write to MH i2c: E2 08 00 D4 3D 80 0D 03 02 00 00 00 00 8C [12:37:01]Write i2c OK [12:37:01]MH_I2C_Read... [12:37:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:01]Read from MH i2c: E2 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: E2 0B 00 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: E2 0B 00 D4 3D 00 86 D8 58 9E 80 1F 68 9A 90 00 82 [12:37:01]RAPDU: 86 D8 58 9E 80 1F 68 9A 90 00 [12:37:01]wFMCommunicate OK [12:37:01]SAM_PROTO_SignData done [12:37:01]FM_MakeSignedData done [12:37:01]CreateOFDProtocolMessage [12:37:01]wFMCommunicate request_size=4 [12:37:01]MH_SAM_APDU [12:37:01]CAPDU: 80 11 00 00 [12:37:01]Write to MH i2c: E2 08 00 D5 3D 80 11 00 00 00 00 00 00 8C [12:37:01]Write i2c OK [12:37:01]MH_I2C_Read... [12:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:01]Read from MH i2c: E2 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: E2 17 00 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: E2 17 00 D5 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 DE [12:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:37:01]wFMCommunicate OK [12:37:01]CreateOFDProtocolMessage done [12:37:01]OFDSenderStorePacket 22356 [12:37:01]StoreOFDPacket docnum=22356 [12:37:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 3E 01 00 00 70 A0 36 01 01 76 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F9 2D 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 54 57 00 00 35 04 06 00 DC CD 3C CD 85 C2 86 D8 58 9E 80 1F 68 9A [12:37:01]CheckFolder [12:37:01]dirname=/storage/ofd_packets [12:37:01]CheckFolder done [12:37:01]ProducePacketName [12:37:01]name=ofd_packets/00022356 [12:37:01]NVStorageSaveData ofd_packets/00022356 [12:37:01]File name is /storage/ofd_packets/00022356 [12:37:01]Write 348 bytes [12:37:01]NVStorageSaveData done [12:37:01]OFDSenderStorePacket done [12:37:01]KKMCreateOFDPacket done [12:37:01]NVStorageSaveData kkm_last_timestamp [12:37:01]File name is /storage/kkm_last_timestamp [12:37:01]Write 4 bytes [12:37:01]NVStorageSaveData done [12:37:01]ExternCall_PrintAddStr [12:37:01]wPrintStart [12:37:01]Write to MH i2c: 01 00 00 D6 3D 13 [12:37:01]Write i2c OK [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: 01 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: 01 07 00 [12:37:01]MH_I2C_Read... [12:37:01]Read from MH i2c: 01 07 00 D6 3D 00 00 00 00 00 FF 0F 28 [12:37:01]RasterBufferAndPrint [12:37:01]line Счет N : (3)254565 [12:37:01]line ИНН: 02508201610067 [12:37:01]line Контрольно-Кассовый Чек [12:37:01]line ПРОДАЖА [12:37:01]line Товар: 4870001571528 [12:37:01]line Вода ASU пит н.газ персик ПЭТ 1,0 л [12:37:01]line 1.000 * 100.00 [12:37:01]line = 100.00 [12:37:01]line НДС 12% НСП 1% [12:37:01]line > о реализуемом товаре [12:37:01]line ИТОГО: 100.00 [12:37:01]line НСП 1% : 0.88 [12:37:01]line НДС 12% : 10.62 [12:37:01]line Наличными: 100.00 [12:37:01]line Безнал.: 0.00 [12:37:01]line Место: АЗС № 76 "Партнер Нефть" [12:37:01]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [12:37:01]line СНО: Общий режим [12:37:01]line Чек 37 17.06.2024 12:37 [12:37:01]line Смена: 328 ФФД: 1.0 [12:37:01]line ЗНМ: 0300000200 [12:37:01]line РНМ: 0000000000099755 [12:37:01]line Версия ККМ: 001 [12:37:01]line ФМ: 0000000000965344 [12:37:01]line ФД: 22356 [12:37:01]line ФПД: 242774046508482 [12:37:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T123713&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22356&fm=242774046508482&tin=02508201610067®Number=0000000000099755&sum=10000 [12:37:01]line 0 [12:37:01]OFD Sender: Processing packet 22356 [packets to send 5, broken 4] [12:37:01]ProducePacketName [12:37:01]name=ofd_packets/00022356 [12:37:01]OFD Sender: To server: pG, [12:37:01]CommunicateWithHost lk.salyk.kg:30040 [12:37:01]ConnectInit lk.salyk.kg [12:37:01]written 0, free lines is 4095 [12:37:01]Connected sock=10 [12:37:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 3E 01 00 00 70 A0 36 01 01 76 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F9 2D 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 54 57 00 00 35 04 06 00 DC CD 3C CD 85 C2 86 D8 58 9E 80 1F 68 9A [12:37:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 EE 00 47 00 28 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 39 36 35 33 34 34 10 04 04 00 54 57 00 00 F4 03 04 00 B0 D6 6F 66 B6 04 01 00 00 CB 2E 47 9A BB 7F 73 24 [12:37:02]CommunicateWithHost err = 0 [12:37:02]CheckOFDResponse [12:37:02]1017 (14) - 77093643461234 [12:37:02]1041 (16) - 0000000000965344 [12:37:02]1040 (4) - 22356 [12:37:02]1012 (4) - 17.06.2024 06:24 [12:37:02]1206 (1) - 0 [12:37:02]OFD Sender: Remove packet 22356 [12:37:02]ProducePacketName [12:37:02]name=ofd_packets/00022356 [12:37:02]NVStorageDeleteData [12:37:02]Write to MH i2c: 01 00 00 FF 3D 3C [12:37:02]Write i2c OK [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: 01 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: 01 07 00 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: 01 07 00 FF 3D 00 00 00 00 00 04 0D 54 [12:37:02]RasterBufferAndPrint [12:37:02]line [12:37:02]line [12:37:02]line [12:37:02]line [12:37:02]line [12:37:02]written 0, free lines is 3340 [12:37:02]MH_Cut [12:37:02]Write to MH i2c: D1 01 00 06 3E 01 16 [12:37:02]Write i2c OK [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: D1 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: D1 01 00 [12:37:02]MH_I2C_Read... [12:37:02]Read from MH i2c: D1 01 00 06 3E 00 15 [12:37:02]Write to MH i2c: 01 00 00 07 3E 45 [12:37:02]Write i2c OK [12:37:02]MH_I2C_Read... [12:37:02]OFD Sender: No OFD packet to send [12:37:02]*** Cut start [12:37:02]*** Partial cut [12:37:02]*** CUTSNS_PIN = 1 [12:37:02]*** CUTSNS_PIN = 0 [12:37:03]*** Brake cut motor [12:37:03]Read from MH i2c: 01 [12:37:03]MH_I2C_Read... [12:37:03]*** Stop cut motor [12:37:03]*** Cut end [12:37:03]Read from MH i2c: 01 07 00 [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: 01 07 00 07 3E 00 00 00 00 00 FF 0F 5A [12:37:03]process_action close_receipt done [12:37:03]requested_data is exist [12:37:03]produce_requested_data [12:37:03]requested_item fm.sn is exist - process it [12:37:03]wFMCommunicate request_size=4 [12:37:03]MH_SAM_APDU [12:37:03]CAPDU: 80 11 00 00 [12:37:03]Write to MH i2c: E2 08 00 08 3E 80 11 00 00 00 00 00 00 C0 [12:37:03]Write i2c OK [12:37:03]MH_I2C_Read... [12:37:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:03]Read from MH i2c: E2 [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: E2 17 00 [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: E2 17 00 08 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 12 [12:37:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:37:03]wFMCommunicate OK [12:37:03]requested_item fd.num is exist - process it [12:37:03]SAM_PROTO_GetFieldsCounters [12:37:03]wFMCommunicate request_size=4 [12:37:03]MH_SAM_APDU [12:37:03]CAPDU: 80 13 00 00 [12:37:03]Write to MH i2c: E2 08 00 09 3E 80 13 00 00 00 00 00 00 C3 [12:37:03]Write i2c OK [12:37:03]MH_I2C_Read... [12:37:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:03]Read from MH i2c: E2 [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: E2 62 00 [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: E2 62 00 09 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 54 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [12:37:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 54 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:03]wFMCommunicate OK [12:37:03]SAM_PROTO_GetFieldsCounters done [12:37:03]requested_item shift.num is exist - process it [12:37:03]requested_item shift.opened is exist - process it [12:37:03]req_shift_opened [12:37:03]FM_GetShiftState [12:37:03]SAM_PROTO_GetShiftState [12:37:03]wFMCommunicate request_size=4 [12:37:03]MH_SAM_APDU [12:37:03]CAPDU: 80 13 01 00 [12:37:03]Write to MH i2c: E2 08 00 0A 3E 80 13 01 00 00 00 00 00 C5 [12:37:03]Write i2c OK [12:37:03]MH_I2C_Read... [12:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:03]Read from MH i2c: E2 [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: E2 0E 00 [12:37:03]MH_I2C_Read... [12:37:03]Read from MH i2c: E2 0E 00 0A 3E 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 77 [12:37:03]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [12:37:03]wFMCommunicate OK [12:37:03]SAM_PROTO_GetShiftState done [12:37:03]FM_GetShiftState done [12:37:03]req_shift_opened done [12:37:03]requested_item shift.open_date is exist - process it [12:37:03]req_shift_open_date [12:37:03]req_shift_open_date done [12:37:03]produce_requested_data done [12:37:03]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22356,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [12:37:03]process_action_free close_receipt [12:37:03]json_value_free [12:37:03]json_value_free done [12:37:03]process_json_proto returns [12:37:03]Send response to host [12:37:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22356,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [12:37:03]free response buf [12:37:03]execute_script done [12:37:03]execute_script returns [12:37:03]free content buf [12:37:03]Sock 9.Close socket [12:37:03]Sock 9.Thread stoped [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:33]accept exits with 8 [12:46:33]New connection [12:46:33]New thread 3066695012 created [12:46:33]Thread 3066838372 joined [12:46:33]Waiting for new connection... [12:46:33] Sock 8.Parse request [12:46:33]Sock 8.Check first char [12:46:33]Sock 8.First char is OK [12:46:33]request: POST /json_proto HTTP/1.0 [12:46:33]Method: POST [12:46:33]URL: /json_proto [12:46:33]Method is POST - this is cgi request [12:46:33]url: /json_proto [12:46:33]query_string will be loaded in cgi processing [12:46:33]execute_cgi json_proto POST (null) [12:46:33]execute_cgi path=json_proto method=POST [12:46:33]POST find Content-Length [12:46:33]Host: 172.17.35.133:8080 [12:46:33]Content-Length: 1475 [12:46:33]Content-Type: application/json [12:46:33] [12:46:33]POST finish read [12:46:33]Found Content-Length = 1475 [12:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254566", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:33]execute_script... [12:46:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254566", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:33]POST & json_proto [12:46:33]process_json_proto [12:46:33]json parsed OK: [12:46:33]protocol is kg_v1.0 [12:46:33]action value=close_receipt [12:46:33]process_action close_receipt [12:46:33]cmd_close_receipt [12:46:33]MH_GetDate [12:46:33]Write to MH i2c: F0 00 00 0B 3E 38 [12:46:33]Write i2c OK [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: F0 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: F0 09 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: F0 09 00 0B 3E 00 36 30 70 66 8C 55 28 65 EB [12:46:33]GetLastDocTimeStamp 1718627833 [12:46:33]current date 1718628406 [12:46:33]FM_GetShiftState [12:46:33]SAM_PROTO_GetShiftState [12:46:33]wFMCommunicate request_size=4 [12:46:33]MH_SAM_APDU [12:46:33]CAPDU: 80 13 01 00 [12:46:33]Write to MH i2c: E2 08 00 0C 3E 80 13 01 00 00 00 00 00 C7 [12:46:33]Write i2c OK [12:46:33]MH_I2C_Read... [12:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:33]Read from MH i2c: E2 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 0E 00 [12:46:33]MH_I2C_Read... [12:46:33]Read from MH i2c: E2 0E 00 0C 3E 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 79 [12:46:33]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [12:46:33]wFMCommunicate OK [12:46:33]SAM_PROTO_GetShiftState done [12:46:33]FM_GetShiftState done [12:46:33]opened in 1718583887 [12:46:33]opened+sec_in_day 1718670287 [12:46:33]quantity*price = 7500 [12:46:33]sum+1 = 7501 [12:46:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001571535 Вода ASU пит н.газ персик ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.33 НДС 12% : 28.13 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 38 17.06.2024 12:46 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22357 ФПД: 12024034211859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T124647&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22357&fm=12024034211859&tin=02508201610067®Number=0000000000099755&sum=26500 0 [12:46:34]StoreToDocumentArchive [12:46:34]shift 328 fd 22357 [12:46:34]save to /storage/0328/doc_00022357 [12:46:34]save last doc name /storage/0328/doc_00022357 to /storage/kkm_last_doc_name [12:46:34]save OK [12:46:34]Clear old archive folders... [12:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=613 [12:46:34]tlvbuf is 00285E60 [12:46:34]SAM_PROTO_ClearQueue [12:46:34]wFMCommunicate request_size=4 [12:46:34]MH_SAM_APDU [12:46:34]CAPDU: 80 09 00 00 [12:46:34]Write to MH i2c: E2 08 00 19 3E 80 09 00 00 00 00 00 00 C9 [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:34]Read from MH i2c: E2 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 03 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 03 00 19 3E 00 90 00 CB [12:46:34]RAPDU: 90 00 [12:46:34]wFMCommunicate OK [12:46:34]SAM_PROTO_ClearQueue done [12:46:34]KKMCreateOFDPacket [12:46:34]OFDProtocolAddRootSTLVToBuf [12:46:34]FM_MakeSignedData [12:46:34]FM_MakeSignedData [12:46:34]SAM_PROTO_SignData [12:46:34]wFMCommunicate request_size=4 [12:46:34]MH_SAM_APDU [12:46:34]CAPDU: 80 0D 01 02 [12:46:34]Write to MH i2c: E2 08 00 1A 3E 80 0D 01 02 00 00 00 00 D1 [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:34]Read from MH i2c: E2 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 03 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 03 00 1A 3E 00 90 00 CC [12:46:34]RAPDU: 90 00 [12:46:34]wFMCommunicate OK [12:46:34]wFMCommunicate request_size=255 [12:46:34]MH_SAM_APDU [12:46:34]CAPDU: 80 0D 02 02 FA 03 00 65 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 [12:46:34]Write to MH i2c: E2 02 01 1B 3E 80 0D 02 02 FA 00 03 00 65 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 00 00 6A [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 1B 3E 00 90 00 CD [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]wFMCommunicate request_size=255 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 0D 02 02 FA D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0A [12:46:35]Write to MH i2c: E2 02 01 1C 3E 80 0D 02 02 FA 00 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0A 00 00 DD [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 1C 3E 00 90 00 CE [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]wFMCommunicate request_size=122 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 0D 02 02 75 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 37 30 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 55 57 00 00 35 04 06 00 0A EF 90 49 B8 13 [12:46:35]Write to MH i2c: E2 7D 00 1D 3E 80 0D 02 02 75 00 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 37 30 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 55 57 00 00 35 04 06 00 0A EF 90 49 B8 13 00 00 E2 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 1D 3E 00 90 00 CF [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 0D 03 02 [12:46:35]Write to MH i2c: E2 08 00 1E 3E 80 0D 03 02 00 00 00 00 D7 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 0B 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 0B 00 1E 3E 00 2B D2 C0 7F CA 33 BA CF 90 00 9A [12:46:35]RAPDU: 2B D2 C0 7F CA 33 BA CF 90 00 [12:46:35]wFMCommunicate OK [12:46:35]SAM_PROTO_SignData done [12:46:35]FM_MakeSignedData done [12:46:35]CreateOFDProtocolMessage [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 11 00 00 [12:46:35]Write to MH i2c: E2 08 00 1F 3E 80 11 00 00 00 00 00 00 D7 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 17 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 17 00 1F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 29 [12:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:46:35]wFMCommunicate OK [12:46:35]CreateOFDProtocolMessage done [12:46:35]OFDSenderStorePacket 22357 [12:46:35]StoreOFDPacket docnum=22357 [12:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 79 02 00 00 91 00 71 02 2B 47 5A 03 01 00 03 00 65 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 37 30 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 55 57 00 00 35 04 06 00 0A EF 90 49 B8 13 2B D2 C0 7F CA 33 BA CF [12:46:35]CheckFolder [12:46:35]dirname=/storage/ofd_packets [12:46:35]CheckFolder done [12:46:35]ProducePacketName [12:46:35]name=ofd_packets/00022357 [12:46:35]NVStorageSaveData ofd_packets/00022357 [12:46:35]File name is /storage/ofd_packets/00022357 [12:46:35]Write 663 bytes [12:46:35]NVStorageSaveData done [12:46:35]OFDSenderStorePacket done [12:46:35]KKMCreateOFDPacket done [12:46:35]NVStorageSaveData kkm_last_timestamp [12:46:35]File name is /storage/kkm_last_timestamp [12:46:35]Write 4 bytes [12:46:35]NVStorageSaveData done [12:46:35]ExternCall_PrintAddStr [12:46:35]wPrintStart [12:46:35]Write to MH i2c: 01 00 00 20 3E 5E [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 07 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: 01 07 00 20 3E 00 00 00 00 00 FF 0F 73 [12:46:35]RasterBufferAndPrint [12:46:35]line Счет N : (3)254566 [12:46:35]line ИНН: 02508201610067 [12:46:35]line Контрольно-Кассовый Чек [12:46:35]line ПРОДАЖА [12:46:35]line Товар: 2000034730018 [12:46:35]line Кофе Американо (GABB TRADE) [12:46:35]line 1.000 * 75.00 [12:46:35]line = 75.00 [12:46:35]line НДС 12% НСП 1% [12:46:35]line > о реализуемом товаре [12:46:35]line Товар: 4700000160358 [12:46:35]line Вода Легенда 1л [12:46:35]line 1.000 * 50.00 [12:46:35]line = 50.00 [12:46:35]line НДС 12% НСП 1% [12:46:35]line > о реализуемом товаре [12:46:35]line Товар: 54491472 [12:46:35]line Напиток Кока-Кола 0,5л [12:46:35]line 1.000 * 75.00 [12:46:35]line = 75.00 [12:46:35]line НДС 12% НСП 1% [12:46:35]line > о реализуемом товаре [12:46:35]line Товар: 4870001571535 [12:46:35]line Вода ASU пит н.газ персик ПЭТ 0,5л [12:46:35]line 1.000 * 65.00 [12:46:35]line = 65.00 [12:46:35]line НДС 12% НСП 1% [12:46:35]line > о реализуемом товаре [12:46:35]line ИТОГО: 265.00 [12:46:35]line НСП 1% : 2.33 [12:46:35]line НДС 12% : 28.13 [12:46:35]line Наличными: 265.00 [12:46:35]line Безнал.: 0.00 [12:46:35]line Место: АЗС № 76 "Партнер Нефть" [12:46:35]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [12:46:35]line СНО: Общий режим [12:46:35]line Чек 38 17.06.2024 12:46 [12:46:35]line Смена: 328 ФФД: 1.0 [12:46:35]line ЗНМ: 0300000200 [12:46:35]line РНМ: 0000000000099755 [12:46:35]line Версия ККМ: 001 [12:46:35]line ФМ: 0000000000965344 [12:46:35]line ФД: 22357 [12:46:35]line ФПД: 12024034211859 [12:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T124647&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22357&fm=12024034211859&tin=02508201610067®Number=0000000000099755&sum=26500 [12:46:35]OFD Sender: Processing packet 22357 [packets to send 5, broken 4] [12:46:35]ProducePacketName [12:46:35]name=ofd_packets/00022357 [12:46:35]OFD Sender: To server: pG, [12:46:35]CommunicateWithHost lk.salyk.kg:30040 [12:46:35]ConnectInit lk.salyk.kg [12:46:35]line 0 [12:46:35]written 0, free lines is 4095 [12:46:35]Connected sock=10 [12:46:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 79 02 00 00 91 00 71 02 2B 47 5A 03 01 00 03 00 65 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 37 30 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 55 57 00 00 35 04 06 00 0A EF 90 49 B8 13 2B D2 C0 7F CA 33 BA CF [12:46:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 AB CE 47 00 9A 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 39 36 35 33 34 34 10 04 04 00 55 57 00 00 F4 03 04 00 EE D8 6F 66 B6 04 01 00 00 B2 0A 43 79 A0 0E 82 1C [12:46:36]CommunicateWithHost err = 0 [12:46:36]CheckOFDResponse [12:46:36]1017 (14) - 77093643461234 [12:46:36]1041 (16) - 0000000000965344 [12:46:36]1040 (4) - 22357 [12:46:36]1012 (4) - 17.06.2024 06:34 [12:46:36]1206 (1) - 0 [12:46:36]OFD Sender: Remove packet 22357 [12:46:36]ProducePacketName [12:46:36]name=ofd_packets/00022357 [12:46:36]NVStorageDeleteData [12:46:36]Write to MH i2c: 01 00 00 5C 3E 9A [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 07 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 07 00 5C 3E 00 00 00 00 00 22 0C CF [12:46:36]RasterBufferAndPrint [12:46:36]line [12:46:36]line [12:46:36]line [12:46:36]line [12:46:36]line [12:46:36]written 0, free lines is 3117 [12:46:36]MH_Cut [12:46:36]Write to MH i2c: D1 01 00 63 3E 01 73 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: D1 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: D1 01 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: D1 01 00 63 3E 00 72 [12:46:36]Write to MH i2c: 01 00 00 64 3E A2 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]OFD Sender: No OFD packet to send [12:46:37]*** Cut start [12:46:37]*** Partial cut [12:46:37]*** CUTSNS_PIN = 1 [12:46:37]*** CUTSNS_PIN = 0 [12:46:37]*** Brake cut motor [12:46:37]Read from MH i2c: 01 [12:46:37]MH_I2C_Read... [12:46:37]*** Stop cut motor [12:46:38]*** Cut end [12:46:38]Read from MH i2c: 01 07 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: 01 07 00 64 3E 00 00 00 00 00 FF 0F B7 [12:46:38]process_action close_receipt done [12:46:38]requested_data is exist [12:46:38]produce_requested_data [12:46:38]requested_item fm.sn is exist - process it [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 11 00 00 [12:46:38]Write to MH i2c: E2 08 00 65 3E 80 11 00 00 00 00 00 00 1D [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 17 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 17 00 65 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 6F [12:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:46:38]wFMCommunicate OK [12:46:38]requested_item fd.num is exist - process it [12:46:38]SAM_PROTO_GetFieldsCounters [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 13 00 00 [12:46:38]Write to MH i2c: E2 08 00 66 3E 80 13 00 00 00 00 00 00 20 [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 62 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 62 00 66 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 55 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [12:46:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 55 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:38]wFMCommunicate OK [12:46:38]SAM_PROTO_GetFieldsCounters done [12:46:38]requested_item shift.num is exist - process it [12:46:38]requested_item shift.opened is exist - process it [12:46:38]req_shift_opened [12:46:38]FM_GetShiftState [12:46:38]SAM_PROTO_GetShiftState [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 13 01 00 [12:46:38]Write to MH i2c: E2 08 00 67 3E 80 13 01 00 00 00 00 00 22 [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 0E 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 0E 00 67 3E 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 D4 [12:46:38]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [12:46:38]wFMCommunicate OK [12:46:38]SAM_PROTO_GetShiftState done [12:46:38]FM_GetShiftState done [12:46:38]req_shift_opened done [12:46:38]requested_item shift.open_date is exist - process it [12:46:38]req_shift_open_date [12:46:38]req_shift_open_date done [12:46:38]produce_requested_data done [12:46:38]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22357,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [12:46:38]process_action_free close_receipt [12:46:38]json_value_free [12:46:38]json_value_free done [12:46:38]process_json_proto returns [12:46:38]Send response to host [12:46:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22357,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [12:46:38]free response buf [12:46:38]execute_script done [12:46:38]execute_script returns [12:46:38]free content buf [12:46:38]Sock 8.Close socket [12:46:38]Sock 8.Thread stoped [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:13]accept exits with 9 [12:48:13]New connection [12:48:13]New thread 3066838372 created [12:48:13]Thread 3066695012 joined [12:48:13]Waiting for new connection... [12:48:13] Sock 9.Parse request [12:48:13]Sock 9.Check first char [12:48:13]Sock 9.First char is OK [12:48:13]request: POST /json_proto HTTP/1.0 [12:48:13]Method: POST [12:48:13]URL: /json_proto [12:48:13]Method is POST - this is cgi request [12:48:13]url: /json_proto [12:48:13]query_string will be loaded in cgi processing [12:48:13]execute_cgi json_proto POST (null) [12:48:13]execute_cgi path=json_proto method=POST [12:48:13]POST find Content-Length [12:48:13]Host: 172.17.35.133:8080 [12:48:13]Content-Length: 701 [12:48:13]Content-Type: application/json [12:48:13] [12:48:13]POST finish read [12:48:13]Found Content-Length = 701 [12:48:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254567", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:13]execute_script... [12:48:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254567", "tax_sys" : 0, "items" : [ { "code": "4870235681079", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u043B\u0430\u0434\u043A\u0438\u0439 \u0447\u0438\u043B\u0438 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:13]POST & json_proto [12:48:13]process_json_proto [12:48:13]json parsed OK: [12:48:13]protocol is kg_v1.0 [12:48:13]action value=close_receipt [12:48:13]process_action close_receipt [12:48:13]cmd_close_receipt [12:48:13]MH_GetDate [12:48:13]Write to MH i2c: F0 00 00 68 3E 95 [12:48:13]Write i2c OK [12:48:13]MH_I2C_Read... [12:48:13]Read from MH i2c: F0 [12:48:13]MH_I2C_Read... [12:48:13]Read from MH i2c: F0 09 00 [12:48:13]MH_I2C_Read... [12:48:13]Read from MH i2c: F0 09 00 68 3E 00 9B 30 70 66 8C 55 28 65 AD [12:48:13]GetLastDocTimeStamp 1718628407 [12:48:13]current date 1718628507 [12:48:13]FM_GetShiftState [12:48:13]SAM_PROTO_GetShiftState [12:48:13]wFMCommunicate request_size=4 [12:48:13]MH_SAM_APDU [12:48:13]CAPDU: 80 13 01 00 [12:48:13]Write to MH i2c: E2 08 00 69 3E 80 13 01 00 00 00 00 00 24 [12:48:13]Write i2c OK [12:48:13]MH_I2C_Read... [12:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:13]Read from MH i2c: E2 [12:48:13]MH_I2C_Read... [12:48:13]Read from MH i2c: E2 0E 00 [12:48:13]MH_I2C_Read... [12:48:13]Read from MH i2c: E2 0E 00 69 3E 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 D6 [12:48:13]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [12:48:13]wFMCommunicate OK [12:48:13]SAM_PROTO_GetShiftState done [12:48:13]FM_GetShiftState done [12:48:13]opened in 1718583887 [12:48:13]opened+sec_in_day 1718670287 [12:48:13]quantity*price = 9000 [12:48:13]sum+1 = 9001 [12:48:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 39 17.06.2024 12:48 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22358 ФПД: 207303456773222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T124827&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22358&fm=207303456773222&tin=02508201610067®Number=0000000000099755&sum=9000 0 [12:48:14]StoreToDocumentArchive [12:48:14]shift 328 fd 22358 [12:48:14]save to /storage/0328/doc_00022358 [12:48:14]save last doc name /storage/0328/doc_00022358 to /storage/kkm_last_doc_name [12:48:14]save OK [12:48:14]Clear old archive folders... [12:48:14]ProcessDocumentItem done err = 0, tmpTLVsize=300 [12:48:14]tlvbuf is 00256A10 [12:48:14]SAM_PROTO_ClearQueue [12:48:14]wFMCommunicate request_size=4 [12:48:14]MH_SAM_APDU [12:48:14]CAPDU: 80 09 00 00 [12:48:14]Write to MH i2c: E2 08 00 76 3E 80 09 00 00 00 00 00 00 26 [12:48:14]Write i2c OK [12:48:14]MH_I2C_Read... [12:48:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:14]Read from MH i2c: E2 [12:48:14]MH_I2C_Read... [12:48:14]Read from MH i2c: E2 03 00 [12:48:14]MH_I2C_Read... [12:48:14]Read from MH i2c: E2 03 00 76 3E 00 90 00 28 [12:48:14]RAPDU: 90 00 [12:48:14]wFMCommunicate OK [12:48:14]SAM_PROTO_ClearQueue done [12:48:14]KKMCreateOFDPacket [12:48:14]OFDProtocolAddRootSTLVToBuf [12:48:14]FM_MakeSignedData [12:48:14]FM_MakeSignedData [12:48:14]SAM_PROTO_SignData [12:48:14]wFMCommunicate request_size=4 [12:48:14]MH_SAM_APDU [12:48:14]CAPDU: 80 0D 01 02 [12:48:14]Write to MH i2c: E2 08 00 77 3E 80 0D 01 02 00 00 00 00 2E [12:48:14]Write i2c OK [12:48:14]MH_I2C_Read... [12:48:14]Read from MH i2c: E2 [12:48:14]MH_I2C_Read... [12:48:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:14]Read from MH i2c: E2 03 00 [12:48:14]MH_I2C_Read... [12:48:14]Read from MH i2c: E2 03 00 77 3E 00 90 00 29 [12:48:14]RAPDU: 90 00 [12:48:14]wFMCommunicate OK [12:48:14]wFMCommunicate request_size=255 [12:48:14]MH_SAM_APDU [12:48:14]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9B 30 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 [12:48:14]Write to MH i2c: E2 02 01 78 3E 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9B 30 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 29 [12:48:14]Write i2c OK [12:48:14]MH_I2C_Read... [12:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:15]Read from MH i2c: E2 [12:48:15]MH_I2C_Read... [12:48:15]Read from MH i2c: E2 03 00 [12:48:15]MH_I2C_Read... [12:48:15]Read from MH i2c: E2 03 00 78 3E 00 90 00 2A [12:48:15]RAPDU: 90 00 [12:48:15]wFMCommunicate OK [12:48:15]wFMCommunicate request_size=59 [12:48:15]MH_SAM_APDU [12:48:15]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 56 57 00 00 35 04 06 00 BC 8A 98 E6 D4 66 [12:48:15]Write to MH i2c: E2 3E 00 79 3E 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 56 57 00 00 35 04 06 00 BC 8A 98 E6 D4 66 00 00 06 [12:48:15]Write i2c OK [12:48:15]MH_I2C_Read... [12:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:15]Read from MH i2c: E2 [12:48:15]MH_I2C_Read... [12:48:15]Read from MH i2c: E2 03 00 [12:48:15]MH_I2C_Read... [12:48:15]Read from MH i2c: E2 03 00 79 3E 00 90 00 2B [12:48:15]RAPDU: 90 00 [12:48:15]wFMCommunicate OK [12:48:15]wFMCommunicate request_size=4 [12:48:15]MH_SAM_APDU [12:48:15]CAPDU: 80 0D 03 02 [12:48:15]Write to MH i2c: E2 08 00 7A 3E 80 0D 03 02 00 00 00 00 33 [12:48:15]Write i2c OK [12:48:15]MH_I2C_Read... [12:48:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:15]Read from MH i2c: E2 [12:48:15]MH_I2C_Read... [12:48:15]Read from MH i2c: E2 0B 00 [12:48:15]MH_I2C_Read... [12:48:15]Read from MH i2c: E2 0B 00 7A 3E 00 40 9A EE FE E4 2B 1B D4 90 00 F8 [12:48:15]RAPDU: 40 9A EE FE E4 2B 1B D4 90 00 [12:48:15]wFMCommunicate OK [12:48:15]SAM_PROTO_SignData done [12:48:15]FM_MakeSignedData done [12:48:15]CreateOFDProtocolMessage [12:48:15]wFMCommunicate request_size=4 [12:48:15]MH_SAM_APDU [12:48:15]CAPDU: 80 11 00 00 [12:48:15]Write to MH i2c: E2 08 00 7B 3E 80 11 00 00 00 00 00 00 33 [12:48:15]Write i2c OK [12:48:15]MH_I2C_Read... [12:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:15]Read from MH i2c: E2 [12:48:15]MH_I2C_Read... [12:48:15]Read from MH i2c: E2 17 00 [12:48:15]MH_I2C_Read... [12:48:15]Read from MH i2c: E2 17 00 7B 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 85 [12:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:48:15]wFMCommunicate OK [12:48:15]CreateOFDProtocolMessage done [12:48:15]OFDSenderStorePacket 22358 [12:48:15]StoreOFDPacket docnum=22358 [12:48:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 40 01 00 00 09 C2 38 01 F4 1C 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9B 30 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 56 57 00 00 35 04 06 00 BC 8A 98 E6 D4 66 40 9A EE FE E4 2B 1B D4 [12:48:15]CheckFolder [12:48:15]dirname=/storage/ofd_packets [12:48:15]CheckFolder done [12:48:15]ProducePacketName [12:48:15]name=ofd_packets/00022358 [12:48:15]NVStorageSaveData ofd_packets/00022358 [12:48:15]File name is /storage/ofd_packets/00022358 [12:48:15]Write 350 bytes [12:48:15]NVStorageSaveData done [12:48:15]OFDSenderStorePacket done [12:48:15]KKMCreateOFDPacket done [12:48:15]NVStorageSaveData kkm_last_timestamp [12:48:15]File name is /storage/kkm_last_timestamp [12:48:15]Write 4 bytes [12:48:15]NVStorageSaveData done [12:48:15]ExternCall_PrintAddStr [12:48:15]wPrintStart [12:48:15]Write to MH i2c: 01 00 00 7C 3E BA [12:48:15]Write i2c OK [12:48:15]MH_I2C_Read... [12:48:15]Read from MH i2c: 01 [12:48:15]MH_I2C_Read... [12:48:15]Read from MH i2c: 01 07 00 [12:48:15]MH_I2C_Read... [12:48:15]Read from MH i2c: 01 07 00 7C 3E 00 00 00 00 00 FF 0F CF [12:48:15]RasterBufferAndPrint [12:48:15]line Счет N : (3)254567 [12:48:15]line ИНН: 02508201610067 [12:48:15]line Контрольно-Кассовый Чек [12:48:15]line ПРОДАЖА [12:48:15]line Товар: 4870235681079 [12:48:15]line Grizzly волнистые Сладкий чили 55 гр [12:48:15]line 1.000 * 90.00 [12:48:15]line = 90.00 [12:48:15]line НДС 12% НСП 1% [12:48:15]line > о реализуемом товаре [12:48:15]line ИТОГО: 90.00 [12:48:15]line НСП 1% : 0.80 [12:48:15]line НДС 12% : 9.56 [12:48:15]line Наличными: 90.00 [12:48:15]line Безнал.: 0.00 [12:48:15]line Место: АЗС № 76 "Партнер Нефть" [12:48:15]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [12:48:15]line СНО: Общий режим [12:48:15]line Чек 39 17.06.2024 12:48 [12:48:15]line Смена: 328 ФФД: 1.0 [12:48:15]line ЗНМ: 0300000200 [12:48:15]line РНМ: 0000000000099755 [12:48:15]line Версия ККМ: 001 [12:48:15]line ФМ: 0000000000965344 [12:48:15]line ФД: 22358 [12:48:15]line ФПД: 207303456773222 [12:48:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T124827&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22358&fm=207303456773222&tin=02508201610067®Number=0000000000099755&sum=9000 [12:48:15]line 0 [12:48:15]OFD Sender: Processing packet 22358 [packets to send 5, broken 4] [12:48:15]ProducePacketName [12:48:15]name=ofd_packets/00022358 [12:48:15]OFD Sender: To server: pG, [12:48:15]CommunicateWithHost lk.salyk.kg:30040 [12:48:15]ConnectInit lk.salyk.kg [12:48:15]written 0, free lines is 4095 [12:48:15]Connected sock=10 [12:48:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 40 01 00 00 09 C2 38 01 F4 1C 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 37 39 06 04 3A 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D0 BB D0 B0 D0 B4 D0 BA D0 B8 D0 B9 20 D1 87 D0 B8 D0 BB D0 B8 20 35 35 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 9B 30 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 56 57 00 00 35 04 06 00 BC 8A 98 E6 D4 66 40 9A EE FE E4 2B 1B D4 [12:48:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 8B 14 47 00 31 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 39 36 35 33 34 34 10 04 04 00 56 57 00 00 F4 03 04 00 52 D9 6F 66 B6 04 01 00 00 53 0A A9 C4 28 0D 97 40 [12:48:15]CommunicateWithHost err = 0 [12:48:15]CheckOFDResponse [12:48:15]1017 (14) - 77093643461234 [12:48:15]1041 (16) - 0000000000965344 [12:48:15]1040 (4) - 22358 [12:48:15]1012 (4) - 17.06.2024 06:36 [12:48:15]1206 (1) - 0 [12:48:15]OFD Sender: Remove packet 22358 [12:48:15]ProducePacketName [12:48:15]name=ofd_packets/00022358 [12:48:15]NVStorageDeleteData [12:48:16]Write to MH i2c: 01 00 00 A5 3E E3 [12:48:16]Write i2c OK [12:48:16]MH_I2C_Read... [12:48:16]Read from MH i2c: 01 [12:48:16]MH_I2C_Read... [12:48:16]Read from MH i2c: 01 07 00 [12:48:16]MH_I2C_Read... [12:48:16]Read from MH i2c: 01 07 00 A5 3E 00 00 00 00 00 FE 0C F4 [12:48:16]RasterBufferAndPrint [12:48:16]line [12:48:16]line [12:48:16]line [12:48:16]line [12:48:16]line [12:48:16]written 0, free lines is 3331 [12:48:16]MH_Cut [12:48:16]Write to MH i2c: D1 01 00 AC 3E 01 BC [12:48:16]Write i2c OK [12:48:16]MH_I2C_Read... [12:48:16]Read from MH i2c: D1 [12:48:16]MH_I2C_Read... [12:48:16]Read from MH i2c: D1 01 00 [12:48:16]MH_I2C_Read... [12:48:16]Read from MH i2c: D1 01 00 AC 3E 00 BB [12:48:16]Write to MH i2c: 01 00 00 AD 3E EB [12:48:16]Write i2c OK [12:48:16]MH_I2C_Read... [12:48:16]OFD Sender: No OFD packet to send [12:48:16]*** Cut start [12:48:16]*** Partial cut [12:48:16]*** CUTSNS_PIN = 1 [12:48:16]*** CUTSNS_PIN = 0 [12:48:16]*** Brake cut motor [12:48:17]Read from MH i2c: 01 [12:48:17]MH_I2C_Read... [12:48:17]*** Stop cut motor [12:48:17]*** Cut end [12:48:17]Read from MH i2c: 01 07 00 [12:48:17]MH_I2C_Read... [12:48:17]Read from MH i2c: 01 07 00 AD 3E 00 00 00 00 00 FF 0F 00 [12:48:17]process_action close_receipt done [12:48:17]requested_data is exist [12:48:17]produce_requested_data [12:48:17]requested_item fm.sn is exist - process it [12:48:17]wFMCommunicate request_size=4 [12:48:17]MH_SAM_APDU [12:48:17]CAPDU: 80 11 00 00 [12:48:17]Write to MH i2c: E2 08 00 AE 3E 80 11 00 00 00 00 00 00 66 [12:48:17]Write i2c OK [12:48:17]MH_I2C_Read... [12:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:17]Read from MH i2c: E2 [12:48:17]MH_I2C_Read... [12:48:17]Read from MH i2c: E2 17 00 [12:48:17]MH_I2C_Read... [12:48:17]Read from MH i2c: E2 17 00 AE 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 B8 [12:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:48:17]wFMCommunicate OK [12:48:17]requested_item fd.num is exist - process it [12:48:17]SAM_PROTO_GetFieldsCounters [12:48:17]wFMCommunicate request_size=4 [12:48:17]MH_SAM_APDU [12:48:17]CAPDU: 80 13 00 00 [12:48:17]Write to MH i2c: E2 08 00 AF 3E 80 13 00 00 00 00 00 00 69 [12:48:17]Write i2c OK [12:48:17]MH_I2C_Read... [12:48:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:17]Read from MH i2c: E2 [12:48:17]MH_I2C_Read... [12:48:17]Read from MH i2c: E2 62 00 [12:48:17]MH_I2C_Read... [12:48:17]Read from MH i2c: E2 62 00 AF 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 56 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [12:48:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 56 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:17]wFMCommunicate OK [12:48:17]SAM_PROTO_GetFieldsCounters done [12:48:17]requested_item shift.num is exist - process it [12:48:17]requested_item shift.opened is exist - process it [12:48:17]req_shift_opened [12:48:17]FM_GetShiftState [12:48:17]SAM_PROTO_GetShiftState [12:48:17]wFMCommunicate request_size=4 [12:48:17]MH_SAM_APDU [12:48:17]CAPDU: 80 13 01 00 [12:48:17]Write to MH i2c: E2 08 00 B0 3E 80 13 01 00 00 00 00 00 6B [12:48:17]Write i2c OK [12:48:17]MH_I2C_Read... [12:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:17]Read from MH i2c: E2 [12:48:17]MH_I2C_Read... [12:48:17]Read from MH i2c: E2 0E 00 [12:48:17]MH_I2C_Read... [12:48:17]Read from MH i2c: E2 0E 00 B0 3E 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 1D [12:48:17]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [12:48:17]wFMCommunicate OK [12:48:17]SAM_PROTO_GetShiftState done [12:48:17]FM_GetShiftState done [12:48:17]req_shift_opened done [12:48:17]requested_item shift.open_date is exist - process it [12:48:17]req_shift_open_date [12:48:17]req_shift_open_date done [12:48:17]produce_requested_data done [12:48:17]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22358,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [12:48:17]process_action_free close_receipt [12:48:17]json_value_free [12:48:17]json_value_free done [12:48:17]process_json_proto returns [12:48:17]Send response to host [12:48:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22358,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [12:48:17]free response buf [12:48:17]execute_script done [12:48:17]execute_script returns [12:48:17]free content buf [12:48:17]Sock 9.Close socket [12:48:17]Sock 9.Thread stoped [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:19]accept exits with 8 [12:56:19]New connection [12:56:19]New thread 3066695012 created [12:56:19]Thread 3066838372 joined [12:56:19]Waiting for new connection... [12:56:19] Sock 8.Parse request [12:56:19]Sock 8.Check first char [12:56:19]Sock 8.First char is OK [12:56:19]request: POST /json_proto HTTP/1.0 [12:56:19]Method: POST [12:56:19]URL: /json_proto [12:56:19]Method is POST - this is cgi request [12:56:19]url: /json_proto [12:56:19]query_string will be loaded in cgi processing [12:56:19]execute_cgi json_proto POST (null) [12:56:19]execute_cgi path=json_proto method=POST [12:56:19]POST find Content-Length [12:56:19]Host: 172.17.35.133:8080 [12:56:19]Content-Length: 1257 [12:56:19]Content-Type: application/json [12:56:19] [12:56:19]POST finish read [12:56:19]Found Content-Length = 1257 [12:56:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254568", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 216.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:19]execute_script... [12:56:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254568", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 72.00, "quantity" : 1.000, "sum" : 72.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 216.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:19]POST & json_proto [12:56:19]process_json_proto [12:56:19]json parsed OK: [12:56:19]protocol is kg_v1.0 [12:56:19]action value=close_receipt [12:56:19]process_action close_receipt [12:56:19]cmd_close_receipt [12:56:19]MH_GetDate [12:56:19]Write to MH i2c: F0 00 00 B1 3E DE [12:56:19]Write i2c OK [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: F0 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: F0 09 00 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: F0 09 00 B1 3E 00 80 32 70 66 8C 55 28 65 DD [12:56:19]GetLastDocTimeStamp 1718628507 [12:56:19]current date 1718628992 [12:56:19]FM_GetShiftState [12:56:19]SAM_PROTO_GetShiftState [12:56:19]wFMCommunicate request_size=4 [12:56:19]MH_SAM_APDU [12:56:19]CAPDU: 80 13 01 00 [12:56:19]Write to MH i2c: E2 08 00 B2 3E 80 13 01 00 00 00 00 00 6D [12:56:19]Write i2c OK [12:56:19]MH_I2C_Read... [12:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:19]Read from MH i2c: E2 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 0E 00 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 0E 00 B2 3E 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 1F [12:56:19]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [12:56:19]wFMCommunicate OK [12:56:19]SAM_PROTO_GetShiftState done [12:56:19]FM_GetShiftState done [12:56:19]opened in 1718583887 [12:56:19]opened+sec_in_day 1718670287 [12:56:19]quantity*price = 9500 [12:56:19]sum+1 = 9501 [12:56:19]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 72.00 = 72.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46214621 Р/ж mentos тутти-фрутти ролл 16г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 216.00 НСП 1% : 1.91 НДС 12% : 22.94 Наличными: 216.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 40 17.06.2024 12:56 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22359 ФПД: 129744018254493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T125633&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22359&fm=129744018254493&tin=02508201610067®Number=0000000000099755&sum=21600 0 [12:56:20]StoreToDocumentArchive [12:56:20]shift 328 fd 22359 [12:56:20]save to /storage/0328/doc_00022359 [12:56:20]save last doc name /storage/0328/doc_00022359 to /storage/kkm_last_doc_name [12:56:20]save OK [12:56:20]Clear old archive folders... [12:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=543 [12:56:20]tlvbuf is 001D39A0 [12:56:20]SAM_PROTO_ClearQueue [12:56:20]wFMCommunicate request_size=4 [12:56:20]MH_SAM_APDU [12:56:20]CAPDU: 80 09 00 00 [12:56:20]Write to MH i2c: E2 08 00 BF 3E 80 09 00 00 00 00 00 00 6F [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:20]Read from MH i2c: E2 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 BF 3E 00 90 00 71 [12:56:20]RAPDU: 90 00 [12:56:20]wFMCommunicate OK [12:56:20]SAM_PROTO_ClearQueue done [12:56:20]KKMCreateOFDPacket [12:56:20]OFDProtocolAddRootSTLVToBuf [12:56:20]FM_MakeSignedData [12:56:20]FM_MakeSignedData [12:56:20]SAM_PROTO_SignData [12:56:20]wFMCommunicate request_size=4 [12:56:20]MH_SAM_APDU [12:56:20]CAPDU: 80 0D 01 02 [12:56:20]Write to MH i2c: E2 08 00 C0 3E 80 0D 01 02 00 00 00 00 77 [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:20]Read from MH i2c: E2 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 C0 3E 00 90 00 72 [12:56:20]RAPDU: 90 00 [12:56:20]wFMCommunicate OK [12:56:20]wFMCommunicate request_size=255 [12:56:20]MH_SAM_APDU [12:56:20]CAPDU: 80 0D 02 02 FA 03 00 1F 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 [12:56:20]Write to MH i2c: E2 02 01 C1 3E 80 0D 02 02 FA 00 03 00 1F 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 00 00 8E [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:20]Read from MH i2c: E2 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 [12:56:20]MH_I2C_Read... [12:56:20]Read from MH i2c: E2 03 00 C1 3E 00 90 00 73 [12:56:20]RAPDU: 90 00 [12:56:20]wFMCommunicate OK [12:56:20]wFMCommunicate request_size=255 [12:56:20]MH_SAM_APDU [12:56:20]CAPDU: 80 0D 02 02 FA F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 81 32 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [12:56:20]Write to MH i2c: E2 02 01 C2 3E 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 81 32 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 DF [12:56:20]Write i2c OK [12:56:20]MH_I2C_Read... [12:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:21]Read from MH i2c: E2 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: E2 03 00 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: E2 03 00 C2 3E 00 90 00 74 [12:56:21]RAPDU: 90 00 [12:56:21]wFMCommunicate OK [12:56:21]wFMCommunicate request_size=52 [12:56:21]MH_SAM_APDU [12:56:21]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 57 57 00 00 35 04 06 00 76 00 62 1E AA 9D [12:56:21]Write to MH i2c: E2 37 00 C3 3E 80 0D 02 02 2F 00 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 57 57 00 00 35 04 06 00 76 00 62 1E AA 9D 00 00 32 [12:56:21]Write i2c OK [12:56:21]MH_I2C_Read... [12:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:21]Read from MH i2c: E2 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: E2 03 00 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: E2 03 00 C3 3E 00 90 00 75 [12:56:21]RAPDU: 90 00 [12:56:21]wFMCommunicate OK [12:56:21]wFMCommunicate request_size=4 [12:56:21]MH_SAM_APDU [12:56:21]CAPDU: 80 0D 03 02 [12:56:21]Write to MH i2c: E2 08 00 C4 3E 80 0D 03 02 00 00 00 00 7D [12:56:21]Write i2c OK [12:56:21]MH_I2C_Read... [12:56:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:21]Read from MH i2c: E2 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: E2 0B 00 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: E2 0B 00 C4 3E 00 5B 23 91 81 E7 6E EB 43 90 00 91 [12:56:21]RAPDU: 5B 23 91 81 E7 6E EB 43 90 00 [12:56:21]wFMCommunicate OK [12:56:21]SAM_PROTO_SignData done [12:56:21]FM_MakeSignedData done [12:56:21]CreateOFDProtocolMessage [12:56:21]wFMCommunicate request_size=4 [12:56:21]MH_SAM_APDU [12:56:21]CAPDU: 80 11 00 00 [12:56:21]Write to MH i2c: E2 08 00 C5 3E 80 11 00 00 00 00 00 00 7D [12:56:21]Write i2c OK [12:56:21]MH_I2C_Read... [12:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:21]Read from MH i2c: E2 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: E2 17 00 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: E2 17 00 C5 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 CF [12:56:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:56:21]wFMCommunicate OK [12:56:21]CreateOFDProtocolMessage done [12:56:21]OFDSenderStorePacket 22359 [12:56:21]StoreOFDPacket docnum=22359 [12:56:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 33 02 00 00 61 3D 2B 02 EA 36 5A 03 01 00 03 00 1F 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 81 32 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 57 57 00 00 35 04 06 00 76 00 62 1E AA 9D 5B 23 91 81 E7 6E EB 43 [12:56:21]CheckFolder [12:56:21]dirname=/storage/ofd_packets [12:56:21]CheckFolder done [12:56:21]ProducePacketName [12:56:21]name=ofd_packets/00022359 [12:56:21]NVStorageSaveData ofd_packets/00022359 [12:56:21]File name is /storage/ofd_packets/00022359 [12:56:21]Write 593 bytes [12:56:21]NVStorageSaveData done [12:56:21]OFDSenderStorePacket done [12:56:21]KKMCreateOFDPacket done [12:56:21]NVStorageSaveData kkm_last_timestamp [12:56:21]File name is /storage/kkm_last_timestamp [12:56:21]Write 4 bytes [12:56:21]NVStorageSaveData done [12:56:21]ExternCall_PrintAddStr [12:56:21]wPrintStart [12:56:21]Write to MH i2c: 01 00 00 C6 3E 04 [12:56:21]Write i2c OK [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: 01 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: 01 07 00 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: 01 07 00 C6 3E 00 00 00 00 00 FF 0F 19 [12:56:21]RasterBufferAndPrint [12:56:21]line Счет N : (3)254568 [12:56:21]line ИНН: 02508201610067 [12:56:21]line Контрольно-Кассовый Чек [12:56:21]line ПРОДАЖА [12:56:21]line Товар: 4631162227163 [12:56:21]line Напиток газированный Mojito LEMON LIME ж [12:56:21]line 1.000 * 95.00 [12:56:21]line = 95.00 [12:56:21]line НДС 12% НСП 1% [12:56:21]line > о реализуемом товаре [12:56:21]line Товар: 4600682557456 [12:56:21]line Напиток FLash up energy эн ж/б 0,5/0,45л [12:56:21]line 1.000 * 72.00 [12:56:21]line = 72.00 [12:56:21]line НДС 12% НСП 1% [12:56:21]line > о реализуемом товаре [12:56:21]line Товар: 46214621 [12:56:21]line Р/ж mentos тутти-фрутти ролл 16г [12:56:21]line 1.000 * 49.00 [12:56:21]line = 49.00 [12:56:21]line НДС 12% НСП 1% [12:56:21]line > о реализуемом товаре [12:56:21]line ИТОГО: 216.00 [12:56:21]line НСП 1% : 1.91 [12:56:21]line НДС 12% : 22.94 [12:56:21]line Наличными: 216.00 [12:56:21]line Безнал.: 0.00 [12:56:21]line Место: АЗС № 76 "Партнер Нефть" [12:56:21]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [12:56:21]line СНО: Общий режим [12:56:21]line Чек 40 17.06.2024 12:56 [12:56:21]line Смена: 328 ФФД: 1.0 [12:56:21]line ЗНМ: 0300000200 [12:56:21]line РНМ: 0000000000099755 [12:56:21]line Версия ККМ: 001 [12:56:21]line ФМ: 0000000000965344 [12:56:21]line ФД: 22359 [12:56:21]line ФПД: 129744018254493 [12:56:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T125633&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22359&fm=129744018254493&tin=02508201610067®Number=0000000000099755&sum=21600 [12:56:21]line 0 [12:56:21]OFD Sender: Processing packet 22359 [packets to send 5, broken 4] [12:56:21]ProducePacketName [12:56:21]name=ofd_packets/00022359 [12:56:21]OFD Sender: To server: pG, [12:56:21]CommunicateWithHost lk.salyk.kg:30040 [12:56:21]ConnectInit lk.salyk.kg [12:56:21]written 0, free lines is 4095 [12:56:21]Connected sock=10 [12:56:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 33 02 00 00 61 3D 2B 02 EA 36 5A 03 01 00 03 00 1F 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 1C 00 00 00 00 13 04 06 00 20 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 81 32 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 57 57 00 00 35 04 06 00 76 00 62 1E AA 9D 5B 23 91 81 E7 6E EB 43 [12:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 0D 20 47 00 73 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 39 36 35 33 34 34 10 04 04 00 57 57 00 00 F4 03 04 00 38 DB 6F 66 B6 04 01 00 00 1B 5D AA 52 49 8D 54 04 [12:56:21]CommunicateWithHost err = 0 [12:56:21]CheckOFDResponse [12:56:21]1017 (14) - 77093643461234 [12:56:21]1041 (16) - 0000000000965344 [12:56:21]1040 (4) - 22359 [12:56:21]1012 (4) - 17.06.2024 06:44 [12:56:21]1206 (1) - 0 [12:56:21]OFD Sender: Remove packet 22359 [12:56:21]ProducePacketName [12:56:21]name=ofd_packets/00022359 [12:56:22]NVStorageDeleteData [12:56:22]Write to MH i2c: 01 00 00 FD 3E 3B [12:56:22]Write i2c OK [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: 01 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: 01 07 00 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: 01 07 00 FD 3E 00 00 00 00 00 4C 0C 9A [12:56:22]RasterBufferAndPrint [12:56:22]line [12:56:22]line [12:56:22]line [12:56:22]line [12:56:22]line [12:56:22]written 0, free lines is 3156 [12:56:22]MH_Cut [12:56:22]Write to MH i2c: D1 01 00 04 3F 01 15 [12:56:22]Write i2c OK [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: D1 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: D1 01 00 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: D1 01 00 04 3F 00 14 [12:56:22]Write to MH i2c: 01 00 00 05 3F 44 [12:56:22]Write i2c OK [12:56:22]MH_I2C_Read... [12:56:22]OFD Sender: No OFD packet to send [12:56:23]*** Cut start [12:56:23]*** Partial cut [12:56:23]*** CUTSNS_PIN = 1 [12:56:23]*** CUTSNS_PIN = 0 [12:56:23]*** Brake cut motor [12:56:23]Read from MH i2c: 01 [12:56:23]MH_I2C_Read... [12:56:23]*** Stop cut motor [12:56:23]*** Cut end [12:56:23]Read from MH i2c: 01 07 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: 01 07 00 05 3F 00 00 00 00 00 FF 0F 59 [12:56:23]process_action close_receipt done [12:56:23]requested_data is exist [12:56:23]produce_requested_data [12:56:23]requested_item fm.sn is exist - process it [12:56:23]wFMCommunicate request_size=4 [12:56:23]MH_SAM_APDU [12:56:23]CAPDU: 80 11 00 00 [12:56:23]Write to MH i2c: E2 08 00 06 3F 80 11 00 00 00 00 00 00 BF [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:23]Read from MH i2c: E2 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 17 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 17 00 06 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 11 [12:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:56:23]wFMCommunicate OK [12:56:23]requested_item fd.num is exist - process it [12:56:23]SAM_PROTO_GetFieldsCounters [12:56:23]wFMCommunicate request_size=4 [12:56:23]MH_SAM_APDU [12:56:23]CAPDU: 80 13 00 00 [12:56:23]Write to MH i2c: E2 08 00 07 3F 80 13 00 00 00 00 00 00 C2 [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:23]Read from MH i2c: E2 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 62 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 62 00 07 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 57 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [12:56:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 57 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:23]wFMCommunicate OK [12:56:23]SAM_PROTO_GetFieldsCounters done [12:56:23]requested_item shift.num is exist - process it [12:56:23]requested_item shift.opened is exist - process it [12:56:23]req_shift_opened [12:56:23]FM_GetShiftState [12:56:23]SAM_PROTO_GetShiftState [12:56:23]wFMCommunicate request_size=4 [12:56:23]MH_SAM_APDU [12:56:23]CAPDU: 80 13 01 00 [12:56:23]Write to MH i2c: E2 08 00 08 3F 80 13 01 00 00 00 00 00 C4 [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:23]Read from MH i2c: E2 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 0E 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 0E 00 08 3F 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 76 [12:56:23]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [12:56:23]wFMCommunicate OK [12:56:23]SAM_PROTO_GetShiftState done [12:56:23]FM_GetShiftState done [12:56:23]req_shift_opened done [12:56:23]requested_item shift.open_date is exist - process it [12:56:23]req_shift_open_date [12:56:23]req_shift_open_date done [12:56:23]produce_requested_data done [12:56:23]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22359,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [12:56:23]process_action_free close_receipt [12:56:23]json_value_free [12:56:23]json_value_free done [12:56:23]process_json_proto returns [12:56:23]Send response to host [12:56:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22359,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [12:56:23]free response buf [12:56:23]execute_script done [12:56:23]execute_script returns [12:56:23]free content buf [12:56:23]Sock 8.Close socket [12:56:23]Sock 8.Thread stoped [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]accept exits with 9 [12:59:12]New connection [12:59:12]New thread 3066838372 created [12:59:12]Thread 3066695012 joined [12:59:12]Waiting for new connection... [12:59:12] Sock 9.Parse request [12:59:12]Sock 9.Check first char [12:59:12]Sock 9.First char is OK [12:59:12]request: POST /json_proto HTTP/1.0 [12:59:12]Method: POST [12:59:12]URL: /json_proto [12:59:12]Method is POST - this is cgi request [12:59:12]url: /json_proto [12:59:12]query_string will be loaded in cgi processing [12:59:12]execute_cgi json_proto POST (null) [12:59:12]execute_cgi path=json_proto method=POST [12:59:12]POST find Content-Length [12:59:12]Host: 172.17.35.133:8080 [12:59:12]Content-Length: 683 [12:59:12]Content-Type: application/json [12:59:12] [12:59:12]POST finish read [12:59:12]Found Content-Length = 683 [12:59:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1610885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:12]execute_script... [12:59: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)1610885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:12]POST & json_proto [12:59:12]process_json_proto [12:59:12]json parsed OK: [12:59:12]protocol is kg_v1.0 [12:59:12]action value=close_receipt [12:59:12]process_action close_receipt [12:59:12]cmd_close_receipt [12:59:12]MH_GetDate [12:59:12]Write to MH i2c: F0 00 00 09 3F 37 [12:59:12]Write i2c OK [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: F0 [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: F0 09 00 [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: F0 09 00 09 3F 00 2D 33 70 66 8C 55 28 65 E4 [12:59:12]GetLastDocTimeStamp 1718628993 [12:59:12]current date 1718629165 [12:59:12]FM_GetShiftState [12:59:12]SAM_PROTO_GetShiftState [12:59:12]wFMCommunicate request_size=4 [12:59:12]MH_SAM_APDU [12:59:12]CAPDU: 80 13 01 00 [12:59:12]Write to MH i2c: E2 08 00 0A 3F 80 13 01 00 00 00 00 00 C6 [12:59:12]Write i2c OK [12:59:12]MH_I2C_Read... [12:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:12]Read from MH i2c: E2 [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: E2 0E 00 [12:59:12]MH_I2C_Read... [12:59:12]Read from MH i2c: E2 0E 00 0A 3F 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 78 [12:59:12]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [12:59:12]wFMCommunicate OK [12:59:12]SAM_PROTO_GetShiftState done [12:59:12]FM_GetShiftState done [12:59:12]opened in 1718583887 [12:59:12]opened+sec_in_day 1718670287 [12:59:12]quantity*price = 100016 [12:59:12]sum+1 = 100017 [12:59:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 41 17.06.2024 12:59 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22360 ФПД: 100759280835639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T125925&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22360&fm=100759280835639&tin=02508201610067®Number=0000000000099755&sum=100000 [12:59:13]StoreToDocumentArchive [12:59:13]shift 328 fd 22360 [12:59:13]save to /storage/0328/doc_00022360 [12:59:13]save last doc name /storage/0328/doc_00022360 to /storage/kkm_last_doc_name [12:59:13]save OK [12:59:13]Clear old archive folders... [12:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:13]tlvbuf is 001B9750 [12:59:13]SAM_PROTO_ClearQueue [12:59:13]wFMCommunicate request_size=4 [12:59:13]MH_SAM_APDU [12:59:13]CAPDU: 80 09 00 00 [12:59:13]Write to MH i2c: E2 08 00 17 3F 80 09 00 00 00 00 00 00 C8 [12:59:13]Write i2c OK [12:59:13]MH_I2C_Read... [12:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:13]Read from MH i2c: E2 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 03 00 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 03 00 17 3F 00 90 00 CA [12:59:13]RAPDU: 90 00 [12:59:13]wFMCommunicate OK [12:59:13]SAM_PROTO_ClearQueue done [12:59:13]KKMCreateOFDPacket [12:59:13]OFDProtocolAddRootSTLVToBuf [12:59:13]FM_MakeSignedData [12:59:13]FM_MakeSignedData [12:59:13]SAM_PROTO_SignData [12:59:13]wFMCommunicate request_size=4 [12:59:13]MH_SAM_APDU [12:59:13]CAPDU: 80 0D 01 02 [12:59:13]Write to MH i2c: E2 08 00 18 3F 80 0D 01 02 00 00 00 00 D0 [12:59:13]Write i2c OK [12:59:13]MH_I2C_Read... [12:59:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:13]Read from MH i2c: E2 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 03 00 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 03 00 18 3F 00 90 00 CB [12:59:13]RAPDU: 90 00 [12:59:13]wFMCommunicate OK [12:59:13]wFMCommunicate request_size=255 [12:59:13]MH_SAM_APDU [12:59: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 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 29 00 00 00 F4 03 04 00 2D 33 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 58 57 00 00 35 04 06 00 5B [12:59:13]Write to MH i2c: E2 02 01 19 3F 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 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 29 00 00 00 F4 03 04 00 2D 33 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 58 57 00 00 35 04 06 00 5B 00 00 A0 [12:59:13]Write i2c OK [12:59:13]MH_I2C_Read... [12:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:13]Read from MH i2c: E2 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 03 00 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 03 00 19 3F 00 90 00 CC [12:59:13]RAPDU: 90 00 [12:59:13]wFMCommunicate OK [12:59:13]wFMCommunicate request_size=10 [12:59:13]MH_SAM_APDU [12:59:13]CAPDU: 80 0D 02 02 05 A3 D9 24 5C 37 [12:59:13]Write to MH i2c: E2 0D 00 1A 3F 80 0D 02 02 05 00 A3 D9 24 5C 37 00 00 10 [12:59:13]Write i2c OK [12:59:13]MH_I2C_Read... [12:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:13]Read from MH i2c: E2 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 03 00 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 03 00 1A 3F 00 90 00 CD [12:59:13]RAPDU: 90 00 [12:59:13]wFMCommunicate OK [12:59:13]wFMCommunicate request_size=4 [12:59:13]MH_SAM_APDU [12:59:13]CAPDU: 80 0D 03 02 [12:59:13]Write to MH i2c: E2 08 00 1B 3F 80 0D 03 02 00 00 00 00 D5 [12:59:13]Write i2c OK [12:59:13]MH_I2C_Read... [12:59:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:13]Read from MH i2c: E2 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 0B 00 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 0B 00 1B 3F 00 BD FA 6E D9 D6 BC 87 C0 90 00 AD [12:59:13]RAPDU: BD FA 6E D9 D6 BC 87 C0 90 00 [12:59:13]wFMCommunicate OK [12:59:13]SAM_PROTO_SignData done [12:59:13]FM_MakeSignedData done [12:59:13]CreateOFDProtocolMessage [12:59:13]wFMCommunicate request_size=4 [12:59:13]MH_SAM_APDU [12:59:13]CAPDU: 80 11 00 00 [12:59:13]Write to MH i2c: E2 08 00 1C 3F 80 11 00 00 00 00 00 00 D5 [12:59:13]Write i2c OK [12:59:13]MH_I2C_Read... [12:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:13]Read from MH i2c: E2 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 17 00 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: E2 17 00 1C 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 27 [12:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:59:13]wFMCommunicate OK [12:59:13]CreateOFDProtocolMessage done [12:59:13]OFDSenderStorePacket 22360 [12:59:13]StoreOFDPacket docnum=22360 [12:59:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0F 01 00 00 B2 96 07 01 C3 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 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 29 00 00 00 F4 03 04 00 2D 33 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 58 57 00 00 35 04 06 00 5B A3 D9 24 5C 37 BD FA 6E D9 D6 BC 87 C0 [12:59:13]CheckFolder [12:59:13]dirname=/storage/ofd_packets [12:59:13]CheckFolder done [12:59:13]ProducePacketName [12:59:13]name=ofd_packets/00022360 [12:59:13]NVStorageSaveData ofd_packets/00022360 [12:59:13]File name is /storage/ofd_packets/00022360 [12:59:13]Write 301 bytes [12:59:13]NVStorageSaveData done [12:59:13]OFDSenderStorePacket done [12:59:13]KKMCreateOFDPacket done [12:59:13]NVStorageSaveData kkm_last_timestamp [12:59:13]File name is /storage/kkm_last_timestamp [12:59:13]Write 4 bytes [12:59:13]NVStorageSaveData done [12:59:13]ExternCall_PrintAddStr [12:59:13]wPrintStart [12:59:13]Write to MH i2c: 01 00 00 1D 3F 5C [12:59:13]Write i2c OK [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: 01 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: 01 07 00 [12:59:13]MH_I2C_Read... [12:59:13]Read from MH i2c: 01 07 00 1D 3F 00 00 00 00 00 FF 0F 71 [12:59:13]RasterBufferAndPrint [12:59:13]line Счет N : (1)1610885 [12:59:13]line ИНН: 02508201610067 [12:59:13]line Контрольно-Кассовый Чек [12:59:13]line ПРОДАЖА [12:59:13]line ТРК (МРК, ГНК) : 43 [12:59:13]line Товар: 2710124130 [12:59:13]line Аи-92-К-5 [12:59:13]line 15.200 * 65.80 [12:59:13]line = 1000.16 [12:59:13]line НДС 12% НСП 1% [12:59:13]line > о реализуемом товаре [12:59:13]line ОКРУГЛЕНИЕ: -0.16 [12:59:13]line ИТОГО: 1000.00 [12:59:13]line Внесено: 1000.00 [12:59:13]line СДАЧА: 0.00 [12:59:13]line НСП 1% : 8.85 [12:59:13]line НДС 12% : 106.21 [12:59:13]line Наличными: 1000.00 [12:59:13]line Безнал.: 0.00 [12:59:13]line Место: АЗС № 76 "Партнер Нефть" [12:59:13]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [12:59:13]line СНО: Общий режим [12:59:13]line Чек 41 17.06.2024 12:59 [12:59:13]line Смена: 328 ФФД: 1.0 [12:59:13]line ЗНМ: 0300000200 [12:59:13]line РНМ: 0000000000099755 [12:59:13]line Версия ККМ: 001 [12:59:13]line ФМ: 0000000000965344 [12:59:13]line ФД: 22360 [12:59:13]line ФПД: 100759280835639 [12:59:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T125925&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22360&fm=100759280835639&tin=02508201610067®Number=0000000000099755&sum=100000 [12:59:14]OFD Sender: Processing packet 22360 [packets to send 5, broken 4] [12:59:14]ProducePacketName [12:59:14]name=ofd_packets/00022360 [12:59:14]OFD Sender: To server: pG, [12:59:14]CommunicateWithHost lk.salyk.kg:30040 [12:59:14]ConnectInit lk.salyk.kg [12:59:14]written 0, free lines is 4095 [12:59:14]Connected sock=10 [12:59:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0F 01 00 00 B2 96 07 01 C3 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 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 29 00 00 00 F4 03 04 00 2D 33 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 58 57 00 00 35 04 06 00 5B A3 D9 24 5C 37 BD FA 6E D9 D6 BC 87 C0 [12:59:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 FB 0B 47 00 B0 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 39 36 35 33 34 34 10 04 04 00 58 57 00 00 F4 03 04 00 E5 DB 6F 66 B6 04 01 00 00 7E 61 52 B0 41 28 B7 22 [12:59:14]CommunicateWithHost err = 0 [12:59:14]CheckOFDResponse [12:59:14]1017 (14) - 77093643461234 [12:59:14]1041 (16) - 0000000000965344 [12:59:14]1040 (4) - 22360 [12:59:14]1012 (4) - 17.06.2024 06:47 [12:59:14]1206 (1) - 0 [12:59:14]OFD Sender: Remove packet 22360 [12:59:14]ProducePacketName [12:59:14]name=ofd_packets/00022360 [12:59:14]NVStorageDeleteData [12:59:14]Write to MH i2c: 01 00 00 48 3F 87 [12:59:14]Write i2c OK [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: 01 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: 01 07 00 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: 01 07 00 48 3F 00 00 00 00 00 EC 0C 86 [12:59:14]RasterBufferAndPrint [12:59:14]line [12:59:14]line [12:59:14]line [12:59:14]line [12:59:14]line [12:59:14]written 0, free lines is 3314 [12:59:14]MH_Cut [12:59:14]Write to MH i2c: D1 01 00 4F 3F 01 60 [12:59:14]Write i2c OK [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: D1 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: D1 01 00 [12:59:14]MH_I2C_Read... [12:59:14]Read from MH i2c: D1 01 00 4F 3F 00 5F [12:59:14]Write to MH i2c: 01 00 00 50 3F 8F [12:59:14]Write i2c OK [12:59:14]MH_I2C_Read... [12:59:15]OFD Sender: No OFD packet to send [12:59:15]*** Cut start [12:59:15]*** Partial cut [12:59:15]*** CUTSNS_PIN = 1 [12:59:15]*** CUTSNS_PIN = 0 [12:59:15]*** Brake cut motor [12:59:16]Read from MH i2c: 01 [12:59:16]MH_I2C_Read... [12:59:16]*** Stop cut motor [12:59:16]*** Cut end [12:59:16]Read from MH i2c: 01 07 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: 01 07 00 50 3F 00 00 00 00 00 FF 0F A4 [12:59:16]process_action close_receipt done [12:59:16]requested_data is exist [12:59:16]produce_requested_data [12:59:16]requested_item fm.sn is exist - process it [12:59:16]wFMCommunicate request_size=4 [12:59:16]MH_SAM_APDU [12:59:16]CAPDU: 80 11 00 00 [12:59:16]Write to MH i2c: E2 08 00 51 3F 80 11 00 00 00 00 00 00 0A [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 17 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 17 00 51 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 5C [12:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [12:59:16]wFMCommunicate OK [12:59:16]requested_item fd.num is exist - process it [12:59:16]SAM_PROTO_GetFieldsCounters [12:59:16]wFMCommunicate request_size=4 [12:59:16]MH_SAM_APDU [12:59:16]CAPDU: 80 13 00 00 [12:59:16]Write to MH i2c: E2 08 00 52 3F 80 13 00 00 00 00 00 00 0D [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 62 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 62 00 52 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 58 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [12:59:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 58 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:16]wFMCommunicate OK [12:59:16]SAM_PROTO_GetFieldsCounters done [12:59:16]requested_item shift.num is exist - process it [12:59:16]requested_item shift.opened is exist - process it [12:59:16]req_shift_opened [12:59:16]FM_GetShiftState [12:59:16]SAM_PROTO_GetShiftState [12:59:16]wFMCommunicate request_size=4 [12:59:16]MH_SAM_APDU [12:59:16]CAPDU: 80 13 01 00 [12:59:16]Write to MH i2c: E2 08 00 53 3F 80 13 01 00 00 00 00 00 0F [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 0E 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 0E 00 53 3F 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 C1 [12:59:16]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [12:59:16]wFMCommunicate OK [12:59:16]SAM_PROTO_GetShiftState done [12:59:16]FM_GetShiftState done [12:59:16]req_shift_opened done [12:59:16]requested_item shift.open_date is exist - process it [12:59:16]req_shift_open_date [12:59:16]req_shift_open_date done [12:59:16]produce_requested_data done [12:59:16]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22360,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [12:59:16]process_action_free close_receipt [12:59:16]json_value_free [12:59:16]json_value_free done [12:59:16]process_json_proto returns [12:59:16]Send response to host [12:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22360,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [12:59:16]free response buf [12:59:16]execute_script done [12:59:16]execute_script returns [12:59:16]free content buf [12:59:16]Sock 9.Close socket [12:59:16]Sock 9.Thread stoped [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:23]accept exits with 8 [13:01:23]New connection [13:01:23]New thread 3066695012 created [13:01:23]Thread 3066838372 joined [13:01:23]Waiting for new connection... [13:01:23] Sock 8.Parse request [13:01:23]Sock 8.Check first char [13:01:23]Sock 8.First char is OK [13:01:23]request: POST /json_proto HTTP/1.0 [13:01:23]Method: POST [13:01:23]URL: /json_proto [13:01:23]Method is POST - this is cgi request [13:01:23]url: /json_proto [13:01:23]query_string will be loaded in cgi processing [13:01:23]execute_cgi json_proto POST (null) [13:01:23]execute_cgi path=json_proto method=POST [13:01:23]POST find Content-Length [13:01:23]Host: 172.17.35.133:8080 [13:01:23]Content-Length: 1104 [13:01:23]Content-Type: application/json [13:01:23] [13:01:23]POST finish read [13:01:23]Found Content-Length = 1104 [13:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254569", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:23]execute_script... [13:01:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254569", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:23]POST & json_proto [13:01:23]process_json_proto [13:01:23]json parsed OK: [13:01:23]protocol is kg_v1.0 [13:01:23]action value=close_receipt [13:01:23]process_action close_receipt [13:01:23]cmd_close_receipt [13:01:23]MH_GetDate [13:01:23]Write to MH i2c: F0 00 00 54 3F 82 [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: F0 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: F0 09 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: F0 09 00 54 3F 00 B1 33 70 66 8C 55 28 65 B3 [13:01:23]GetLastDocTimeStamp 1718629165 [13:01:23]current date 1718629297 [13:01:23]FM_GetShiftState [13:01:23]SAM_PROTO_GetShiftState [13:01:23]wFMCommunicate request_size=4 [13:01:23]MH_SAM_APDU [13:01:23]CAPDU: 80 13 01 00 [13:01:23]Write to MH i2c: E2 08 00 55 3F 80 13 01 00 00 00 00 00 11 [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 0E 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 0E 00 55 3F 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 C3 [13:01:23]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [13:01:23]wFMCommunicate OK [13:01:23]SAM_PROTO_GetShiftState done [13:01:23]FM_GetShiftState done [13:01:23]opened in 1718583887 [13:01:23]opened+sec_in_day 1718670287 [13:01:23]quantity*price = 7500 [13:01:23]sum+1 = 7501 [13:01:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.32 НДС 12% : 15.92 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 42 17.06.2024 13:01 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965344 ФД: 22361 ФПД: 170869667570623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T130137&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22361&fm=170869667570623&tin=02508201610067®Number=0000000000099755&sum=15000 0 [13:01:24]StoreToDocumentArchive [13:01:24]shift 328 fd 22361 [13:01:24]save to /storage/0328/doc_00022361 [13:01:24]save last doc name /storage/0328/doc_00022361 to /storage/kkm_last_doc_name [13:01:24]save OK [13:01:24]Clear old archive folders... [13:01:24]ProcessDocumentItem done err = 0, tmpTLVsize=373 [13:01:24]tlvbuf is 00260C80 [13:01:24]SAM_PROTO_ClearQueue [13:01:24]wFMCommunicate request_size=4 [13:01:24]MH_SAM_APDU [13:01:24]CAPDU: 80 09 00 00 [13:01:24]Write to MH i2c: E2 08 00 62 3F 80 09 00 00 00 00 00 00 13 [13:01:24]Write i2c OK [13:01:24]MH_I2C_Read... [13:01:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:24]Read from MH i2c: E2 [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: E2 03 00 [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: E2 03 00 62 3F 00 90 00 15 [13:01:24]RAPDU: 90 00 [13:01:24]wFMCommunicate OK [13:01:24]SAM_PROTO_ClearQueue done [13:01:24]KKMCreateOFDPacket [13:01:24]OFDProtocolAddRootSTLVToBuf [13:01:24]FM_MakeSignedData [13:01:24]FM_MakeSignedData [13:01:24]SAM_PROTO_SignData [13:01:24]wFMCommunicate request_size=4 [13:01:24]MH_SAM_APDU [13:01:24]CAPDU: 80 0D 01 02 [13:01:24]Write to MH i2c: E2 08 00 63 3F 80 0D 01 02 00 00 00 00 1B [13:01:24]Write i2c OK [13:01:24]MH_I2C_Read... [13:01:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:24]Read from MH i2c: E2 [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: E2 03 00 [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: E2 03 00 63 3F 00 90 00 16 [13:01:24]RAPDU: 90 00 [13:01:24]wFMCommunicate OK [13:01:24]wFMCommunicate request_size=255 [13:01:24]MH_SAM_APDU [13:01:24]CAPDU: 80 0D 02 02 FA 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 [13:01:24]Write to MH i2c: E2 02 01 64 3F 80 0D 02 02 FA 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 00 00 BE [13:01:24]Write i2c OK [13:01:24]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:25]OFD Sender: No OFD packet to send [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 64 3F 00 90 00 17 [13:01:25]RAPDU: 90 00 [13:01:25]wFMCommunicate OK [13:01:25]wFMCommunicate request_size=132 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 0D 02 02 7F 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B1 33 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 59 57 00 00 35 04 06 00 9B 67 B1 D6 A3 BF [13:01:25]Write to MH i2c: E2 87 00 65 3F 80 0D 02 02 7F 00 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B1 33 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 59 57 00 00 35 04 06 00 9B 67 B1 D6 A3 BF 00 00 38 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 03 00 65 3F 00 90 00 18 [13:01:25]RAPDU: 90 00 [13:01:25]wFMCommunicate OK [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 0D 03 02 [13:01:25]Write to MH i2c: E2 08 00 66 3F 80 0D 03 02 00 00 00 00 20 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 0B 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 0B 00 66 3F 00 3F 91 9F 08 46 45 71 ED 90 00 81 [13:01:25]RAPDU: 3F 91 9F 08 46 45 71 ED 90 00 [13:01:25]wFMCommunicate OK [13:01:25]SAM_PROTO_SignData done [13:01:25]FM_MakeSignedData done [13:01:25]CreateOFDProtocolMessage [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 11 00 00 [13:01:25]Write to MH i2c: E2 08 00 67 3F 80 11 00 00 00 00 00 00 20 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 17 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 17 00 67 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 72 [13:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [13:01:25]wFMCommunicate OK [13:01:25]CreateOFDProtocolMessage done [13:01:25]OFDSenderStorePacket 22361 [13:01:25]StoreOFDPacket docnum=22361 [13:01:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 89 01 00 00 D9 28 81 01 19 45 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B1 33 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 59 57 00 00 35 04 06 00 9B 67 B1 D6 A3 BF 3F 91 9F 08 46 45 71 ED [13:01:25]CheckFolder [13:01:25]dirname=/storage/ofd_packets [13:01:25]CheckFolder done [13:01:25]ProducePacketName [13:01:25]name=ofd_packets/00022361 [13:01:25]NVStorageSaveData ofd_packets/00022361 [13:01:25]File name is /storage/ofd_packets/00022361 [13:01:25]Write 423 bytes [13:01:25]NVStorageSaveData done [13:01:25]OFDSenderStorePacket done [13:01:25]KKMCreateOFDPacket done [13:01:25]NVStorageSaveData kkm_last_timestamp [13:01:25]File name is /storage/kkm_last_timestamp [13:01:25]Write 4 bytes [13:01:25]NVStorageSaveData done [13:01:25]ExternCall_PrintAddStr [13:01:25]wPrintStart [13:01:25]Write to MH i2c: 01 00 00 68 3F A7 [13:01:25]OFD Sender: Processing packet 22361 [packets to send 5, broken 4] [13:01:25]ProducePacketName [13:01:25]name=ofd_packets/00022361 [13:01:25]OFD Sender: To server: pG, [13:01:25]CommunicateWithHost lk.salyk.kg:30040 [13:01:25]ConnectInit lk.salyk.kg [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: 01 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: 01 07 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: 01 07 00 68 3F 00 00 00 00 00 FF 0F BC [13:01:25]RasterBufferAndPrint [13:01:25]line Счет N : (3)254569 [13:01:25]line ИНН: 02508201610067 [13:01:25]line Контрольно-Кассовый Чек [13:01:25]line ПРОДАЖА [13:01:25]line Товар: 40822938 [13:01:25]line Напиток Фанта 0,5л [13:01:25]line 1.000 * 75.00 [13:01:25]line = 75.00 [13:01:25]line НДС 12% НСП 1% [13:01:25]line > о реализуемом товаре [13:01:25]line Товар: 54491472 [13:01:25]line Напиток Кока-Кола 0,5л [13:01:25]line 1.000 * 75.00 [13:01:25]line = 75.00 [13:01:25]line НДС 12% НСП 1% [13:01:25]line > о реализуемом товаре [13:01:25]line ИТОГО: 150.00 [13:01:25]line НСП 1% : 1.32 [13:01:25]line НДС 12% : 15.92 [13:01:25]line Наличными: 0.00 [13:01:25]line Безнал.: 150.00 [13:01:25]line Место: АЗС № 76 "Партнер Нефть" [13:01:25]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [13:01:25]line СНО: Общий режим [13:01:25]line Чек 42 17.06.2024 13:01 [13:01:25]line Смена: 328 ФФД: 1.0 [13:01:25]line ЗНМ: 0300000200 [13:01:25]line РНМ: 0000000000099755 [13:01:25]line Версия ККМ: 001 [13:01:25]line Платежная система: АКБ Кыргызстан [13:01:25]line ФМ: 0000000000965344 [13:01:25]line ФД: 22361 [13:01:25]line ФПД: 170869667570623 [13:01:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T130137&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22361&fm=170869667570623&tin=02508201610067®Number=0000000000099755&sum=15000 [13:01:25]line 0 [13:01:25]written 0, free lines is 4095 [13:01:25]Connected sock=11 [13:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 89 01 00 00 D9 28 81 01 19 45 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B1 33 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 59 57 00 00 35 04 06 00 9B 67 B1 D6 A3 BF 3F 91 9F 08 46 45 71 ED [13:01:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 99 AA 47 00 94 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 39 36 35 33 34 34 10 04 04 00 59 57 00 00 F4 03 04 00 68 DC 6F 66 B6 04 01 00 00 D0 ED 29 30 22 CB 75 88 [13:01:26]CommunicateWithHost err = 0 [13:01:26]CheckOFDResponse [13:01:26]1017 (14) - 77093643461234 [13:01:26]1041 (16) - 0000000000965344 [13:01:26]1040 (4) - 22361 [13:01:26]1012 (4) - 17.06.2024 06:49 [13:01:26]1206 (1) - 0 [13:01:26]OFD Sender: Remove packet 22361 [13:01:26]ProducePacketName [13:01:26]name=ofd_packets/00022361 [13:01:26]NVStorageDeleteData [13:01:26]Write to MH i2c: 01 00 00 98 3F D7 [13:01:26]Write i2c OK [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: 01 [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: 01 07 00 [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: 01 07 00 98 3F 00 00 00 00 00 BC 0C A6 [13:01:26]RasterBufferAndPrint [13:01:26]line [13:01:26]line [13:01:26]line [13:01:26]line [13:01:26]line [13:01:26]written 0, free lines is 3270 [13:01:26]MH_Cut [13:01:26]Write to MH i2c: D1 01 00 9F 3F 01 B0 [13:01:26]Write i2c OK [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: D1 [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: D1 01 00 [13:01:26]MH_I2C_Read... [13:01:26]Read from MH i2c: D1 01 00 9F 3F 00 AF [13:01:26]Write to MH i2c: 01 00 00 A0 3F DF [13:01:26]Write i2c OK [13:01:26]MH_I2C_Read... [13:01:26]OFD Sender: No OFD packet to send [13:01:27]*** Cut start [13:01:27]*** Partial cut [13:01:27]*** CUTSNS_PIN = 1 [13:01:27]*** CUTSNS_PIN = 0 [13:01:27]*** Brake cut motor [13:01:27]Read from MH i2c: 01 [13:01:27]MH_I2C_Read... [13:01:27]*** Stop cut motor [13:01:27]*** Cut end [13:01:27]Read from MH i2c: 01 07 00 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: 01 07 00 A0 3F 00 00 00 00 00 FF 0F F4 [13:01:27]process_action close_receipt done [13:01:27]requested_data is exist [13:01:27]produce_requested_data [13:01:27]requested_item fm.sn is exist - process it [13:01:27]wFMCommunicate request_size=4 [13:01:27]MH_SAM_APDU [13:01:27]CAPDU: 80 11 00 00 [13:01:27]Write to MH i2c: E2 08 00 A1 3F 80 11 00 00 00 00 00 00 5A [13:01:27]Write i2c OK [13:01:27]MH_I2C_Read... [13:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:27]Read from MH i2c: E2 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: E2 17 00 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: E2 17 00 A1 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 AC [13:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [13:01:27]wFMCommunicate OK [13:01:27]requested_item fd.num is exist - process it [13:01:27]SAM_PROTO_GetFieldsCounters [13:01:27]wFMCommunicate request_size=4 [13:01:27]MH_SAM_APDU [13:01:27]CAPDU: 80 13 00 00 [13:01:27]Write to MH i2c: E2 08 00 A2 3F 80 13 00 00 00 00 00 00 5D [13:01:27]Write i2c OK [13:01:27]MH_I2C_Read... [13:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:27]Read from MH i2c: E2 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: E2 62 00 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: E2 62 00 A2 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 59 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [13:01:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 59 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:27]wFMCommunicate OK [13:01:27]SAM_PROTO_GetFieldsCounters done [13:01:27]requested_item shift.num is exist - process it [13:01:27]requested_item shift.opened is exist - process it [13:01:27]req_shift_opened [13:01:27]FM_GetShiftState [13:01:27]SAM_PROTO_GetShiftState [13:01:27]wFMCommunicate request_size=4 [13:01:27]MH_SAM_APDU [13:01:27]CAPDU: 80 13 01 00 [13:01:27]Write to MH i2c: E2 08 00 A3 3F 80 13 01 00 00 00 00 00 5F [13:01:27]Write i2c OK [13:01:27]MH_I2C_Read... [13:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:27]Read from MH i2c: E2 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: E2 0E 00 [13:01:27]MH_I2C_Read... [13:01:27]Read from MH i2c: E2 0E 00 A3 3F 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 11 [13:01:27]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [13:01:27]wFMCommunicate OK [13:01:27]SAM_PROTO_GetShiftState done [13:01:27]FM_GetShiftState done [13:01:27]req_shift_opened done [13:01:27]requested_item shift.open_date is exist - process it [13:01:27]req_shift_open_date [13:01:27]req_shift_open_date done [13:01:27]produce_requested_data done [13:01:27]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22361,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [13:01:27]process_action_free close_receipt [13:01:27]json_value_free [13:01:27]json_value_free done [13:01:27]process_json_proto returns [13:01:27]Send response to host [13:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22361,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [13:01:27]free response buf [13:01:27]execute_script done [13:01:27]execute_script returns [13:01:27]free content buf [13:01:27]Sock 8.Close socket [13:01:27]Sock 8.Thread stoped [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:29]accept exits with 9 [13:03:29]New connection [13:03:29]New thread 3066838372 created [13:03:29]Thread 3066695012 joined [13:03:29]Waiting for new connection... [13:03:29] Sock 9.Parse request [13:03:29]Sock 9.Check first char [13:03:29]Sock 9.First char is OK [13:03:29]request: POST /json_proto HTTP/1.0 [13:03:29]Method: POST [13:03:29]URL: /json_proto [13:03:29]Method is POST - this is cgi request [13:03:29]url: /json_proto [13:03:29]query_string will be loaded in cgi processing [13:03:29]execute_cgi json_proto POST (null) [13:03:29]execute_cgi path=json_proto method=POST [13:03:29]POST find Content-Length [13:03:29]Host: 172.17.35.133:8080 [13:03:29]Content-Length: 628 [13:03:29]Content-Type: application/json [13:03:29] [13:03:29]POST finish read [13:03:29]Found Content-Length = 628 [13:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254570", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:29]execute_script... [13:03:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254570", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:29]POST & json_proto [13:03:29]process_json_proto [13:03:29]json parsed OK: [13:03:29]protocol is kg_v1.0 [13:03:29]action value=close_receipt [13:03:29]process_action close_receipt [13:03:29]cmd_close_receipt [13:03:29]MH_GetDate [13:03:29]Write to MH i2c: F0 00 00 A4 3F D2 [13:03:29]Write i2c OK [13:03:29]MH_I2C_Read... [13:03:29]Read from MH i2c: F0 [13:03:29]MH_I2C_Read... [13:03:29]Read from MH i2c: F0 09 00 [13:03:29]MH_I2C_Read... [13:03:29]Read from MH i2c: F0 09 00 A4 3F 00 2F 34 70 66 8C 55 28 65 82 [13:03:29]GetLastDocTimeStamp 1718629297 [13:03:29]current date 1718629423 [13:03:29]FM_GetShiftState [13:03:29]SAM_PROTO_GetShiftState [13:03:29]wFMCommunicate request_size=4 [13:03:29]MH_SAM_APDU [13:03:29]CAPDU: 80 13 01 00 [13:03:29]Write to MH i2c: E2 08 00 A5 3F 80 13 01 00 00 00 00 00 61 [13:03:29]Write i2c OK [13:03:29]MH_I2C_Read... [13:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:29]Read from MH i2c: E2 [13:03:29]MH_I2C_Read... [13:03:29]Read from MH i2c: E2 0E 00 [13:03:29]MH_I2C_Read... [13:03:29]Read from MH i2c: E2 0E 00 A5 3F 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 13 [13:03:29]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [13:03:29]wFMCommunicate OK [13:03:29]SAM_PROTO_GetShiftState done [13:03:29]FM_GetShiftState done [13:03:29]opened in 1718583887 [13:03:29]opened+sec_in_day 1718670287 [13:03:29]quantity*price = 13000 [13:03:29]sum+1 = 13001 [13:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 43 17.06.2024 13:03 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22362 ФПД: 32685439407358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T130343&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22362&fm=32685439407358&tin=02508201610067®Number=0000000000099755&sum=13000 0 [13:03:30]StoreToDocumentArchive [13:03:30]shift 328 fd 22362 [13:03:30]save to /storage/0328/doc_00022362 [13:03:30]save last doc name /storage/0328/doc_00022362 to /storage/kkm_last_doc_name [13:03:30]save OK [13:03:30]Clear old archive folders... [13:03:30]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:03:30]tlvbuf is 001A65C0 [13:03:30]SAM_PROTO_ClearQueue [13:03:30]wFMCommunicate request_size=4 [13:03:30]MH_SAM_APDU [13:03:30]CAPDU: 80 09 00 00 [13:03:30]Write to MH i2c: E2 08 00 B2 3F 80 09 00 00 00 00 00 00 63 [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:30]Read from MH i2c: E2 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 03 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 03 00 B2 3F 00 90 00 65 [13:03:30]RAPDU: 90 00 [13:03:30]wFMCommunicate OK [13:03:30]SAM_PROTO_ClearQueue done [13:03:30]KKMCreateOFDPacket [13:03:30]OFDProtocolAddRootSTLVToBuf [13:03:30]FM_MakeSignedData [13:03:30]FM_MakeSignedData [13:03:30]SAM_PROTO_SignData [13:03:30]wFMCommunicate request_size=4 [13:03:30]MH_SAM_APDU [13:03:30]CAPDU: 80 0D 01 02 [13:03:30]Write to MH i2c: E2 08 00 B3 3F 80 0D 01 02 00 00 00 00 6B [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:30]Read from MH i2c: E2 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 03 00 [13:03:30]MH_I2C_Read... [13:03:30]Read from MH i2c: E2 03 00 B3 3F 00 90 00 66 [13:03:30]RAPDU: 90 00 [13:03:30]wFMCommunicate OK [13:03:30]wFMCommunicate request_size=255 [13:03:30]MH_SAM_APDU [13:03:30]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 2F 34 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 [13:03:30]Write to MH i2c: E2 02 01 B4 3F 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 2F 34 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 00 00 3D [13:03:30]Write i2c OK [13:03:30]MH_I2C_Read... [13:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:31]Read from MH i2c: E2 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 03 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 03 00 B4 3F 00 90 00 67 [13:03:31]RAPDU: 90 00 [13:03:31]wFMCommunicate OK [13:03:31]wFMCommunicate request_size=35 [13:03:31]MH_SAM_APDU [13:03:31]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5A 57 00 00 35 04 06 00 1D BA 2C 01 54 FE [13:03:31]Write to MH i2c: E2 26 00 B5 3F 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5A 57 00 00 35 04 06 00 1D BA 2C 01 54 FE 00 00 67 [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:31]Read from MH i2c: E2 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 03 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 03 00 B5 3F 00 90 00 68 [13:03:31]RAPDU: 90 00 [13:03:31]wFMCommunicate OK [13:03:31]wFMCommunicate request_size=4 [13:03:31]MH_SAM_APDU [13:03:31]CAPDU: 80 0D 03 02 [13:03:31]Write to MH i2c: E2 08 00 B6 3F 80 0D 03 02 00 00 00 00 70 [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:31]Read from MH i2c: E2 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 0B 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 0B 00 B6 3F 00 9C 4F FA DD 04 73 DB 3B 90 00 C0 [13:03:31]RAPDU: 9C 4F FA DD 04 73 DB 3B 90 00 [13:03:31]wFMCommunicate OK [13:03:31]SAM_PROTO_SignData done [13:03:31]FM_MakeSignedData done [13:03:31]CreateOFDProtocolMessage [13:03:31]wFMCommunicate request_size=4 [13:03:31]MH_SAM_APDU [13:03:31]CAPDU: 80 11 00 00 [13:03:31]Write to MH i2c: E2 08 00 B7 3F 80 11 00 00 00 00 00 00 70 [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:31]Read from MH i2c: E2 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 17 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 17 00 B7 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 C2 [13:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [13:03:31]wFMCommunicate OK [13:03:31]CreateOFDProtocolMessage done [13:03:31]OFDSenderStorePacket 22362 [13:03:31]StoreOFDPacket docnum=22362 [13:03:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 28 01 00 00 CA 00 20 01 37 92 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 2F 34 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5A 57 00 00 35 04 06 00 1D BA 2C 01 54 FE 9C 4F FA DD 04 73 DB 3B [13:03:31]CheckFolder [13:03:31]dirname=/storage/ofd_packets [13:03:31]CheckFolder done [13:03:31]ProducePacketName [13:03:31]name=ofd_packets/00022362 [13:03:31]NVStorageSaveData ofd_packets/00022362 [13:03:31]File name is /storage/ofd_packets/00022362 [13:03:31]Write 326 bytes [13:03:31]NVStorageSaveData done [13:03:31]OFDSenderStorePacket done [13:03:31]KKMCreateOFDPacket done [13:03:31]NVStorageSaveData kkm_last_timestamp [13:03:31]File name is /storage/kkm_last_timestamp [13:03:31]Write 4 bytes [13:03:31]NVStorageSaveData done [13:03:31]ExternCall_PrintAddStr [13:03:31]wPrintStart [13:03:31]Write to MH i2c: 01 00 00 B8 3F F7 [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: 01 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: 01 07 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: 01 07 00 B8 3F 00 00 00 00 00 FF 0F 0C [13:03:31]RasterBufferAndPrint [13:03:31]line Счет N : (3)254570 [13:03:31]line ИНН: 02508201610067 [13:03:31]line Контрольно-Кассовый Чек [13:03:31]line ПРОДАЖА [13:03:31]line Товар: 2000036230011 [13:03:31]line Кофе Латте XL(GABB TRADE) [13:03:31]line 1.000 * 130.00 [13:03:31]line = 130.00 [13:03:31]line НДС 12% НСП 1% [13:03:31]line > о реализуемом товаре [13:03:31]line ИТОГО: 130.00 [13:03:31]line НСП 1% : 1.15 [13:03:31]line НДС 12% : 13.80 [13:03:31]line Наличными: 130.00 [13:03:31]line Безнал.: 0.00 [13:03:31]line Место: АЗС № 76 "Партнер Нефть" [13:03:31]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [13:03:31]line СНО: Общий режим [13:03:31]line Чек 43 17.06.2024 13:03 [13:03:31]line Смена: 328 ФФД: 1.0 [13:03:31]line ЗНМ: 0300000200 [13:03:31]line РНМ: 0000000000099755 [13:03:31]line Версия ККМ: 001 [13:03:31]line ФМ: 0000000000965344 [13:03:31]line ФД: 22362 [13:03:31]line ФПД: 32685439407358 [13:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T130343&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22362&fm=32685439407358&tin=02508201610067®Number=0000000000099755&sum=13000 [13:03:31]OFD Sender: Processing packet 22362 [packets to send 5, broken 4] [13:03:31]ProducePacketName [13:03:31]name=ofd_packets/00022362 [13:03:31]OFD Sender: To server: pG, [13:03:31]CommunicateWithHost lk.salyk.kg:30040 [13:03:31]ConnectInit lk.salyk.kg [13:03:31]line 0 [13:03:31]written 0, free lines is 4095 [13:03:31]Connected sock=10 [13:03:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 28 01 00 00 CA 00 20 01 37 92 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 2F 34 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5A 57 00 00 35 04 06 00 1D BA 2C 01 54 FE 9C 4F FA DD 04 73 DB 3B [13:03:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 4E 39 47 00 85 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 39 36 35 33 34 34 10 04 04 00 5A 57 00 00 F4 03 04 00 E6 DC 6F 66 B6 04 01 00 00 96 ED 5A 0F 19 F7 0D C7 [13:03:32]CommunicateWithHost err = 0 [13:03:32]CheckOFDResponse [13:03:32]1017 (14) - 77093643461234 [13:03:32]1041 (16) - 0000000000965344 [13:03:32]1040 (4) - 22362 [13:03:32]1012 (4) - 17.06.2024 06:51 [13:03:32]1206 (1) - 0 [13:03:32]OFD Sender: Remove packet 22362 [13:03:32]ProducePacketName [13:03:32]name=ofd_packets/00022362 [13:03:32]NVStorageDeleteData [13:03:32]Write to MH i2c: 01 00 00 E0 3F 1F [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 07 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: 01 07 00 E0 3F 00 00 00 00 00 2F 0D 62 [13:03:32]RasterBufferAndPrint [13:03:32]line [13:03:32]line [13:03:32]line [13:03:32]line [13:03:32]line [13:03:32]written 0, free lines is 3379 [13:03:32]MH_Cut [13:03:32]Write to MH i2c: D1 01 00 E7 3F 01 F8 [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: D1 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: D1 01 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: D1 01 00 E7 3F 00 F7 [13:03:32]Write to MH i2c: 01 00 00 E8 3F 27 [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]OFD Sender: No OFD packet to send [13:03:32]*** Cut start [13:03:32]*** Partial cut [13:03:32]*** CUTSNS_PIN = 1 [13:03:32]*** CUTSNS_PIN = 0 [13:03:33]*** Brake cut motor [13:03:33]Read from MH i2c: 01 [13:03:33]MH_I2C_Read... [13:03:33]*** Stop cut motor [13:03:33]*** Cut end [13:03:33]Read from MH i2c: 01 07 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: 01 07 00 E8 3F 00 00 00 00 00 FF 0F 3C [13:03:33]process_action close_receipt done [13:03:33]requested_data is exist [13:03:33]produce_requested_data [13:03:33]requested_item fm.sn is exist - process it [13:03:33]wFMCommunicate request_size=4 [13:03:33]MH_SAM_APDU [13:03:33]CAPDU: 80 11 00 00 [13:03:33]Write to MH i2c: E2 08 00 E9 3F 80 11 00 00 00 00 00 00 A2 [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 [13:03:33]MH_I2C_Read... [13:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:33]Read from MH i2c: E2 17 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 17 00 E9 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 F4 [13:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [13:03:33]wFMCommunicate OK [13:03:33]requested_item fd.num is exist - process it [13:03:33]SAM_PROTO_GetFieldsCounters [13:03:33]wFMCommunicate request_size=4 [13:03:33]MH_SAM_APDU [13:03:33]CAPDU: 80 13 00 00 [13:03:33]Write to MH i2c: E2 08 00 EA 3F 80 13 00 00 00 00 00 00 A5 [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:33]Read from MH i2c: E2 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 62 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 62 00 EA 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 5A 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [13:03:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 5A 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:33]wFMCommunicate OK [13:03:33]SAM_PROTO_GetFieldsCounters done [13:03:33]requested_item shift.num is exist - process it [13:03:33]requested_item shift.opened is exist - process it [13:03:33]req_shift_opened [13:03:33]FM_GetShiftState [13:03:33]SAM_PROTO_GetShiftState [13:03:33]wFMCommunicate request_size=4 [13:03:33]MH_SAM_APDU [13:03:33]CAPDU: 80 13 01 00 [13:03:33]Write to MH i2c: E2 08 00 EB 3F 80 13 01 00 00 00 00 00 A7 [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:33]Read from MH i2c: E2 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 0E 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 0E 00 EB 3F 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 59 [13:03:33]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [13:03:33]wFMCommunicate OK [13:03:33]SAM_PROTO_GetShiftState done [13:03:33]FM_GetShiftState done [13:03:33]req_shift_opened done [13:03:33]requested_item shift.open_date is exist - process it [13:03:33]req_shift_open_date [13:03:33]req_shift_open_date done [13:03:33]produce_requested_data done [13:03:33]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22362,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [13:03:33]process_action_free close_receipt [13:03:33]json_value_free [13:03:33]json_value_free done [13:03:33]process_json_proto returns [13:03:33]Send response to host [13:03:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22362,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [13:03:33]free response buf [13:03:33]execute_script done [13:03:33]execute_script returns [13:03:33]free content buf [13:03:33]Sock 9.Close socket [13:03:33]Sock 9.Thread stoped [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:04:58]accept exits with 8 [13:04:58]New connection [13:04:58]New thread 3066695012 created [13:04:58]Thread 3066838372 joined [13:04:58]Waiting for new connection... [13:04:58] Sock 8.Parse request [13:04:58]Sock 8.Check first char [13:04:58]Sock 8.First char is OK [13:04:58]request: POST /json_proto HTTP/1.0 [13:04:58]Method: POST [13:04:58]URL: /json_proto [13:04:58]Method is POST - this is cgi request [13:04:58]url: /json_proto [13:04:58]query_string will be loaded in cgi processing [13:04:58]execute_cgi json_proto POST (null) [13:04:58]execute_cgi path=json_proto method=POST [13:04:58]POST find Content-Length [13:04:58]Host: 172.17.35.133:8080 [13:04:58]Content-Length: 688 [13:04:58]Content-Type: application/json [13:04:58] [13:04:58]POST finish read [13:04:58]Found Content-Length = 688 [13:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1610886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.10, "quantity" : 34.680, "sum" : 2500.43, "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" ] } } [13:04:58]execute_script... [13:04: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)1610886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.10, "quantity" : 34.680, "sum" : 2500.43, "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" ] } } [13:04:58]POST & json_proto [13:04:58]process_json_proto [13:04:58]json parsed OK: [13:04:58]protocol is kg_v1.0 [13:04:58]action value=close_receipt [13:04:58]process_action close_receipt [13:04:58]cmd_close_receipt [13:04:58]MH_GetDate [13:04:58]Write to MH i2c: F0 00 00 EC 3F 1A [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: F0 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: F0 09 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: F0 09 00 EC 3F 00 88 34 70 66 8C 55 28 65 23 [13:04:58]GetLastDocTimeStamp 1718629423 [13:04:58]current date 1718629512 [13:04:58]FM_GetShiftState [13:04:58]SAM_PROTO_GetShiftState [13:04:58]wFMCommunicate request_size=4 [13:04:58]MH_SAM_APDU [13:04:58]CAPDU: 80 13 01 00 [13:04:58]Write to MH i2c: E2 08 00 ED 3F 80 13 01 00 00 00 00 00 A9 [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:58]Read from MH i2c: E2 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 0E 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 0E 00 ED 3F 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 5B [13:04:58]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [13:04:58]wFMCommunicate OK [13:04:58]SAM_PROTO_GetShiftState done [13:04:58]FM_GetShiftState done [13:04:58]opened in 1718583887 [13:04:58]opened+sec_in_day 1718670287 [13:04:58]quantity*price = 250042 [13:04:58]sum+1 = 250044 [13:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.53 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 44 17.06.2024 13:05 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22363 ФПД: 268376320214537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T130512&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22363&fm=268376320214537&tin=02508201610067®Number=0000000000099755&sum=250000 [13:04:59]StoreToDocumentArchive [13:04:59]shift 328 fd 22363 [13:04:59]save to /storage/0328/doc_00022363 [13:04:59]save last doc name /storage/0328/doc_00022363 to /storage/kkm_last_doc_name [13:04:59]save OK [13:04:59]Clear old archive folders... [13:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:04:59]tlvbuf is 001FAD70 [13:04:59]SAM_PROTO_ClearQueue [13:04:59]wFMCommunicate request_size=4 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 09 00 00 [13:04:59]Write to MH i2c: E2 08 00 FA 3F 80 09 00 00 00 00 00 00 AB [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:59]Read from MH i2c: E2 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 FA 3F 00 90 00 AD [13:04:59]RAPDU: 90 00 [13:04:59]wFMCommunicate OK [13:04:59]SAM_PROTO_ClearQueue done [13:04:59]KKMCreateOFDPacket [13:04:59]OFDProtocolAddRootSTLVToBuf [13:04:59]FM_MakeSignedData [13:04:59]FM_MakeSignedData [13:04:59]SAM_PROTO_SignData [13:04:59]wFMCommunicate request_size=4 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 0D 01 02 [13:04:59]Write to MH i2c: E2 08 00 FB 3F 80 0D 01 02 00 00 00 00 B3 [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:59]Read from MH i2c: E2 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 FB 3F 00 90 00 AE [13:04:59]RAPDU: 90 00 [13:04:59]wFMCommunicate OK [13:04:59]wFMCommunicate request_size=255 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 78 87 00 00 00 00 00 37 04 06 00 2A 1C 00 00 00 00 13 04 06 00 BB 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 B9 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 2C 00 00 00 F4 03 04 00 88 34 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5B 57 00 00 35 04 06 00 [13:05:00]Write to MH i2c: E2 02 01 FC 3F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 78 87 00 00 00 00 00 37 04 06 00 2A 1C 00 00 00 00 13 04 06 00 BB 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 B9 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 2C 00 00 00 F4 03 04 00 88 34 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5B 57 00 00 35 04 06 00 00 00 1F [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 03 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 03 00 FC 3F 00 90 00 AF [13:05:00]RAPDU: 90 00 [13:05:00]wFMCommunicate OK [13:05:00]wFMCommunicate request_size=11 [13:05:00]MH_SAM_APDU [13:05:00]CAPDU: 80 0D 02 02 06 F4 16 3B 3B 86 09 [13:05:00]Write to MH i2c: E2 0E 00 FD 3F 80 0D 02 02 06 00 F4 16 3B 3B 86 09 00 00 D1 [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 03 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 03 00 FD 3F 00 90 00 B0 [13:05:00]RAPDU: 90 00 [13:05:00]wFMCommunicate OK [13:05:00]wFMCommunicate request_size=4 [13:05:00]MH_SAM_APDU [13:05:00]CAPDU: 80 0D 03 02 [13:05:00]Write to MH i2c: E2 08 00 FE 3F 80 0D 03 02 00 00 00 00 B8 [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 0B 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 0B 00 FE 3F 00 89 56 F7 D6 A8 59 17 51 90 00 CE [13:05:00]RAPDU: 89 56 F7 D6 A8 59 17 51 90 00 [13:05:00]wFMCommunicate OK [13:05:00]SAM_PROTO_SignData done [13:05:00]FM_MakeSignedData done [13:05:00]CreateOFDProtocolMessage [13:05:00]wFMCommunicate request_size=4 [13:05:00]MH_SAM_APDU [13:05:00]CAPDU: 80 11 00 00 [13:05:00]Write to MH i2c: E2 08 00 FF 3F 80 11 00 00 00 00 00 00 B8 [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 17 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 17 00 FF 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 0A [13:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [13:05:00]wFMCommunicate OK [13:05:00]CreateOFDProtocolMessage done [13:05:00]OFDSenderStorePacket 22363 [13:05:00]StoreOFDPacket docnum=22363 [13:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 01 00 00 64 FA 08 01 34 5C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 78 87 00 00 00 00 00 37 04 06 00 2A 1C 00 00 00 00 13 04 06 00 BB 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 B9 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 2C 00 00 00 F4 03 04 00 88 34 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5B 57 00 00 35 04 06 00 F4 16 3B 3B 86 09 89 56 F7 D6 A8 59 17 51 [13:05:00]CheckFolder [13:05:00]dirname=/storage/ofd_packets [13:05:00]CheckFolder done [13:05:00]ProducePacketName [13:05:00]name=ofd_packets/00022363 [13:05:00]NVStorageSaveData ofd_packets/00022363 [13:05:00]File name is /storage/ofd_packets/00022363 [13:05:00]Write 302 bytes [13:05:00]NVStorageSaveData done [13:05:00]OFDSenderStorePacket done [13:05:00]KKMCreateOFDPacket done [13:05:00]NVStorageSaveData kkm_last_timestamp [13:05:00]File name is /storage/kkm_last_timestamp [13:05:00]Write 4 bytes [13:05:00]NVStorageSaveData done [13:05:00]ExternCall_PrintAddStr [13:05:00]wPrintStart [13:05:00]Write to MH i2c: 01 00 00 00 40 40 [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 07 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 07 00 00 40 00 00 00 00 00 FF 0F 55 [13:05:00]RasterBufferAndPrint [13:05:00]line Счет N : (1)1610886 [13:05:00]line ИНН: 02508201610067 [13:05:00]line Контрольно-Кассовый Чек [13:05:00]line ПРОДАЖА [13:05:00]line ТРК (МРК, ГНК) : 51 [13:05:00]line Товар: 2710194210 [13:05:00]line ДТ(л)-К-4 [13:05:00]line 34.680 * 72.10 [13:05:00]line = 2500.43 [13:05:00]line НДС 12% НСП 1% [13:05:00]line > о реализуемом товаре [13:05:00]line ОКРУГЛЕНИЕ: -0.43 [13:05:00]line ИТОГО: 2500.00 [13:05:00]line Внесено: 2500.00 [13:05:00]line СДАЧА: 0.00 [13:05:00]line НСП 1% : 22.13 [13:05:00]line НДС 12% : 265.53 [13:05:00]line Наличными: 2500.00 [13:05:00]line Безнал.: 0.00 [13:05:00]line Место: АЗС № 76 "Партнер Нефть" [13:05:00]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [13:05:00]line СНО: Общий режим [13:05:00]line Чек 44 17.06.2024 13:05 [13:05:00]line Смена: 328 ФФД: 1.0 [13:05:00]line ЗНМ: 0300000200 [13:05:00]line РНМ: 0000000000099755 [13:05:00]line Версия ККМ: 001 [13:05:00]line ФМ: 0000000000965344 [13:05:00]line ФД: 22363 [13:05:00]line ФПД: 268376320214537 [13:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T130512&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22363&fm=268376320214537&tin=02508201610067®Number=0000000000099755&sum=250000 [13:05:00]OFD Sender: Processing packet 22363 [packets to send 5, broken 4] [13:05:00]ProducePacketName [13:05:00]name=ofd_packets/00022363 [13:05:00]OFD Sender: To server: pG, [13:05:00]CommunicateWithHost lk.salyk.kg:30040 [13:05:00]ConnectInit lk.salyk.kg [13:05:00]written 0, free lines is 4095 [13:05:00]Connected sock=10 [13:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 01 00 00 64 FA 08 01 34 5C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 78 87 00 00 00 00 00 37 04 06 00 2A 1C 00 00 00 00 13 04 06 00 BB 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 B9 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 2C 00 00 00 F4 03 04 00 88 34 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5B 57 00 00 35 04 06 00 F4 16 3B 3B 86 09 89 56 F7 D6 A8 59 17 51 [13:05:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 52 8F 47 00 64 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 39 36 35 33 34 34 10 04 04 00 5B 57 00 00 F4 03 04 00 3F DD 6F 66 B6 04 01 00 00 AB 2C 05 05 2C FE 9C DA [13:05:01]CommunicateWithHost err = 0 [13:05:01]CheckOFDResponse [13:05:01]1017 (14) - 77093643461234 [13:05:01]1041 (16) - 0000000000965344 [13:05:01]1040 (4) - 22363 [13:05:01]1012 (4) - 17.06.2024 06:52 [13:05:01]1206 (1) - 0 [13:05:01]OFD Sender: Remove packet 22363 [13:05:01]ProducePacketName [13:05:01]name=ofd_packets/00022363 [13:05:01]NVStorageDeleteData [13:05:01]Write to MH i2c: 01 00 00 2B 40 6B [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: 01 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: 01 07 00 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: 01 07 00 2B 40 00 00 00 00 00 F8 0C 76 [13:05:01]RasterBufferAndPrint [13:05:01]line [13:05:01]line [13:05:01]line [13:05:01]line [13:05:01]line [13:05:01]written 0, free lines is 3330 [13:05:01]MH_Cut [13:05:01]Write to MH i2c: D1 01 00 32 40 01 44 [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: D1 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: D1 01 00 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: D1 01 00 32 40 00 43 [13:05:01]Write to MH i2c: 01 00 00 33 40 73 [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:01]OFD Sender: No OFD packet to send [13:05:01]*** Cut start [13:05:01]*** Partial cut [13:05:01]*** CUTSNS_PIN = 1 [13:05:01]*** CUTSNS_PIN = 0 [13:05:02]*** Brake cut motor [13:05:02]Read from MH i2c: 01 [13:05:02]MH_I2C_Read... [13:05:02]*** Stop cut motor [13:05:02]*** Cut end [13:05:02]Read from MH i2c: 01 07 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: 01 07 00 33 40 00 00 00 00 00 FF 0F 88 [13:05:02]process_action close_receipt done [13:05:02]requested_data is exist [13:05:02]produce_requested_data [13:05:02]requested_item fm.sn is exist - process it [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 11 00 00 [13:05:02]Write to MH i2c: E2 08 00 34 40 80 11 00 00 00 00 00 00 EE [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 17 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 17 00 34 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 40 [13:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [13:05:02]wFMCommunicate OK [13:05:02]requested_item fd.num is exist - process it [13:05:02]SAM_PROTO_GetFieldsCounters [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 13 00 00 [13:05:02]Write to MH i2c: E2 08 00 35 40 80 13 00 00 00 00 00 00 F1 [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 62 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 62 00 35 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 5B 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [13:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 5B 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:02]wFMCommunicate OK [13:05:02]SAM_PROTO_GetFieldsCounters done [13:05:02]requested_item shift.num is exist - process it [13:05:02]requested_item shift.opened is exist - process it [13:05:02]req_shift_opened [13:05:02]FM_GetShiftState [13:05:02]SAM_PROTO_GetShiftState [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 13 01 00 [13:05:02]Write to MH i2c: E2 08 00 36 40 80 13 01 00 00 00 00 00 F3 [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 0E 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 0E 00 36 40 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 A5 [13:05:02]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [13:05:02]wFMCommunicate OK [13:05:02]SAM_PROTO_GetShiftState done [13:05:02]FM_GetShiftState done [13:05:02]req_shift_opened done [13:05:02]requested_item shift.open_date is exist - process it [13:05:02]req_shift_open_date [13:05:02]req_shift_open_date done [13:05:02]produce_requested_data done [13:05:02]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22363,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [13:05:02]process_action_free close_receipt [13:05:02]json_value_free [13:05:02]json_value_free done [13:05:02]process_json_proto returns [13:05:02]Send response to host [13:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22363,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [13:05:02]free response buf [13:05:02]execute_script done [13:05:02]execute_script returns [13:05:02]free content buf [13:05:02]Sock 8.Close socket [13:05:02]Sock 8.Thread stoped [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:36]OFD Sender: No OFD packet to send [13:06:41]OFD Sender: No OFD packet to send [13:06:46]OFD Sender: No OFD packet to send [13:06:51]OFD Sender: No OFD packet to send [13:06:56]OFD Sender: No OFD packet to send [13:07:01]OFD Sender: No OFD packet to send [13:07:06]OFD Sender: No OFD packet to send [13:07:11]OFD Sender: No OFD packet to send [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:26]OFD Sender: No OFD packet to send [13:07:31]OFD Sender: No OFD packet to send [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:54]accept exits with 9 [13:19:54]New connection [13:19:54]New thread 3066838372 created [13:19:54]Thread 3066695012 joined [13:19:54]Waiting for new connection... [13:19:54] Sock 9.Parse request [13:19:54]Sock 9.Check first char [13:19:54]Sock 9.First char is OK [13:19:54]request: POST /json_proto HTTP/1.0 [13:19:54]Method: POST [13:19:54]URL: /json_proto [13:19:54]Method is POST - this is cgi request [13:19:54]url: /json_proto [13:19:54]query_string will be loaded in cgi processing [13:19:54]execute_cgi json_proto POST (null) [13:19:54]execute_cgi path=json_proto method=POST [13:19:54]POST find Content-Length [13:19:54]Host: 172.17.35.133:8080 [13:19:54]Content-Length: 1242 [13:19:54]Content-Type: application/json [13:19:54] [13:19:54]POST finish read [13:19:54]Found Content-Length = 1242 [13:19:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254571", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8590042701239", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D\u044B\u0435 VOK", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 186.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:54]execute_script... [13:19:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254571", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8590042701239", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D\u044B\u0435 VOK", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 186.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:54]POST & json_proto [13:19:54]process_json_proto [13:19:54]json parsed OK: [13:19:54]protocol is kg_v1.0 [13:19:54]action value=close_receipt [13:19:54]process_action close_receipt [13:19:54]cmd_close_receipt [13:19:54]MH_GetDate [13:19:54]Write to MH i2c: F0 00 00 37 40 66 [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: F0 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: F0 09 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: F0 09 00 37 40 00 07 38 70 66 8C 55 28 65 F2 [13:19:54]GetLastDocTimeStamp 1718629512 [13:19:54]current date 1718630407 [13:19:54]FM_GetShiftState [13:19:54]SAM_PROTO_GetShiftState [13:19:54]wFMCommunicate request_size=4 [13:19:54]MH_SAM_APDU [13:19:54]CAPDU: 80 13 01 00 [13:19:54]Write to MH i2c: E2 08 00 38 40 80 13 01 00 00 00 00 00 F5 [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:54]Read from MH i2c: E2 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 0E 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 0E 00 38 40 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 A7 [13:19:54]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [13:19:54]wFMCommunicate OK [13:19:54]SAM_PROTO_GetShiftState done [13:19:54]FM_GetShiftState done [13:19:54]opened in 1718583887 [13:19:54]opened+sec_in_day 1718670287 [13:19:54]quantity*price = 6000 [13:19:54]sum+1 = 6001 [13:19:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681062 Grizzly волнистые Колбаски с горчицей 55 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 8590042701239 Салфетки влажные VOK 1.000 * 36.00 = 36.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 186.00 НСП 1% : 1.65 НДС 12% : 19.75 Наличными: 186.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 45 17.06.2024 13:20 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22364 ФПД: 229001953941061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T132008&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22364&fm=229001953941061&tin=02508201610067®Number=0000000000099755&sum=18600 0 [13:19:55]StoreToDocumentArchive [13:19:55]shift 328 fd 22364 [13:19:55]save to /storage/0328/doc_00022364 [13:19:55]save last doc name /storage/0328/doc_00022364 to /storage/kkm_last_doc_name [13:19:55]save OK [13:19:55]Clear old archive folders... [13:19:55]ProcessDocumentItem done err = 0, tmpTLVsize=516 [13:19:55]tlvbuf is 0029D490 [13:19:55]SAM_PROTO_ClearQueue [13:19:55]wFMCommunicate request_size=4 [13:19:55]MH_SAM_APDU [13:19:55]CAPDU: 80 09 00 00 [13:19:55]Write to MH i2c: E2 08 00 45 40 80 09 00 00 00 00 00 00 F7 [13:19:55]Write i2c OK [13:19:55]MH_I2C_Read... [13:19:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:55]Read from MH i2c: E2 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 03 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 03 00 45 40 00 90 00 F9 [13:19:55]RAPDU: 90 00 [13:19:55]wFMCommunicate OK [13:19:55]SAM_PROTO_ClearQueue done [13:19:55]KKMCreateOFDPacket [13:19:55]OFDProtocolAddRootSTLVToBuf [13:19:55]FM_MakeSignedData [13:19:55]FM_MakeSignedData [13:19:55]SAM_PROTO_SignData [13:19:55]wFMCommunicate request_size=4 [13:19:55]MH_SAM_APDU [13:19:55]CAPDU: 80 0D 01 02 [13:19:55]Write to MH i2c: E2 08 00 46 40 80 0D 01 02 00 00 00 00 FF [13:19:55]Write i2c OK [13:19:55]MH_I2C_Read... [13:19:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:55]Read from MH i2c: E2 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 03 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 03 00 46 40 00 90 00 FA [13:19:55]RAPDU: 90 00 [13:19:55]wFMCommunicate OK [13:19:55]wFMCommunicate request_size=255 [13:19:55]MH_SAM_APDU [13:19:55]CAPDU: 80 0D 02 02 FA 03 00 04 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 [13:19:55]Write to MH i2c: E2 02 01 47 40 80 0D 02 02 FA 00 03 00 04 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 00 00 02 [13:19:55]Write i2c OK [13:19:55]MH_I2C_Read... [13:19:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:55]Read from MH i2c: E2 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 03 00 [13:19:55]MH_I2C_Read... [13:19:55]Read from MH i2c: E2 03 00 47 40 00 90 00 FB [13:19:55]RAPDU: 90 00 [13:19:55]wFMCommunicate OK [13:19:55]wFMCommunicate request_size=255 [13:19:55]MH_SAM_APDU [13:19:55]CAPDU: 80 0D 02 02 FA 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 07 00 00 00 00 07 04 06 00 A8 48 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 08 38 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 [13:19:55]Write to MH i2c: E2 02 01 48 40 80 0D 02 02 FA 00 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 07 00 00 00 00 07 04 06 00 A8 48 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 08 38 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 00 00 D5 [13:19:55]Write i2c OK [13:19:55]MH_I2C_Read... [13:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:56]Read from MH i2c: E2 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 03 00 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 03 00 48 40 00 90 00 FC [13:19:56]RAPDU: 90 00 [13:19:56]wFMCommunicate OK [13:19:56]wFMCommunicate request_size=25 [13:19:56]MH_SAM_APDU [13:19:56]CAPDU: 80 0D 02 02 14 34 34 10 04 04 00 5C 57 00 00 35 04 06 00 D0 46 AC 1E 16 45 [13:19:56]Write to MH i2c: E2 1C 00 49 40 80 0D 02 02 14 00 34 34 10 04 04 00 5C 57 00 00 35 04 06 00 D0 46 AC 1E 16 45 00 00 D8 [13:19:56]Write i2c OK [13:19:56]MH_I2C_Read... [13:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:56]Read from MH i2c: E2 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 03 00 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 03 00 49 40 00 90 00 FD [13:19:56]RAPDU: 90 00 [13:19:56]wFMCommunicate OK [13:19:56]wFMCommunicate request_size=4 [13:19:56]MH_SAM_APDU [13:19:56]CAPDU: 80 0D 03 02 [13:19:56]Write to MH i2c: E2 08 00 4A 40 80 0D 03 02 00 00 00 00 05 [13:19:56]Write i2c OK [13:19:56]MH_I2C_Read... [13:19:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:56]Read from MH i2c: E2 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 0B 00 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 0B 00 4A 40 00 F9 C1 03 4E 4D 7A DB 69 90 00 1C [13:19:56]RAPDU: F9 C1 03 4E 4D 7A DB 69 90 00 [13:19:56]wFMCommunicate OK [13:19:56]SAM_PROTO_SignData done [13:19:56]FM_MakeSignedData done [13:19:56]CreateOFDProtocolMessage [13:19:56]wFMCommunicate request_size=4 [13:19:56]MH_SAM_APDU [13:19:56]CAPDU: 80 11 00 00 [13:19:56]Write to MH i2c: E2 08 00 4B 40 80 11 00 00 00 00 00 00 05 [13:19:56]Write i2c OK [13:19:56]MH_I2C_Read... [13:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:56]Read from MH i2c: E2 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 17 00 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 17 00 4B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 57 [13:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [13:19:56]wFMCommunicate OK [13:19:56]CreateOFDProtocolMessage done [13:19:56]OFDSenderStorePacket 22364 [13:19:56]StoreOFDPacket docnum=22364 [13:19:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 18 02 00 00 7C 4C 10 02 0F EF 5A 03 01 00 03 00 04 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 07 00 00 00 00 07 04 06 00 A8 48 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 08 38 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5C 57 00 00 35 04 06 00 D0 46 AC 1E 16 45 F9 C1 03 4E 4D 7A DB 69 [13:19:56]CheckFolder [13:19:56]dirname=/storage/ofd_packets [13:19:56]CheckFolder done [13:19:56]ProducePacketName [13:19:56]name=ofd_packets/00022364 [13:19:56]NVStorageSaveData ofd_packets/00022364 [13:19:56]File name is /storage/ofd_packets/00022364 [13:19:56]Write 566 bytes [13:19:56]NVStorageSaveData done [13:19:56]OFDSenderStorePacket done [13:19:56]KKMCreateOFDPacket done [13:19:56]NVStorageSaveData kkm_last_timestamp [13:19:56]File name is /storage/kkm_last_timestamp [13:19:56]Write 4 bytes [13:19:56]NVStorageSaveData done [13:19:56]ExternCall_PrintAddStr [13:19:56]wPrintStart [13:19:56]Write to MH i2c: 01 00 00 4C 40 8C [13:19:56]Write i2c OK [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: 01 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: 01 07 00 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: 01 07 00 4C 40 00 00 00 00 00 FF 0F A1 [13:19:56]RasterBufferAndPrint [13:19:56]line Счет N : (3)254571 [13:19:56]line ИНН: 02508201610067 [13:19:56]line Контрольно-Кассовый Чек [13:19:56]line ПРОДАЖА [13:19:56]line Товар: 4700000160204 [13:19:56]line Вода Легенда 1,5л [13:19:56]line 1.000 * 60.00 [13:19:56]line = 60.00 [13:19:56]line НДС 12% НСП 1% [13:19:56]line > о реализуемом товаре [13:19:56]line Товар: 4870235681062 [13:19:56]line Grizzly волнистые Колбаски с горчицей 55 [13:19:56]line 1.000 * 90.00 [13:19:56]line = 90.00 [13:19:56]line НДС 12% НСП 1% [13:19:56]line > о реализуемом товаре [13:19:56]line Товар: 8590042701239 [13:19:56]line Салфетки влажные VOK [13:19:56]line 1.000 * 36.00 [13:19:56]line = 36.00 [13:19:56]line НДС 12% НСП 1% [13:19:56]line > о реализуемом товаре [13:19:56]line ИТОГО: 186.00 [13:19:56]line НСП 1% : 1.65 [13:19:56]line НДС 12% : 19.75 [13:19:56]line Наличными: 186.00 [13:19:56]line Безнал.: 0.00 [13:19:56]line Место: АЗС № 76 "Партнер Нефть" [13:19:56]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [13:19:56]line СНО: Общий режим [13:19:56]line Чек 45 17.06.2024 13:20 [13:19:56]line Смена: 328 ФФД: 1.0 [13:19:56]line ЗНМ: 0300000200 [13:19:56]line РНМ: 0000000000099755 [13:19:56]line Версия ККМ: 001 [13:19:56]line ФМ: 0000000000965344 [13:19:56]line ФД: 22364 [13:19:56]line ФПД: 229001953941061 [13:19:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T132008&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22364&fm=229001953941061&tin=02508201610067®Number=0000000000099755&sum=18600 [13:19:56]line 0 [13:19:56]OFD Sender: Processing packet 22364 [packets to send 5, broken 4] [13:19:56]ProducePacketName [13:19:56]name=ofd_packets/00022364 [13:19:56]OFD Sender: To server: pG, [13:19:56]CommunicateWithHost lk.salyk.kg:30040 [13:19:56]ConnectInit lk.salyk.kg [13:19:56]written 0, free lines is 4095 [13:19:56]Connected sock=10 [13:19:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 18 02 00 00 7C 4C 10 02 0F EF 5A 03 01 00 03 00 04 02 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 07 00 00 00 00 07 04 06 00 A8 48 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 08 38 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5C 57 00 00 35 04 06 00 D0 46 AC 1E 16 45 F9 C1 03 4E 4D 7A DB 69 [13:19:57]Write to MH i2c: 01 00 00 81 40 C1 [13:19:57]Write i2c OK [13:19:57]MH_I2C_Read... [13:19:57]Read from MH i2c: 01 [13:19:57]MH_I2C_Read... [13:19:57]Read from MH i2c: 01 07 00 [13:19:57]MH_I2C_Read... [13:19:57]Read from MH i2c: 01 07 00 81 40 00 00 00 00 00 82 0C 56 [13:19:57]RasterBufferAndPrint [13:19:57]line [13:19:57]line [13:19:57]line [13:19:57]line [13:19:57]line [13:19:57]written 0, free lines is 3211 [13:19:57]MH_Cut [13:19:57]Write to MH i2c: D1 01 00 88 40 01 9A [13:19:57]Write i2c OK [13:19:57]MH_I2C_Read... [13:19:57]Read from MH i2c: D1 [13:19:57]MH_I2C_Read... [13:19:57]Read from MH i2c: D1 01 00 [13:19:57]MH_I2C_Read... [13:19:57]Read from MH i2c: D1 01 00 88 40 00 99 [13:19:57]Write to MH i2c: 01 00 00 89 40 C9 [13:19:57]Write i2c OK [13:19:57]MH_I2C_Read... [13:19:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 A8 AD 47 00 31 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 39 36 35 33 34 34 10 04 04 00 5C 57 00 00 F4 03 04 00 BF E0 6F 66 B6 04 01 00 00 C7 B2 C4 0E 76 CE BD EC [13:19:57]CommunicateWithHost err = 0 [13:19:57]CheckOFDResponse [13:19:57]1017 (14) - 77093643461234 [13:19:57]1041 (16) - 0000000000965344 [13:19:57]1040 (4) - 22364 [13:19:57]1012 (4) - 17.06.2024 07:07 [13:19:57]1206 (1) - 0 [13:19:57]OFD Sender: Remove packet 22364 [13:19:57]ProducePacketName [13:19:57]name=ofd_packets/00022364 [13:19:57]NVStorageDeleteData [13:19:57]OFD Sender: No OFD packet to send [13:19:57]*** Cut start [13:19:57]*** Partial cut [13:19:57]*** CUTSNS_PIN = 1 [13:19:57]*** CUTSNS_PIN = 0 [13:19:58]*** Brake cut motor [13:19:58]Read from MH i2c: 01 [13:19:58]MH_I2C_Read... [13:19:58]*** Stop cut motor [13:19:58]*** Cut end [13:19:58]Read from MH i2c: 01 07 00 [13:19:58]MH_I2C_Read... [13:19:58]Read from MH i2c: 01 07 00 89 40 00 00 00 00 00 FF 0F DE [13:19:58]process_action close_receipt done [13:19:58]requested_data is exist [13:19:58]produce_requested_data [13:19:58]requested_item fm.sn is exist - process it [13:19:58]wFMCommunicate request_size=4 [13:19:58]MH_SAM_APDU [13:19:58]CAPDU: 80 11 00 00 [13:19:58]Write to MH i2c: E2 08 00 8A 40 80 11 00 00 00 00 00 00 44 [13:19:58]Write i2c OK [13:19:58]MH_I2C_Read... [13:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:58]Read from MH i2c: E2 [13:19:58]MH_I2C_Read... [13:19:58]Read from MH i2c: E2 17 00 [13:19:58]MH_I2C_Read... [13:19:58]Read from MH i2c: E2 17 00 8A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 96 [13:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [13:19:58]wFMCommunicate OK [13:19:58]requested_item fd.num is exist - process it [13:19:58]SAM_PROTO_GetFieldsCounters [13:19:58]wFMCommunicate request_size=4 [13:19:58]MH_SAM_APDU [13:19:58]CAPDU: 80 13 00 00 [13:19:58]Write to MH i2c: E2 08 00 8B 40 80 13 00 00 00 00 00 00 47 [13:19:58]Write i2c OK [13:19:58]MH_I2C_Read... [13:19:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:58]Read from MH i2c: E2 [13:19:58]MH_I2C_Read... [13:19:58]Read from MH i2c: E2 62 00 [13:19:58]MH_I2C_Read... [13:19:58]Read from MH i2c: E2 62 00 8B 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 5C 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [13:19:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 5C 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:58]wFMCommunicate OK [13:19:58]SAM_PROTO_GetFieldsCounters done [13:19:58]requested_item shift.num is exist - process it [13:19:58]requested_item shift.opened is exist - process it [13:19:58]req_shift_opened [13:19:58]FM_GetShiftState [13:19:58]SAM_PROTO_GetShiftState [13:19:58]wFMCommunicate request_size=4 [13:19:58]MH_SAM_APDU [13:19:58]CAPDU: 80 13 01 00 [13:19:58]Write to MH i2c: E2 08 00 8C 40 80 13 01 00 00 00 00 00 49 [13:19:58]Write i2c OK [13:19:58]MH_I2C_Read... [13:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:58]Read from MH i2c: E2 [13:19:58]MH_I2C_Read... [13:19:58]Read from MH i2c: E2 0E 00 [13:19:58]MH_I2C_Read... [13:19:58]Read from MH i2c: E2 0E 00 8C 40 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 FB [13:19:58]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [13:19:58]wFMCommunicate OK [13:19:58]SAM_PROTO_GetShiftState done [13:19:58]FM_GetShiftState done [13:19:58]req_shift_opened done [13:19:58]requested_item shift.open_date is exist - process it [13:19:58]req_shift_open_date [13:19:58]req_shift_open_date done [13:19:58]produce_requested_data done [13:19:58]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22364,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [13:19:58]process_action_free close_receipt [13:19:58]json_value_free [13:19:58]json_value_free done [13:19:58]process_json_proto returns [13:19:58]Send response to host [13:19:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22364,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [13:19:58]free response buf [13:19:58]execute_script done [13:19:58]execute_script returns [13:19:58]free content buf [13:19:58]Sock 9.Close socket [13:19:58]Sock 9.Thread stoped [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]accept exits with 8 [13:24:07]New connection [13:24:07]New thread 3066695012 created [13:24:07]Thread 3066838372 joined [13:24:07]Waiting for new connection... [13:24:07] Sock 8.Parse request [13:24:07]Sock 8.Check first char [13:24:07]Sock 8.First char is OK [13:24:07]request: POST /json_proto HTTP/1.0 [13:24:07]Method: POST [13:24:07]URL: /json_proto [13:24:07]Method is POST - this is cgi request [13:24:07]url: /json_proto [13:24:07]query_string will be loaded in cgi processing [13:24:07]execute_cgi json_proto POST (null) [13:24:07]execute_cgi path=json_proto method=POST [13:24:07]POST find Content-Length [13:24:07]Host: 172.17.35.133:8080 [13:24:07]Content-Length: 616 [13:24:07]Content-Type: application/json [13:24:07] [13:24:07]POST finish read [13:24:07]Found Content-Length = 616 [13:24:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254572", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:07]execute_script... [13:24: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 : (3)254572", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:07]POST & json_proto [13:24:07]process_json_proto [13:24:07]json parsed OK: [13:24:07]protocol is kg_v1.0 [13:24:07]action value=close_receipt [13:24:07]process_action close_receipt [13:24:07]cmd_close_receipt [13:24:07]MH_GetDate [13:24:07]Write to MH i2c: F0 00 00 8D 40 BC [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: F0 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: F0 09 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: F0 09 00 8D 40 00 05 39 70 66 8C 55 28 65 47 [13:24:07]GetLastDocTimeStamp 1718630408 [13:24:07]current date 1718630661 [13:24:07]FM_GetShiftState [13:24:07]SAM_PROTO_GetShiftState [13:24:07]wFMCommunicate request_size=4 [13:24:07]MH_SAM_APDU [13:24:07]CAPDU: 80 13 01 00 [13:24:07]Write to MH i2c: E2 08 00 8E 40 80 13 01 00 00 00 00 00 4B [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:07]Read from MH i2c: E2 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 0E 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 0E 00 8E 40 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 FD [13:24:07]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [13:24:07]wFMCommunicate OK [13:24:07]SAM_PROTO_GetShiftState done [13:24:07]FM_GetShiftState done [13:24:07]opened in 1718583887 [13:24:07]opened+sec_in_day 1718670287 [13:24:07]quantity*price = 14300 [13:24:07]sum+1 = 14301 [13:24:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.19 Наличными: 143.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 46 17.06.2024 13:24 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22365 ФПД: 75799130800443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T132421&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22365&fm=75799130800443&tin=02508201610067®Number=0000000000099755&sum=14300 0 [13:24:08]StoreToDocumentArchive [13:24:08]shift 328 fd 22365 [13:24:08]save to /storage/0328/doc_00022365 [13:24:08]save last doc name /storage/0328/doc_00022365 to /storage/kkm_last_doc_name [13:24:08]save OK [13:24:08]Clear old archive folders... [13:24:08]ProcessDocumentItem done err = 0, tmpTLVsize=268 [13:24:08]tlvbuf is 001EDE10 [13:24:08]SAM_PROTO_ClearQueue [13:24:08]wFMCommunicate request_size=4 [13:24:08]MH_SAM_APDU [13:24:08]CAPDU: 80 09 00 00 [13:24:08]Write to MH i2c: E2 08 00 9B 40 80 09 00 00 00 00 00 00 4D [13:24:08]Write i2c OK [13:24:08]MH_I2C_Read... [13:24:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:08]Read from MH i2c: E2 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: E2 03 00 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: E2 03 00 9B 40 00 90 00 4F [13:24:08]RAPDU: 90 00 [13:24:08]wFMCommunicate OK [13:24:08]SAM_PROTO_ClearQueue done [13:24:08]KKMCreateOFDPacket [13:24:08]OFDProtocolAddRootSTLVToBuf [13:24:08]FM_MakeSignedData [13:24:08]FM_MakeSignedData [13:24:08]SAM_PROTO_SignData [13:24:08]wFMCommunicate request_size=4 [13:24:08]MH_SAM_APDU [13:24:08]CAPDU: 80 0D 01 02 [13:24:08]Write to MH i2c: E2 08 00 9C 40 80 0D 01 02 00 00 00 00 55 [13:24:08]Write i2c OK [13:24:08]MH_I2C_Read... [13:24:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:08]Read from MH i2c: E2 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: E2 03 00 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: E2 03 00 9C 40 00 90 00 50 [13:24:08]RAPDU: 90 00 [13:24:08]wFMCommunicate OK [13:24:08]wFMCommunicate request_size=255 [13:24:08]MH_SAM_APDU [13:24:08]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 05 39 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [13:24:08]Write to MH i2c: E2 02 01 9D 40 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 05 39 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 AE [13:24:08]Write i2c OK [13:24:08]MH_I2C_Read... [13:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:09]Read from MH i2c: E2 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 03 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 03 00 9D 40 00 90 00 51 [13:24:09]RAPDU: 90 00 [13:24:09]wFMCommunicate OK [13:24:09]wFMCommunicate request_size=27 [13:24:09]MH_SAM_APDU [13:24:09]CAPDU: 80 0D 02 02 16 35 33 34 34 10 04 04 00 5D 57 00 00 35 04 06 00 44 F0 5C 44 01 3B [13:24:09]Write to MH i2c: E2 1E 00 9E 40 80 0D 02 02 16 00 35 33 34 34 10 04 04 00 5D 57 00 00 35 04 06 00 44 F0 5C 44 01 3B 00 00 6F [13:24:09]Write i2c OK [13:24:09]MH_I2C_Read... [13:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:09]Read from MH i2c: E2 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 03 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 03 00 9E 40 00 90 00 52 [13:24:09]RAPDU: 90 00 [13:24:09]wFMCommunicate OK [13:24:09]wFMCommunicate request_size=4 [13:24:09]MH_SAM_APDU [13:24:09]CAPDU: 80 0D 03 02 [13:24:09]Write to MH i2c: E2 08 00 9F 40 80 0D 03 02 00 00 00 00 5A [13:24:09]Write i2c OK [13:24:09]MH_I2C_Read... [13:24:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:09]Read from MH i2c: E2 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 0B 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 0B 00 9F 40 00 9F FC 05 E4 18 21 70 0F 90 00 97 [13:24:09]RAPDU: 9F FC 05 E4 18 21 70 0F 90 00 [13:24:09]wFMCommunicate OK [13:24:09]SAM_PROTO_SignData done [13:24:09]FM_MakeSignedData done [13:24:09]CreateOFDProtocolMessage [13:24:09]wFMCommunicate request_size=4 [13:24:09]MH_SAM_APDU [13:24:09]CAPDU: 80 11 00 00 [13:24:09]Write to MH i2c: E2 08 00 A0 40 80 11 00 00 00 00 00 00 5A [13:24:09]Write i2c OK [13:24:09]MH_I2C_Read... [13:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:09]Read from MH i2c: E2 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 17 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 17 00 A0 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 AC [13:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [13:24:09]wFMCommunicate OK [13:24:09]CreateOFDProtocolMessage done [13:24:09]OFDSenderStorePacket 22365 [13:24:09]StoreOFDPacket docnum=22365 [13:24:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 20 01 00 00 10 AA 18 01 DF AC 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 05 39 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5D 57 00 00 35 04 06 00 44 F0 5C 44 01 3B 9F FC 05 E4 18 21 70 0F [13:24:09]CheckFolder [13:24:09]dirname=/storage/ofd_packets [13:24:09]CheckFolder done [13:24:09]ProducePacketName [13:24:09]name=ofd_packets/00022365 [13:24:09]NVStorageSaveData ofd_packets/00022365 [13:24:09]File name is /storage/ofd_packets/00022365 [13:24:09]Write 318 bytes [13:24:09]NVStorageSaveData done [13:24:09]OFDSenderStorePacket done [13:24:09]KKMCreateOFDPacket done [13:24:09]NVStorageSaveData kkm_last_timestamp [13:24:09]File name is /storage/kkm_last_timestamp [13:24:09]Write 4 bytes [13:24:09]NVStorageSaveData done [13:24:09]ExternCall_PrintAddStr [13:24:09]wPrintStart [13:24:09]Write to MH i2c: 01 00 00 A1 40 E1 [13:24:09]Write i2c OK [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: 01 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: 01 07 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: 01 07 00 A1 40 00 00 00 00 00 FF 0F F6 [13:24:09]RasterBufferAndPrint [13:24:09]line Счет N : (3)254572 [13:24:09]line ИНН: 02508201610067 [13:24:09]line Контрольно-Кассовый Чек [13:24:09]line ПРОДАЖА [13:24:09]line Товар: 4640030091584 [13:24:09]line Сигареты Esse Gold [13:24:09]line 1.000 * 143.00 [13:24:09]line = 143.00 [13:24:09]line НДС 12% НСП 1% [13:24:09]line > о реализуемом товаре [13:24:09]line ИТОГО: 143.00 [13:24:09]line НСП 1% : 1.26 [13:24:09]line НДС 12% : 15.19 [13:24:09]line Наличными: 143.00 [13:24:09]line Безнал.: 0.00 [13:24:09]line Место: АЗС № 76 "Партнер Нефть" [13:24:09]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [13:24:09]line СНО: Общий режим [13:24:09]line Чек 46 17.06.2024 13:24 [13:24:09]line Смена: 328 ФФД: 1.0 [13:24:09]line ЗНМ: 0300000200 [13:24:09]line РНМ: 0000000000099755 [13:24:09]line Версия ККМ: 001 [13:24:09]line ФМ: 0000000000965344 [13:24:09]line ФД: 22365 [13:24:09]line ФПД: 75799130800443 [13:24:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T132421&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22365&fm=75799130800443&tin=02508201610067®Number=0000000000099755&sum=14300 [13:24:09]line 0 [13:24:09]OFD Sender: Processing packet 22365 [packets to send 5, broken 4] [13:24:09]ProducePacketName [13:24:09]name=ofd_packets/00022365 [13:24:09]OFD Sender: To server: pG, [13:24:09]CommunicateWithHost lk.salyk.kg:30040 [13:24:09]ConnectInit lk.salyk.kg [13:24:09]written 0, free lines is 4095 [13:24:09]Connected sock=10 [13:24:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 20 01 00 00 10 AA 18 01 DF AC 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 35 38 34 06 04 1A 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 47 6F 6C 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 05 39 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5D 57 00 00 35 04 06 00 44 F0 5C 44 01 3B 9F FC 05 E4 18 21 70 0F [13:24:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 B1 11 47 00 89 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 39 36 35 33 34 34 10 04 04 00 5D 57 00 00 F4 03 04 00 BC E1 6F 66 B6 04 01 00 00 11 4D 22 C1 73 0E 88 90 [13:24:09]CommunicateWithHost err = 0 [13:24:09]CheckOFDResponse [13:24:09]1017 (14) - 77093643461234 [13:24:09]1041 (16) - 0000000000965344 [13:24:09]1040 (4) - 22365 [13:24:09]1012 (4) - 17.06.2024 07:11 [13:24:09]1206 (1) - 0 [13:24:09]OFD Sender: Remove packet 22365 [13:24:09]ProducePacketName [13:24:09]name=ofd_packets/00022365 [13:24:09]NVStorageDeleteData [13:24:09]Write to MH i2c: 01 00 00 C9 40 09 [13:24:09]Write i2c OK [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: 01 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: 01 07 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: 01 07 00 C9 40 00 00 00 00 00 13 0D 30 [13:24:09]RasterBufferAndPrint [13:24:09]line [13:24:09]line [13:24:09]line [13:24:09]line [13:24:09]line [13:24:09]written 0, free lines is 3353 [13:24:09]MH_Cut [13:24:09]Write to MH i2c: D1 01 00 D0 40 01 E2 [13:24:09]Write i2c OK [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: D1 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: D1 01 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: D1 01 00 D0 40 00 E1 [13:24:09]Write to MH i2c: 01 00 00 D1 40 11 [13:24:09]Write i2c OK [13:24:09]MH_I2C_Read... [13:24:10]OFD Sender: No OFD packet to send [13:24:10]*** Cut start [13:24:10]*** Partial cut [13:24:10]*** CUTSNS_PIN = 1 [13:24:10]*** CUTSNS_PIN = 0 [13:24:10]*** Brake cut motor [13:24:11]Read from MH i2c: 01 [13:24:11]MH_I2C_Read... [13:24:11]*** Stop cut motor [13:24:11]*** Cut end [13:24:11]Read from MH i2c: 01 07 00 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: 01 07 00 D1 40 00 00 00 00 00 FF 0F 26 [13:24:11]process_action close_receipt done [13:24:11]requested_data is exist [13:24:11]produce_requested_data [13:24:11]requested_item fm.sn is exist - process it [13:24:11]wFMCommunicate request_size=4 [13:24:11]MH_SAM_APDU [13:24:11]CAPDU: 80 11 00 00 [13:24:11]Write to MH i2c: E2 08 00 D2 40 80 11 00 00 00 00 00 00 8C [13:24:11]Write i2c OK [13:24:11]MH_I2C_Read... [13:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:11]Read from MH i2c: E2 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: E2 17 00 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: E2 17 00 D2 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 DE [13:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [13:24:11]wFMCommunicate OK [13:24:11]requested_item fd.num is exist - process it [13:24:11]SAM_PROTO_GetFieldsCounters [13:24:11]wFMCommunicate request_size=4 [13:24:11]MH_SAM_APDU [13:24:11]CAPDU: 80 13 00 00 [13:24:11]Write to MH i2c: E2 08 00 D3 40 80 13 00 00 00 00 00 00 8F [13:24:11]Write i2c OK [13:24:11]MH_I2C_Read... [13:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:11]Read from MH i2c: E2 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: E2 62 00 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: E2 62 00 D3 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 5D 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [13:24:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 5D 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:11]wFMCommunicate OK [13:24:11]SAM_PROTO_GetFieldsCounters done [13:24:11]requested_item shift.num is exist - process it [13:24:11]requested_item shift.opened is exist - process it [13:24:11]req_shift_opened [13:24:11]FM_GetShiftState [13:24:11]SAM_PROTO_GetShiftState [13:24:11]wFMCommunicate request_size=4 [13:24:11]MH_SAM_APDU [13:24:11]CAPDU: 80 13 01 00 [13:24:11]Write to MH i2c: E2 08 00 D4 40 80 13 01 00 00 00 00 00 91 [13:24:11]Write i2c OK [13:24:11]MH_I2C_Read... [13:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:11]Read from MH i2c: E2 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: E2 0E 00 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: E2 0E 00 D4 40 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 43 [13:24:11]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [13:24:11]wFMCommunicate OK [13:24:11]SAM_PROTO_GetShiftState done [13:24:11]FM_GetShiftState done [13:24:11]req_shift_opened done [13:24:11]requested_item shift.open_date is exist - process it [13:24:11]req_shift_open_date [13:24:11]req_shift_open_date done [13:24:11]produce_requested_data done [13:24:11]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22365,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [13:24:11]process_action_free close_receipt [13:24:11]json_value_free [13:24:11]json_value_free done [13:24:11]process_json_proto returns [13:24:11]Send response to host [13:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22365,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [13:24:11]free response buf [13:24:11]execute_script done [13:24:11]execute_script returns [13:24:11]free content buf [13:24:11]Sock 8.Close socket [13:24:11]Sock 8.Thread stoped [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:24]accept exits with 9 [13:27:24]New connection [13:27:24]New thread 3066838372 created [13:27:24]Thread 3066695012 joined [13:27:24]Waiting for new connection... [13:27:24] Sock 9.Parse request [13:27:24]Sock 9.Check first char [13:27:24]Sock 9.First char is OK [13:27:24]request: POST /json_proto HTTP/1.0 [13:27:24]Method: POST [13:27:24]URL: /json_proto [13:27:24]Method is POST - this is cgi request [13:27:24]url: /json_proto [13:27:24]query_string will be loaded in cgi processing [13:27:24]execute_cgi json_proto POST (null) [13:27:24]execute_cgi path=json_proto method=POST [13:27:24]POST find Content-Length [13:27:24]Host: 172.17.35.133:8080 [13:27:24]Content-Length: 1230 [13:27:24]Content-Type: application/json [13:27:24] [13:27:24]POST finish read [13:27:24]Found Content-Length = 1230 [13:27:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254573", "tax_sys" : 0, "items" : [ { "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46084507", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:24]execute_script... [13:27: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 : (3)254573", "tax_sys" : 0, "items" : [ { "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46084507", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:24]POST & json_proto [13:27:24]process_json_proto [13:27:24]json parsed OK: [13:27:24]protocol is kg_v1.0 [13:27:24]action value=close_receipt [13:27:24]process_action close_receipt [13:27:24]cmd_close_receipt [13:27:24]MH_GetDate [13:27:24]Write to MH i2c: F0 00 00 D5 40 04 [13:27:24]Write i2c OK [13:27:24]MH_I2C_Read... [13:27:24]Read from MH i2c: F0 [13:27:24]MH_I2C_Read... [13:27:24]Read from MH i2c: F0 09 00 [13:27:24]MH_I2C_Read... [13:27:24]Read from MH i2c: F0 09 00 D5 40 00 C9 39 70 66 8C 55 28 65 53 [13:27:24]GetLastDocTimeStamp 1718630661 [13:27:24]current date 1718630857 [13:27:24]FM_GetShiftState [13:27:24]SAM_PROTO_GetShiftState [13:27:24]wFMCommunicate request_size=4 [13:27:24]MH_SAM_APDU [13:27:24]CAPDU: 80 13 01 00 [13:27:24]Write to MH i2c: E2 08 00 D6 40 80 13 01 00 00 00 00 00 93 [13:27:24]Write i2c OK [13:27:24]MH_I2C_Read... [13:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:24]Read from MH i2c: E2 [13:27:24]MH_I2C_Read... [13:27:24]Read from MH i2c: E2 0E 00 [13:27:24]MH_I2C_Read... [13:27:24]Read from MH i2c: E2 0E 00 D6 40 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 45 [13:27:24]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [13:27:24]wFMCommunicate OK [13:27:24]SAM_PROTO_GetShiftState done [13:27:24]FM_GetShiftState done [13:27:24]opened in 1718583887 [13:27:24]opened+sec_in_day 1718670287 [13:27:24]quantity*price = 7000 [13:27:24]sum+1 = 7001 [13:27:24]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46084507 Сигареты Winston XS Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 47 17.06.2024 13:27 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22366 ФПД: 52763962034717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T132737&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22366&fm=52763962034717&tin=02508201610067®Number=0000000000099755&sum=28500 0 [13:27:25]StoreToDocumentArchive [13:27:25]shift 328 fd 22366 [13:27:25]save to /storage/0328/doc_00022366 [13:27:25]save last doc name /storage/0328/doc_00022366 to /storage/kkm_last_doc_name [13:27:25]save OK [13:27:25]Clear old archive folders... [13:27:25]ProcessDocumentItem done err = 0, tmpTLVsize=514 [13:27:25]tlvbuf is 002FC020 [13:27:25]SAM_PROTO_ClearQueue [13:27:25]wFMCommunicate request_size=4 [13:27:25]MH_SAM_APDU [13:27:25]CAPDU: 80 09 00 00 [13:27:25]Write to MH i2c: E2 08 00 E3 40 80 09 00 00 00 00 00 00 95 [13:27:25]Write i2c OK [13:27:25]MH_I2C_Read... [13:27:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:25]Read from MH i2c: E2 [13:27:25]MH_I2C_Read... [13:27:25]Read from MH i2c: E2 03 00 [13:27:25]MH_I2C_Read... [13:27:25]Read from MH i2c: E2 03 00 E3 40 00 90 00 97 [13:27:25]RAPDU: 90 00 [13:27:25]wFMCommunicate OK [13:27:25]SAM_PROTO_ClearQueue done [13:27:25]KKMCreateOFDPacket [13:27:25]OFDProtocolAddRootSTLVToBuf [13:27:25]FM_MakeSignedData [13:27:25]FM_MakeSignedData [13:27:25]SAM_PROTO_SignData [13:27:25]wFMCommunicate request_size=4 [13:27:25]MH_SAM_APDU [13:27:25]CAPDU: 80 0D 01 02 [13:27:25]Write to MH i2c: E2 08 00 E4 40 80 0D 01 02 00 00 00 00 9D [13:27:25]Write i2c OK [13:27:25]MH_I2C_Read... [13:27:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:25]Read from MH i2c: E2 [13:27:25]MH_I2C_Read... [13:27:25]Read from MH i2c: E2 03 00 [13:27:25]MH_I2C_Read... [13:27:25]Read from MH i2c: E2 03 00 E4 40 00 90 00 98 [13:27:25]RAPDU: 90 00 [13:27:25]wFMCommunicate OK [13:27:25]wFMCommunicate request_size=255 [13:27:25]MH_SAM_APDU [13:27:25]CAPDU: 80 0D 02 02 FA 03 00 02 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [13:27:25]Write to MH i2c: E2 02 01 E5 40 80 0D 02 02 FA 00 03 00 02 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 9F [13:27:25]OFD Sender: No OFD packet to send [13:27:25]Write i2c OK [13:27:25]MH_I2C_Read... [13:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:25]Read from MH i2c: E2 [13:27:25]MH_I2C_Read... [13:27:25]Read from MH i2c: E2 03 00 [13:27:25]MH_I2C_Read... [13:27:25]Read from MH i2c: E2 03 00 E5 40 00 90 00 99 [13:27:25]RAPDU: 90 00 [13:27:25]wFMCommunicate OK [13:27:25]wFMCommunicate request_size=255 [13:27:25]MH_SAM_APDU [13:27:25]CAPDU: 80 0D 02 02 FA 00 01 23 04 61 00 8A 04 08 00 34 36 30 38 34 35 30 37 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 C9 39 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 [13:27:25]Write to MH i2c: E2 02 01 E6 40 80 0D 02 02 FA 00 00 01 23 04 61 00 8A 04 08 00 34 36 30 38 34 35 30 37 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 C9 39 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 00 00 EE [13:27:25]Write i2c OK [13:27:25]MH_I2C_Read... [13:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:26]Read from MH i2c: E2 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 03 00 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 03 00 E6 40 00 90 00 9A [13:27:26]RAPDU: 90 00 [13:27:26]wFMCommunicate OK [13:27:26]wFMCommunicate request_size=23 [13:27:26]MH_SAM_APDU [13:27:26]CAPDU: 80 0D 02 02 12 10 04 04 00 5E 57 00 00 35 04 06 00 2F FD 11 36 CA 1D [13:27:26]Write to MH i2c: E2 1A 00 E7 40 80 0D 02 02 12 00 10 04 04 00 5E 57 00 00 35 04 06 00 2F FD 11 36 CA 1D 00 00 2B [13:27:26]Write i2c OK [13:27:26]MH_I2C_Read... [13:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:26]Read from MH i2c: E2 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 03 00 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 03 00 E7 40 00 90 00 9B [13:27:26]RAPDU: 90 00 [13:27:26]wFMCommunicate OK [13:27:26]wFMCommunicate request_size=4 [13:27:26]MH_SAM_APDU [13:27:26]CAPDU: 80 0D 03 02 [13:27:26]Write to MH i2c: E2 08 00 E8 40 80 0D 03 02 00 00 00 00 A3 [13:27:26]Write i2c OK [13:27:26]MH_I2C_Read... [13:27:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:26]Read from MH i2c: E2 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 0B 00 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 0B 00 E8 40 00 73 33 73 18 E6 DB 78 86 90 00 94 [13:27:26]RAPDU: 73 33 73 18 E6 DB 78 86 90 00 [13:27:26]wFMCommunicate OK [13:27:26]SAM_PROTO_SignData done [13:27:26]FM_MakeSignedData done [13:27:26]CreateOFDProtocolMessage [13:27:26]wFMCommunicate request_size=4 [13:27:26]MH_SAM_APDU [13:27:26]CAPDU: 80 11 00 00 [13:27:26]Write to MH i2c: E2 08 00 E9 40 80 11 00 00 00 00 00 00 A3 [13:27:26]Write i2c OK [13:27:26]MH_I2C_Read... [13:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:26]Read from MH i2c: E2 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 17 00 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: E2 17 00 E9 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 F5 [13:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [13:27:26]wFMCommunicate OK [13:27:26]CreateOFDProtocolMessage done [13:27:26]OFDSenderStorePacket 22366 [13:27:26]StoreOFDPacket docnum=22366 [13:27:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 16 02 00 00 1A F6 0E 02 53 D9 5A 03 01 00 03 00 02 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 30 38 34 35 30 37 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 C9 39 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5E 57 00 00 35 04 06 00 2F FD 11 36 CA 1D 73 33 73 18 E6 DB 78 86 [13:27:26]CheckFolder [13:27:26]dirname=/storage/ofd_packets [13:27:26]CheckFolder done [13:27:26]ProducePacketName [13:27:26]name=ofd_packets/00022366 [13:27:26]NVStorageSaveData ofd_packets/00022366 [13:27:26]File name is /storage/ofd_packets/00022366 [13:27:26]Write 564 bytes [13:27:26]NVStorageSaveData done [13:27:26]OFDSenderStorePacket done [13:27:26]KKMCreateOFDPacket done [13:27:26]NVStorageSaveData kkm_last_timestamp [13:27:26]File name is /storage/kkm_last_timestamp [13:27:26]Write 4 bytes [13:27:26]NVStorageSaveData done [13:27:26]ExternCall_PrintAddStr [13:27:26]wPrintStart [13:27:26]Write to MH i2c: 01 00 00 EA 40 2A [13:27:26]Write i2c OK [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: 01 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: 01 07 00 [13:27:26]MH_I2C_Read... [13:27:26]Read from MH i2c: 01 07 00 EA 40 00 00 00 00 00 FF 0F 3F [13:27:26]RasterBufferAndPrint [13:27:26]line Счет N : (3)254573 [13:27:26]line ИНН: 02508201610067 [13:27:26]line Контрольно-Кассовый Чек [13:27:26]line ПРОДАЖА [13:27:26]line Товар: 4870202521179 [13:27:26]line Чай холодный MAXI черный персик ПЭТ 0,45 [13:27:26]line 1.000 * 70.00 [13:27:26]line = 70.00 [13:27:26]line НДС 12% НСП 1% [13:27:26]line > о реализуемом товаре [13:27:26]line Товар: 54491472 [13:27:26]line Напиток Кока-Кола 0,5л [13:27:26]line 1.000 * 75.00 [13:27:26]line = 75.00 [13:27:26]line НДС 12% НСП 1% [13:27:26]line > о реализуемом товаре [13:27:26]line Товар: 46084507 [13:27:26]line Сигареты Winston XS Silver [13:27:26]line 1.000 * 140.00 [13:27:26]line = 140.00 [13:27:26]line НДС 12% НСП 1% [13:27:26]line > о реализуемом товаре [13:27:26]line ИТОГО: 285.00 [13:27:26]line НСП 1% : 2.52 [13:27:26]line НДС 12% : 30.26 [13:27:26]line Наличными: 285.00 [13:27:26]line Безнал.: 0.00 [13:27:26]line Место: АЗС № 76 "Партнер Нефть" [13:27:26]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [13:27:26]line СНО: Общий режим [13:27:26]line Чек 47 17.06.2024 13:27 [13:27:26]line Смена: 328 ФФД: 1.0 [13:27:26]line ЗНМ: 0300000200 [13:27:26]line РНМ: 0000000000099755 [13:27:26]line Версия ККМ: 001 [13:27:26]line ФМ: 0000000000965344 [13:27:26]line ФД: 22366 [13:27:26]line ФПД: 52763962034717 [13:27:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T132737&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22366&fm=52763962034717&tin=02508201610067®Number=0000000000099755&sum=28500 [13:27:26]line 0 [13:27:26]OFD Sender: Processing packet 22366 [packets to send 5, broken 4] [13:27:26]ProducePacketName [13:27:26]name=ofd_packets/00022366 [13:27:26]OFD Sender: To server: pG, [13:27:26]CommunicateWithHost lk.salyk.kg:30040 [13:27:26]ConnectInit lk.salyk.kg [13:27:26]written 0, free lines is 4095 [13:27:26]Connected sock=10 [13:27:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 16 02 00 00 1A F6 0E 02 53 D9 5A 03 01 00 03 00 02 02 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 08 00 34 36 30 38 34 35 30 37 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 C9 39 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5E 57 00 00 35 04 06 00 2F FD 11 36 CA 1D 73 33 73 18 E6 DB 78 86 [13:27:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 22 1E 47 00 3F 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 39 36 35 33 34 34 10 04 04 00 5E 57 00 00 F4 03 04 00 81 E2 6F 66 B6 04 01 00 00 D9 FE 94 E9 1A 7A A8 63 [13:27:27]CommunicateWithHost err = 0 [13:27:27]CheckOFDResponse [13:27:27]1017 (14) - 77093643461234 [13:27:27]1041 (16) - 0000000000965344 [13:27:27]1040 (4) - 22366 [13:27:27]1012 (4) - 17.06.2024 07:15 [13:27:27]1206 (1) - 0 [13:27:27]OFD Sender: Remove packet 22366 [13:27:27]ProducePacketName [13:27:27]name=ofd_packets/00022366 [13:27:27]NVStorageDeleteData [13:27:27]Write to MH i2c: 01 00 00 1F 41 60 [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: 01 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: 01 07 00 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: 01 07 00 1F 41 00 00 00 00 00 6A 0C DD [13:27:27]RasterBufferAndPrint [13:27:27]line [13:27:27]line [13:27:27]line [13:27:27]line [13:27:27]line [13:27:27]written 0, free lines is 3186 [13:27:27]MH_Cut [13:27:27]Write to MH i2c: D1 01 00 26 41 01 39 [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: D1 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: D1 01 00 [13:27:27]MH_I2C_Read... [13:27:27]Read from MH i2c: D1 01 00 26 41 00 38 [13:27:27]Write to MH i2c: 01 00 00 27 41 68 [13:27:27]Write i2c OK [13:27:27]MH_I2C_Read... [13:27:27]OFD Sender: No OFD packet to send [13:27:28]*** Cut start [13:27:28]*** Partial cut [13:27:28]*** CUTSNS_PIN = 1 [13:27:28]*** CUTSNS_PIN = 0 [13:27:28]*** Brake cut motor [13:27:28]Read from MH i2c: 01 [13:27:28]MH_I2C_Read... [13:27:28]*** Stop cut motor [13:27:28]*** Cut end [13:27:28]Read from MH i2c: 01 07 00 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: 01 07 00 27 41 00 00 00 00 00 FF 0F 7D [13:27:28]process_action close_receipt done [13:27:28]requested_data is exist [13:27:28]produce_requested_data [13:27:28]requested_item fm.sn is exist - process it [13:27:28]wFMCommunicate request_size=4 [13:27:28]MH_SAM_APDU [13:27:28]CAPDU: 80 11 00 00 [13:27:28]Write to MH i2c: E2 08 00 28 41 80 11 00 00 00 00 00 00 E3 [13:27:28]Write i2c OK [13:27:28]MH_I2C_Read... [13:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:28]Read from MH i2c: E2 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 17 00 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 17 00 28 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 35 [13:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [13:27:28]wFMCommunicate OK [13:27:28]requested_item fd.num is exist - process it [13:27:28]SAM_PROTO_GetFieldsCounters [13:27:28]wFMCommunicate request_size=4 [13:27:28]MH_SAM_APDU [13:27:28]CAPDU: 80 13 00 00 [13:27:28]Write to MH i2c: E2 08 00 29 41 80 13 00 00 00 00 00 00 E6 [13:27:28]Write i2c OK [13:27:28]MH_I2C_Read... [13:27:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:28]Read from MH i2c: E2 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 62 00 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 62 00 29 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 5E 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [13:27:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 5E 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:28]wFMCommunicate OK [13:27:28]SAM_PROTO_GetFieldsCounters done [13:27:28]requested_item shift.num is exist - process it [13:27:28]requested_item shift.opened is exist - process it [13:27:28]req_shift_opened [13:27:28]FM_GetShiftState [13:27:28]SAM_PROTO_GetShiftState [13:27:28]wFMCommunicate request_size=4 [13:27:28]MH_SAM_APDU [13:27:28]CAPDU: 80 13 01 00 [13:27:28]Write to MH i2c: E2 08 00 2A 41 80 13 01 00 00 00 00 00 E8 [13:27:28]Write i2c OK [13:27:28]MH_I2C_Read... [13:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:28]Read from MH i2c: E2 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 0E 00 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: E2 0E 00 2A 41 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 9A [13:27:28]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [13:27:28]wFMCommunicate OK [13:27:28]SAM_PROTO_GetShiftState done [13:27:28]FM_GetShiftState done [13:27:28]req_shift_opened done [13:27:28]requested_item shift.open_date is exist - process it [13:27:28]req_shift_open_date [13:27:28]req_shift_open_date done [13:27:28]produce_requested_data done [13:27:28]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22366,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [13:27:28]process_action_free close_receipt [13:27:28]json_value_free [13:27:28]json_value_free done [13:27:28]process_json_proto returns [13:27:28]Send response to host [13:27:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22366,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [13:27:28]free response buf [13:27:28]execute_script done [13:27:28]execute_script returns [13:27:28]free content buf [13:27:28]Sock 9.Close socket [13:27:28]Sock 9.Thread stoped [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]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:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:49]recv_with_timeout no data received [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:30]recv_with_timeout no data received [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:46:41]ConnectInit Can't connect to host [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:25]recv_with_timeout no data received [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:50]recv_with_timeout no data received [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:36]recv_with_timeout no data received [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:09]recv_with_timeout no data received [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:29]recv_with_timeout no data received [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]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:04]ConnectInit Can't connect to host [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:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:12:20]ConnectInit Can't connect to host [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:07]accept exits with 8 [14:23:07]New connection [14:23:07]New thread 3066695012 created [14:23:07]Thread 3066838372 joined [14:23:07]Waiting for new connection... [14:23:07] Sock 8.Parse request [14:23:07]Sock 8.Check first char [14:23:07]Sock 8.First char is OK [14:23:07]request: POST /json_proto HTTP/1.0 [14:23:07]Method: POST [14:23:07]URL: /json_proto [14:23:07]Method is POST - this is cgi request [14:23:07]url: /json_proto [14:23:07]query_string will be loaded in cgi processing [14:23:07]execute_cgi json_proto POST (null) [14:23:07]execute_cgi path=json_proto method=POST [14:23:07]POST find Content-Length [14:23:07]Host: 172.17.35.133:8080 [14:23:07]Content-Length: 858 [14:23:07]Content-Type: application/json [14:23:07] [14:23:07]POST finish read [14:23:07]Found Content-Length = 858 [14:23:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254574", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:07]execute_script... [14:23: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 : (3)254574", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:07]POST & json_proto [14:23:07]process_json_proto [14:23:07]json parsed OK: [14:23:07]protocol is kg_v1.0 [14:23:07]action value=close_receipt [14:23:07]process_action close_receipt [14:23:07]cmd_close_receipt [14:23:07]MH_GetDate [14:23:07]Write to MH i2c: F0 00 00 2B 41 5B [14:23:07]Write i2c OK [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: F0 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: F0 09 00 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: F0 09 00 2B 41 00 D9 46 70 66 8C 55 28 65 C7 [14:23:07]GetLastDocTimeStamp 1718630857 [14:23:07]current date 1718634201 [14:23:07]FM_GetShiftState [14:23:07]SAM_PROTO_GetShiftState [14:23:07]wFMCommunicate request_size=4 [14:23:07]MH_SAM_APDU [14:23:07]CAPDU: 80 13 01 00 [14:23:07]Write to MH i2c: E2 08 00 2C 41 80 13 01 00 00 00 00 00 EA [14:23:07]Write i2c OK [14:23:07]MH_I2C_Read... [14:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:07]Read from MH i2c: E2 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: E2 0E 00 [14:23:07]MH_I2C_Read... [14:23:07]Read from MH i2c: E2 0E 00 2C 41 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 9C [14:23:07]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:23:07]wFMCommunicate OK [14:23:07]SAM_PROTO_GetShiftState done [14:23:07]FM_GetShiftState done [14:23:07]opened in 1718583887 [14:23:07]opened+sec_in_day 1718670287 [14:23:07]quantity*price = 8500 [14:23:07]sum+1 = 8501 [14:23:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 48 17.06.2024 14:23 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965344 ФД: 22367 ФПД: 11994083188280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T142321&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22367&fm=11994083188280&tin=02508201610067®Number=0000000000099755&sum=8500 0 [14:23:08]StoreToDocumentArchive [14:23:08]shift 328 fd 22367 [14:23:08]save to /storage/0328/doc_00022367 [14:23:08]save last doc name /storage/0328/doc_00022367 to /storage/kkm_last_doc_name [14:23:08]save OK [14:23:08]Clear old archive folders... [14:23:08]ProcessDocumentItem done err = 0, tmpTLVsize=288 [14:23:08]tlvbuf is 001EE540 [14:23:08]SAM_PROTO_ClearQueue [14:23:08]wFMCommunicate request_size=4 [14:23:08]MH_SAM_APDU [14:23:08]CAPDU: 80 09 00 00 [14:23:08]Write to MH i2c: E2 08 00 39 41 80 09 00 00 00 00 00 00 EC [14:23:08]Write i2c OK [14:23:08]MH_I2C_Read... [14:23:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:08]Read from MH i2c: E2 [14:23:08]MH_I2C_Read... [14:23:08]Read from MH i2c: E2 03 00 [14:23:08]MH_I2C_Read... [14:23:08]Read from MH i2c: E2 03 00 39 41 00 90 00 EE [14:23:08]RAPDU: 90 00 [14:23:08]wFMCommunicate OK [14:23:08]SAM_PROTO_ClearQueue done [14:23:08]KKMCreateOFDPacket [14:23:08]OFDProtocolAddRootSTLVToBuf [14:23:08]FM_MakeSignedData [14:23:08]FM_MakeSignedData [14:23:08]SAM_PROTO_SignData [14:23:08]wFMCommunicate request_size=4 [14:23:08]MH_SAM_APDU [14:23:08]CAPDU: 80 0D 01 02 [14:23:08]Write to MH i2c: E2 08 00 3A 41 80 0D 01 02 00 00 00 00 F4 [14:23:08]Write i2c OK [14:23:08]MH_I2C_Read... [14:23:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:08]Read from MH i2c: E2 [14:23:08]MH_I2C_Read... [14:23:08]Read from MH i2c: E2 03 00 [14:23:08]MH_I2C_Read... [14:23:08]Read from MH i2c: E2 03 00 3A 41 00 90 00 EF [14:23:08]RAPDU: 90 00 [14:23:08]wFMCommunicate OK [14:23:08]wFMCommunicate request_size=255 [14:23:08]MH_SAM_APDU [14:23:08]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D9 46 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [14:23:08]Write to MH i2c: E2 02 01 3B 41 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D9 46 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 2A [14:23:08]Write i2c OK [14:23:08]MH_I2C_Read... [14:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:08]Read from MH i2c: E2 [14:23:08]MH_I2C_Read... [14:23:08]Read from MH i2c: E2 03 00 [14:23:08]MH_I2C_Read... [14:23:08]Read from MH i2c: E2 03 00 3B 41 00 90 00 F0 [14:23:08]RAPDU: 90 00 [14:23:08]wFMCommunicate OK [14:23:08]wFMCommunicate request_size=47 [14:23:08]MH_SAM_APDU [14:23:08]CAPDU: 80 0D 02 02 2A 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5F 57 00 00 35 04 06 00 0A E8 97 11 5E 38 [14:23:08]Write to MH i2c: E2 32 00 3C 41 80 0D 02 02 2A 00 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5F 57 00 00 35 04 06 00 0A E8 97 11 5E 38 00 00 A6 [14:23:08]Write i2c OK [14:23:08]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 [14:23:09]MH_I2C_Read... [14:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:09]Read from MH i2c: E2 03 00 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 03 00 3C 41 00 90 00 F1 [14:23:09]RAPDU: 90 00 [14:23:09]wFMCommunicate OK [14:23:09]wFMCommunicate request_size=4 [14:23:09]MH_SAM_APDU [14:23:09]CAPDU: 80 0D 03 02 [14:23:09]Write to MH i2c: E2 08 00 3D 41 80 0D 03 02 00 00 00 00 F9 [14:23:09]Write i2c OK [14:23:09]MH_I2C_Read... [14:23:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:09]Read from MH i2c: E2 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 0B 00 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 0B 00 3D 41 00 6F 0B 24 78 39 E7 5D A8 90 00 35 [14:23:09]RAPDU: 6F 0B 24 78 39 E7 5D A8 90 00 [14:23:09]wFMCommunicate OK [14:23:09]SAM_PROTO_SignData done [14:23:09]FM_MakeSignedData done [14:23:09]CreateOFDProtocolMessage [14:23:09]wFMCommunicate request_size=4 [14:23:09]MH_SAM_APDU [14:23:09]CAPDU: 80 11 00 00 [14:23:09]Write to MH i2c: E2 08 00 3E 41 80 11 00 00 00 00 00 00 F9 [14:23:09]Write i2c OK [14:23:09]MH_I2C_Read... [14:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:09]Read from MH i2c: E2 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 17 00 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: E2 17 00 3E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 4B [14:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:23:09]wFMCommunicate OK [14:23:09]CreateOFDProtocolMessage done [14:23:09]OFDSenderStorePacket 22367 [14:23:09]StoreOFDPacket docnum=22367 [14:23:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 34 01 00 00 05 79 2C 01 82 E6 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D9 46 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5F 57 00 00 35 04 06 00 0A E8 97 11 5E 38 6F 0B 24 78 39 E7 5D A8 [14:23:09]CheckFolder [14:23:09]dirname=/storage/ofd_packets [14:23:09]CheckFolder done [14:23:09]ProducePacketName [14:23:09]name=ofd_packets/00022367 [14:23:09]NVStorageSaveData ofd_packets/00022367 [14:23:09]File name is /storage/ofd_packets/00022367 [14:23:09]Write 338 bytes [14:23:09]NVStorageSaveData done [14:23:09]OFDSenderStorePacket done [14:23:09]KKMCreateOFDPacket done [14:23:09]NVStorageSaveData kkm_last_timestamp [14:23:09]File name is /storage/kkm_last_timestamp [14:23:09]Write 4 bytes [14:23:09]NVStorageSaveData done [14:23:09]ExternCall_PrintAddStr [14:23:09]wPrintStart [14:23:09]Write to MH i2c: 01 00 00 3F 41 80 [14:23:09]Write i2c OK [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: 01 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: 01 07 00 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: 01 07 00 3F 41 00 00 00 00 00 FF 0F 95 [14:23:09]RasterBufferAndPrint [14:23:09]line Счет N : (3)254574 [14:23:09]line ИНН: 02508201610067 [14:23:09]line Контрольно-Кассовый Чек [14:23:09]line ПРОДАЖА [14:23:09]line Товар: 4700000481453 [14:23:09]line Напиток энерг Nitro Max 0,45 ж/б [14:23:09]line 1.000 * 85.00 [14:23:09]line = 85.00 [14:23:09]line НДС 12% НСП 1% [14:23:09]line > о реализуемом товаре [14:23:09]line ИТОГО: 85.00 [14:23:09]line НСП 1% : 0.75 [14:23:09]line НДС 12% : 9.03 [14:23:09]line Наличными: 0.00 [14:23:09]line Безнал.: 85.00 [14:23:09]line Место: АЗС № 76 "Партнер Нефть" [14:23:09]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [14:23:09]line СНО: Общий режим [14:23:09]line Чек 48 17.06.2024 14:23 [14:23:09]line Смена: 328 ФФД: 1.0 [14:23:09]line ЗНМ: 0300000200 [14:23:09]line РНМ: 0000000000099755 [14:23:09]line Версия ККМ: 001 [14:23:09]line Платежная система: АКБ Кыргызстан [14:23:09]line ФМ: 0000000000965344 [14:23:09]line ФД: 22367 [14:23:09]line ФПД: 11994083188280 [14:23:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T142321&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22367&fm=11994083188280&tin=02508201610067®Number=0000000000099755&sum=8500 [14:23:09]line 0 [14:23:09]OFD Sender: Processing packet 22367 [packets to send 5, broken 4] [14:23:09]ProducePacketName [14:23:09]name=ofd_packets/00022367 [14:23:09]OFD Sender: To server: pG, [14:23:09]CommunicateWithHost lk.salyk.kg:30040 [14:23:09]ConnectInit lk.salyk.kg [14:23:09]written 0, free lines is 4095 [14:23:09]Connected sock=10 [14:23:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 34 01 00 00 05 79 2C 01 82 E6 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 D9 46 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5F 57 00 00 35 04 06 00 0A E8 97 11 5E 38 6F 0B 24 78 39 E7 5D A8 [14:23:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 F5 4B 47 00 13 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 5F 57 00 00 F4 03 04 00 90 EF 6F 66 B6 04 01 00 00 5F 58 55 D1 29 12 ED 3B [14:23:09]CommunicateWithHost err = 0 [14:23:09]CheckOFDResponse [14:23:09]1017 (14) - 77093643461234 [14:23:09]1041 (16) - 0000000000965344 [14:23:09]1040 (4) - 22367 [14:23:09]1012 (4) - 17.06.2024 08:10 [14:23:09]1206 (1) - 0 [14:23:09]OFD Sender: Remove packet 22367 [14:23:09]ProducePacketName [14:23:09]name=ofd_packets/00022367 [14:23:09]NVStorageDeleteData [14:23:09]Write to MH i2c: 01 00 00 6A 41 AB [14:23:09]Write i2c OK [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: 01 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: 01 07 00 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: 01 07 00 6A 41 00 00 00 00 00 F2 0C B0 [14:23:09]RasterBufferAndPrint [14:23:09]line [14:23:09]line [14:23:09]line [14:23:09]line [14:23:09]line [14:23:09]written 0, free lines is 3321 [14:23:09]MH_Cut [14:23:09]Write to MH i2c: D1 01 00 71 41 01 84 [14:23:09]Write i2c OK [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: D1 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: D1 01 00 [14:23:09]MH_I2C_Read... [14:23:09]Read from MH i2c: D1 01 00 71 41 00 83 [14:23:09]Write to MH i2c: 01 00 00 72 41 B3 [14:23:09]Write i2c OK [14:23:09]MH_I2C_Read... [14:23:10]OFD Sender: No OFD packet to send [14:23:10]*** Cut start [14:23:10]*** Partial cut [14:23:10]*** CUTSNS_PIN = 1 [14:23:10]*** CUTSNS_PIN = 0 [14:23:10]*** Brake cut motor [14:23:11]Read from MH i2c: 01 [14:23:11]MH_I2C_Read... [14:23:11]*** Stop cut motor [14:23:11]*** Cut end [14:23:11]Read from MH i2c: 01 07 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: 01 07 00 72 41 00 00 00 00 00 FF 0F C8 [14:23:11]process_action close_receipt done [14:23:11]requested_data is exist [14:23:11]produce_requested_data [14:23:11]requested_item fm.sn is exist - process it [14:23:11]wFMCommunicate request_size=4 [14:23:11]MH_SAM_APDU [14:23:11]CAPDU: 80 11 00 00 [14:23:11]Write to MH i2c: E2 08 00 73 41 80 11 00 00 00 00 00 00 2E [14:23:11]Write i2c OK [14:23:11]MH_I2C_Read... [14:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:11]Read from MH i2c: E2 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 17 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 17 00 73 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 80 [14:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:23:11]wFMCommunicate OK [14:23:11]requested_item fd.num is exist - process it [14:23:11]SAM_PROTO_GetFieldsCounters [14:23:11]wFMCommunicate request_size=4 [14:23:11]MH_SAM_APDU [14:23:11]CAPDU: 80 13 00 00 [14:23:11]Write to MH i2c: E2 08 00 74 41 80 13 00 00 00 00 00 00 31 [14:23:11]Write i2c OK [14:23:11]MH_I2C_Read... [14:23:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:11]Read from MH i2c: E2 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 62 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 62 00 74 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 5F 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [14:23:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 5F 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:11]wFMCommunicate OK [14:23:11]SAM_PROTO_GetFieldsCounters done [14:23:11]requested_item shift.num is exist - process it [14:23:11]requested_item shift.opened is exist - process it [14:23:11]req_shift_opened [14:23:11]FM_GetShiftState [14:23:11]SAM_PROTO_GetShiftState [14:23:11]wFMCommunicate request_size=4 [14:23:11]MH_SAM_APDU [14:23:11]CAPDU: 80 13 01 00 [14:23:11]Write to MH i2c: E2 08 00 75 41 80 13 01 00 00 00 00 00 33 [14:23:11]Write i2c OK [14:23:11]MH_I2C_Read... [14:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:11]Read from MH i2c: E2 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 0E 00 [14:23:11]MH_I2C_Read... [14:23:11]Read from MH i2c: E2 0E 00 75 41 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 E5 [14:23:11]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:23:11]wFMCommunicate OK [14:23:11]SAM_PROTO_GetShiftState done [14:23:11]FM_GetShiftState done [14:23:11]req_shift_opened done [14:23:11]requested_item shift.open_date is exist - process it [14:23:11]req_shift_open_date [14:23:11]req_shift_open_date done [14:23:11]produce_requested_data done [14:23:11]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22367,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [14:23:11]process_action_free close_receipt [14:23:11]json_value_free [14:23:11]json_value_free done [14:23:11]process_json_proto returns [14:23:11]Send response to host [14:23:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22367,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [14:23:11]free response buf [14:23:11]execute_script done [14:23:11]execute_script returns [14:23:11]free content buf [14:23:11]Sock 8.Close socket [14:23:11]Sock 8.Thread stoped [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:17]accept exits with 9 [14:30:17]New connection [14:30:17]New thread 3066838372 created [14:30:17]Thread 3066695012 joined [14:30:17]Waiting for new connection... [14:30:17] Sock 9.Parse request [14:30:17]Sock 9.Check first char [14:30:17]Sock 9.First char is OK [14:30:17]request: POST /json_proto HTTP/1.0 [14:30:17]Method: POST [14:30:17]URL: /json_proto [14:30:17]Method is POST - this is cgi request [14:30:17]url: /json_proto [14:30:17]query_string will be loaded in cgi processing [14:30:17]execute_cgi json_proto POST (null) [14:30:17]execute_cgi path=json_proto method=POST [14:30:17]POST find Content-Length [14:30:17]Host: 172.17.35.133:8080 [14:30:17]Content-Length: 685 [14:30:17]Content-Type: application/json [14:30:17] [14:30:17]POST finish read [14:30:17]Found Content-Length = 685 [14:30:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254575", "tax_sys" : 0, "items" : [ { "code": "4870227272933", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:17]execute_script... [14:30:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254575", "tax_sys" : 0, "items" : [ { "code": "4870227272933", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:17]POST & json_proto [14:30:17]process_json_proto [14:30:17]json parsed OK: [14:30:17]protocol is kg_v1.0 [14:30:17]action value=close_receipt [14:30:17]process_action close_receipt [14:30:17]cmd_close_receipt [14:30:17]MH_GetDate [14:30:17]Write to MH i2c: F0 00 00 76 41 A6 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: F0 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: F0 09 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: F0 09 00 76 41 00 87 48 70 66 8C 55 28 65 C2 [14:30:17]GetLastDocTimeStamp 1718634201 [14:30:17]current date 1718634631 [14:30:17]FM_GetShiftState [14:30:17]SAM_PROTO_GetShiftState [14:30:17]wFMCommunicate request_size=4 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 13 01 00 [14:30:17]Write to MH i2c: E2 08 00 77 41 80 13 01 00 00 00 00 00 35 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 0E 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 0E 00 77 41 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 E7 [14:30:17]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:30:17]wFMCommunicate OK [14:30:17]SAM_PROTO_GetShiftState done [14:30:17]FM_GetShiftState done [14:30:17]opened in 1718583887 [14:30:17]opened+sec_in_day 1718670287 [14:30:17]quantity*price = 8500 [14:30:17]sum+1 = 8501 [14:30:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 49 17.06.2024 14:30 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22368 ФПД: 58348331987871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T143031&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22368&fm=58348331987871&tin=02508201610067®Number=0000000000099755&sum=8500 0 [14:30:18]StoreToDocumentArchive [14:30:18]shift 328 fd 22368 [14:30:18]save to /storage/0328/doc_00022368 [14:30:18]save last doc name /storage/0328/doc_00022368 to /storage/kkm_last_doc_name [14:30:18]save OK [14:30:18]Clear old archive folders... [14:30:18]ProcessDocumentItem done err = 0, tmpTLVsize=292 [14:30:18]tlvbuf is 00344C50 [14:30:18]SAM_PROTO_ClearQueue [14:30:18]wFMCommunicate request_size=4 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 09 00 00 [14:30:18]Write to MH i2c: E2 08 00 84 41 80 09 00 00 00 00 00 00 37 [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 84 41 00 90 00 39 [14:30:18]RAPDU: 90 00 [14:30:18]wFMCommunicate OK [14:30:18]SAM_PROTO_ClearQueue done [14:30:18]KKMCreateOFDPacket [14:30:18]OFDProtocolAddRootSTLVToBuf [14:30:18]FM_MakeSignedData [14:30:18]FM_MakeSignedData [14:30:18]SAM_PROTO_SignData [14:30:18]wFMCommunicate request_size=4 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 0D 01 02 [14:30:18]Write to MH i2c: E2 08 00 85 41 80 0D 01 02 00 00 00 00 3F [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 85 41 00 90 00 3A [14:30:18]RAPDU: 90 00 [14:30:18]wFMCommunicate OK [14:30:18]wFMCommunicate request_size=255 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 33 33 06 04 32 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 87 48 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [14:30:18]Write to MH i2c: E2 02 01 86 41 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 33 33 06 04 32 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 87 48 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 8B [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:19]Read from MH i2c: E2 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 03 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 03 00 86 41 00 90 00 3B [14:30:19]RAPDU: 90 00 [14:30:19]wFMCommunicate OK [14:30:19]wFMCommunicate request_size=51 [14:30:19]MH_SAM_APDU [14:30:19]CAPDU: 80 0D 02 02 2E 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 60 57 00 00 35 04 06 00 35 11 47 99 F3 9F [14:30:19]Write to MH i2c: E2 36 00 87 41 80 0D 02 02 2E 00 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 60 57 00 00 35 04 06 00 35 11 47 99 F3 9F 00 00 4B [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:19]Read from MH i2c: E2 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 03 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 03 00 87 41 00 90 00 3C [14:30:19]RAPDU: 90 00 [14:30:19]wFMCommunicate OK [14:30:19]wFMCommunicate request_size=4 [14:30:19]MH_SAM_APDU [14:30:19]CAPDU: 80 0D 03 02 [14:30:19]Write to MH i2c: E2 08 00 88 41 80 0D 03 02 00 00 00 00 44 [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:19]Read from MH i2c: E2 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 0B 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 0B 00 88 41 00 36 E3 BE 29 74 D0 12 F4 90 00 8F [14:30:19]RAPDU: 36 E3 BE 29 74 D0 12 F4 90 00 [14:30:19]wFMCommunicate OK [14:30:19]SAM_PROTO_SignData done [14:30:19]FM_MakeSignedData done [14:30:19]CreateOFDProtocolMessage [14:30:19]wFMCommunicate request_size=4 [14:30:19]MH_SAM_APDU [14:30:19]CAPDU: 80 11 00 00 [14:30:19]Write to MH i2c: E2 08 00 89 41 80 11 00 00 00 00 00 00 44 [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:19]Read from MH i2c: E2 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 17 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 17 00 89 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 96 [14:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:30:19]wFMCommunicate OK [14:30:19]CreateOFDProtocolMessage done [14:30:19]OFDSenderStorePacket 22368 [14:30:19]StoreOFDPacket docnum=22368 [14:30:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 38 01 00 00 5D 0A 30 01 24 D0 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 33 33 06 04 32 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 87 48 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 60 57 00 00 35 04 06 00 35 11 47 99 F3 9F 36 E3 BE 29 74 D0 12 F4 [14:30:19]CheckFolder [14:30:19]dirname=/storage/ofd_packets [14:30:19]CheckFolder done [14:30:19]ProducePacketName [14:30:19]name=ofd_packets/00022368 [14:30:19]NVStorageSaveData ofd_packets/00022368 [14:30:19]File name is /storage/ofd_packets/00022368 [14:30:19]Write 342 bytes [14:30:19]NVStorageSaveData done [14:30:19]OFDSenderStorePacket done [14:30:19]KKMCreateOFDPacket done [14:30:19]NVStorageSaveData kkm_last_timestamp [14:30:19]File name is /storage/kkm_last_timestamp [14:30:19]Write 4 bytes [14:30:19]NVStorageSaveData done [14:30:19]ExternCall_PrintAddStr [14:30:19]wPrintStart [14:30:19]Write to MH i2c: 01 00 00 8A 41 CB [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: 01 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: 01 07 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: 01 07 00 8A 41 00 00 00 00 00 FF 0F E0 [14:30:19]RasterBufferAndPrint [14:30:19]line Счет N : (3)254575 [14:30:19]line ИНН: 02508201610067 [14:30:19]line Контрольно-Кассовый Чек [14:30:19]line ПРОДАЖА [14:30:19]line Товар: 4870227272933 [14:30:19]line Лимонад Sunbel Классический 1л [14:30:19]line 1.000 * 85.00 [14:30:19]line = 85.00 [14:30:19]line НДС 12% НСП 1% [14:30:19]line > о реализуемом товаре [14:30:19]line ИТОГО: 85.00 [14:30:19]line НСП 1% : 0.75 [14:30:19]line НДС 12% : 9.03 [14:30:19]line Наличными: 85.00 [14:30:19]line Безнал.: 0.00 [14:30:19]line Место: АЗС № 76 "Партнер Нефть" [14:30:19]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [14:30:19]line СНО: Общий режим [14:30:19]line Чек 49 17.06.2024 14:30 [14:30:19]line Смена: 328 ФФД: 1.0 [14:30:19]line ЗНМ: 0300000200 [14:30:19]line РНМ: 0000000000099755 [14:30:19]line Версия ККМ: 001 [14:30:19]line ФМ: 0000000000965344 [14:30:19]line ФД: 22368 [14:30:19]line ФПД: 58348331987871 [14:30:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T143031&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22368&fm=58348331987871&tin=02508201610067®Number=0000000000099755&sum=8500 [14:30:19]line 0 [14:30:19]OFD Sender: Processing packet 22368 [packets to send 5, broken 4] [14:30:19]ProducePacketName [14:30:19]name=ofd_packets/00022368 [14:30:19]OFD Sender: To server: pG, [14:30:19]CommunicateWithHost lk.salyk.kg:30040 [14:30:19]ConnectInit lk.salyk.kg [14:30:19]written 0, free lines is 4095 [14:30:19]Connected sock=10 [14:30:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 38 01 00 00 5D 0A 30 01 24 D0 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 33 33 06 04 32 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 87 48 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 60 57 00 00 35 04 06 00 35 11 47 99 F3 9F 36 E3 BE 29 74 D0 12 F4 [14:30:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 B0 54 47 00 66 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 39 36 35 33 34 34 10 04 04 00 60 57 00 00 F4 03 04 00 3E F1 6F 66 B6 04 01 00 00 05 D5 57 15 96 58 ED A0 [14:30:19]CommunicateWithHost err = 0 [14:30:19]CheckOFDResponse [14:30:19]1017 (14) - 77093643461234 [14:30:19]1041 (16) - 0000000000965344 [14:30:19]1040 (4) - 22368 [14:30:19]1012 (4) - 17.06.2024 08:18 [14:30:19]1206 (1) - 0 [14:30:19]OFD Sender: Remove packet 22368 [14:30:19]ProducePacketName [14:30:19]name=ofd_packets/00022368 [14:30:19]NVStorageDeleteData [14:30:19]Write to MH i2c: 01 00 00 B3 41 F4 [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: 01 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: 01 07 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: 01 07 00 B3 41 00 00 00 00 00 F8 0C FF [14:30:19]RasterBufferAndPrint [14:30:19]line [14:30:19]line [14:30:19]line [14:30:19]line [14:30:19]line [14:30:19]written 0, free lines is 3327 [14:30:19]MH_Cut [14:30:19]Write to MH i2c: D1 01 00 BA 41 01 CD [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: D1 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: D1 01 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: D1 01 00 BA 41 00 CC [14:30:19]Write to MH i2c: 01 00 00 BB 41 FC [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:20]OFD Sender: No OFD packet to send [14:30:20]*** Cut start [14:30:20]*** Partial cut [14:30:20]*** CUTSNS_PIN = 1 [14:30:20]*** CUTSNS_PIN = 0 [14:30:20]*** Brake cut motor [14:30:21]Read from MH i2c: 01 [14:30:21]MH_I2C_Read... [14:30:21]*** Stop cut motor [14:30:21]*** Cut end [14:30:21]Read from MH i2c: 01 07 00 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: 01 07 00 BB 41 00 00 00 00 00 FF 0F 11 [14:30:21]process_action close_receipt done [14:30:21]requested_data is exist [14:30:21]produce_requested_data [14:30:21]requested_item fm.sn is exist - process it [14:30:21]wFMCommunicate request_size=4 [14:30:21]MH_SAM_APDU [14:30:21]CAPDU: 80 11 00 00 [14:30:21]Write to MH i2c: E2 08 00 BC 41 80 11 00 00 00 00 00 00 77 [14:30:21]Write i2c OK [14:30:21]MH_I2C_Read... [14:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:21]Read from MH i2c: E2 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: E2 17 00 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: E2 17 00 BC 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 C9 [14:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:30:21]wFMCommunicate OK [14:30:21]requested_item fd.num is exist - process it [14:30:21]SAM_PROTO_GetFieldsCounters [14:30:21]wFMCommunicate request_size=4 [14:30:21]MH_SAM_APDU [14:30:21]CAPDU: 80 13 00 00 [14:30:21]Write to MH i2c: E2 08 00 BD 41 80 13 00 00 00 00 00 00 7A [14:30:21]Write i2c OK [14:30:21]MH_I2C_Read... [14:30:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:21]Read from MH i2c: E2 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: E2 62 00 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: E2 62 00 BD 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 60 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [14:30:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 60 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:21]wFMCommunicate OK [14:30:21]SAM_PROTO_GetFieldsCounters done [14:30:21]requested_item shift.num is exist - process it [14:30:21]requested_item shift.opened is exist - process it [14:30:21]req_shift_opened [14:30:21]FM_GetShiftState [14:30:21]SAM_PROTO_GetShiftState [14:30:21]wFMCommunicate request_size=4 [14:30:21]MH_SAM_APDU [14:30:21]CAPDU: 80 13 01 00 [14:30:21]Write to MH i2c: E2 08 00 BE 41 80 13 01 00 00 00 00 00 7C [14:30:21]Write i2c OK [14:30:21]MH_I2C_Read... [14:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:21]Read from MH i2c: E2 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: E2 0E 00 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: E2 0E 00 BE 41 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 2E [14:30:21]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:30:21]wFMCommunicate OK [14:30:21]SAM_PROTO_GetShiftState done [14:30:21]FM_GetShiftState done [14:30:21]req_shift_opened done [14:30:21]requested_item shift.open_date is exist - process it [14:30:21]req_shift_open_date [14:30:21]req_shift_open_date done [14:30:21]produce_requested_data done [14:30:21]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22368,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [14:30:21]process_action_free close_receipt [14:30:21]json_value_free [14:30:21]json_value_free done [14:30:21]process_json_proto returns [14:30:21]Send response to host [14:30:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22368,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [14:30:21]free response buf [14:30:21]execute_script done [14:30:21]execute_script returns [14:30:21]free content buf [14:30:21]Sock 9.Close socket [14:30:21]Sock 9.Thread stoped [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:41]accept exits with 8 [14:33:41]New connection [14:33:41]New thread 3066695012 created [14:33:41]Thread 3066838372 joined [14:33:41]Waiting for new connection... [14:33:41] Sock 8.Parse request [14:33:41]Sock 8.Check first char [14:33:41]Sock 8.First char is OK [14:33:41]request: POST /json_proto HTTP/1.0 [14:33:41]Method: POST [14:33:41]URL: /json_proto [14:33:41]Method is POST - this is cgi request [14:33:41]url: /json_proto [14:33:41]query_string will be loaded in cgi processing [14:33:41]execute_cgi json_proto POST (null) [14:33:41]execute_cgi path=json_proto method=POST [14:33:41]POST find Content-Length [14:33:41]Host: 172.17.35.133:8080 [14:33:41]Content-Length: 654 [14:33:41]Content-Type: application/json [14:33:41] [14:33:41]POST finish read [14:33:41]Found Content-Length = 654 [14:33:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254576", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:41]execute_script... [14:33:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254576", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:41]POST & json_proto [14:33:41]process_json_proto [14:33:41]json parsed OK: [14:33:41]protocol is kg_v1.0 [14:33:41]action value=close_receipt [14:33:41]process_action close_receipt [14:33:41]cmd_close_receipt [14:33:41]MH_GetDate [14:33:41]Write to MH i2c: F0 00 00 BF 41 EF [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: F0 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: F0 09 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: F0 09 00 BF 41 00 53 49 70 66 8C 55 28 65 D8 [14:33:41]GetLastDocTimeStamp 1718634631 [14:33:41]current date 1718634835 [14:33:41]FM_GetShiftState [14:33:41]SAM_PROTO_GetShiftState [14:33:41]wFMCommunicate request_size=4 [14:33:41]MH_SAM_APDU [14:33:41]CAPDU: 80 13 01 00 [14:33:41]Write to MH i2c: E2 08 00 C0 41 80 13 01 00 00 00 00 00 7E [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:41]Read from MH i2c: E2 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 0E 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: E2 0E 00 C0 41 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 30 [14:33:41]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:33:41]wFMCommunicate OK [14:33:41]SAM_PROTO_GetShiftState done [14:33:41]FM_GetShiftState done [14:33:41]opened in 1718583887 [14:33:41]opened+sec_in_day 1718670287 [14:33:41]quantity*price = 9500 [14:33:41]sum+1 = 9501 [14:33:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 50 17.06.2024 14:33 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22369 ФПД: 60759279374853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T143355&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22369&fm=60759279374853&tin=02508201610067®Number=0000000000099755&sum=9500 0 [14:33:42]StoreToDocumentArchive [14:33:42]shift 328 fd 22369 [14:33:42]save to /storage/0328/doc_00022369 [14:33:42]save last doc name /storage/0328/doc_00022369 to /storage/kkm_last_doc_name [14:33:42]save OK [14:33:42]Clear old archive folders... [14:33:42]ProcessDocumentItem done err = 0, tmpTLVsize=293 [14:33:42]tlvbuf is 001B9020 [14:33:42]SAM_PROTO_ClearQueue [14:33:42]wFMCommunicate request_size=4 [14:33:42]MH_SAM_APDU [14:33:42]CAPDU: 80 09 00 00 [14:33:42]Write to MH i2c: E2 08 00 CD 41 80 09 00 00 00 00 00 00 80 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:42]Read from MH i2c: E2 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 03 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 03 00 CD 41 00 90 00 82 [14:33:42]RAPDU: 90 00 [14:33:42]wFMCommunicate OK [14:33:42]SAM_PROTO_ClearQueue done [14:33:42]KKMCreateOFDPacket [14:33:42]OFDProtocolAddRootSTLVToBuf [14:33:42]FM_MakeSignedData [14:33:42]FM_MakeSignedData [14:33:42]SAM_PROTO_SignData [14:33:42]wFMCommunicate request_size=4 [14:33:42]MH_SAM_APDU [14:33:42]CAPDU: 80 0D 01 02 [14:33:42]Write to MH i2c: E2 08 00 CE 41 80 0D 01 02 00 00 00 00 88 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:42]Read from MH i2c: E2 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 03 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 03 00 CE 41 00 90 00 83 [14:33:42]RAPDU: 90 00 [14:33:42]wFMCommunicate OK [14:33:42]wFMCommunicate request_size=255 [14:33:42]MH_SAM_APDU [14:33:42]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 53 49 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [14:33:42]Write to MH i2c: E2 02 01 CF 41 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 53 49 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 15 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 CF 41 00 90 00 84 [14:33:43]RAPDU: 90 00 [14:33:43]wFMCommunicate OK [14:33:43]wFMCommunicate request_size=52 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 61 57 00 00 35 04 06 00 37 42 9F 43 92 05 [14:33:43]Write to MH i2c: E2 37 00 D0 41 80 0D 02 02 2F 00 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 61 57 00 00 35 04 06 00 37 42 9F 43 92 05 00 00 01 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 D0 41 00 90 00 85 [14:33:43]RAPDU: 90 00 [14:33:43]wFMCommunicate OK [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 0D 03 02 [14:33:43]Write to MH i2c: E2 08 00 D1 41 80 0D 03 02 00 00 00 00 8D [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 0B 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 0B 00 D1 41 00 AD 39 72 5B 76 E6 1D 17 90 00 D1 [14:33:43]RAPDU: AD 39 72 5B 76 E6 1D 17 90 00 [14:33:43]wFMCommunicate OK [14:33:43]SAM_PROTO_SignData done [14:33:43]FM_MakeSignedData done [14:33:43]CreateOFDProtocolMessage [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 11 00 00 [14:33:43]Write to MH i2c: E2 08 00 D2 41 80 11 00 00 00 00 00 00 8D [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 17 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 17 00 D2 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 DF [14:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:33:43]wFMCommunicate OK [14:33:43]CreateOFDProtocolMessage done [14:33:43]OFDSenderStorePacket 22369 [14:33:43]StoreOFDPacket docnum=22369 [14:33:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 39 01 00 00 C3 36 31 01 B6 50 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 53 49 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 61 57 00 00 35 04 06 00 37 42 9F 43 92 05 AD 39 72 5B 76 E6 1D 17 [14:33:43]CheckFolder [14:33:43]dirname=/storage/ofd_packets [14:33:43]CheckFolder done [14:33:43]ProducePacketName [14:33:43]name=ofd_packets/00022369 [14:33:43]NVStorageSaveData ofd_packets/00022369 [14:33:43]File name is /storage/ofd_packets/00022369 [14:33:43]Write 343 bytes [14:33:43]NVStorageSaveData done [14:33:43]OFDSenderStorePacket done [14:33:43]KKMCreateOFDPacket done [14:33:43]NVStorageSaveData kkm_last_timestamp [14:33:43]File name is /storage/kkm_last_timestamp [14:33:43]Write 4 bytes [14:33:43]NVStorageSaveData done [14:33:43]ExternCall_PrintAddStr [14:33:43]wPrintStart [14:33:43]Write to MH i2c: 01 00 00 D3 41 14 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: 01 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: 01 07 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: 01 07 00 D3 41 00 00 00 00 00 FF 0F 29 [14:33:43]RasterBufferAndPrint [14:33:43]line Счет N : (3)254576 [14:33:43]line ИНН: 02508201610067 [14:33:43]line Контрольно-Кассовый Чек [14:33:43]line ПРОДАЖА [14:33:43]line Товар: 4700000480050 [14:33:43]line Напиток Nitro Energy эн green ж/б 0,45л [14:33:43]line 1.000 * 95.00 [14:33:43]line = 95.00 [14:33:43]line НДС 12% НСП 1% [14:33:43]line > о реализуемом товаре [14:33:43]line ИТОГО: 95.00 [14:33:43]line НСП 1% : 0.84 [14:33:43]line НДС 12% : 10.09 [14:33:43]line Наличными: 95.00 [14:33:43]line Безнал.: 0.00 [14:33:43]line Место: АЗС № 76 "Партнер Нефть" [14:33:43]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [14:33:43]line СНО: Общий режим [14:33:43]line Чек 50 17.06.2024 14:33 [14:33:43]line Смена: 328 ФФД: 1.0 [14:33:43]line ЗНМ: 0300000200 [14:33:43]line РНМ: 0000000000099755 [14:33:43]line Версия ККМ: 001 [14:33:43]line ФМ: 0000000000965344 [14:33:43]line ФД: 22369 [14:33:43]line ФПД: 60759279374853 [14:33:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T143355&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22369&fm=60759279374853&tin=02508201610067®Number=0000000000099755&sum=9500 [14:33:43]line 0 [14:33:43]OFD Sender: Processing packet 22369 [packets to send 5, broken 4] [14:33:43]ProducePacketName [14:33:43]name=ofd_packets/00022369 [14:33:43]OFD Sender: To server: pG, [14:33:43]CommunicateWithHost lk.salyk.kg:30040 [14:33:43]ConnectInit lk.salyk.kg [14:33:43]written 0, free lines is 4095 [14:33:43]Connected sock=10 [14:33:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 39 01 00 00 C3 36 31 01 B6 50 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 53 49 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 61 57 00 00 35 04 06 00 37 42 9F 43 92 05 AD 39 72 5B 76 E6 1D 17 [14:33:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 99 DE 47 00 42 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 39 36 35 33 34 34 10 04 04 00 61 57 00 00 F4 03 04 00 0A F2 6F 66 B6 04 01 00 00 E8 E6 45 D9 C8 00 80 EF [14:33:43]CommunicateWithHost err = 0 [14:33:43]CheckOFDResponse [14:33:43]1017 (14) - 77093643461234 [14:33:43]1041 (16) - 0000000000965344 [14:33:43]1040 (4) - 22369 [14:33:43]1012 (4) - 17.06.2024 08:21 [14:33:43]1206 (1) - 0 [14:33:43]OFD Sender: Remove packet 22369 [14:33:43]ProducePacketName [14:33:43]name=ofd_packets/00022369 [14:33:43]NVStorageDeleteData [14:33:44]Write to MH i2c: 01 00 00 FC 41 3D [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 07 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 07 00 FC 41 00 00 00 00 00 01 0D 52 [14:33:44]RasterBufferAndPrint [14:33:44]line [14:33:44]line [14:33:44]line [14:33:44]line [14:33:44]line [14:33:44]written 0, free lines is 3338 [14:33:44]MH_Cut [14:33:44]Write to MH i2c: D1 01 00 03 42 01 17 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: D1 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: D1 01 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: D1 01 00 03 42 00 16 [14:33:44]Write to MH i2c: 01 00 00 04 42 46 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]OFD Sender: No OFD packet to send [14:33:44]*** Cut start [14:33:44]*** Partial cut [14:33:44]*** CUTSNS_PIN = 1 [14:33:44]*** CUTSNS_PIN = 0 [14:33:45]*** Brake cut motor [14:33:45]Read from MH i2c: 01 [14:33:45]MH_I2C_Read... [14:33:45]*** Stop cut motor [14:33:45]*** Cut end [14:33:45]Read from MH i2c: 01 07 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: 01 07 00 04 42 00 00 00 00 00 FF 0F 5B [14:33:45]process_action close_receipt done [14:33:45]requested_data is exist [14:33:45]produce_requested_data [14:33:45]requested_item fm.sn is exist - process it [14:33:45]wFMCommunicate request_size=4 [14:33:45]MH_SAM_APDU [14:33:45]CAPDU: 80 11 00 00 [14:33:45]Write to MH i2c: E2 08 00 05 42 80 11 00 00 00 00 00 00 C1 [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:45]Read from MH i2c: E2 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 17 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 17 00 05 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 13 [14:33:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:33:45]wFMCommunicate OK [14:33:45]requested_item fd.num is exist - process it [14:33:45]SAM_PROTO_GetFieldsCounters [14:33:45]wFMCommunicate request_size=4 [14:33:45]MH_SAM_APDU [14:33:45]CAPDU: 80 13 00 00 [14:33:45]Write to MH i2c: E2 08 00 06 42 80 13 00 00 00 00 00 00 C4 [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:45]Read from MH i2c: E2 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 62 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 62 00 06 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 61 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [14:33:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 61 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:45]wFMCommunicate OK [14:33:45]SAM_PROTO_GetFieldsCounters done [14:33:45]requested_item shift.num is exist - process it [14:33:45]requested_item shift.opened is exist - process it [14:33:45]req_shift_opened [14:33:45]FM_GetShiftState [14:33:45]SAM_PROTO_GetShiftState [14:33:45]wFMCommunicate request_size=4 [14:33:45]MH_SAM_APDU [14:33:45]CAPDU: 80 13 01 00 [14:33:45]Write to MH i2c: E2 08 00 07 42 80 13 01 00 00 00 00 00 C6 [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:45]Read from MH i2c: E2 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 0E 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 0E 00 07 42 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 78 [14:33:45]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:33:45]wFMCommunicate OK [14:33:45]SAM_PROTO_GetShiftState done [14:33:45]FM_GetShiftState done [14:33:45]req_shift_opened done [14:33:45]requested_item shift.open_date is exist - process it [14:33:45]req_shift_open_date [14:33:45]req_shift_open_date done [14:33:45]produce_requested_data done [14:33:45]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22369,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [14:33:45]process_action_free close_receipt [14:33:45]json_value_free [14:33:45]json_value_free done [14:33:45]process_json_proto returns [14:33:45]Send response to host [14:33:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22369,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [14:33:45]free response buf [14:33:45]execute_script done [14:33:45]execute_script returns [14:33:45]free content buf [14:33:45]Sock 8.Close socket [14:33:45]Sock 8.Thread stoped [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]accept exits with 9 [14:34:34]New connection [14:34:34]New thread 3066838372 created [14:34:34]Thread 3066695012 joined [14:34:34]Waiting for new connection... [14:34:34] Sock 9.Parse request [14:34:34]Sock 9.Check first char [14:34:34]Sock 9.First char is OK [14:34:34]request: POST /json_proto HTTP/1.0 [14:34:34]Method: POST [14:34:34]URL: /json_proto [14:34:34]Method is POST - this is cgi request [14:34:34]url: /json_proto [14:34:34]query_string will be loaded in cgi processing [14:34:34]execute_cgi json_proto POST (null) [14:34:34]execute_cgi path=json_proto method=POST [14:34:34]POST find Content-Length [14:34:34]Host: 172.17.35.133:8080 [14:34:34]Content-Length: 694 [14:34:34]Content-Type: application/json [14:34:34] [14:34:34]POST finish read [14:34:34]Found Content-Length = 694 [14:34:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254577", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:34]execute_script... [14:34:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254577", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:34]POST & json_proto [14:34:34]process_json_proto [14:34:34]json parsed OK: [14:34:34]protocol is kg_v1.0 [14:34:34]action value=close_receipt [14:34:34]process_action close_receipt [14:34:34]cmd_close_receipt [14:34:34]MH_GetDate [14:34:34]Write to MH i2c: F0 00 00 08 42 39 [14:34:34]Write i2c OK [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: F0 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: F0 09 00 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: F0 09 00 08 42 00 88 49 70 66 8C 55 28 65 57 [14:34:34]GetLastDocTimeStamp 1718634835 [14:34:34]current date 1718634888 [14:34:34]FM_GetShiftState [14:34:34]SAM_PROTO_GetShiftState [14:34:34]wFMCommunicate request_size=4 [14:34:34]MH_SAM_APDU [14:34:34]CAPDU: 80 13 01 00 [14:34:34]Write to MH i2c: E2 08 00 09 42 80 13 01 00 00 00 00 00 C8 [14:34:34]Write i2c OK [14:34:34]MH_I2C_Read... [14:34:34]OFD Sender: No OFD packet to send [14:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:34]Read from MH i2c: E2 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: E2 0E 00 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: E2 0E 00 09 42 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 7A [14:34:34]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:34:34]wFMCommunicate OK [14:34:34]SAM_PROTO_GetShiftState done [14:34:34]FM_GetShiftState done [14:34:34]opened in 1718583887 [14:34:34]opened+sec_in_day 1718670287 [14:34:34]quantity*price = 6500 [14:34:34]sum+1 = 6501 [14:34:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 51 17.06.2024 14:34 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22370 ФПД: 49932545396092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T143448&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22370&fm=49932545396092&tin=02508201610067®Number=0000000000099755&sum=6500 0 [14:34:35]StoreToDocumentArchive [14:34:35]shift 328 fd 22370 [14:34:35]save to /storage/0328/doc_00022370 [14:34:35]save last doc name /storage/0328/doc_00022370 to /storage/kkm_last_doc_name [14:34:35]save OK [14:34:35]Clear old archive folders... [14:34:35]ProcessDocumentItem done err = 0, tmpTLVsize=297 [14:34:35]tlvbuf is 002FB970 [14:34:35]SAM_PROTO_ClearQueue [14:34:35]wFMCommunicate request_size=4 [14:34:35]MH_SAM_APDU [14:34:35]CAPDU: 80 09 00 00 [14:34:35]Write to MH i2c: E2 08 00 16 42 80 09 00 00 00 00 00 00 CA [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:35]Read from MH i2c: E2 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 03 00 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 03 00 16 42 00 90 00 CC [14:34:35]RAPDU: 90 00 [14:34:35]wFMCommunicate OK [14:34:35]SAM_PROTO_ClearQueue done [14:34:35]KKMCreateOFDPacket [14:34:35]OFDProtocolAddRootSTLVToBuf [14:34:35]FM_MakeSignedData [14:34:35]FM_MakeSignedData [14:34:35]SAM_PROTO_SignData [14:34:35]wFMCommunicate request_size=4 [14:34:35]MH_SAM_APDU [14:34:35]CAPDU: 80 0D 01 02 [14:34:35]Write to MH i2c: E2 08 00 17 42 80 0D 01 02 00 00 00 00 D2 [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:35]Read from MH i2c: E2 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 03 00 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 03 00 17 42 00 90 00 CD [14:34:35]RAPDU: 90 00 [14:34:35]wFMCommunicate OK [14:34:35]wFMCommunicate request_size=255 [14:34:35]MH_SAM_APDU [14:34:35]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 88 49 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [14:34:35]Write to MH i2c: E2 02 01 18 42 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 88 49 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 F0 [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 18 42 00 90 00 CE [14:34:36]RAPDU: 90 00 [14:34:36]wFMCommunicate OK [14:34:36]wFMCommunicate request_size=56 [14:34:36]MH_SAM_APDU [14:34:36]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 62 57 00 00 35 04 06 00 2D 69 D3 A1 8D 7C [14:34:36]Write to MH i2c: E2 3B 00 19 42 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 62 57 00 00 35 04 06 00 2D 69 D3 A1 8D 7C 00 00 35 [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 03 00 19 42 00 90 00 CF [14:34:36]RAPDU: 90 00 [14:34:36]wFMCommunicate OK [14:34:36]wFMCommunicate request_size=4 [14:34:36]MH_SAM_APDU [14:34:36]CAPDU: 80 0D 03 02 [14:34:36]Write to MH i2c: E2 08 00 1A 42 80 0D 03 02 00 00 00 00 D7 [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 0B 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 0B 00 1A 42 00 00 EF 20 B7 D1 E5 2B FA 90 00 79 [14:34:36]RAPDU: 00 EF 20 B7 D1 E5 2B FA 90 00 [14:34:36]wFMCommunicate OK [14:34:36]SAM_PROTO_SignData done [14:34:36]FM_MakeSignedData done [14:34:36]CreateOFDProtocolMessage [14:34:36]wFMCommunicate request_size=4 [14:34:36]MH_SAM_APDU [14:34:36]CAPDU: 80 11 00 00 [14:34:36]Write to MH i2c: E2 08 00 1B 42 80 11 00 00 00 00 00 00 D7 [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 17 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 17 00 1B 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 29 [14:34:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:34:36]wFMCommunicate OK [14:34:36]CreateOFDProtocolMessage done [14:34:36]OFDSenderStorePacket 22370 [14:34:36]StoreOFDPacket docnum=22370 [14:34:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 3D 01 00 00 00 B3 35 01 84 60 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 88 49 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 62 57 00 00 35 04 06 00 2D 69 D3 A1 8D 7C 00 EF 20 B7 D1 E5 2B FA [14:34:36]CheckFolder [14:34:36]dirname=/storage/ofd_packets [14:34:36]CheckFolder done [14:34:36]ProducePacketName [14:34:36]name=ofd_packets/00022370 [14:34:36]NVStorageSaveData ofd_packets/00022370 [14:34:36]File name is /storage/ofd_packets/00022370 [14:34:36]Write 347 bytes [14:34:36]NVStorageSaveData done [14:34:36]OFDSenderStorePacket done [14:34:36]KKMCreateOFDPacket done [14:34:36]NVStorageSaveData kkm_last_timestamp [14:34:36]File name is /storage/kkm_last_timestamp [14:34:36]Write 4 bytes [14:34:36]NVStorageSaveData done [14:34:36]ExternCall_PrintAddStr [14:34:36]wPrintStart [14:34:36]Write to MH i2c: 01 00 00 1C 42 5E [14:34:36]OFD Sender: Processing packet 22370 [packets to send 5, broken 4] [14:34:36]ProducePacketName [14:34:36]name=ofd_packets/00022370 [14:34:36]OFD Sender: To server: pG, [14:34:36]CommunicateWithHost lk.salyk.kg:30040 [14:34:36]ConnectInit lk.salyk.kg [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: 01 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: 01 07 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: 01 07 00 1C 42 00 00 00 00 00 FF 0F 73 [14:34:36]RasterBufferAndPrint [14:34:36]line Счет N : (3)254577 [14:34:36]line ИНН: 02508201610067 [14:34:36]line Контрольно-Кассовый Чек [14:34:36]line ПРОДАЖА [14:34:36]line Товар: 4870001571535 [14:34:36]line Вода ASU пит н.газ персик ПЭТ 0,5л [14:34:36]line 1.000 * 65.00 [14:34:36]line = 65.00 [14:34:36]line НДС 12% НСП 1% [14:34:36]line > о реализуемом товаре [14:34:36]line ИТОГО: 65.00 [14:34:36]line НСП 1% : 0.57 [14:34:36]line НДС 12% : 6.90 [14:34:36]line Наличными: 65.00 [14:34:36]line Безнал.: 0.00 [14:34:36]line Место: АЗС № 76 "Партнер Нефть" [14:34:36]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [14:34:36]line СНО: Общий режим [14:34:36]line Чек 51 17.06.2024 14:34 [14:34:36]line Смена: 328 ФФД: 1.0 [14:34:36]line ЗНМ: 0300000200 [14:34:36]line РНМ: 0000000000099755 [14:34:36]line Версия ККМ: 001 [14:34:36]line ФМ: 0000000000965344 [14:34:36]line ФД: 22370 [14:34:36]line ФПД: 49932545396092 [14:34:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T143448&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22370&fm=49932545396092&tin=02508201610067®Number=0000000000099755&sum=6500 [14:34:36]line 0 [14:34:36]Connected sock=10 [14:34:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 3D 01 00 00 00 B3 35 01 84 60 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 88 49 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 62 57 00 00 35 04 06 00 2D 69 D3 A1 8D 7C 00 EF 20 B7 D1 E5 2B FA [14:34:36]written 0, free lines is 4095 [14:34:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 5F B7 47 00 AE 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 62 57 00 00 F4 03 04 00 3F F2 6F 66 B6 04 01 00 00 71 AA 2C C1 92 F5 F1 73 [14:34:36]CommunicateWithHost err = 0 [14:34:36]CheckOFDResponse [14:34:36]1017 (14) - 77093643461234 [14:34:36]1041 (16) - 0000000000965344 [14:34:36]1040 (4) - 22370 [14:34:36]1012 (4) - 17.06.2024 08:22 [14:34:36]1206 (1) - 0 [14:34:36]OFD Sender: Remove packet 22370 [14:34:36]ProducePacketName [14:34:36]name=ofd_packets/00022370 [14:34:36]NVStorageDeleteData [14:34:37]Write to MH i2c: 01 00 00 45 42 87 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 07 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 07 00 45 42 00 00 00 00 00 07 0D A2 [14:34:37]RasterBufferAndPrint [14:34:37]line [14:34:37]line [14:34:37]line [14:34:37]line [14:34:37]line [14:34:37]written 0, free lines is 3344 [14:34:37]MH_Cut [14:34:37]Write to MH i2c: D1 01 00 4C 42 01 60 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: D1 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: D1 01 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: D1 01 00 4C 42 00 5F [14:34:37]Write to MH i2c: 01 00 00 4D 42 8F [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]OFD Sender: No OFD packet to send [14:34:37]*** Cut start [14:34:37]*** Partial cut [14:34:37]*** CUTSNS_PIN = 1 [14:34:37]*** CUTSNS_PIN = 0 [14:34:37]*** Brake cut motor [14:34:38]Read from MH i2c: 01 [14:34:38]MH_I2C_Read... [14:34:38]*** Stop cut motor [14:34:38]*** Cut end [14:34:38]Read from MH i2c: 01 07 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: 01 07 00 4D 42 00 00 00 00 00 FF 0F A4 [14:34:38]process_action close_receipt done [14:34:38]requested_data is exist [14:34:38]produce_requested_data [14:34:38]requested_item fm.sn is exist - process it [14:34:38]wFMCommunicate request_size=4 [14:34:38]MH_SAM_APDU [14:34:38]CAPDU: 80 11 00 00 [14:34:38]Write to MH i2c: E2 08 00 4E 42 80 11 00 00 00 00 00 00 0A [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:38]Read from MH i2c: E2 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 17 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 17 00 4E 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 5C [14:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:34:38]wFMCommunicate OK [14:34:38]requested_item fd.num is exist - process it [14:34:38]SAM_PROTO_GetFieldsCounters [14:34:38]wFMCommunicate request_size=4 [14:34:38]MH_SAM_APDU [14:34:38]CAPDU: 80 13 00 00 [14:34:38]Write to MH i2c: E2 08 00 4F 42 80 13 00 00 00 00 00 00 0D [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:38]Read from MH i2c: E2 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 62 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 62 00 4F 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 62 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [14:34:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 62 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:38]wFMCommunicate OK [14:34:38]SAM_PROTO_GetFieldsCounters done [14:34:38]requested_item shift.num is exist - process it [14:34:38]requested_item shift.opened is exist - process it [14:34:38]req_shift_opened [14:34:38]FM_GetShiftState [14:34:38]SAM_PROTO_GetShiftState [14:34:38]wFMCommunicate request_size=4 [14:34:38]MH_SAM_APDU [14:34:38]CAPDU: 80 13 01 00 [14:34:38]Write to MH i2c: E2 08 00 50 42 80 13 01 00 00 00 00 00 0F [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:38]Read from MH i2c: E2 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 0E 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: E2 0E 00 50 42 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 C1 [14:34:38]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:34:38]wFMCommunicate OK [14:34:38]SAM_PROTO_GetShiftState done [14:34:38]FM_GetShiftState done [14:34:38]req_shift_opened done [14:34:38]requested_item shift.open_date is exist - process it [14:34:38]req_shift_open_date [14:34:38]req_shift_open_date done [14:34:38]produce_requested_data done [14:34:38]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22370,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [14:34:38]process_action_free close_receipt [14:34:38]json_value_free [14:34:38]json_value_free done [14:34:38]process_json_proto returns [14:34:38]Send response to host [14:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22370,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [14:34:38]free response buf [14:34:38]execute_script done [14:34:38]execute_script returns [14:34:38]free content buf [14:34:38]Sock 9.Close socket [14:34:38]Sock 9.Thread stoped [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:48]accept exits with 8 [14:38:48]New connection [14:38:48]New thread 3066695012 created [14:38:48]Thread 3066838372 joined [14:38:48]Waiting for new connection... [14:38:48] Sock 8.Parse request [14:38:48]Sock 8.Check first char [14:38:48]Sock 8.First char is OK [14:38:48]request: POST /json_proto HTTP/1.0 [14:38:48]Method: POST [14:38:48]URL: /json_proto [14:38:48]Method is POST - this is cgi request [14:38:48]url: /json_proto [14:38:48]query_string will be loaded in cgi processing [14:38:48]execute_cgi json_proto POST (null) [14:38:48]execute_cgi path=json_proto method=POST [14:38:48]POST find Content-Length [14:38:48]Host: 172.17.35.133:8080 [14:38:48]Content-Length: 969 [14:38:48]Content-Type: application/json [14:38:48] [14:38:48]POST finish read [14:38:48]Found Content-Length = 969 [14:38:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254578", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:48]execute_script... [14:38:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254578", "tax_sys" : 0, "items" : [ { "code": "4870001571528", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,0 \u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:48]POST & json_proto [14:38:48]process_json_proto [14:38:48]json parsed OK: [14:38:48]protocol is kg_v1.0 [14:38:48]action value=close_receipt [14:38:48]process_action close_receipt [14:38:48]cmd_close_receipt [14:38:48]MH_GetDate [14:38:48]Write to MH i2c: F0 00 00 51 42 82 [14:38:48]Write i2c OK [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 09 00 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: F0 09 00 51 42 00 86 4A 70 66 8C 55 28 65 9F [14:38:48]GetLastDocTimeStamp 1718634888 [14:38:48]current date 1718635142 [14:38:48]FM_GetShiftState [14:38:48]SAM_PROTO_GetShiftState [14:38:48]wFMCommunicate request_size=4 [14:38:48]MH_SAM_APDU [14:38:48]CAPDU: 80 13 01 00 [14:38:48]Write to MH i2c: E2 08 00 52 42 80 13 01 00 00 00 00 00 11 [14:38:48]Write i2c OK [14:38:48]MH_I2C_Read... [14:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:48]Read from MH i2c: E2 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: E2 0E 00 [14:38:48]MH_I2C_Read... [14:38:48]Read from MH i2c: E2 0E 00 52 42 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 C3 [14:38:48]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:38:48]wFMCommunicate OK [14:38:48]SAM_PROTO_GetShiftState done [14:38:48]FM_GetShiftState done [14:38:48]opened in 1718583887 [14:38:48]opened+sec_in_day 1718670287 [14:38:48]quantity*price = 10000 [14:38:48]sum+1 = 10001 [14:38:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46214638 Р/ж mentos p.white нежная мята 16/15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 149.00 НСП 1% : 1.31 НДС 12% : 15.82 Наличными: 149.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 52 17.06.2024 14:39 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22371 ФПД: 49290149517156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T143902&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22371&fm=49290149517156&tin=02508201610067®Number=0000000000099755&sum=14900 0 [14:38:49]StoreToDocumentArchive [14:38:49]shift 328 fd 22371 [14:38:49]save to /storage/0328/doc_00022371 [14:38:49]save last doc name /storage/0328/doc_00022371 to /storage/kkm_last_doc_name [14:38:49]save OK [14:38:49]Clear old archive folders... [14:38:49]ProcessDocumentItem done err = 0, tmpTLVsize=417 [14:38:49]tlvbuf is B6F39330 [14:38:49]SAM_PROTO_ClearQueue [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 09 00 00 [14:38:49]Write to MH i2c: E2 08 00 5F 42 80 09 00 00 00 00 00 00 13 [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:49]Read from MH i2c: E2 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 [14:38:49]MH_I2C_Read... [14:38:49]Read from MH i2c: E2 03 00 5F 42 00 90 00 15 [14:38:49]RAPDU: 90 00 [14:38:49]wFMCommunicate OK [14:38:49]SAM_PROTO_ClearQueue done [14:38:49]KKMCreateOFDPacket [14:38:49]OFDProtocolAddRootSTLVToBuf [14:38:49]FM_MakeSignedData [14:38:49]FM_MakeSignedData [14:38:49]SAM_PROTO_SignData [14:38:49]wFMCommunicate request_size=4 [14:38:49]MH_SAM_APDU [14:38:49]CAPDU: 80 0D 01 02 [14:38:49]Write to MH i2c: E2 08 00 60 42 80 0D 01 02 00 00 00 00 1B [14:38:49]Write i2c OK [14:38:49]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 60 42 00 90 00 16 [14:38:50]RAPDU: 90 00 [14:38:50]wFMCommunicate OK [14:38:50]wFMCommunicate request_size=255 [14:38:50]MH_SAM_APDU [14:38:50]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [14:38:50]Write to MH i2c: E2 02 01 61 42 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 A1 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 61 42 00 90 00 17 [14:38:50]RAPDU: 90 00 [14:38:50]wFMCommunicate OK [14:38:50]wFMCommunicate request_size=176 [14:38:50]MH_SAM_APDU [14:38:50]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 86 4A 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 63 57 00 00 35 04 06 00 2C D4 41 DA 57 64 [14:38:50]Write to MH i2c: E2 B3 00 62 42 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 86 4A 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 63 57 00 00 35 04 06 00 2C D4 41 DA 57 64 00 00 C8 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 03 00 62 42 00 90 00 18 [14:38:50]RAPDU: 90 00 [14:38:50]wFMCommunicate OK [14:38:50]wFMCommunicate request_size=4 [14:38:50]MH_SAM_APDU [14:38:50]CAPDU: 80 0D 03 02 [14:38:50]Write to MH i2c: E2 08 00 63 42 80 0D 03 02 00 00 00 00 20 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 0B 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 0B 00 63 42 00 41 71 EC 4D 92 FC 31 15 90 00 E0 [14:38:50]RAPDU: 41 71 EC 4D 92 FC 31 15 90 00 [14:38:50]wFMCommunicate OK [14:38:50]SAM_PROTO_SignData done [14:38:50]FM_MakeSignedData done [14:38:50]CreateOFDProtocolMessage [14:38:50]wFMCommunicate request_size=4 [14:38:50]MH_SAM_APDU [14:38:50]CAPDU: 80 11 00 00 [14:38:50]Write to MH i2c: E2 08 00 64 42 80 11 00 00 00 00 00 00 20 [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:50]Read from MH i2c: E2 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 17 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: E2 17 00 64 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 72 [14:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:38:50]wFMCommunicate OK [14:38:50]CreateOFDProtocolMessage done [14:38:50]OFDSenderStorePacket 22371 [14:38:50]StoreOFDPacket docnum=22371 [14:38:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 B5 01 00 00 E0 D1 AD 01 55 AF 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 86 4A 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 63 57 00 00 35 04 06 00 2C D4 41 DA 57 64 41 71 EC 4D 92 FC 31 15 [14:38:50]CheckFolder [14:38:50]dirname=/storage/ofd_packets [14:38:50]CheckFolder done [14:38:50]ProducePacketName [14:38:50]name=ofd_packets/00022371 [14:38:50]NVStorageSaveData ofd_packets/00022371 [14:38:50]File name is /storage/ofd_packets/00022371 [14:38:50]Write 467 bytes [14:38:50]NVStorageSaveData done [14:38:50]OFDSenderStorePacket done [14:38:50]KKMCreateOFDPacket done [14:38:50]NVStorageSaveData kkm_last_timestamp [14:38:50]File name is /storage/kkm_last_timestamp [14:38:50]Write 4 bytes [14:38:50]NVStorageSaveData done [14:38:50]ExternCall_PrintAddStr [14:38:50]wPrintStart [14:38:50]Write to MH i2c: 01 00 00 65 42 A7 [14:38:50]OFD Sender: Processing packet 22371 [packets to send 5, broken 4] [14:38:50]ProducePacketName [14:38:50]name=ofd_packets/00022371 [14:38:50]OFD Sender: To server: pG, [14:38:50]CommunicateWithHost lk.salyk.kg:30040 [14:38:50]ConnectInit lk.salyk.kg [14:38:50]Write i2c OK [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 07 00 [14:38:50]MH_I2C_Read... [14:38:50]Read from MH i2c: 01 07 00 65 42 00 00 00 00 00 FF 0F BC [14:38:50]RasterBufferAndPrint [14:38:50]line Счет N : (3)254578 [14:38:50]line ИНН: 02508201610067 [14:38:50]line Контрольно-Кассовый Чек [14:38:50]line ПРОДАЖА [14:38:50]line Товар: 4870001571528 [14:38:50]line Вода ASU пит н.газ персик ПЭТ 1,0 л [14:38:50]line 1.000 * 100.00 [14:38:50]line = 100.00 [14:38:50]line НДС 12% НСП 1% [14:38:50]line > о реализуемом товаре [14:38:50]line Товар: 46214638 [14:38:50]line Р/ж mentos p.white нежная мята 16/15,5г [14:38:50]line 1.000 * 49.00 [14:38:50]line = 49.00 [14:38:50]line НДС 12% НСП 1% [14:38:50]line > о реализуемом товаре [14:38:50]line ИТОГО: 149.00 [14:38:50]line НСП 1% : 1.31 [14:38:50]line НДС 12% : 15.82 [14:38:50]line Наличными: 149.00 [14:38:50]line Безнал.: 0.00 [14:38:50]line Место: АЗС № 76 "Партнер Нефть" [14:38:50]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [14:38:50]line СНО: Общий режим [14:38:50]line Чек 52 17.06.2024 14:39 [14:38:50]line Смена: 328 ФФД: 1.0 [14:38:50]line ЗНМ: 0300000200 [14:38:50]line РНМ: 0000000000099755 [14:38:50]line Версия ККМ: 001 [14:38:50]line ФМ: 0000000000965344 [14:38:50]line ФД: 22371 [14:38:50]line ФПД: 49290149517156 [14:38:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T143902&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22371&fm=49290149517156&tin=02508201610067®Number=0000000000099755&sum=14900 [14:38:50]line 0 [14:38:50]written 0, free lines is 4095 [14:38:51]Connected sock=10 [14:38:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 B5 01 00 00 E0 D1 AD 01 55 AF 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 83 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 86 4A 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 63 57 00 00 35 04 06 00 2C D4 41 DA 57 64 41 71 EC 4D 92 FC 31 15 [14:38:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 7B 42 47 00 6B 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 39 36 35 33 34 34 10 04 04 00 63 57 00 00 F4 03 04 00 3E F3 6F 66 B6 04 01 00 00 52 E9 45 B9 6D 13 F4 60 [14:38:51]CommunicateWithHost err = 0 [14:38:51]CheckOFDResponse [14:38:51]1017 (14) - 77093643461234 [14:38:51]1041 (16) - 0000000000965344 [14:38:51]1040 (4) - 22371 [14:38:51]1012 (4) - 17.06.2024 08:26 [14:38:51]1206 (1) - 0 [14:38:51]OFD Sender: Remove packet 22371 [14:38:51]ProducePacketName [14:38:51]name=ofd_packets/00022371 [14:38:51]NVStorageDeleteData [14:38:51]Write to MH i2c: 01 00 00 95 42 D7 [14:38:51]Write i2c OK [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: 01 [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: 01 07 00 [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: 01 07 00 95 42 00 00 00 00 00 B1 0C 9B [14:38:51]RasterBufferAndPrint [14:38:51]line [14:38:51]line [14:38:51]line [14:38:51]line [14:38:51]line [14:38:51]written 0, free lines is 3259 [14:38:51]MH_Cut [14:38:51]Write to MH i2c: D1 01 00 9C 42 01 B0 [14:38:51]Write i2c OK [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: D1 [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: D1 01 00 [14:38:51]MH_I2C_Read... [14:38:51]Read from MH i2c: D1 01 00 9C 42 00 AF [14:38:51]Write to MH i2c: 01 00 00 9D 42 DF [14:38:51]Write i2c OK [14:38:51]MH_I2C_Read... [14:38:51]OFD Sender: No OFD packet to send [14:38:52]*** Cut start [14:38:52]*** Partial cut [14:38:52]*** CUTSNS_PIN = 1 [14:38:52]*** CUTSNS_PIN = 0 [14:38:52]*** Brake cut motor [14:38:52]Read from MH i2c: 01 [14:38:52]MH_I2C_Read... [14:38:52]*** Stop cut motor [14:38:52]*** Cut end [14:38:52]Read from MH i2c: 01 07 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: 01 07 00 9D 42 00 00 00 00 00 FF 0F F4 [14:38:52]process_action close_receipt done [14:38:52]requested_data is exist [14:38:52]produce_requested_data [14:38:52]requested_item fm.sn is exist - process it [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 11 00 00 [14:38:52]Write to MH i2c: E2 08 00 9E 42 80 11 00 00 00 00 00 00 5A [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 17 00 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 17 00 9E 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 AC [14:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:38:52]wFMCommunicate OK [14:38:52]requested_item fd.num is exist - process it [14:38:52]SAM_PROTO_GetFieldsCounters [14:38:52]wFMCommunicate request_size=4 [14:38:52]MH_SAM_APDU [14:38:52]CAPDU: 80 13 00 00 [14:38:52]Write to MH i2c: E2 08 00 9F 42 80 13 00 00 00 00 00 00 5D [14:38:52]Write i2c OK [14:38:52]MH_I2C_Read... [14:38:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:52]Read from MH i2c: E2 [14:38:52]MH_I2C_Read... [14:38:52]Read from MH i2c: E2 62 00 [14:38:52]MH_I2C_Read... [14:38:53]Read from MH i2c: E2 62 00 9F 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 63 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [14:38:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 63 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:53]wFMCommunicate OK [14:38:53]SAM_PROTO_GetFieldsCounters done [14:38:53]requested_item shift.num is exist - process it [14:38:53]requested_item shift.opened is exist - process it [14:38:53]req_shift_opened [14:38:53]FM_GetShiftState [14:38:53]SAM_PROTO_GetShiftState [14:38:53]wFMCommunicate request_size=4 [14:38:53]MH_SAM_APDU [14:38:53]CAPDU: 80 13 01 00 [14:38:53]Write to MH i2c: E2 08 00 A0 42 80 13 01 00 00 00 00 00 5F [14:38:53]Write i2c OK [14:38:53]MH_I2C_Read... [14:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:53]Read from MH i2c: E2 [14:38:53]MH_I2C_Read... [14:38:53]Read from MH i2c: E2 0E 00 [14:38:53]MH_I2C_Read... [14:38:53]Read from MH i2c: E2 0E 00 A0 42 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 11 [14:38:53]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:38:53]wFMCommunicate OK [14:38:53]SAM_PROTO_GetShiftState done [14:38:53]FM_GetShiftState done [14:38:53]req_shift_opened done [14:38:53]requested_item shift.open_date is exist - process it [14:38:53]req_shift_open_date [14:38:53]req_shift_open_date done [14:38:53]produce_requested_data done [14:38:53]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22371,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [14:38:53]process_action_free close_receipt [14:38:53]json_value_free [14:38:53]json_value_free done [14:38:53]process_json_proto returns [14:38:53]Send response to host [14:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22371,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [14:38:53]free response buf [14:38:53]execute_script done [14:38:53]execute_script returns [14:38:53]free content buf [14:38:53]Sock 8.Close socket [14:38:53]Sock 8.Thread stoped [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:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:19]accept exits with 9 [14:42:19]New connection [14:42:19]New thread 3066838372 created [14:42:19]Thread 3066695012 joined [14:42:19]Waiting for new connection... [14:42:19] Sock 9.Parse request [14:42:19]Sock 9.Check first char [14:42:19]Sock 9.First char is OK [14:42:19]request: POST /json_proto HTTP/1.0 [14:42:19]Method: POST [14:42:19]URL: /json_proto [14:42:19]Method is POST - this is cgi request [14:42:19]url: /json_proto [14:42:19]query_string will be loaded in cgi processing [14:42:19]execute_cgi json_proto POST (null) [14:42:19]execute_cgi path=json_proto method=POST [14:42:19]POST find Content-Length [14:42:19]Host: 172.17.35.133:8080 [14:42:19]Content-Length: 670 [14:42:19]Content-Type: application/json [14:42:19] [14:42:19]POST finish read [14:42:19]Found Content-Length = 670 [14:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254579", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:19]execute_script... [14:42:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254579", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:19]POST & json_proto [14:42:19]process_json_proto [14:42:19]json parsed OK: [14:42:19]protocol is kg_v1.0 [14:42:19]action value=close_receipt [14:42:19]process_action close_receipt [14:42:19]cmd_close_receipt [14:42:19]MH_GetDate [14:42:19]Write to MH i2c: F0 00 00 A1 42 D2 [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: F0 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: F0 09 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: F0 09 00 A1 42 00 59 4B 70 66 8C 55 28 65 C3 [14:42:19]GetLastDocTimeStamp 1718635142 [14:42:19]current date 1718635353 [14:42:19]FM_GetShiftState [14:42:19]SAM_PROTO_GetShiftState [14:42:19]wFMCommunicate request_size=4 [14:42:19]MH_SAM_APDU [14:42:19]CAPDU: 80 13 01 00 [14:42:19]Write to MH i2c: E2 08 00 A2 42 80 13 01 00 00 00 00 00 61 [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 0E 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 0E 00 A2 42 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 13 [14:42:19]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:42:19]wFMCommunicate OK [14:42:19]SAM_PROTO_GetShiftState done [14:42:19]FM_GetShiftState done [14:42:19]opened in 1718583887 [14:42:19]opened+sec_in_day 1718670287 [14:42:19]quantity*price = 17000 [14:42:19]sum+1 = 17001 [14:42:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 53 17.06.2024 14:42 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22372 ФПД: 200068833157601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T144233&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22372&fm=200068833157601&tin=02508201610067®Number=0000000000099755&sum=17000 0 [14:42:20]StoreToDocumentArchive [14:42:20]shift 328 fd 22372 [14:42:20]save to /storage/0328/doc_00022372 [14:42:20]save last doc name /storage/0328/doc_00022372 to /storage/kkm_last_doc_name [14:42:20]save OK [14:42:20]Clear old archive folders... [14:42:20]ProcessDocumentItem done err = 0, tmpTLVsize=282 [14:42:20]tlvbuf is B6F3C230 [14:42:20]SAM_PROTO_ClearQueue [14:42:20]wFMCommunicate request_size=4 [14:42:20]MH_SAM_APDU [14:42:20]CAPDU: 80 09 00 00 [14:42:20]Write to MH i2c: E2 08 00 AF 42 80 09 00 00 00 00 00 00 63 [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:20]Read from MH i2c: E2 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 03 00 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 03 00 AF 42 00 90 00 65 [14:42:20]RAPDU: 90 00 [14:42:20]wFMCommunicate OK [14:42:20]SAM_PROTO_ClearQueue done [14:42:20]KKMCreateOFDPacket [14:42:20]OFDProtocolAddRootSTLVToBuf [14:42:20]FM_MakeSignedData [14:42:20]FM_MakeSignedData [14:42:20]SAM_PROTO_SignData [14:42:20]wFMCommunicate request_size=4 [14:42:20]MH_SAM_APDU [14:42:20]CAPDU: 80 0D 01 02 [14:42:20]Write to MH i2c: E2 08 00 B0 42 80 0D 01 02 00 00 00 00 6B [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:20]Read from MH i2c: E2 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 03 00 [14:42:20]MH_I2C_Read... [14:42:20]Read from MH i2c: E2 03 00 B0 42 00 90 00 66 [14:42:20]RAPDU: 90 00 [14:42:20]wFMCommunicate OK [14:42:20]wFMCommunicate request_size=255 [14:42:20]MH_SAM_APDU [14:42:20]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 59 4B 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 [14:42:20]Write to MH i2c: E2 02 01 B1 42 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 59 4B 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 00 00 7B [14:42:20]Write i2c OK [14:42:20]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 B1 42 00 90 00 67 [14:42:21]RAPDU: 90 00 [14:42:21]wFMCommunicate OK [14:42:21]wFMCommunicate request_size=41 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 64 57 00 00 35 04 06 00 B5 F6 27 BB 21 E1 [14:42:21]Write to MH i2c: E2 2C 00 B2 42 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 64 57 00 00 35 04 06 00 B5 F6 27 BB 21 E1 00 00 86 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 03 00 B2 42 00 90 00 68 [14:42:21]RAPDU: 90 00 [14:42:21]wFMCommunicate OK [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 0D 03 02 [14:42:21]Write to MH i2c: E2 08 00 B3 42 80 0D 03 02 00 00 00 00 70 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 0B 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 0B 00 B3 42 00 F8 0D 16 E9 B4 99 B4 2E 90 00 A4 [14:42:21]RAPDU: F8 0D 16 E9 B4 99 B4 2E 90 00 [14:42:21]wFMCommunicate OK [14:42:21]SAM_PROTO_SignData done [14:42:21]FM_MakeSignedData done [14:42:21]CreateOFDProtocolMessage [14:42:21]wFMCommunicate request_size=4 [14:42:21]MH_SAM_APDU [14:42:21]CAPDU: 80 11 00 00 [14:42:21]Write to MH i2c: E2 08 00 B4 42 80 11 00 00 00 00 00 00 70 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:21]Read from MH i2c: E2 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 17 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: E2 17 00 B4 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 C2 [14:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:42:21]wFMCommunicate OK [14:42:21]CreateOFDProtocolMessage done [14:42:21]OFDSenderStorePacket 22372 [14:42:21]StoreOFDPacket docnum=22372 [14:42:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 2E 01 00 00 6C 09 26 01 9E EB 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 59 4B 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 64 57 00 00 35 04 06 00 B5 F6 27 BB 21 E1 F8 0D 16 E9 B4 99 B4 2E [14:42:21]CheckFolder [14:42:21]dirname=/storage/ofd_packets [14:42:21]CheckFolder done [14:42:21]ProducePacketName [14:42:21]name=ofd_packets/00022372 [14:42:21]NVStorageSaveData ofd_packets/00022372 [14:42:21]File name is /storage/ofd_packets/00022372 [14:42:21]Write 332 bytes [14:42:21]NVStorageSaveData done [14:42:21]OFDSenderStorePacket done [14:42:21]KKMCreateOFDPacket done [14:42:21]NVStorageSaveData kkm_last_timestamp [14:42:21]File name is /storage/kkm_last_timestamp [14:42:21]Write 4 bytes [14:42:21]NVStorageSaveData done [14:42:21]ExternCall_PrintAddStr [14:42:21]wPrintStart [14:42:21]Write to MH i2c: 01 00 00 B5 42 F7 [14:42:21]Write i2c OK [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: 01 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: 01 07 00 [14:42:21]MH_I2C_Read... [14:42:21]Read from MH i2c: 01 07 00 B5 42 00 00 00 00 00 FF 0F 0C [14:42:21]RasterBufferAndPrint [14:42:21]line Счет N : (3)254579 [14:42:21]line ИНН: 02508201610067 [14:42:21]line Контрольно-Кассовый Чек [14:42:21]line ПРОДАЖА [14:42:21]line Товар: 4700000480357 [14:42:21]line Пиво шахтерское 1л ПЭТ [14:42:21]line 1.000 * 170.00 [14:42:21]line = 170.00 [14:42:21]line НДС 12% НСП 1% [14:42:21]line > о реализуемом товаре [14:42:21]line ИТОГО: 170.00 [14:42:21]line НСП 1% : 1.50 [14:42:21]line НДС 12% : 18.05 [14:42:21]line Наличными: 170.00 [14:42:21]line Безнал.: 0.00 [14:42:21]line Место: АЗС № 76 "Партнер Нефть" [14:42:21]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [14:42:21]line СНО: Общий режим [14:42:21]line Чек 53 17.06.2024 14:42 [14:42:21]line Смена: 328 ФФД: 1.0 [14:42:21]line ЗНМ: 0300000200 [14:42:21]line РНМ: 0000000000099755 [14:42:21]line Версия ККМ: 001 [14:42:21]line ФМ: 0000000000965344 [14:42:21]line ФД: 22372 [14:42:21]line ФПД: 200068833157601 [14:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T144233&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22372&fm=200068833157601&tin=02508201610067®Number=0000000000099755&sum=17000 [14:42:21]line 0 [14:42:21]OFD Sender: Processing packet 22372 [packets to send 5, broken 4] [14:42:21]ProducePacketName [14:42:21]name=ofd_packets/00022372 [14:42:21]OFD Sender: To server: pG, [14:42:21]CommunicateWithHost lk.salyk.kg:30040 [14:42:21]ConnectInit lk.salyk.kg [14:42:21]written 0, free lines is 4095 [14:42:21]Connected sock=10 [14:42:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 2E 01 00 00 6C 09 26 01 9E EB 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 59 4B 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 64 57 00 00 35 04 06 00 B5 F6 27 BB 21 E1 F8 0D 16 E9 B4 99 B4 2E [14:42:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 40 83 47 00 6C ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 64 57 00 00 F4 03 04 00 10 F4 6F 66 B6 04 01 00 00 0A 30 8E 6B B9 6B 71 15 [14:42:21]CommunicateWithHost err = 0 [14:42:21]CheckOFDResponse [14:42:21]1017 (14) - 77093643461234 [14:42:21]1041 (16) - 0000000000965344 [14:42:21]1040 (4) - 22372 [14:42:21]1012 (4) - 17.06.2024 08:30 [14:42:21]1206 (1) - 0 [14:42:21]OFD Sender: Remove packet 22372 [14:42:21]ProducePacketName [14:42:21]name=ofd_packets/00022372 [14:42:21]NVStorageDeleteData [14:42:22]Write to MH i2c: 01 00 00 DD 42 1F [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: 01 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: 01 07 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: 01 07 00 DD 42 00 00 00 00 00 1A 0D 4D [14:42:22]RasterBufferAndPrint [14:42:22]line [14:42:22]line [14:42:22]line [14:42:22]line [14:42:22]line [14:42:22]written 0, free lines is 3360 [14:42:22]MH_Cut [14:42:22]Write to MH i2c: D1 01 00 E4 42 01 F8 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: D1 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: D1 01 00 [14:42:22]MH_I2C_Read... [14:42:22]Read from MH i2c: D1 01 00 E4 42 00 F7 [14:42:22]Write to MH i2c: 01 00 00 E5 42 27 [14:42:22]Write i2c OK [14:42:22]MH_I2C_Read... [14:42:22]OFD Sender: No OFD packet to send [14:42:22]*** Cut start [14:42:22]*** Partial cut [14:42:22]*** CUTSNS_PIN = 1 [14:42:22]*** CUTSNS_PIN = 0 [14:42:23]*** Brake cut motor [14:42:23]Read from MH i2c: 01 [14:42:23]MH_I2C_Read... [14:42:23]*** Stop cut motor [14:42:23]*** Cut end [14:42:23]Read from MH i2c: 01 07 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: 01 07 00 E5 42 00 00 00 00 00 FF 0F 3C [14:42:23]process_action close_receipt done [14:42:23]requested_data is exist [14:42:23]produce_requested_data [14:42:23]requested_item fm.sn is exist - process it [14:42:23]wFMCommunicate request_size=4 [14:42:23]MH_SAM_APDU [14:42:23]CAPDU: 80 11 00 00 [14:42:23]Write to MH i2c: E2 08 00 E6 42 80 11 00 00 00 00 00 00 A2 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:23]Read from MH i2c: E2 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 17 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 17 00 E6 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 F4 [14:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:42:23]wFMCommunicate OK [14:42:23]requested_item fd.num is exist - process it [14:42:23]SAM_PROTO_GetFieldsCounters [14:42:23]wFMCommunicate request_size=4 [14:42:23]MH_SAM_APDU [14:42:23]CAPDU: 80 13 00 00 [14:42:23]Write to MH i2c: E2 08 00 E7 42 80 13 00 00 00 00 00 00 A5 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:23]Read from MH i2c: E2 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 62 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 62 00 E7 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 64 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [14:42:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 64 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:23]wFMCommunicate OK [14:42:23]SAM_PROTO_GetFieldsCounters done [14:42:23]requested_item shift.num is exist - process it [14:42:23]requested_item shift.opened is exist - process it [14:42:23]req_shift_opened [14:42:23]FM_GetShiftState [14:42:23]SAM_PROTO_GetShiftState [14:42:23]wFMCommunicate request_size=4 [14:42:23]MH_SAM_APDU [14:42:23]CAPDU: 80 13 01 00 [14:42:23]Write to MH i2c: E2 08 00 E8 42 80 13 01 00 00 00 00 00 A7 [14:42:23]Write i2c OK [14:42:23]MH_I2C_Read... [14:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:23]Read from MH i2c: E2 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 0E 00 [14:42:23]MH_I2C_Read... [14:42:23]Read from MH i2c: E2 0E 00 E8 42 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 59 [14:42:23]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:42:23]wFMCommunicate OK [14:42:23]SAM_PROTO_GetShiftState done [14:42:23]FM_GetShiftState done [14:42:23]req_shift_opened done [14:42:23]requested_item shift.open_date is exist - process it [14:42:23]req_shift_open_date [14:42:23]req_shift_open_date done [14:42:23]produce_requested_data done [14:42:23]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22372,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [14:42:23]process_action_free close_receipt [14:42:23]json_value_free [14:42:23]json_value_free done [14:42:23]process_json_proto returns [14:42:23]Send response to host [14:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22372,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [14:42:23]free response buf [14:42:23]execute_script done [14:42:23]execute_script returns [14:42:23]free content buf [14:42:23]Sock 9.Close socket [14:42:23]Sock 9.Thread stoped [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:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]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:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:42]accept exits with 8 [14:54:42]New connection [14:54:42]New thread 3066695012 created [14:54:42]Thread 3066838372 joined [14:54:42]Waiting for new connection... [14:54:42] Sock 8.Parse request [14:54:42]Sock 8.Check first char [14:54:42]Sock 8.First char is OK [14:54:42]request: POST /json_proto HTTP/1.0 [14:54:42]Method: POST [14:54:42]URL: /json_proto [14:54:42]Method is POST - this is cgi request [14:54:42]url: /json_proto [14:54:42]query_string will be loaded in cgi processing [14:54:42]execute_cgi json_proto POST (null) [14:54:42]execute_cgi path=json_proto method=POST [14:54:42]POST find Content-Length [14:54:42]Host: 172.17.35.133:8080 [14:54:42]Content-Length: 1221 [14:54:42]Content-Type: application/json [14:54:42] [14:54:42]POST finish read [14:54:42]Found Content-Length = 1221 [14:54:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254580", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:42]execute_script... [14:54:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254580", "tax_sys" : 0, "items" : [ { "code": "4870202521186", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:42]POST & json_proto [14:54:42]process_json_proto [14:54:42]json parsed OK: [14:54:42]protocol is kg_v1.0 [14:54:42]action value=close_receipt [14:54:42]process_action close_receipt [14:54:42]cmd_close_receipt [14:54:42]MH_GetDate [14:54:42]Write to MH i2c: F0 00 00 E9 42 1A [14:54:42]Write i2c OK [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: F0 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: F0 09 00 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: F0 09 00 E9 42 00 40 4E 70 66 8C 55 28 65 F5 [14:54:42]GetLastDocTimeStamp 1718635353 [14:54:42]current date 1718636096 [14:54:42]FM_GetShiftState [14:54:42]SAM_PROTO_GetShiftState [14:54:42]wFMCommunicate request_size=4 [14:54:42]MH_SAM_APDU [14:54:42]CAPDU: 80 13 01 00 [14:54:42]Write to MH i2c: E2 08 00 EA 42 80 13 01 00 00 00 00 00 A9 [14:54:42]Write i2c OK [14:54:42]MH_I2C_Read... [14:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:42]Read from MH i2c: E2 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: E2 0E 00 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: E2 0E 00 EA 42 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 5B [14:54:42]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:54:42]wFMCommunicate OK [14:54:42]SAM_PROTO_GetShiftState done [14:54:42]FM_GetShiftState done [14:54:42]opened in 1718583887 [14:54:42]opened+sec_in_day 1718670287 [14:54:42]quantity*price = 7000 [14:54:42]sum+1 = 7001 [14:54:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481453 Напиток энерг Nitro Max 0,45 ж/б 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 0.00 Безнал.: 155.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 54 17.06.2024 14:54 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965344 ФД: 22373 ФПД: 271888736598287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T145456&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22373&fm=271888736598287&tin=02508201610067®Number=0000000000099755&sum=15500 0 [14:54:43]StoreToDocumentArchive [14:54:43]shift 328 fd 22373 [14:54:43]save to /storage/0328/doc_00022373 [14:54:43]save last doc name /storage/0328/doc_00022373 to /storage/kkm_last_doc_name [14:54:43]save OK [14:54:43]Clear old archive folders... [14:54:43]ProcessDocumentItem done err = 0, tmpTLVsize=430 [14:54:43]tlvbuf is 002F5340 [14:54:43]SAM_PROTO_ClearQueue [14:54:43]wFMCommunicate request_size=4 [14:54:43]MH_SAM_APDU [14:54:43]CAPDU: 80 09 00 00 [14:54:43]Write to MH i2c: E2 08 00 F7 42 80 09 00 00 00 00 00 00 AB [14:54:43]Write i2c OK [14:54:43]MH_I2C_Read... [14:54:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:43]Read from MH i2c: E2 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 03 00 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 03 00 F7 42 00 90 00 AD [14:54:43]RAPDU: 90 00 [14:54:43]wFMCommunicate OK [14:54:43]SAM_PROTO_ClearQueue done [14:54:43]KKMCreateOFDPacket [14:54:43]OFDProtocolAddRootSTLVToBuf [14:54:43]FM_MakeSignedData [14:54:43]FM_MakeSignedData [14:54:43]SAM_PROTO_SignData [14:54:43]wFMCommunicate request_size=4 [14:54:43]MH_SAM_APDU [14:54:43]CAPDU: 80 0D 01 02 [14:54:43]Write to MH i2c: E2 08 00 F8 42 80 0D 01 02 00 00 00 00 B3 [14:54:43]Write i2c OK [14:54:43]MH_I2C_Read... [14:54:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:43]Read from MH i2c: E2 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 03 00 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 03 00 F8 42 00 90 00 AE [14:54:43]RAPDU: 90 00 [14:54:43]wFMCommunicate OK [14:54:43]wFMCommunicate request_size=255 [14:54:43]MH_SAM_APDU [14:54:43]CAPDU: 80 0D 02 02 FA 03 00 AE 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 [14:54:44]Write to MH i2c: E2 02 01 F9 42 80 0D 02 02 FA 00 03 00 AE 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 4F [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 F9 42 00 90 00 AF [14:54:44]RAPDU: 90 00 [14:54:44]wFMCommunicate OK [14:54:44]wFMCommunicate request_size=189 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 0D 02 02 B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 40 4E 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 65 57 00 00 35 04 06 00 F7 48 07 90 39 0F [14:54:44]Write to MH i2c: E2 C0 00 FA 42 80 0D 02 02 B8 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 40 4E 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 65 57 00 00 35 04 06 00 F7 48 07 90 39 0F 00 00 6F [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 FA 42 00 90 00 B0 [14:54:44]RAPDU: 90 00 [14:54:44]wFMCommunicate OK [14:54:44]wFMCommunicate request_size=4 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 0D 03 02 [14:54:44]Write to MH i2c: E2 08 00 FB 42 80 0D 03 02 00 00 00 00 B8 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 0B 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 0B 00 FB 42 00 7E 05 17 43 A7 DE D2 5D 90 00 4A [14:54:44]RAPDU: 7E 05 17 43 A7 DE D2 5D 90 00 [14:54:44]wFMCommunicate OK [14:54:44]SAM_PROTO_SignData done [14:54:44]FM_MakeSignedData done [14:54:44]CreateOFDProtocolMessage [14:54:44]wFMCommunicate request_size=4 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 11 00 00 [14:54:44]Write to MH i2c: E2 08 00 FC 42 80 11 00 00 00 00 00 00 B8 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 17 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 17 00 FC 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 0A [14:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:54:44]wFMCommunicate OK [14:54:44]CreateOFDProtocolMessage done [14:54:44]OFDSenderStorePacket 22373 [14:54:44]StoreOFDPacket docnum=22373 [14:54:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 C2 01 00 00 9E 21 BA 01 63 22 5A 03 01 00 03 00 AE 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 40 4E 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 65 57 00 00 35 04 06 00 F7 48 07 90 39 0F 7E 05 17 43 A7 DE D2 5D [14:54:44]CheckFolder [14:54:44]dirname=/storage/ofd_packets [14:54:44]CheckFolder done [14:54:44]ProducePacketName [14:54:44]name=ofd_packets/00022373 [14:54:44]NVStorageSaveData ofd_packets/00022373 [14:54:44]File name is /storage/ofd_packets/00022373 [14:54:44]Write 480 bytes [14:54:44]NVStorageSaveData done [14:54:44]OFDSenderStorePacket done [14:54:44]KKMCreateOFDPacket done [14:54:44]NVStorageSaveData kkm_last_timestamp [14:54:44]File name is /storage/kkm_last_timestamp [14:54:44]Write 4 bytes [14:54:44]NVStorageSaveData done [14:54:44]ExternCall_PrintAddStr [14:54:44]wPrintStart [14:54:44]Write to MH i2c: 01 00 00 FD 42 3F [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: 01 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: 01 07 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: 01 07 00 FD 42 00 00 00 00 00 FF 0F 54 [14:54:44]RasterBufferAndPrint [14:54:44]line Счет N : (3)254580 [14:54:44]line ИНН: 02508201610067 [14:54:44]line Контрольно-Кассовый Чек [14:54:44]line ПРОДАЖА [14:54:44]line Товар: 4870202521186 [14:54:44]line Чай холодный MAXI черный со вкусом клубн [14:54:44]line 1.000 * 70.00 [14:54:44]line = 70.00 [14:54:44]line НДС 12% НСП 1% [14:54:44]line > о реализуемом товаре [14:54:44]line Товар: 4700000481453 [14:54:44]line Напиток энерг Nitro Max 0,45 ж/б [14:54:44]line 1.000 * 85.00 [14:54:44]line = 85.00 [14:54:44]line НДС 12% НСП 1% [14:54:44]line > о реализуемом товаре [14:54:44]line ИТОГО: 155.00 [14:54:44]line НСП 1% : 1.37 [14:54:44]line НДС 12% : 16.46 [14:54:44]line Наличными: 0.00 [14:54:44]line Безнал.: 155.00 [14:54:44]line Место: АЗС № 76 "Партнер Нефть" [14:54:44]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [14:54:44]line СНО: Общий режим [14:54:44]line Чек 54 17.06.2024 14:54 [14:54:44]line Смена: 328 ФФД: 1.0 [14:54:44]line ЗНМ: 0300000200 [14:54:44]line РНМ: 0000000000099755 [14:54:44]line Версия ККМ: 001 [14:54:44]line Платежная система: АКБ Кыргызстан [14:54:44]line ФМ: 0000000000965344 [14:54:44]line ФД: 22373 [14:54:44]line ФПД: 271888736598287 [14:54:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T145456&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22373&fm=271888736598287&tin=02508201610067®Number=0000000000099755&sum=15500 [14:54:44]line 0 [14:54:44]written 0, free lines is 4095 [14:54:44]OFD Sender: Processing packet 22373 [packets to send 5, broken 4] [14:54:44]ProducePacketName [14:54:44]name=ofd_packets/00022373 [14:54:44]OFD Sender: To server: pG, [14:54:44]CommunicateWithHost lk.salyk.kg:30040 [14:54:44]ConnectInit lk.salyk.kg [14:54:45]Connected sock=10 [14:54:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 C2 01 00 00 9E 21 BA 01 63 22 5A 03 01 00 03 00 AE 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 38 36 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 40 4E 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 65 57 00 00 35 04 06 00 F7 48 07 90 39 0F 7E 05 17 43 A7 DE D2 5D [14:54:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 98 79 47 00 97 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 39 36 35 33 34 34 10 04 04 00 65 57 00 00 F4 03 04 00 F8 F6 6F 66 B6 04 01 00 00 83 85 4E BD C3 70 98 06 [14:54:45]CommunicateWithHost err = 0 [14:54:45]CheckOFDResponse [14:54:45]1017 (14) - 77093643461234 [14:54:45]1041 (16) - 0000000000965344 [14:54:45]1040 (4) - 22373 [14:54:45]1012 (4) - 17.06.2024 08:42 [14:54:45]1206 (1) - 0 [14:54:45]OFD Sender: Remove packet 22373 [14:54:45]ProducePacketName [14:54:45]name=ofd_packets/00022373 [14:54:45]NVStorageDeleteData [14:54:45]Write to MH i2c: 01 00 00 2F 43 72 [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 07 00 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 07 00 2F 43 00 00 00 00 00 93 0C 18 [14:54:45]RasterBufferAndPrint [14:54:45]line [14:54:45]line [14:54:45]line [14:54:45]line [14:54:45]line [14:54:45]written 0, free lines is 3225 [14:54:45]MH_Cut [14:54:45]Write to MH i2c: D1 01 00 36 43 01 4B [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: D1 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: D1 01 00 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: D1 01 00 36 43 00 4A [14:54:45]Write to MH i2c: 01 00 00 37 43 7A [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]OFD Sender: No OFD packet to send [14:54:46]*** Cut start [14:54:46]*** Partial cut [14:54:46]*** CUTSNS_PIN = 1 [14:54:46]*** CUTSNS_PIN = 0 [14:54:46]*** Brake cut motor [14:54:46]Read from MH i2c: 01 [14:54:46]MH_I2C_Read... [14:54:46]*** Stop cut motor [14:54:46]*** Cut end [14:54:46]Read from MH i2c: 01 07 00 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: 01 07 00 37 43 00 00 00 00 00 FF 0F 8F [14:54:46]process_action close_receipt done [14:54:46]requested_data is exist [14:54:46]produce_requested_data [14:54:46]requested_item fm.sn is exist - process it [14:54:46]wFMCommunicate request_size=4 [14:54:46]MH_SAM_APDU [14:54:46]CAPDU: 80 11 00 00 [14:54:46]Write to MH i2c: E2 08 00 38 43 80 11 00 00 00 00 00 00 F5 [14:54:46]Write i2c OK [14:54:46]MH_I2C_Read... [14:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:46]Read from MH i2c: E2 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 17 00 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 17 00 38 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 47 [14:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:54:46]wFMCommunicate OK [14:54:46]requested_item fd.num is exist - process it [14:54:46]SAM_PROTO_GetFieldsCounters [14:54:46]wFMCommunicate request_size=4 [14:54:46]MH_SAM_APDU [14:54:46]CAPDU: 80 13 00 00 [14:54:46]Write to MH i2c: E2 08 00 39 43 80 13 00 00 00 00 00 00 F8 [14:54:46]Write i2c OK [14:54:46]MH_I2C_Read... [14:54:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:47]Read from MH i2c: E2 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 62 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 62 00 39 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 65 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [14:54:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 65 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:47]wFMCommunicate OK [14:54:47]SAM_PROTO_GetFieldsCounters done [14:54:47]requested_item shift.num is exist - process it [14:54:47]requested_item shift.opened is exist - process it [14:54:47]req_shift_opened [14:54:47]FM_GetShiftState [14:54:47]SAM_PROTO_GetShiftState [14:54:47]wFMCommunicate request_size=4 [14:54:47]MH_SAM_APDU [14:54:47]CAPDU: 80 13 01 00 [14:54:47]Write to MH i2c: E2 08 00 3A 43 80 13 01 00 00 00 00 00 FA [14:54:47]Write i2c OK [14:54:47]MH_I2C_Read... [14:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:47]Read from MH i2c: E2 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 0E 00 [14:54:47]MH_I2C_Read... [14:54:47]Read from MH i2c: E2 0E 00 3A 43 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 AC [14:54:47]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:54:47]wFMCommunicate OK [14:54:47]SAM_PROTO_GetShiftState done [14:54:47]FM_GetShiftState done [14:54:47]req_shift_opened done [14:54:47]requested_item shift.open_date is exist - process it [14:54:47]req_shift_open_date [14:54:47]req_shift_open_date done [14:54:47]produce_requested_data done [14:54:47]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22373,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [14:54:47]process_action_free close_receipt [14:54:47]json_value_free [14:54:47]json_value_free done [14:54:47]process_json_proto returns [14:54:47]Send response to host [14:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22373,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [14:54:47]free response buf [14:54:47]execute_script done [14:54:47]execute_script returns [14:54:47]free content buf [14:54:47]Sock 8.Close socket [14:54:47]Sock 8.Thread stoped [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:53]accept exits with 9 [14:55:53]New connection [14:55:53]New thread 3066838372 created [14:55:53]Thread 3066695012 joined [14:55:53]Waiting for new connection... [14:55:53] Sock 9.Parse request [14:55:53]Sock 9.Check first char [14:55:53]Sock 9.First char is OK [14:55:53]request: POST /json_proto HTTP/1.0 [14:55:53]Method: POST [14:55:53]URL: /json_proto [14:55:53]Method is POST - this is cgi request [14:55:53]url: /json_proto [14:55:53]query_string will be loaded in cgi processing [14:55:53]execute_cgi json_proto POST (null) [14:55:53]execute_cgi path=json_proto method=POST [14:55:53]POST find Content-Length [14:55:53]Host: 172.17.35.133:8080 [14:55:53]Content-Length: 678 [14:55:53]Content-Type: application/json [14:55:53] [14:55:53]POST finish read [14:55:53]Found Content-Length = 678 [14:55:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1610945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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:55:53]execute_script... [14:55: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)1610945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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:55:53]POST & json_proto [14:55:53]process_json_proto [14:55:53]json parsed OK: [14:55:53]protocol is kg_v1.0 [14:55:53]action value=close_receipt [14:55:53]process_action close_receipt [14:55:53]cmd_close_receipt [14:55:53]MH_GetDate [14:55:53]Write to MH i2c: F0 00 00 3B 43 6D [14:55:53]Write i2c OK [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: F0 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: F0 09 00 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: F0 09 00 3B 43 00 87 4E 70 66 8C 55 28 65 8F [14:55:53]GetLastDocTimeStamp 1718636096 [14:55:53]current date 1718636167 [14:55:53]FM_GetShiftState [14:55:53]SAM_PROTO_GetShiftState [14:55:53]wFMCommunicate request_size=4 [14:55:53]MH_SAM_APDU [14:55:53]CAPDU: 80 13 01 00 [14:55:53]Write to MH i2c: E2 08 00 3C 43 80 13 01 00 00 00 00 00 FC [14:55:53]Write i2c OK [14:55:53]MH_I2C_Read... [14:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:53]Read from MH i2c: E2 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 0E 00 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 0E 00 3C 43 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 AE [14:55:53]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:55:53]wFMCommunicate OK [14:55:53]SAM_PROTO_GetShiftState done [14:55:53]FM_GetShiftState done [14:55:53]opened in 1718583887 [14:55:53]opened+sec_in_day 1718670287 [14:55:53]quantity*price = 70057 [14:55:53]sum+1 = 70058 [14:55:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 55 17.06.2024 14:56 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22374 ФПД: 159312713138892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T145607&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22374&fm=159312713138892&tin=02508201610067®Number=0000000000099755&sum=70000 [14:55:54]StoreToDocumentArchive [14:55:54]shift 328 fd 22374 [14:55:54]save to /storage/0328/doc_00022374 [14:55:54]save last doc name /storage/0328/doc_00022374 to /storage/kkm_last_doc_name [14:55:54]save OK [14:55:54]Clear old archive folders... [14:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:54]tlvbuf is 001CD0C0 [14:55:54]SAM_PROTO_ClearQueue [14:55:54]wFMCommunicate request_size=4 [14:55:54]MH_SAM_APDU [14:55:54]CAPDU: 80 09 00 00 [14:55:54]Write to MH i2c: E2 08 00 49 43 80 09 00 00 00 00 00 00 FE [14:55:54]Write i2c OK [14:55:54]MH_I2C_Read... [14:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:54]Read from MH i2c: E2 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 03 00 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 03 00 49 43 00 90 00 00 [14:55:54]RAPDU: 90 00 [14:55:54]wFMCommunicate OK [14:55:54]SAM_PROTO_ClearQueue done [14:55:54]KKMCreateOFDPacket [14:55:54]OFDProtocolAddRootSTLVToBuf [14:55:54]FM_MakeSignedData [14:55:54]FM_MakeSignedData [14:55:54]SAM_PROTO_SignData [14:55:54]wFMCommunicate request_size=4 [14:55:54]MH_SAM_APDU [14:55:54]CAPDU: 80 0D 01 02 [14:55:54]Write to MH i2c: E2 08 00 4A 43 80 0D 01 02 00 00 00 00 06 [14:55:54]Write i2c OK [14:55:54]MH_I2C_Read... [14:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:54]Read from MH i2c: E2 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 03 00 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 03 00 4A 43 00 90 00 01 [14:55:54]RAPDU: 90 00 [14:55:54]wFMCommunicate OK [14:55:54]wFMCommunicate request_size=255 [14:55:54]MH_SAM_APDU [14: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 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 37 00 00 00 F4 03 04 00 87 4E 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 66 57 00 00 35 04 06 00 90 [14:55:54]Write to MH i2c: E2 02 01 4B 43 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 37 00 00 00 F4 03 04 00 87 4E 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 66 57 00 00 35 04 06 00 90 00 00 16 [14:55:54]Write i2c OK [14:55:54]MH_I2C_Read... [14:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:54]Read from MH i2c: E2 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 03 00 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 03 00 4B 43 00 90 00 02 [14:55:54]RAPDU: 90 00 [14:55:54]wFMCommunicate OK [14:55:54]wFMCommunicate request_size=10 [14:55:54]MH_SAM_APDU [14:55:54]CAPDU: 80 0D 02 02 05 E4 E1 AC C2 CC [14:55:54]Write to MH i2c: E2 0D 00 4C 43 80 0D 02 02 05 00 E4 E1 AC C2 CC 00 00 12 [14:55:54]Write i2c OK [14:55:54]MH_I2C_Read... [14:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:54]Read from MH i2c: E2 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 03 00 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 03 00 4C 43 00 90 00 03 [14:55:54]RAPDU: 90 00 [14:55:54]wFMCommunicate OK [14:55:54]wFMCommunicate request_size=4 [14:55:54]MH_SAM_APDU [14:55:54]CAPDU: 80 0D 03 02 [14:55:54]Write to MH i2c: E2 08 00 4D 43 80 0D 03 02 00 00 00 00 0B [14:55:54]Write i2c OK [14:55:54]MH_I2C_Read... [14:55:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:54]Read from MH i2c: E2 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 0B 00 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 0B 00 4D 43 00 19 D5 35 5E 62 C5 98 91 90 00 DD [14:55:54]RAPDU: 19 D5 35 5E 62 C5 98 91 90 00 [14:55:54]wFMCommunicate OK [14:55:54]SAM_PROTO_SignData done [14:55:54]FM_MakeSignedData done [14:55:54]CreateOFDProtocolMessage [14:55:54]wFMCommunicate request_size=4 [14:55:54]MH_SAM_APDU [14:55:54]CAPDU: 80 11 00 00 [14:55:54]Write to MH i2c: E2 08 00 4E 43 80 11 00 00 00 00 00 00 0B [14:55:54]Write i2c OK [14:55:54]MH_I2C_Read... [14:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:54]Read from MH i2c: E2 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 17 00 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: E2 17 00 4E 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 5D [14:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:55:54]wFMCommunicate OK [14:55:54]CreateOFDProtocolMessage done [14:55:54]OFDSenderStorePacket 22374 [14:55:54]StoreOFDPacket docnum=22374 [14:55:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0F 01 00 00 87 E1 07 01 2C 49 5A 03 01 00 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 37 00 00 00 F4 03 04 00 87 4E 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 66 57 00 00 35 04 06 00 90 E4 E1 AC C2 CC 19 D5 35 5E 62 C5 98 91 [14:55:54]CheckFolder [14:55:54]dirname=/storage/ofd_packets [14:55:54]CheckFolder done [14:55:54]ProducePacketName [14:55:54]name=ofd_packets/00022374 [14:55:54]NVStorageSaveData ofd_packets/00022374 [14:55:54]File name is /storage/ofd_packets/00022374 [14:55:54]Write 301 bytes [14:55:54]NVStorageSaveData done [14:55:54]OFDSenderStorePacket done [14:55:54]KKMCreateOFDPacket done [14:55:54]NVStorageSaveData kkm_last_timestamp [14:55:54]File name is /storage/kkm_last_timestamp [14:55:54]Write 4 bytes [14:55:54]NVStorageSaveData done [14:55:54]ExternCall_PrintAddStr [14:55:54]wPrintStart [14:55:54]Write to MH i2c: 01 00 00 4F 43 92 [14:55:54]Write i2c OK [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: 01 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: 01 07 00 [14:55:54]MH_I2C_Read... [14:55:54]Read from MH i2c: 01 07 00 4F 43 00 00 00 00 00 FF 0F A7 [14:55:54]RasterBufferAndPrint [14:55:54]line Счет N : (1)1610945 [14:55:54]line ИНН: 02508201610067 [14:55:54]line Контрольно-Кассовый Чек [14:55:54]line ПРОДАЖА [14:55:54]line ТРК (МРК, ГНК) : 42 [14:55:54]line Товар: 2710124500 [14:55:54]line Аи-95-К-5 [14:55:54]line 9.480 * 73.90 [14:55:54]line = 700.57 [14:55:54]line НДС 12% НСП 1% [14:55:54]line > о реализуемом товаре [14:55:54]line ОКРУГЛЕНИЕ: -0.57 [14:55:54]line ИТОГО: 700.00 [14:55:54]line Внесено: 700.00 [14:55:54]line СДАЧА: 0.00 [14:55:54]line НСП 1% : 6.20 [14:55:54]line НДС 12% : 74.40 [14:55:54]line Наличными: 700.00 [14:55:54]line Безнал.: 0.00 [14:55:54]line Место: АЗС № 76 "Партнер Нефть" [14:55:54]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [14:55:54]line СНО: Общий режим [14:55:54]line Чек 55 17.06.2024 14:56 [14:55:54]line Смена: 328 ФФД: 1.0 [14:55:54]line ЗНМ: 0300000200 [14:55:54]line РНМ: 0000000000099755 [14:55:54]line Версия ККМ: 001 [14:55:54]line ФМ: 0000000000965344 [14:55:54]line ФД: 22374 [14:55:54]line ФПД: 159312713138892 [14:55:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T145607&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22374&fm=159312713138892&tin=02508201610067®Number=0000000000099755&sum=70000 [14:55:55]OFD Sender: Processing packet 22374 [packets to send 5, broken 4] [14:55:55]ProducePacketName [14:55:55]name=ofd_packets/00022374 [14:55:55]OFD Sender: To server: pG, [14:55:55]CommunicateWithHost lk.salyk.kg:30040 [14:55:55]ConnectInit lk.salyk.kg [14:55:55]written 0, free lines is 4095 [14:55:55]Connected sock=8 [14:55:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0F 01 00 00 87 E1 07 01 2C 49 5A 03 01 00 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 37 00 00 00 F4 03 04 00 87 4E 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 66 57 00 00 35 04 06 00 90 E4 E1 AC C2 CC 19 D5 35 5E 62 C5 98 91 [14:55:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 B5 52 47 00 62 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 39 36 35 33 34 34 10 04 04 00 66 57 00 00 F4 03 04 00 3E F7 6F 66 B6 04 01 00 00 FD BF 2C 62 1B FC 88 5B [14:55:55]CommunicateWithHost err = 0 [14:55:55]CheckOFDResponse [14:55:55]1017 (14) - 77093643461234 [14:55:55]1041 (16) - 0000000000965344 [14:55:55]1040 (4) - 22374 [14:55:55]1012 (4) - 17.06.2024 08:43 [14:55:55]1206 (1) - 0 [14:55:55]OFD Sender: Remove packet 22374 [14:55:55]ProducePacketName [14:55:55]name=ofd_packets/00022374 [14:55:55]NVStorageDeleteData [14:55:55]Write to MH i2c: 01 00 00 7A 43 BD [14:55:55]Write i2c OK [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: 01 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: 01 07 00 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: 01 07 00 7A 43 00 00 00 00 00 FC 0C CC [14:55:55]RasterBufferAndPrint [14:55:55]line [14:55:55]line [14:55:55]line [14:55:55]line [14:55:55]line [14:55:55]written 0, free lines is 3331 [14:55:55]MH_Cut [14:55:55]Write to MH i2c: D1 01 00 81 43 01 96 [14:55:55]Write i2c OK [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: D1 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: D1 01 00 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: D1 01 00 81 43 00 95 [14:55:55]Write to MH i2c: 01 00 00 82 43 C5 [14:55:55]Write i2c OK [14:55:55]MH_I2C_Read... [14:55:56]OFD Sender: No OFD packet to send [14:55:56]*** Cut start [14:55:56]*** Partial cut [14:55:56]*** CUTSNS_PIN = 1 [14:55:56]*** CUTSNS_PIN = 0 [14:55:56]*** Brake cut motor [14:55:57]Read from MH i2c: 01 [14:55:57]MH_I2C_Read... [14:55:57]*** Stop cut motor [14:55:57]*** Cut end [14:55:57]Read from MH i2c: 01 07 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 07 00 82 43 00 00 00 00 00 FF 0F DA [14:55:57]process_action close_receipt done [14:55:57]requested_data is exist [14:55:57]produce_requested_data [14:55:57]requested_item fm.sn is exist - process it [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 11 00 00 [14:55:57]Write to MH i2c: E2 08 00 83 43 80 11 00 00 00 00 00 00 40 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 17 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 17 00 83 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 92 [14:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [14:55:57]wFMCommunicate OK [14:55:57]requested_item fd.num is exist - process it [14:55:57]SAM_PROTO_GetFieldsCounters [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 13 00 00 [14:55:57]Write to MH i2c: E2 08 00 84 43 80 13 00 00 00 00 00 00 43 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 62 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 62 00 84 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 66 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [14:55:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 66 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:57]wFMCommunicate OK [14:55:57]SAM_PROTO_GetFieldsCounters done [14:55:57]requested_item shift.num is exist - process it [14:55:57]requested_item shift.opened is exist - process it [14:55:57]req_shift_opened [14:55:57]FM_GetShiftState [14:55:57]SAM_PROTO_GetShiftState [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 13 01 00 [14:55:57]Write to MH i2c: E2 08 00 85 43 80 13 01 00 00 00 00 00 45 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 0E 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 0E 00 85 43 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 F7 [14:55:57]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [14:55:57]wFMCommunicate OK [14:55:57]SAM_PROTO_GetShiftState done [14:55:57]FM_GetShiftState done [14:55:57]req_shift_opened done [14:55:57]requested_item shift.open_date is exist - process it [14:55:57]req_shift_open_date [14:55:57]req_shift_open_date done [14:55:57]produce_requested_data done [14:55:57]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22374,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [14:55:57]process_action_free close_receipt [14:55:57]json_value_free [14:55:57]json_value_free done [14:55:57]process_json_proto returns [14:55:57]Send response to host [14:55:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22374,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [14:55:57]free response buf [14:55:57]execute_script done [14:55:57]execute_script returns [14:55:57]free content buf [14:55:57]Sock 9.Close socket [14:55:57]Sock 9.Thread stoped [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [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 9C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 41 [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 540000000057259C (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:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 21495672+1697142156=1718637828 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x200ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:11]*** 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 9C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 42 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 05 55 70 66 8C 55 28 65 9D [15:23:49]Current date/time: 17.06.2024 15:23 [15:23:49]FM_Init [15:23:49]wFMConnect [15:23:49]MH_SAM_On [15:23:49]Write to MH i2c: E0 00 00 08 00 E7 [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]*** iso7816_init finished! [15:23:49]*** atr: [15:23:49]*** 0F 3B D5 18 FF 81 91 FE [15:23:49]*** 1F C3 80 73 C8 21 10 0A [15:23:49]*** 00 00 00 00 00 00 00 00 [15:23:49]*** 00 00 00 00 00 00 00 00 [15:23:49]*** 00 00 00 00 00 00 00 00 [15:23:49]*** 00 00 00 00 00 00 00 00 [15:23:49]*** 00 00 00 00 00 00 00 00 [15:23:49]*** 00 00 00 00 00 00 00 00 [15:23:49]Read from MH i2c: E0 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E0 10 00 [15:23:49]MH_I2C_Read... [15:23:49]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 [15:23:49]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:23:49]wFMCommunicate request_size=10 [15:23:49]MH_SAM_APDU [15:23:49]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:23:49]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:23:49]Read from MH i2c: E2 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 03 00 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:23:49]RAPDU: 90 00 [15:23:49]wFMCommunicate OK [15:23:49]wFMCommunicate request_size=4 [15:23:49]MH_SAM_APDU [15:23:49]CAPDU: 80 11 00 00 [15:23:49]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:49]Read from MH i2c: E2 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 17 00 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 D6 [15:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:23:49]wFMCommunicate OK [15:23:49]Detected FM SN is 0000000000965344 [15:23:49]Stored FM SN is 0000000000965344 [15:23:49]wFMCommunicate request_size=9 [15:23:49]MH_SAM_APDU [15:23:49]CAPDU: 80 16 00 00 04 20 41 00 00 [15:23:49]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 20 41 00 00 00 00 F3 [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:23:49]Read from MH i2c: E2 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 03 00 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:23:49]RAPDU: 90 00 [15:23:49]wFMCommunicate OK [15:23:49]FM PIN OK [15:23:49]wFMCommunicate request_size=8 [15:23:49]MH_SAM_APDU [15:23:49]CAPDU: 80 14 04 00 03 02 00 01 [15:23:49]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: *** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:23:49]E2 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 03 00 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:23:49]RAPDU: 90 00 [15:23:49]wFMCommunicate OK [15:23:49]wFMCommunicate request_size=13 [15:23:49]MH_SAM_APDU [15:23:49]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:23:49]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 [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:23:49]Read from MH i2c: E2 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 03 00 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:23:49]RAPDU: 90 00 [15:23:49]wFMCommunicate OK [15:23:49]wFMCommunicate request_size=4 [15:23:49]MH_SAM_APDU [15:23:49]CAPDU: 80 11 00 00 [15:23:49]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:49]Read from MH i2c: E2 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 17 00 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 DA [15:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:23:49]wFMCommunicate OK [15:23:49]DocumentArchiveInit [15:23:49]Start Httpd... [15:23:49]Httpd thread 3067145572 created [15:23:49]Write to MH i2c: 01 00 00 0F 00 0F [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: 01 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: 01 07 00 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:23:49]MH Int Process started [15:23:49]Allocated Socket 8 [15:23:49]Bind OK [15:23:49]Listen OK [15:23:49]httpd running on port 8080 [15:23:49]Waiting for new connection... [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:20]accept exits with 9 [15:24:20]New connection [15:24:20]New thread 3066858852 created [15:24:20]Waiting for new connection... [15:24:20] Sock 9.Parse request [15:24:20]Sock 9.Check first char [15:24:20]Sock 9.First char is OK [15:24:20]request: POST /json_proto HTTP/1.0 [15:24:20]Method: POST [15:24:20]URL: /json_proto [15:24:20]Method is POST - this is cgi request [15:24:20]url: /json_proto [15:24:20]query_string will be loaded in cgi processing [15:24:20]execute_cgi json_proto POST (null) [15:24:20]execute_cgi path=json_proto method=POST [15:24:20]POST find Content-Length [15:24:20]Host: 172.17.35.133:8080 [15:24:20]Content-Length: 215 [15:24:20]Content-Type: application/json [15:24:20] [15:24:20]POST finish read [15:24:20]Found Content-Length = 215 [15:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:20]execute_script... [15:24:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:20]POST & json_proto [15:24:20]process_json_proto [15:24:20]json parsed OK: [15:24:20]protocol is kg_v1.0 [15:24:20]action value=get_value [15:24:20]process_action get_value [15:24:20]cmd_get_value [15:24:20]process_action get_value done [15:24:20]requested_data is exist [15:24:20]produce_requested_data [15:24:20]requested_item kkm.sn is exist - process it [15:24:20]requested_item kkm.ver is exist - process it [15:24:20]requested_item fm.sn is exist - process it [15:24:20]wFMCommunicate request_size=4 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 11 00 00 [15:24:20]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 17 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 DC [15:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:24:20]wFMCommunicate OK [15:24:20]requested_item fd.num is exist - process it [15:24:20]SAM_PROTO_GetFieldsCounters [15:24:20]wFMCommunicate request_size=4 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 13 00 00 [15:24:20]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 62 00 [15:24:20]MH_I2C_Read... [15:24:20]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 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 66 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [15:24:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 66 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:20]wFMCommunicate OK [15:24:20]SAM_PROTO_GetFieldsCounters done [15:24:20]requested_item shift.num is exist - process it [15:24:20]requested_item shift.opened is exist - process it [15:24:20]req_shift_opened [15:24:20]FM_GetShiftState [15:24:20]SAM_PROTO_GetShiftState [15:24:20]wFMCommunicate request_size=4 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 13 01 00 [15:24:20]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 0E 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 41 [15:24:20]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:24:20]wFMCommunicate OK [15:24:20]SAM_PROTO_GetShiftState done [15:24:20]FM_GetShiftState done [15:24:20]req_shift_opened done [15:24:20]requested_item shift.open_date is exist - process it [15:24:20]req_shift_open_date [15:24:20]req_shift_open_date done [15:24:20]produce_requested_data done [15:24:20]produce_requested_data return {"kkm.sn":"0300000200","kkm.ver":"001","fm.sn":"0000000000965344","fd.num":22374,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [15:24:20]process_action_free get_value [15:24:20]json_value_free [15:24:20]json_value_free done [15:24:20]process_json_proto returns [15:24:20]Send response to host [15:24:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000200","kkm.ver":"001","fm.sn":"0000000000965344","fd.num":22374,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [15:24:20]free response buf [15:24:20]execute_script done [15:24:20]execute_script returns [15:24:20]free content buf [15:24:20]Sock 9.Close socket [15:24:20]Sock 9.Thread stoped [15:24:20]accept exits with 7 [15:24:20]New connection [15:24:20]New thread 3066715492 created [15:24:20]Thread 3066858852 joined [15:24:20]Waiting for new connection... [15:24:20] Sock 7.Parse request [15:24:20]Sock 7.Check first char [15:24:20]Sock 7.First char is OK [15:24:20]request: POST /json_proto HTTP/1.0 [15:24:20]Method: POST [15:24:20]URL: /json_proto [15:24:20]Method is POST - this is cgi request [15:24:20]url: /json_proto [15:24:20]query_string will be loaded in cgi processing [15:24:20]execute_cgi json_proto POST (null) [15:24:20]execute_cgi path=json_proto method=POST [15:24:20]POST find Content-Length [15:24:20]Host: 172.17.35.133:8080 [15:24:20]Content-Length: 331 [15:24:20]Content-Type: application/json [15:24:20] [15:24:20]POST finish read [15:24:20]Found Content-Length = 331 [15:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:24:20]execute_script... [15:24:20]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" ] } } [15:24:21]POST & json_proto [15:24:21]process_json_proto [15:24:21]json parsed OK: [15:24:21]protocol is kg_v1.0 [15:24:21]action value=get_value [15:24:21]process_action get_value [15:24:21]cmd_get_value [15:24:21]process_action get_value done [15:24:21]requested_data is exist [15:24:21]produce_requested_data [15:24:21]requested_item fm.sale.total is exist - process it [15:24:21]SAM_PROTO_GetFMData [15:24:21]wFMCommunicate request_size=4 [15:24:21]MH_SAM_APDU [15:24:21]CAPDU: 80 13 03 00 [15:24:21]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [15:24:21]Write i2c OK [15:24:21]MH_I2C_Read... [15:24:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:24:21]Read from MH i2c: E2 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: E2 FD 00 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: E2 FD 00 13 00 00 C3 04 85 04 BF 04 6E 04 04 00 D6 54 00 00 69 04 A2 00 6F 04 04 00 BF 54 00 00 B1 04 04 00 98 FB 5D 25 70 04 04 00 28 E0 8B 20 72 04 04 00 70 1B D2 04 00 04 7E 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 68 DE F7 03 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 31 9B 54 EF 03 0B 00 F6 03 01 00 02 F7 03 02 00 66 06 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 17 00 00 00 B1 04 03 00 C0 49 AA 70 04 03 00 48 F9 A9 72 04 02 00 78 50 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 7D 15 12 EF 03 09 00 F6 90 00 F6 [15:24:21]RAPDU: C3 04 85 04 BF 04 6E 04 04 00 D6 54 00 00 69 04 A2 00 6F 04 04 00 BF 54 00 00 B1 04 04 00 98 FB 5D 25 70 04 04 00 28 E0 8B 20 72 04 04 00 70 1B D2 04 00 04 7E 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 68 DE F7 03 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 31 9B 54 EF 03 0B 00 F6 03 01 00 02 F7 03 02 00 66 06 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9B 00 6F 04 04 00 17 00 00 00 B1 04 03 00 C0 49 AA 70 04 03 00 48 F9 A9 72 04 02 00 78 50 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 7D 15 12 EF 03 09 00 F6 90 00 [15:24:21]wFMCommunicate OK [15:24:21]wFMCommunicate request_size=4 [15:24:21]MH_SAM_APDU [15:24:21]CAPDU: 80 17 00 00 [15:24:21]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [15:24:21]Write i2c OK [15:24:21]MH_I2C_Read... [15:24:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:24:21]Read from MH i2c: E2 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: E2 FD 00 [15:24:21]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 FD 00 14 00 00 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C9 81 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 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 90 00 9F [15:24:22]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C9 81 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 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 90 00 [15:24:22]wFMCommunicate OK [15:24:22]wFMCommunicate request_size=4 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 17 00 00 [15:24:22]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:24:22]Read from MH i2c: E2 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 FD 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 FD 00 15 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [15:24:22]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:24:22]wFMCommunicate OK [15:24:22]wFMCommunicate request_size=4 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 17 00 00 [15:24:22]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:24:22]Read from MH i2c: E2 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 FD 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 FD 00 16 00 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [15:24:22]RAPDU: 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [15:24:22]wFMCommunicate OK [15:24:22]wFMCommunicate request_size=4 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 17 00 00 [15:24:22]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 221! [15:24:22]Read from MH i2c: E2 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 E0 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 E0 00 17 00 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [15:24:22]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:24:22]wFMCommunicate OK [15:24:22]SAM_PROTO_GetFMData done [15:24:22]requested_item fm.sale_refund.total is exist - process it [15:24:22]requested_item fm.buy.total is exist - process it [15:24:22]requested_item shift.sale.total is exist - process it [15:24:22]SAM_PROTO_GetShiftData [15:24:22]wFMCommunicate request_size=4 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 13 02 00 [15:24:22]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 FD 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 37 00 00 00 69 04 9B 00 6F 04 04 00 37 00 00 00 B1 04 03 00 84 C5 1A 70 04 03 00 80 3D 15 72 04 03 00 04 88 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 D7 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 9C 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 0F [15:24:23]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 37 00 00 00 69 04 9B 00 6F 04 04 00 37 00 00 00 B1 04 03 00 84 C5 1A 70 04 03 00 80 3D 15 72 04 03 00 04 88 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D3 D7 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 9C 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:24:23]wFMCommunicate OK [15:24:23]wFMCommunicate request_size=4 [15:24:23]MH_SAM_APDU [15:24:23]CAPDU: 80 17 00 00 [15:24:23]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 FD 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [15:24:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [15:24:23]wFMCommunicate OK [15:24:23]wFMCommunicate request_size=4 [15:24:23]MH_SAM_APDU [15:24:23]CAPDU: 80 17 00 00 [15:24:23]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:24:23]Read from MH i2c: E2 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 FD 00 [15:24:23]MH_I2C_Read... [15:24:23]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [15:24:23]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [15:24:23]wFMCommunicate OK [15:24:23]wFMCommunicate request_size=4 [15:24:23]MH_SAM_APDU [15:24:23]CAPDU: 80 17 00 00 [15:24:23]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:24:23]Write i2c OK [15:24:23]MH_I2C_Read... [15:24:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:24:24]Read from MH i2c: E2 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 FD 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [15:24:24]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [15:24:24]wFMCommunicate OK [15:24:24]wFMCommunicate request_size=4 [15:24:24]MH_SAM_APDU [15:24:24]CAPDU: 80 17 00 00 [15:24:24]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:24:24]Write i2c OK [15:24:24]MH_I2C_Read... [15:24:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [15:24:24]Read from MH i2c: E2 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 CB 00 [15:24:24]MH_I2C_Read... [15:24:24]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [15:24:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:24:24]wFMCommunicate OK [15:24:24]SAM_PROTO_GetShiftData done [15:24:24]requested_item shift.sale.total_cash is exist - process it [15:24:24]requested_item shift.sale_refund.total is exist - process it [15:24:24]requested_item shift.sale_refund.total_cash is exist - process it [15:24:24]requested_item shift.buy.total is exist - process it [15:24:24]requested_item shift.buy.total_cash is exist - process it [15:24:24]produce_requested_data done [15:24:24]produce_requested_data return {"fm.sale.total":6269162.48,"fm.sale_refund.total":111600.00,"fm.buy.total":0.00,"shift.sale.total":17545.00,"shift.sale.total_cash":13920.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} [15:24:24]process_action_free get_value [15:24:24]json_value_free [15:24:24]json_value_free done [15:24:24]process_json_proto returns [15:24:24]Send response to host [15:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6269162.48,"fm.sale_refund.total":111600.00,"fm.buy.total":0.00,"shift.sale.total":17545.00,"shift.sale.total_cash":13920.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}}} [15:24:24]free response buf [15:24:24]execute_script done [15:24:24]execute_script returns [15:24:24]free content buf [15:24:24]Sock 7.Close socket [15:24:24]Sock 7.Thread stoped [15:24:24]OFD Sender: No OFD packet to send [15:24:25]accept exits with 9 [15:24:25]New connection [15:24:25]New thread 3066858852 created [15:24:25]Thread 3066715492 joined [15:24:25]Waiting for new connection... [15:24:25] Sock 9.Parse request [15:24:25]Sock 9.Check first char [15:24:25]Sock 9.First char is OK [15:24:25]request: POST /json_proto HTTP/1.0 [15:24:25]Method: POST [15:24:25]URL: /json_proto [15:24:25]Method is POST - this is cgi request [15:24:25]url: /json_proto [15:24:25]query_string will be loaded in cgi processing [15:24:25]execute_cgi json_proto POST (null) [15:24:25]execute_cgi path=json_proto method=POST [15:24:25]POST find Content-Length [15:24:25]Host: 172.17.35.133:8080 [15:24:25]Content-Length: 835 [15:24:25]Content-Type: application/json [15:24:25] [15:24:25]POST finish read [15:24:25]Found Content-Length = 835 [15:24:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254581", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:25]execute_script... [15:24:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254581", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:25]POST & json_proto [15:24:25]process_json_proto [15:24:25]json parsed OK: [15:24:25]protocol is kg_v1.0 [15:24:25]action value=close_receipt [15:24:25]process_action close_receipt [15:24:25]cmd_close_receipt [15:24:25]MH_GetDate [15:24:25]Write to MH i2c: F0 00 00 1D 00 0C [15:24:25]Write i2c OK [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: F0 [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: F0 09 00 [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: F0 09 00 1D 00 00 29 55 70 66 8C 55 28 65 D7 [15:24:25]GetLastDocTimeStamp 1718636167 [15:24:25]current date 1718637865 [15:24:25]FM_GetShiftState [15:24:25]SAM_PROTO_GetShiftState [15:24:25]wFMCommunicate request_size=4 [15:24:25]MH_SAM_APDU [15:24:25]CAPDU: 80 13 01 00 [15:24:25]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [15:24:25]Write i2c OK [15:24:25]MH_I2C_Read... [15:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:25]Read from MH i2c: E2 [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: E2 0E 00 [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 4D [15:24:25]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:24:25]wFMCommunicate OK [15:24:25]SAM_PROTO_GetShiftState done [15:24:25]FM_GetShiftState done [15:24:25]opened in 1718583887 [15:24:25]opened+sec_in_day 1718670287 [15:24:25]quantity*price = 12000 [15:24:25]sum+1 = 12001 [15:24:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 0.00 Безнал.: 120.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 56 17.06.2024 15:24 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965344 ФД: 22375 ФПД: 204382304826444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T152425&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22375&fm=204382304826444&tin=02508201610067®Number=0000000000099755&sum=12000 0 [15:24:26]StoreToDocumentArchive [15:24:26]shift 328 fd 22375 [15:24:26]save to /storage/0328/doc_00022375 [15:24:26]save last doc name /storage/0328/doc_00022375 to /storage/kkm_last_doc_name [15:24:26]save OK [15:24:26]Clear old archive folders... [15:24:26]ProcessDocumentItem done err = 0, tmpTLVsize=271 [15:24:26]tlvbuf is 007F0BD0 [15:24:26]SAM_PROTO_ClearQueue [15:24:26]wFMCommunicate request_size=4 [15:24:26]MH_SAM_APDU [15:24:26]CAPDU: 80 09 00 00 [15:24:26]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [15:24:26]Write i2c OK [15:24:26]MH_I2C_Read... [15:24:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:26]Read from MH i2c: E2 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 03 00 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [15:24:26]RAPDU: 90 00 [15:24:26]wFMCommunicate OK [15:24:26]SAM_PROTO_ClearQueue done [15:24:26]KKMCreateOFDPacket [15:24:26]OFDProtocolAddRootSTLVToBuf [15:24:26]FM_MakeSignedData [15:24:26]FM_MakeSignedData [15:24:26]SAM_PROTO_SignData [15:24:26]wFMCommunicate request_size=4 [15:24:26]MH_SAM_APDU [15:24:26]CAPDU: 80 0D 01 02 [15:24:26]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [15:24:26]Write i2c OK [15:24:26]MH_I2C_Read... [15:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:26]Read from MH i2c: E2 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 03 00 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [15:24:26]RAPDU: 90 00 [15:24:26]wFMCommunicate OK [15:24:26]wFMCommunicate request_size=255 [15:24:26]MH_SAM_APDU [15:24:26]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 29 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [15:24:26]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 29 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 F9 [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 03 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [15:24:27]RAPDU: 90 00 [15:24:27]wFMCommunicate OK [15:24:27]wFMCommunicate request_size=30 [15:24:27]MH_SAM_APDU [15:24:27]CAPDU: 80 0D 02 02 19 30 39 36 35 33 34 34 10 04 04 00 67 57 00 00 35 04 06 00 B9 E2 76 AD 74 4C [15:24:27]Write to MH i2c: E2 21 00 2E 00 80 0D 02 02 19 00 30 39 36 35 33 34 34 10 04 04 00 67 57 00 00 35 04 06 00 B9 E2 76 AD 74 4C 00 00 DC [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 03 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [15:24:27]RAPDU: 90 00 [15:24:27]wFMCommunicate OK [15:24:27]wFMCommunicate request_size=4 [15:24:27]MH_SAM_APDU [15:24:27]CAPDU: 80 0D 03 02 [15:24:27]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 0B 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 0B 00 2F 00 00 82 B4 78 03 C1 A0 22 42 90 00 21 [15:24:27]RAPDU: 82 B4 78 03 C1 A0 22 42 90 00 [15:24:27]wFMCommunicate OK [15:24:27]SAM_PROTO_SignData done [15:24:27]FM_MakeSignedData done [15:24:27]CreateOFDProtocolMessage [15:24:27]wFMCommunicate request_size=4 [15:24:27]MH_SAM_APDU [15:24:27]CAPDU: 80 11 00 00 [15:24:27]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 17 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 FC [15:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:24:27]wFMCommunicate OK [15:24:27]CreateOFDProtocolMessage done [15:24:27]OFDSenderStorePacket 22375 [15:24:27]StoreOFDPacket docnum=22375 [15:24:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 23 01 00 00 AD AF 1B 01 36 68 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 29 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 67 57 00 00 35 04 06 00 B9 E2 76 AD 74 4C 82 B4 78 03 C1 A0 22 42 [15:24:27]CheckFolder [15:24:27]dirname=/storage/ofd_packets [15:24:27]CheckFolder done [15:24:27]ProducePacketName [15:24:27]name=ofd_packets/00022375 [15:24:27]NVStorageSaveData ofd_packets/00022375 [15:24:27]File name is /storage/ofd_packets/00022375 [15:24:27]Write 321 bytes [15:24:27]NVStorageSaveData done [15:24:27]OFDSenderStorePacket done [15:24:27]KKMCreateOFDPacket done [15:24:27]NVStorageSaveData kkm_last_timestamp [15:24:27]File name is /storage/kkm_last_timestamp [15:24:27]Write 4 bytes [15:24:27]NVStorageSaveData done [15:24:27]ExternCall_PrintAddStr [15:24:27]wPrintStart [15:24:27]Write to MH i2c: 01 00 00 31 00 31 [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: 01 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: 01 07 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [15:24:27]RasterBufferAndPrint [15:24:27]line Счет N : (3)254581 [15:24:27]line ИНН: 02508201610067 [15:24:27]line Контрольно-Кассовый Чек [15:24:27]line ПРОДАЖА [15:24:27]line Товар: 4700000160211 [15:24:27]line Вода Легенда 0,5л [15:24:27]line 3.000 * 40.00 [15:24:27]line = 120.00 [15:24:27]line НДС 12% НСП 1% [15:24:27]line > о реализуемом товаре [15:24:27]line ИТОГО: 120.00 [15:24:27]line НСП 1% : 1.06 [15:24:27]line НДС 12% : 12.74 [15:24:27]line Наличными: 0.00 [15:24:27]line Безнал.: 120.00 [15:24:27]line Место: АЗС № 76 "Партнер Нефть" [15:24:27]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [15:24:27]line СНО: Общий режим [15:24:27]line Чек 56 17.06.2024 15:24 [15:24:27]line Смена: 328 ФФД: 1.0 [15:24:27]line ЗНМ: 0300000200 [15:24:27]line РНМ: 0000000000099755 [15:24:27]line Версия ККМ: 001 [15:24:27]line Платежная система: АКБ Кыргызстан [15:24:27]line ФМ: 0000000000965344 [15:24:27]line ФД: 22375 [15:24:27]line ФПД: 204382304826444 [15:24:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T152425&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22375&fm=204382304826444&tin=02508201610067®Number=0000000000099755&sum=12000 [15:24:27]line 0 [15:24:27]written 0, free lines is 4095 [15:24:27]OFD Sender: Processing packet 22375 [packets to send 5, broken 4] [15:24:27]ProducePacketName [15:24:27]name=ofd_packets/00022375 [15:24:27]OFD Sender: To server: pG, [15:24:27]CommunicateWithHost lk.salyk.kg:30040 [15:24:27]ConnectInit lk.salyk.kg [15:24:27]Connected sock=10 [15:24:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 23 01 00 00 AD AF 1B 01 36 68 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 29 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 67 57 00 00 35 04 06 00 B9 E2 76 AD 74 4C 82 B4 78 03 C1 A0 22 42 [15:24:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 AF 14 47 00 51 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 39 36 35 33 34 34 10 04 04 00 67 57 00 00 F4 03 04 00 E1 FD 6F 66 B6 04 01 00 00 8B 0F F4 3F BF 18 DA EE [15:24:28]CommunicateWithHost err = 0 [15:24:28]CheckOFDResponse [15:24:28]1017 (14) - 77093643461234 [15:24:28]1041 (16) - 0000000000965344 [15:24:28]1040 (4) - 22375 [15:24:28]1012 (4) - 17.06.2024 09:12 [15:24:28]1206 (1) - 0 [15:24:28]OFD Sender: Remove packet 22375 [15:24:28]ProducePacketName [15:24:28]name=ofd_packets/00022375 [15:24:28]NVStorageDeleteData [15:24:28]Write to MH i2c: 01 00 00 5B 00 5B [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: 01 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: 01 07 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 2C 0D 9B [15:24:28]RasterBufferAndPrint [15:24:28]line [15:24:28]line [15:24:28]line [15:24:28]line [15:24:28]line [15:24:28]written 0, free lines is 3392 [15:24:28]MH_Cut [15:24:28]Write to MH i2c: D1 01 00 62 00 01 34 [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: D1 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: D1 01 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: D1 01 00 62 00 00 33 [15:24:28]Write to MH i2c: 01 00 00 63 00 63 [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]OFD Sender: No OFD packet to send [15:24:28]*** Cut start [15:24:28]*** Partial cut [15:24:28]*** CUTSNS_PIN = 1 [15:24:28]*** CUTSNS_PIN = 0 [15:24:29]*** Brake cut motor [15:24:29]Read from MH i2c: 01 [15:24:29]MH_I2C_Read... [15:24:29]*** Stop cut motor [15:24:29]*** Cut end [15:24:29]Read from MH i2c: 01 07 00 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [15:24:29]process_action close_receipt done [15:24:29]requested_data is exist [15:24:29]produce_requested_data [15:24:29]requested_item fm.sn is exist - process it [15:24:29]wFMCommunicate request_size=4 [15:24:29]MH_SAM_APDU [15:24:29]CAPDU: 80 11 00 00 [15:24:29]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [15:24:29]Write i2c OK [15:24:29]MH_I2C_Read... [15:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:29]Read from MH i2c: E2 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: E2 17 00 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 30 [15:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:24:29]wFMCommunicate OK [15:24:29]requested_item fd.num is exist - process it [15:24:29]SAM_PROTO_GetFieldsCounters [15:24:29]wFMCommunicate request_size=4 [15:24:29]MH_SAM_APDU [15:24:29]CAPDU: 80 13 00 00 [15:24:29]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [15:24:29]Write i2c OK [15:24:29]MH_I2C_Read... [15:24:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:29]Read from MH i2c: E2 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: E2 62 00 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 67 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [15:24:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 67 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:29]wFMCommunicate OK [15:24:29]SAM_PROTO_GetFieldsCounters done [15:24:29]requested_item shift.num is exist - process it [15:24:29]requested_item shift.opened is exist - process it [15:24:29]req_shift_opened [15:24:29]FM_GetShiftState [15:24:29]SAM_PROTO_GetShiftState [15:24:29]wFMCommunicate request_size=4 [15:24:29]MH_SAM_APDU [15:24:29]CAPDU: 80 13 01 00 [15:24:29]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [15:24:29]Write i2c OK [15:24:29]MH_I2C_Read... [15:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:29]Read from MH i2c: E2 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: E2 0E 00 [15:24:29]MH_I2C_Read... [15:24:29]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 95 [15:24:29]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:24:29]wFMCommunicate OK [15:24:29]SAM_PROTO_GetShiftState done [15:24:29]FM_GetShiftState done [15:24:29]req_shift_opened done [15:24:29]requested_item shift.open_date is exist - process it [15:24:29]req_shift_open_date [15:24:29]req_shift_open_date done [15:24:29]produce_requested_data done [15:24:29]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22375,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [15:24:29]process_action_free close_receipt [15:24:29]json_value_free [15:24:29]json_value_free done [15:24:29]process_json_proto returns [15:24:29]Send response to host [15:24:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22375,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [15:24:29]free response buf [15:24:29]execute_script done [15:24:29]execute_script returns [15:24:29]free content buf [15:24:29]Sock 9.Close socket [15:24:29]Sock 9.Thread stoped [15:24:31]accept exits with 7 [15:24:31]New connection [15:24:31]New thread 3066715492 created [15:24:31]Thread 3066858852 joined [15:24:31]Waiting for new connection... [15:24:31] Sock 7.Parse request [15:24:31]Sock 7.Check first char [15:24:31]Sock 7.First char is OK [15:24:31]request: POST /json_proto HTTP/1.0 [15:24:31]Method: POST [15:24:31]URL: /json_proto [15:24:31]Method is POST - this is cgi request [15:24:31]url: /json_proto [15:24:31]query_string will be loaded in cgi processing [15:24:31]execute_cgi json_proto POST (null) [15:24:31]execute_cgi path=json_proto method=POST [15:24:31]POST find Content-Length [15:24:31]Host: 172.17.35.133:8080 [15:24:31]Content-Length: 935 [15:24:31]Content-Type: application/json [15:24:31] [15:24:31]POST finish read [15:24:31]Found Content-Length = 935 [15:24:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254582", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 254.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:31]execute_script... [15:24:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254582", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 254.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:31]POST & json_proto [15:24:31]process_json_proto [15:24:31]json parsed OK: [15:24:31]protocol is kg_v1.0 [15:24:31]action value=close_receipt [15:24:31]process_action close_receipt [15:24:31]cmd_close_receipt [15:24:31]MH_GetDate [15:24:31]Write to MH i2c: F0 00 00 67 00 56 [15:24:31]Write i2c OK [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: F0 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: F0 09 00 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: F0 09 00 67 00 00 2F 55 70 66 8C 55 28 65 27 [15:24:31]GetLastDocTimeStamp 1718637865 [15:24:31]current date 1718637871 [15:24:31]FM_GetShiftState [15:24:31]SAM_PROTO_GetShiftState [15:24:31]wFMCommunicate request_size=4 [15:24:31]MH_SAM_APDU [15:24:31]CAPDU: 80 13 01 00 [15:24:31]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [15:24:31]Write i2c OK [15:24:31]MH_I2C_Read... [15:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:31]Read from MH i2c: E2 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 0E 00 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 97 [15:24:32]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:24:32]wFMCommunicate OK [15:24:32]SAM_PROTO_GetShiftState done [15:24:32]FM_GetShiftState done [15:24:32]opened in 1718583887 [15:24:32]opened+sec_in_day 1718670287 [15:24:32]quantity*price = 20500 [15:24:32]sum+1 = 20501 [15:24:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46214638 Р/ж mentos p.white нежная мята 16/15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 254.00 НСП 1% : 2.24 НДС 12% : 26.97 Наличными: 254.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 57 17.06.2024 15:24 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22376 ФПД: 133686827867802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T152432&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22376&fm=133686827867802&tin=02508201610067®Number=0000000000099755&sum=25400 0 [15:24:33]StoreToDocumentArchive [15:24:33]shift 328 fd 22376 [15:24:33]save to /storage/0328/doc_00022376 [15:24:33]save last doc name /storage/0328/doc_00022376 to /storage/kkm_last_doc_name [15:24:33]save OK [15:24:33]Clear old archive folders... [15:24:33]ProcessDocumentItem done err = 0, tmpTLVsize=399 [15:24:33]tlvbuf is 007F07A0 [15:24:33]SAM_PROTO_ClearQueue [15:24:33]wFMCommunicate request_size=4 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 09 00 00 [15:24:33]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:33]Read from MH i2c: E2 03 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [15:24:33]RAPDU: 90 00 [15:24:33]wFMCommunicate OK [15:24:33]SAM_PROTO_ClearQueue done [15:24:33]KKMCreateOFDPacket [15:24:33]OFDProtocolAddRootSTLVToBuf [15:24:33]FM_MakeSignedData [15:24:33]FM_MakeSignedData [15:24:33]SAM_PROTO_SignData [15:24:33]wFMCommunicate request_size=4 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 0D 01 02 [15:24:33]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [15:24:33]RAPDU: 90 00 [15:24:33]wFMCommunicate OK [15:24:33]wFMCommunicate request_size=255 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 [15:24:33]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 00 00 66 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:33]Read from MH i2c: E2 03 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [15:24:33]RAPDU: 90 00 [15:24:33]wFMCommunicate OK [15:24:33]wFMCommunicate request_size=158 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0A 00 00 00 00 07 04 06 00 38 63 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 30 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 68 57 00 00 35 04 06 00 79 96 63 E2 DE 9A [15:24:33]Write to MH i2c: E2 A1 00 78 00 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0A 00 00 00 00 07 04 06 00 38 63 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 30 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 68 57 00 00 35 04 06 00 79 96 63 E2 DE 9A 00 00 F2 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]OFD Sender: No OFD packet to send [15:24:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [15:24:33]RAPDU: 90 00 [15:24:33]wFMCommunicate OK [15:24:33]wFMCommunicate request_size=4 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 0D 03 02 [15:24:33]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 0B 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 0B 00 79 00 00 5D A3 00 C1 6F EE 18 8E 90 00 B9 [15:24:33]RAPDU: 5D A3 00 C1 6F EE 18 8E 90 00 [15:24:33]wFMCommunicate OK [15:24:33]SAM_PROTO_SignData done [15:24:33]FM_MakeSignedData done [15:24:33]CreateOFDProtocolMessage [15:24:33]wFMCommunicate request_size=4 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 11 00 00 [15:24:33]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 17 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 46 [15:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:24:33]wFMCommunicate OK [15:24:33]CreateOFDProtocolMessage done [15:24:33]OFDSenderStorePacket 22376 [15:24:33]StoreOFDPacket docnum=22376 [15:24:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 A3 01 00 00 FD 58 9B 01 4A 5B 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0A 00 00 00 00 07 04 06 00 38 63 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 30 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 68 57 00 00 35 04 06 00 79 96 63 E2 DE 9A 5D A3 00 C1 6F EE 18 8E [15:24:33]CheckFolder [15:24:33]dirname=/storage/ofd_packets [15:24:33]CheckFolder done [15:24:33]ProducePacketName [15:24:33]name=ofd_packets/00022376 [15:24:33]NVStorageSaveData ofd_packets/00022376 [15:24:33]File name is /storage/ofd_packets/00022376 [15:24:33]Write 449 bytes [15:24:33]NVStorageSaveData done [15:24:33]OFDSenderStorePacket done [15:24:33]KKMCreateOFDPacket done [15:24:33]NVStorageSaveData kkm_last_timestamp [15:24:33]File name is /storage/kkm_last_timestamp [15:24:34]Write 4 bytes [15:24:34]NVStorageSaveData done [15:24:34]ExternCall_PrintAddStr [15:24:34]wPrintStart [15:24:34]Write to MH i2c: 01 00 00 7B 00 7B [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 07 00 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [15:24:34]RasterBufferAndPrint [15:24:34]line Счет N : (3)254582 [15:24:34]line ИНН: 02508201610067 [15:24:34]line Контрольно-Кассовый Чек [15:24:34]line ПРОДАЖА [15:24:34]line Товар: 4602441000609 [15:24:34]line Напит Дюшес 1л стекло [15:24:34]line 1.000 * 205.00 [15:24:34]line = 205.00 [15:24:34]line НДС 12% НСП 1% [15:24:34]line > о реализуемом товаре [15:24:34]line Товар: 46214638 [15:24:34]line Р/ж mentos p.white нежная мята 16/15,5г [15:24:34]line 1.000 * 49.00 [15:24:34]line = 49.00 [15:24:34]line НДС 12% НСП 1% [15:24:34]line > о реализуемом товаре [15:24:34]line ИТОГО: 254.00 [15:24:34]line НСП 1% : 2.24 [15:24:34]line НДС 12% : 26.97 [15:24:34]line Наличными: 254.00 [15:24:34]line Безнал.: 0.00 [15:24:34]line Место: АЗС № 76 "Партнер Нефть" [15:24:34]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [15:24:34]line СНО: Общий режим [15:24:34]line Чек 57 17.06.2024 15:24 [15:24:34]line Смена: 328 ФФД: 1.0 [15:24:34]line ЗНМ: 0300000200 [15:24:34]line РНМ: 0000000000099755 [15:24:34]line Версия ККМ: 001 [15:24:34]line ФМ: 0000000000965344 [15:24:34]line ФД: 22376 [15:24:34]line ФПД: 133686827867802 [15:24:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T152432&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22376&fm=133686827867802&tin=02508201610067®Number=0000000000099755&sum=25400 [15:24:34]line 0 [15:24:34]written 0, free lines is 4095 [15:24:34]OFD Sender: Processing packet 22376 [packets to send 5, broken 4] [15:24:34]ProducePacketName [15:24:34]name=ofd_packets/00022376 [15:24:34]OFD Sender: To server: pG, [15:24:34]CommunicateWithHost lk.salyk.kg:30040 [15:24:34]ConnectInit lk.salyk.kg [15:24:34]Connected sock=10 [15:24:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 A3 01 00 00 FD 58 9B 01 4A 5B 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 0A 00 00 00 00 07 04 06 00 38 63 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 30 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 68 57 00 00 35 04 06 00 79 96 63 E2 DE 9A 5D A3 00 C1 6F EE 18 8E [15:24:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 92 49 47 00 22 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 39 36 35 33 34 34 10 04 04 00 68 57 00 00 F4 03 04 00 E7 FD 6F 66 B6 04 01 00 00 75 5D D4 2A B0 71 FA E1 [15:24:34]CommunicateWithHost err = 0 [15:24:34]CheckOFDResponse [15:24:34]1017 (14) - 77093643461234 [15:24:34]1041 (16) - 0000000000965344 [15:24:34]1040 (4) - 22376 [15:24:34]1012 (4) - 17.06.2024 09:12 [15:24:34]1206 (1) - 0 [15:24:34]OFD Sender: Remove packet 22376 [15:24:34]ProducePacketName [15:24:34]name=ofd_packets/00022376 [15:24:34]NVStorageDeleteData [15:24:34]Write to MH i2c: 01 00 00 AA 00 AA [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 07 00 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 07 00 AA 00 00 00 00 00 00 49 0D 07 [15:24:34]RasterBufferAndPrint [15:24:34]line [15:24:34]line [15:24:34]line [15:24:34]line [15:24:34]line [15:24:34]written 0, free lines is 3425 [15:24:34]MH_Cut [15:24:34]Write to MH i2c: D1 01 00 B1 00 01 83 [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: D1 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: D1 01 00 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: D1 01 00 B1 00 00 82 [15:24:34]Write to MH i2c: 01 00 00 B2 00 B2 [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:35]OFD Sender: No OFD packet to send [15:24:35]*** Cut start [15:24:35]*** Partial cut [15:24:35]*** CUTSNS_PIN = 1 [15:24:35]*** CUTSNS_PIN = 0 [15:24:35]*** Brake cut motor [15:24:35]Read from MH i2c: 01 [15:24:35]MH_I2C_Read... [15:24:35]*** Stop cut motor [15:24:35]*** Cut end [15:24:35]Read from MH i2c: 01 07 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: 01 07 00 B2 00 00 00 00 00 00 FF 0F C7 [15:24:35]process_action close_receipt done [15:24:35]requested_data is exist [15:24:35]produce_requested_data [15:24:35]requested_item fm.sn is exist - process it [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 11 00 00 [15:24:35]Write to MH i2c: E2 08 00 B3 00 80 11 00 00 00 00 00 00 2D [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 17 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 17 00 B3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 7F [15:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:24:35]wFMCommunicate OK [15:24:35]requested_item fd.num is exist - process it [15:24:35]SAM_PROTO_GetFieldsCounters [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 13 00 00 [15:24:35]Write to MH i2c: E2 08 00 B4 00 80 13 00 00 00 00 00 00 30 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:36]Read from MH i2c: E2 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: E2 62 00 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: E2 62 00 B4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 68 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [15:24:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 68 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:36]wFMCommunicate OK [15:24:36]SAM_PROTO_GetFieldsCounters done [15:24:36]requested_item shift.num is exist - process it [15:24:36]requested_item shift.opened is exist - process it [15:24:36]req_shift_opened [15:24:36]FM_GetShiftState [15:24:36]SAM_PROTO_GetShiftState [15:24:36]wFMCommunicate request_size=4 [15:24:36]MH_SAM_APDU [15:24:36]CAPDU: 80 13 01 00 [15:24:36]Write to MH i2c: E2 08 00 B5 00 80 13 01 00 00 00 00 00 32 [15:24:36]Write i2c OK [15:24:36]MH_I2C_Read... [15:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:36]Read from MH i2c: E2 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: E2 0E 00 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: E2 0E 00 B5 00 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 E4 [15:24:36]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:24:36]wFMCommunicate OK [15:24:36]SAM_PROTO_GetShiftState done [15:24:36]FM_GetShiftState done [15:24:36]req_shift_opened done [15:24:36]requested_item shift.open_date is exist - process it [15:24:36]req_shift_open_date [15:24:36]req_shift_open_date done [15:24:36]produce_requested_data done [15:24:36]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22376,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [15:24:36]process_action_free close_receipt [15:24:36]json_value_free [15:24:36]json_value_free done [15:24:36]process_json_proto returns [15:24:36]Send response to host [15:24:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22376,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [15:24:36]free response buf [15:24:36]execute_script done [15:24:36]execute_script returns [15:24:36]free content buf [15:24:36]Sock 7.Close socket [15:24:36]Sock 7.Thread stoped [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:24:57]accept exits with 9 [15:24:57]New connection [15:24:57]New thread 3066858852 created [15:24:57]Thread 3066715492 joined [15:24:57]Waiting for new connection... [15:24:57] Sock 9.Parse request [15:24:57]Sock 9.Check first char [15:24:57]Sock 9.First char is OK [15:24:57]request: POST /json_proto HTTP/1.0 [15:24:57]Method: POST [15:24:57]URL: /json_proto [15:24:57]Method is POST - this is cgi request [15:24:57]url: /json_proto [15:24:57]query_string will be loaded in cgi processing [15:24:57]execute_cgi json_proto POST (null) [15:24:57]execute_cgi path=json_proto method=POST [15:24:57]POST find Content-Length [15:24:57]Host: 172.17.35.133:8080 [15:24:57]Content-Length: 591 [15:24:57]Content-Type: application/json [15:24:57] [15:24:57]POST finish read [15:24:57]Found Content-Length = 591 [15:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254584", "tax_sys" : 0, "items" : [ { "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:57]execute_script... [15:24:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254584", "tax_sys" : 0, "items" : [ { "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:57]POST & json_proto [15:24:57]process_json_proto [15:24:57]json parsed OK: [15:24:57]protocol is kg_v1.0 [15:24:57]action value=close_receipt [15:24:57]process_action close_receipt [15:24:57]cmd_close_receipt [15:24:57]MH_GetDate [15:24:57]Write to MH i2c: F0 00 00 B6 00 A5 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: F0 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: F0 09 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: F0 09 00 B6 00 00 49 55 70 66 8C 55 28 65 90 [15:24:57]GetLastDocTimeStamp 1718637872 [15:24:57]current date 1718637897 [15:24:57]FM_GetShiftState [15:24:57]SAM_PROTO_GetShiftState [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 13 01 00 [15:24:57]Write to MH i2c: E2 08 00 B7 00 80 13 01 00 00 00 00 00 34 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 0E 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 0E 00 B7 00 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 E6 [15:24:57]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:24:57]wFMCommunicate OK [15:24:57]SAM_PROTO_GetShiftState done [15:24:57]FM_GetShiftState done [15:24:57]opened in 1718583887 [15:24:57]opened+sec_in_day 1718670287 [15:24:57]quantity*price = 4500 [15:24:57]sum+1 = 4501 [15:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 58 17.06.2024 15:24 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22377 ФПД: 247597260207907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T152457&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22377&fm=247597260207907&tin=02508201610067®Number=0000000000099755&sum=4500 0 [15:24:58]StoreToDocumentArchive [15:24:58]shift 328 fd 22377 [15:24:58]save to /storage/0328/doc_00022377 [15:24:58]save last doc name /storage/0328/doc_00022377 to /storage/kkm_last_doc_name [15:24:58]save OK [15:24:58]Clear old archive folders... [15:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=266 [15:24:58]tlvbuf is 00831880 [15:24:58]SAM_PROTO_ClearQueue [15:24:58]wFMCommunicate request_size=4 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 09 00 00 [15:24:58]Write to MH i2c: E2 08 00 C4 00 80 09 00 00 00 00 00 00 36 [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [15:24:58]RAPDU: 90 00 [15:24:58]wFMCommunicate OK [15:24:58]SAM_PROTO_ClearQueue done [15:24:58]KKMCreateOFDPacket [15:24:58]OFDProtocolAddRootSTLVToBuf [15:24:58]FM_MakeSignedData [15:24:58]FM_MakeSignedData [15:24:58]SAM_PROTO_SignData [15:24:58]wFMCommunicate request_size=4 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 0D 01 02 [15:24:58]Write to MH i2c: E2 08 00 C5 00 80 0D 01 02 00 00 00 00 3E [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [15:24:58]RAPDU: 90 00 [15:24:58]wFMCommunicate OK [15:24:58]wFMCommunicate request_size=255 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 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 49 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 [15:24:58]Write to MH i2c: E2 02 01 C6 00 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 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 49 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 00 00 F1 [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:59]Read from MH i2c: E2 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 03 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [15:24:59]RAPDU: 90 00 [15:24:59]wFMCommunicate OK [15:24:59]wFMCommunicate request_size=25 [15:24:59]MH_SAM_APDU [15:24:59]CAPDU: 80 0D 02 02 14 34 34 10 04 04 00 69 57 00 00 35 04 06 00 E1 30 3A BD F7 23 [15:24:59]Write to MH i2c: E2 1C 00 C7 00 80 0D 02 02 14 00 34 34 10 04 04 00 69 57 00 00 35 04 06 00 E1 30 3A BD F7 23 00 00 0A [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:59]Read from MH i2c: E2 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 03 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [15:24:59]RAPDU: 90 00 [15:24:59]wFMCommunicate OK [15:24:59]wFMCommunicate request_size=4 [15:24:59]MH_SAM_APDU [15:24:59]CAPDU: 80 0D 03 02 [15:24:59]Write to MH i2c: E2 08 00 C8 00 80 0D 03 02 00 00 00 00 43 [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:59]Read from MH i2c: E2 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 0B 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 0B 00 C8 00 00 90 29 27 E7 9A F4 B5 57 90 00 A5 [15:24:59]RAPDU: 90 29 27 E7 9A F4 B5 57 90 00 [15:24:59]wFMCommunicate OK [15:24:59]SAM_PROTO_SignData done [15:24:59]FM_MakeSignedData done [15:24:59]CreateOFDProtocolMessage [15:24:59]wFMCommunicate request_size=4 [15:24:59]MH_SAM_APDU [15:24:59]CAPDU: 80 11 00 00 [15:24:59]Write to MH i2c: E2 08 00 C9 00 80 11 00 00 00 00 00 00 43 [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:59]Read from MH i2c: E2 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 17 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: E2 17 00 C9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 95 [15:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:24:59]wFMCommunicate OK [15:24:59]CreateOFDProtocolMessage done [15:24:59]OFDSenderStorePacket 22377 [15:24:59]StoreOFDPacket docnum=22377 [15:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 1E 01 00 00 3C 4D 16 01 33 C5 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 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 49 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 69 57 00 00 35 04 06 00 E1 30 3A BD F7 23 90 29 27 E7 9A F4 B5 57 [15:24:59]CheckFolder [15:24:59]dirname=/storage/ofd_packets [15:24:59]CheckFolder done [15:24:59]ProducePacketName [15:24:59]name=ofd_packets/00022377 [15:24:59]NVStorageSaveData ofd_packets/00022377 [15:24:59]File name is /storage/ofd_packets/00022377 [15:24:59]Write 316 bytes [15:24:59]NVStorageSaveData done [15:24:59]OFDSenderStorePacket done [15:24:59]KKMCreateOFDPacket done [15:24:59]NVStorageSaveData kkm_last_timestamp [15:24:59]File name is /storage/kkm_last_timestamp [15:24:59]Write 4 bytes [15:24:59]NVStorageSaveData done [15:24:59]ExternCall_PrintAddStr [15:24:59]wPrintStart [15:24:59]Write to MH i2c: 01 00 00 CA 00 CA [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 07 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 07 00 CA 00 00 00 00 00 00 FF 0F DF [15:24:59]RasterBufferAndPrint [15:24:59]line Счет N : (3)254584 [15:24:59]line ИНН: 02508201610067 [15:24:59]line Контрольно-Кассовый Чек [15:24:59]line ПРОДАЖА [15:24:59]line Товар: 42069942 [15:24:59]line Жев Orbit White Fresh Mint [15:24:59]line 1.000 * 45.00 [15:24:59]line = 45.00 [15:24:59]line НДС 12% НСП 1% [15:24:59]line > о реализуемом товаре [15:24:59]line ИТОГО: 45.00 [15:24:59]line НСП 1% : 0.40 [15:24:59]line НДС 12% : 4.78 [15:24:59]line Наличными: 45.00 [15:24:59]line Безнал.: 0.00 [15:24:59]line Место: АЗС № 76 "Партнер Нефть" [15:24:59]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [15:24:59]line СНО: Общий режим [15:24:59]line Чек 58 17.06.2024 15:24 [15:24:59]line Смена: 328 ФФД: 1.0 [15:24:59]line ЗНМ: 0300000200 [15:24:59]line РНМ: 0000000000099755 [15:24:59]line Версия ККМ: 001 [15:24:59]line ФМ: 0000000000965344 [15:24:59]line ФД: 22377 [15:24:59]line ФПД: 247597260207907 [15:24:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T152457&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22377&fm=247597260207907&tin=02508201610067®Number=0000000000099755&sum=4500 [15:24:59]line 0 [15:24:59]written 0, free lines is 4095 [15:24:59]OFD Sender: Processing packet 22377 [packets to send 5, broken 4] [15:24:59]ProducePacketName [15:24:59]name=ofd_packets/00022377 [15:24:59]OFD Sender: To server: pG, [15:24:59]CommunicateWithHost lk.salyk.kg:30040 [15:24:59]ConnectInit lk.salyk.kg [15:24:59]Connected sock=10 [15:24:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 1E 01 00 00 3C 4D 16 01 33 C5 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 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 49 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 69 57 00 00 35 04 06 00 E1 30 3A BD F7 23 90 29 27 E7 9A F4 B5 57 [15:24:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 15 BA 47 00 4E 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 39 36 35 33 34 34 10 04 04 00 69 57 00 00 F4 03 04 00 00 FE 6F 66 B6 04 01 00 00 8B B2 0C 78 8E 74 4B 15 [15:24:59]CommunicateWithHost err = 0 [15:24:59]CheckOFDResponse [15:24:59]1017 (14) - 77093643461234 [15:24:59]1041 (16) - 0000000000965344 [15:24:59]1040 (4) - 22377 [15:24:59]1012 (4) - 17.06.2024 09:12 [15:24:59]1206 (1) - 0 [15:24:59]OFD Sender: Remove packet 22377 [15:24:59]ProducePacketName [15:24:59]name=ofd_packets/00022377 [15:24:59]NVStorageDeleteData [15:24:59]Write to MH i2c: 01 00 00 F2 00 F2 [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 07 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 21 0D 27 [15:24:59]RasterBufferAndPrint [15:24:59]line [15:24:59]line [15:24:59]line [15:24:59]line [15:24:59]line [15:24:59]written 0, free lines is 3377 [15:24:59]MH_Cut [15:24:59]Write to MH i2c: D1 01 00 F9 00 01 CB [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: D1 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: D1 01 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: D1 01 00 F9 00 00 CA [15:24:59]Write to MH i2c: 01 00 00 FA 00 FA [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:25:00]OFD Sender: No OFD packet to send [15:25:00]*** Cut start [15:25:00]*** Partial cut [15:25:00]*** CUTSNS_PIN = 1 [15:25:00]*** CUTSNS_PIN = 0 [15:25:00]*** Brake cut motor [15:25:01]Read from MH i2c: 01 [15:25:01]MH_I2C_Read... [15:25:01]*** Stop cut motor [15:25:01]*** Cut end [15:25:01]Read from MH i2c: 01 07 00 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [15:25:01]process_action close_receipt done [15:25:01]requested_data is exist [15:25:01]produce_requested_data [15:25:01]requested_item fm.sn is exist - process it [15:25:01]wFMCommunicate request_size=4 [15:25:01]MH_SAM_APDU [15:25:01]CAPDU: 80 11 00 00 [15:25:01]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [15:25:01]Write i2c OK [15:25:01]MH_I2C_Read... [15:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:01]Read from MH i2c: E2 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 17 00 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 C7 [15:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:25:01]wFMCommunicate OK [15:25:01]requested_item fd.num is exist - process it [15:25:01]SAM_PROTO_GetFieldsCounters [15:25:01]wFMCommunicate request_size=4 [15:25:01]MH_SAM_APDU [15:25:01]CAPDU: 80 13 00 00 [15:25:01]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [15:25:01]Write i2c OK [15:25:01]MH_I2C_Read... [15:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:01]Read from MH i2c: E2 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 62 00 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 69 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [15:25:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 69 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:01]wFMCommunicate OK [15:25:01]SAM_PROTO_GetFieldsCounters done [15:25:01]requested_item shift.num is exist - process it [15:25:01]requested_item shift.opened is exist - process it [15:25:01]req_shift_opened [15:25:01]FM_GetShiftState [15:25:01]SAM_PROTO_GetShiftState [15:25:01]wFMCommunicate request_size=4 [15:25:01]MH_SAM_APDU [15:25:01]CAPDU: 80 13 01 00 [15:25:01]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [15:25:01]Write i2c OK [15:25:01]MH_I2C_Read... [15:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:01]Read from MH i2c: E2 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 0E 00 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 2C [15:25:01]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:25:01]wFMCommunicate OK [15:25:01]SAM_PROTO_GetShiftState done [15:25:01]FM_GetShiftState done [15:25:01]req_shift_opened done [15:25:01]requested_item shift.open_date is exist - process it [15:25:01]req_shift_open_date [15:25:01]req_shift_open_date done [15:25:01]produce_requested_data done [15:25:01]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22377,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [15:25:01]process_action_free close_receipt [15:25:01]json_value_free [15:25:01]json_value_free done [15:25:01]process_json_proto returns [15:25:01]Send response to host [15:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22377,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [15:25:01]free response buf [15:25:01]execute_script done [15:25:01]execute_script returns [15:25:01]free content buf [15:25:01]Sock 9.Close socket [15:25:01]Sock 9.Thread stoped [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:41]accept exits with 7 [15:25:41]New connection [15:25:41]New thread 3066715492 created [15:25:41]Thread 3066858852 joined [15:25:41]Waiting for new connection... [15:25:41] Sock 7.Parse request [15:25:41]Sock 7.Check first char [15:25:41]Sock 7.First char is OK [15:25:41]request: POST /json_proto HTTP/1.0 [15:25:41]Method: POST [15:25:41]URL: /json_proto [15:25:41]Method is POST - this is cgi request [15:25:41]url: /json_proto [15:25:41]query_string will be loaded in cgi processing [15:25:41]execute_cgi json_proto POST (null) [15:25:41]execute_cgi path=json_proto method=POST [15:25:41]POST find Content-Length [15:25:41]Host: 172.17.35.133:8080 [15:25:41]Content-Length: 629 [15:25:41]Content-Type: application/json [15:25:41] [15:25:41]POST finish read [15:25:41]Found Content-Length = 629 [15:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254585", "tax_sys" : 0, "items" : [ { "code": "4620006990387", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,5\u043B", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:41]execute_script... [15:25:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254585", "tax_sys" : 0, "items" : [ { "code": "4620006990387", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,5\u043B", "price" : 550.00, "quantity" : 1.000, "sum" : 550.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 550.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:41]POST & json_proto [15:25:41]process_json_proto [15:25:41]json parsed OK: [15:25:41]protocol is kg_v1.0 [15:25:41]action value=close_receipt [15:25:41]process_action close_receipt [15:25:41]cmd_close_receipt [15:25:41]MH_GetDate [15:25:41]Write to MH i2c: F0 00 00 FE 00 ED [15:25:41]Write i2c OK [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: F0 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: F0 09 00 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: F0 09 00 FE 00 00 76 55 70 66 8C 55 28 65 05 [15:25:41]GetLastDocTimeStamp 1718637897 [15:25:41]current date 1718637942 [15:25:41]FM_GetShiftState [15:25:41]SAM_PROTO_GetShiftState [15:25:41]wFMCommunicate request_size=4 [15:25:41]MH_SAM_APDU [15:25:41]CAPDU: 80 13 01 00 [15:25:41]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [15:25:41]Write i2c OK [15:25:41]MH_I2C_Read... [15:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:41]Read from MH i2c: E2 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: E2 0E 00 [15:25:41]MH_I2C_Read... [15:25:41]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 2E [15:25:41]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:25:41]wFMCommunicate OK [15:25:41]SAM_PROTO_GetShiftState done [15:25:41]FM_GetShiftState done [15:25:41]opened in 1718583887 [15:25:41]opened+sec_in_day 1718670287 [15:25:41]quantity*price = 55000 [15:25:41]sum+1 = 55001 [15:25:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 550.00 НСП 1% : 4.87 НДС 12% : 58.41 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 59 17.06.2024 15:25 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22378 ФПД: 138283949704317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T152542&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22378&fm=138283949704317&tin=02508201610067®Number=0000000000099755&sum=55000 0 [15:25:43]StoreToDocumentArchive [15:25:43]shift 328 fd 22378 [15:25:43]save to /storage/0328/doc_00022378 [15:25:43]save last doc name /storage/0328/doc_00022378 to /storage/kkm_last_doc_name [15:25:43]save OK [15:25:43]Clear old archive folders... [15:25:43]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:25:43]tlvbuf is 007AC0F0 [15:25:43]SAM_PROTO_ClearQueue [15:25:43]wFMCommunicate request_size=4 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 09 00 00 [15:25:43]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [15:25:43]RAPDU: 90 00 [15:25:43]wFMCommunicate OK [15:25:43]SAM_PROTO_ClearQueue done [15:25:43]KKMCreateOFDPacket [15:25:43]OFDProtocolAddRootSTLVToBuf [15:25:43]FM_MakeSignedData [15:25:43]FM_MakeSignedData [15:25:43]SAM_PROTO_SignData [15:25:43]wFMCommunicate request_size=4 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 0D 01 02 [15:25:43]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [15:25:43]RAPDU: 90 00 [15:25:43]wFMCommunicate OK [15:25:43]wFMCommunicate request_size=255 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 76 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [15:25:43]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 76 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 A4 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [15:25:43]RAPDU: 90 00 [15:25:43]wFMCommunicate OK [15:25:43]wFMCommunicate request_size=28 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 0D 02 02 17 36 35 33 34 34 10 04 04 00 6A 57 00 00 35 04 06 00 7D C4 BD B3 44 7D [15:25:43]Write to MH i2c: E2 1F 00 0F 01 80 0D 02 02 17 00 36 35 33 34 34 10 04 04 00 6A 57 00 00 35 04 06 00 7D C4 BD B3 44 7D 00 00 48 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [15:25:43]RAPDU: 90 00 [15:25:43]wFMCommunicate OK [15:25:43]wFMCommunicate request_size=4 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 0D 03 02 [15:25:43]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 0B 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 0B 00 10 01 00 59 A7 B9 FF 6F 46 88 B1 90 00 33 [15:25:43]RAPDU: 59 A7 B9 FF 6F 46 88 B1 90 00 [15:25:43]wFMCommunicate OK [15:25:43]SAM_PROTO_SignData done [15:25:43]FM_MakeSignedData done [15:25:43]CreateOFDProtocolMessage [15:25:43]wFMCommunicate request_size=4 [15:25:43]MH_SAM_APDU [15:25:43]CAPDU: 80 11 00 00 [15:25:43]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:43]Read from MH i2c: E2 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 17 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 DE [15:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:25:43]wFMCommunicate OK [15:25:43]CreateOFDProtocolMessage done [15:25:43]OFDSenderStorePacket 22378 [15:25:43]StoreOFDPacket docnum=22378 [15:25:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 21 01 00 00 9B 76 19 01 46 93 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 76 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6A 57 00 00 35 04 06 00 7D C4 BD B3 44 7D 59 A7 B9 FF 6F 46 88 B1 [15:25:43]CheckFolder [15:25:43]dirname=/storage/ofd_packets [15:25:43]CheckFolder done [15:25:43]ProducePacketName [15:25:43]name=ofd_packets/00022378 [15:25:43]NVStorageSaveData ofd_packets/00022378 [15:25:43]File name is /storage/ofd_packets/00022378 [15:25:43]Write 319 bytes [15:25:43]NVStorageSaveData done [15:25:43]OFDSenderStorePacket done [15:25:43]KKMCreateOFDPacket done [15:25:43]NVStorageSaveData kkm_last_timestamp [15:25:43]File name is /storage/kkm_last_timestamp [15:25:43]Write 4 bytes [15:25:43]NVStorageSaveData done [15:25:43]ExternCall_PrintAddStr [15:25:43]wPrintStart [15:25:43]Write to MH i2c: 01 00 00 12 01 13 [15:25:43]Write i2c OK [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: 01 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: 01 07 00 [15:25:43]MH_I2C_Read... [15:25:43]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [15:25:43]RasterBufferAndPrint [15:25:43]line Счет N : (3)254585 [15:25:43]line ИНН: 02508201610067 [15:25:43]line Контрольно-Кассовый Чек [15:25:43]line ПРОДАЖА [15:25:43]line Товар: 4620006990387 [15:25:43]line Водка Талка 0,5л [15:25:43]line 1.000 * 550.00 [15:25:43]line = 550.00 [15:25:43]line НДС 12% НСП 1% [15:25:43]line > о реализуемом товаре [15:25:43]line ИТОГО: 550.00 [15:25:43]line НСП 1% : 4.87 [15:25:43]line НДС 12% : 58.41 [15:25:43]line Наличными: 550.00 [15:25:43]line Безнал.: 0.00 [15:25:43]line Место: АЗС № 76 "Партнер Нефть" [15:25:43]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [15:25:43]line СНО: Общий режим [15:25:43]line Чек 59 17.06.2024 15:25 [15:25:43]line Смена: 328 ФФД: 1.0 [15:25:43]line ЗНМ: 0300000200 [15:25:43]line РНМ: 0000000000099755 [15:25:43]line Версия ККМ: 001 [15:25:43]line ФМ: 0000000000965344 [15:25:43]line ФД: 22378 [15:25:43]line ФПД: 138283949704317 [15:25:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T152542&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22378&fm=138283949704317&tin=02508201610067®Number=0000000000099755&sum=55000 [15:25:43]line 0 [15:25:43]OFD Sender: Processing packet 22378 [packets to send 5, broken 4] [15:25:43]ProducePacketName [15:25:43]name=ofd_packets/00022378 [15:25:43]OFD Sender: To server: pG, [15:25:43]CommunicateWithHost lk.salyk.kg:30040 [15:25:43]ConnectInit lk.salyk.kg [15:25:43]written 0, free lines is 4095 [15:25:44]Connected sock=10 [15:25:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 21 01 00 00 9B 76 19 01 46 93 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 30 33 38 37 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 D6 00 00 00 00 13 04 06 00 D8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 76 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6A 57 00 00 35 04 06 00 7D C4 BD B3 44 7D 59 A7 B9 FF 6F 46 88 B1 [15:25:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 6E 98 47 00 34 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 39 36 35 33 34 34 10 04 04 00 6A 57 00 00 F4 03 04 00 2D FE 6F 66 B6 04 01 00 00 99 3C 03 47 43 56 A3 EC [15:25:44]CommunicateWithHost err = 0 [15:25:44]CheckOFDResponse [15:25:44]1017 (14) - 77093643461234 [15:25:44]1041 (16) - 0000000000965344 [15:25:44]1040 (4) - 22378 [15:25:44]1012 (4) - 17.06.2024 09:13 [15:25:44]1206 (1) - 0 [15:25:44]OFD Sender: Remove packet 22378 [15:25:44]ProducePacketName [15:25:44]name=ofd_packets/00022378 [15:25:44]NVStorageDeleteData [15:25:44]Write to MH i2c: 01 00 00 3A 01 3B [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: 01 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: 01 07 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 2B 0D 7A [15:25:44]RasterBufferAndPrint [15:25:44]line [15:25:44]line [15:25:44]line [15:25:44]line [15:25:44]line [15:25:44]written 0, free lines is 3378 [15:25:44]MH_Cut [15:25:44]Write to MH i2c: D1 01 00 41 01 01 14 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: D1 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: D1 01 00 [15:25:44]MH_I2C_Read... [15:25:44]Read from MH i2c: D1 01 00 41 01 00 13 [15:25:44]Write to MH i2c: 01 00 00 42 01 43 [15:25:44]Write i2c OK [15:25:44]MH_I2C_Read... [15:25:44]OFD Sender: No OFD packet to send [15:25:45]*** Cut start [15:25:45]*** Partial cut [15:25:45]*** CUTSNS_PIN = 1 [15:25:45]*** CUTSNS_PIN = 0 [15:25:45]*** Brake cut motor [15:25:45]Read from MH i2c: 01 [15:25:45]MH_I2C_Read... [15:25:45]*** Stop cut motor [15:25:45]*** Cut end [15:25:45]Read from MH i2c: 01 07 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [15:25:45]process_action close_receipt done [15:25:45]requested_data is exist [15:25:45]produce_requested_data [15:25:45]requested_item fm.sn is exist - process it [15:25:45]wFMCommunicate request_size=4 [15:25:45]MH_SAM_APDU [15:25:45]CAPDU: 80 11 00 00 [15:25:45]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 17 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 10 [15:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:25:45]wFMCommunicate OK [15:25:45]requested_item fd.num is exist - process it [15:25:45]SAM_PROTO_GetFieldsCounters [15:25:45]wFMCommunicate request_size=4 [15:25:45]MH_SAM_APDU [15:25:45]CAPDU: 80 13 00 00 [15:25:45]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 62 00 [15:25:45]MH_I2C_Read... [15:25:45]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 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 6A 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [15:25:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 6A 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:45]wFMCommunicate OK [15:25:45]SAM_PROTO_GetFieldsCounters done [15:25:45]requested_item shift.num is exist - process it [15:25:45]requested_item shift.opened is exist - process it [15:25:45]req_shift_opened [15:25:45]FM_GetShiftState [15:25:45]SAM_PROTO_GetShiftState [15:25:45]wFMCommunicate request_size=4 [15:25:45]MH_SAM_APDU [15:25:45]CAPDU: 80 13 01 00 [15:25:45]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [15:25:45]Write i2c OK [15:25:45]MH_I2C_Read... [15:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:45]Read from MH i2c: E2 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 0E 00 [15:25:45]MH_I2C_Read... [15:25:45]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 75 [15:25:45]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:25:45]wFMCommunicate OK [15:25:45]SAM_PROTO_GetShiftState done [15:25:45]FM_GetShiftState done [15:25:45]req_shift_opened done [15:25:45]requested_item shift.open_date is exist - process it [15:25:45]req_shift_open_date [15:25:45]req_shift_open_date done [15:25:45]produce_requested_data done [15:25:45]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22378,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [15:25:45]process_action_free close_receipt [15:25:45]json_value_free [15:25:45]json_value_free done [15:25:45]process_json_proto returns [15:25:45]Send response to host [15:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22378,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [15:25:45]free response buf [15:25:45]execute_script done [15:25:45]execute_script returns [15:25:45]free content buf [15:25:45]Sock 7.Close socket [15:25:45]Sock 7.Thread stoped [15:25:47]accept exits with 9 [15:25:47]New connection [15:25:47]New thread 3066858852 created [15:25:47]Thread 3066715492 joined [15:25:47]Waiting for new connection... [15:25:47] Sock 9.Parse request [15:25:47]Sock 9.Check first char [15:25:47]Sock 9.First char is OK [15:25:47]request: POST /json_proto HTTP/1.0 [15:25:47]Method: POST [15:25:47]URL: /json_proto [15:25:47]Method is POST - this is cgi request [15:25:47]url: /json_proto [15:25:47]query_string will be loaded in cgi processing [15:25:47]execute_cgi json_proto POST (null) [15:25:47]execute_cgi path=json_proto method=POST [15:25:47]POST find Content-Length [15:25:47]Host: 172.17.35.133:8080 [15:25:47]Content-Length: 626 [15:25:47]Content-Type: application/json [15:25:47] [15:25:47]POST finish read [15:25:47]Found Content-Length = 626 [15:25:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254586", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:47]execute_script... [15:25:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254586", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:47]POST & json_proto [15:25:47]process_json_proto [15:25:47]json parsed OK: [15:25:47]protocol is kg_v1.0 [15:25:47]action value=close_receipt [15:25:47]process_action close_receipt [15:25:47]cmd_close_receipt [15:25:47]MH_GetDate [15:25:47]Write to MH i2c: F0 00 00 46 01 36 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: F0 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: F0 09 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: F0 09 00 46 01 00 7B 55 70 66 8C 55 28 65 53 [15:25:47]GetLastDocTimeStamp 1718637942 [15:25:47]current date 1718637947 [15:25:47]FM_GetShiftState [15:25:47]SAM_PROTO_GetShiftState [15:25:47]wFMCommunicate request_size=4 [15:25:47]MH_SAM_APDU [15:25:47]CAPDU: 80 13 01 00 [15:25:47]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [15:25:47]Write i2c OK [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 [15:25:47]MH_I2C_Read... [15:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:47]Read from MH i2c: E2 0E 00 [15:25:47]MH_I2C_Read... [15:25:47]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 77 [15:25:47]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:25:47]wFMCommunicate OK [15:25:47]SAM_PROTO_GetShiftState done [15:25:47]FM_GetShiftState done [15:25:47]opened in 1718583887 [15:25:47]opened+sec_in_day 1718670287 [15:25:47]quantity*price = 11500 [15:25:47]sum+1 = 11501 [15:25:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 60 17.06.2024 15:25 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22379 ФПД: 271668190733573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T152547&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22379&fm=271668190733573&tin=02508201610067®Number=0000000000099755&sum=11500 0 [15:25:48]StoreToDocumentArchive [15:25:48]shift 328 fd 22379 [15:25:48]save to /storage/0328/doc_00022379 [15:25:48]save last doc name /storage/0328/doc_00022379 to /storage/kkm_last_doc_name [15:25:48]save OK [15:25:48]Clear old archive folders... [15:25:48]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:25:48]tlvbuf is 007BF2D0 [15:25:48]SAM_PROTO_ClearQueue [15:25:48]wFMCommunicate request_size=4 [15:25:48]MH_SAM_APDU [15:25:48]CAPDU: 80 09 00 00 [15:25:48]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:48]Read from MH i2c: E2 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [15:25:48]RAPDU: 90 00 [15:25:48]wFMCommunicate OK [15:25:48]SAM_PROTO_ClearQueue done [15:25:48]KKMCreateOFDPacket [15:25:48]OFDProtocolAddRootSTLVToBuf [15:25:48]FM_MakeSignedData [15:25:48]FM_MakeSignedData [15:25:48]SAM_PROTO_SignData [15:25:48]wFMCommunicate request_size=4 [15:25:48]MH_SAM_APDU [15:25:48]CAPDU: 80 0D 01 02 [15:25:48]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:48]Read from MH i2c: E2 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [15:25:48]RAPDU: 90 00 [15:25:48]wFMCommunicate OK [15:25:48]wFMCommunicate request_size=255 [15:25:48]MH_SAM_APDU [15:25:48]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 7B 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 [15:25:48]Write to MH i2c: E2 02 01 56 01 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 7B 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 00 00 A0 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:48]Read from MH i2c: E2 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [15:25:48]RAPDU: 90 00 [15:25:48]wFMCommunicate OK [15:25:48]wFMCommunicate request_size=33 [15:25:48]MH_SAM_APDU [15:25:48]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6B 57 00 00 35 04 06 00 F7 14 AE 01 65 05 [15:25:48]Write to MH i2c: E2 24 00 57 01 80 0D 02 02 1C 00 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6B 57 00 00 35 04 06 00 F7 14 AE 01 65 05 00 00 46 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:48]Read from MH i2c: E2 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [15:25:48]RAPDU: 90 00 [15:25:48]wFMCommunicate OK [15:25:48]wFMCommunicate request_size=4 [15:25:48]MH_SAM_APDU [15:25:48]CAPDU: 80 0D 03 02 [15:25:48]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:48]Read from MH i2c: E2 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 0B 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 0B 00 58 01 00 8A 1E C6 62 9F 3E 34 16 90 00 CC [15:25:48]RAPDU: 8A 1E C6 62 9F 3E 34 16 90 00 [15:25:48]wFMCommunicate OK [15:25:48]SAM_PROTO_SignData done [15:25:48]FM_MakeSignedData done [15:25:48]CreateOFDProtocolMessage [15:25:48]wFMCommunicate request_size=4 [15:25:48]MH_SAM_APDU [15:25:48]CAPDU: 80 11 00 00 [15:25:48]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:48]Read from MH i2c: E2 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 17 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 26 [15:25:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:25:48]wFMCommunicate OK [15:25:48]CreateOFDProtocolMessage done [15:25:48]OFDSenderStorePacket 22379 [15:25:48]StoreOFDPacket docnum=22379 [15:25:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 26 01 00 00 78 3E 1E 01 F6 DB 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 7B 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6B 57 00 00 35 04 06 00 F7 14 AE 01 65 05 8A 1E C6 62 9F 3E 34 16 [15:25:48]CheckFolder [15:25:48]dirname=/storage/ofd_packets [15:25:48]CheckFolder done [15:25:48]ProducePacketName [15:25:48]name=ofd_packets/00022379 [15:25:48]NVStorageSaveData ofd_packets/00022379 [15:25:48]File name is /storage/ofd_packets/00022379 [15:25:48]Write 324 bytes [15:25:48]NVStorageSaveData done [15:25:48]OFDSenderStorePacket done [15:25:48]KKMCreateOFDPacket done [15:25:48]NVStorageSaveData kkm_last_timestamp [15:25:48]File name is /storage/kkm_last_timestamp [15:25:48]Write 4 bytes [15:25:48]NVStorageSaveData done [15:25:48]ExternCall_PrintAddStr [15:25:48]wPrintStart [15:25:48]Write to MH i2c: 01 00 00 5A 01 5B [15:25:48]Write i2c OK [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: 01 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: 01 07 00 [15:25:48]MH_I2C_Read... [15:25:48]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [15:25:48]RasterBufferAndPrint [15:25:48]line Счет N : (3)254586 [15:25:48]line ИНН: 02508201610067 [15:25:48]line Контрольно-Кассовый Чек [15:25:48]line ПРОДАЖА [15:25:48]line Товар: 2000036240010 [15:25:48]line Кофе Латте (GABB TRADE) [15:25:48]line 1.000 * 115.00 [15:25:48]line = 115.00 [15:25:48]line НДС 12% НСП 1% [15:25:48]line > о реализуемом товаре [15:25:48]line ИТОГО: 115.00 [15:25:48]line НСП 1% : 1.02 [15:25:48]line НДС 12% : 12.21 [15:25:48]line Наличными: 115.00 [15:25:48]line Безнал.: 0.00 [15:25:48]line Место: АЗС № 76 "Партнер Нефть" [15:25:48]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [15:25:48]line СНО: Общий режим [15:25:48]line Чек 60 17.06.2024 15:25 [15:25:48]line Смена: 328 ФФД: 1.0 [15:25:48]line ЗНМ: 0300000200 [15:25:48]line РНМ: 0000000000099755 [15:25:48]line Версия ККМ: 001 [15:25:48]line ФМ: 0000000000965344 [15:25:48]line ФД: 22379 [15:25:48]line ФПД: 271668190733573 [15:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T152547&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22379&fm=271668190733573&tin=02508201610067®Number=0000000000099755&sum=11500 [15:25:48]line 0 [15:25:48]written 0, free lines is 4095 [15:25:48]OFD Sender: Processing packet 22379 [packets to send 5, broken 4] [15:25:48]ProducePacketName [15:25:48]name=ofd_packets/00022379 [15:25:48]OFD Sender: To server: pG, [15:25:48]CommunicateWithHost lk.salyk.kg:30040 [15:25:48]ConnectInit lk.salyk.kg [15:25:49]Connected sock=11 [15:25:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 26 01 00 00 78 3E 1E 01 F6 DB 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 7B 55 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6B 57 00 00 35 04 06 00 F7 14 AE 01 65 05 8A 1E C6 62 9F 3E 34 16 [15:25:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 4F 00 00 00 4D FC 47 00 AE 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 39 36 35 33 34 34 10 04 04 00 6B 57 00 00 F4 03 04 00 32 FE 6F 66 B6 04 01 00 00 01 97 45 7C 95 D1 89 45 [15:25:49]CommunicateWithHost err = 0 [15:25:49]CheckOFDResponse [15:25:49]1017 (14) - 77093643461234 [15:25:49]1041 (16) - 0000000000965344 [15:25:49]1040 (4) - 22379 [15:25:49]1012 (4) - 17.06.2024 09:13 [15:25:49]1206 (1) - 0 [15:25:49]OFD Sender: Remove packet 22379 [15:25:49]ProducePacketName [15:25:49]name=ofd_packets/00022379 [15:25:49]NVStorageDeleteData [15:25:49]Write to MH i2c: 01 00 00 82 01 83 [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: 01 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: 01 07 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 3D 0D D4 [15:25:49]RasterBufferAndPrint [15:25:49]line [15:25:49]line [15:25:49]line [15:25:49]line [15:25:49]line [15:25:49]written 0, free lines is 3398 [15:25:49]MH_Cut [15:25:49]Write to MH i2c: D1 01 00 89 01 01 5C [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: D1 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: D1 01 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: D1 01 00 89 01 00 5B [15:25:49]Write to MH i2c: 01 00 00 8A 01 8B [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]OFD Sender: No OFD packet to send [15:25:49]*** Cut start [15:25:49]*** Partial cut [15:25:49]*** CUTSNS_PIN = 1 [15:25:50]*** CUTSNS_PIN = 0 [15:25:50]*** Brake cut motor [15:25:50]Read from MH i2c: 01 [15:25:50]MH_I2C_Read... [15:25:50]*** Stop cut motor [15:25:50]*** Cut end [15:25:50]Read from MH i2c: 01 07 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [15:25:50]process_action close_receipt done [15:25:50]requested_data is exist [15:25:50]produce_requested_data [15:25:50]requested_item fm.sn is exist - process it [15:25:50]wFMCommunicate request_size=4 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 11 00 00 [15:25:50]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 17 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 58 [15:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:25:50]wFMCommunicate OK [15:25:50]requested_item fd.num is exist - process it [15:25:50]SAM_PROTO_GetFieldsCounters [15:25:50]wFMCommunicate request_size=4 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 13 00 00 [15:25:50]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 62 00 [15:25:50]MH_I2C_Read... [15:25:50]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 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 6B 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [15:25:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 6B 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:50]wFMCommunicate OK [15:25:50]SAM_PROTO_GetFieldsCounters done [15:25:50]requested_item shift.num is exist - process it [15:25:50]requested_item shift.opened is exist - process it [15:25:50]req_shift_opened [15:25:50]FM_GetShiftState [15:25:50]SAM_PROTO_GetShiftState [15:25:50]wFMCommunicate request_size=4 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 13 01 00 [15:25:50]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 0E 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 BD [15:25:50]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:25:50]wFMCommunicate OK [15:25:50]SAM_PROTO_GetShiftState done [15:25:50]FM_GetShiftState done [15:25:50]req_shift_opened done [15:25:50]requested_item shift.open_date is exist - process it [15:25:50]req_shift_open_date [15:25:50]req_shift_open_date done [15:25:50]produce_requested_data done [15:25:50]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22379,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [15:25:50]process_action_free close_receipt [15:25:50]json_value_free [15:25:50]json_value_free done [15:25:50]process_json_proto returns [15:25:50]Send response to host [15:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22379,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [15:25:50]free response buf [15:25:50]execute_script done [15:25:50]execute_script returns [15:25:50]free content buf [15:25:50]Sock 9.Close socket [15:25:50]Sock 9.Thread stoped [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:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]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 [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [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 9C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 41 [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 540000000057259C (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: 21496260+1697142156=1718638416 [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 = 0x33540623 [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 9C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 42 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 51 57 70 66 8C 55 28 65 EB [15:33:37]Current date/time: 17.06.2024 15:33 [15:33:37]FM_Init [15:33:37]wFMConnect [15:33:37]MH_SAM_On [15:33:37]Write to MH i2c: E0 00 00 08 00 E7 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_init finished! [15:33:37]*** atr: [15:33:37]*** 0F 3B D5 18 FF 81 91 FE [15:33:37]*** 1F C3 80 73 C8 21 10 0A [15:33:37]*** 00 00 00 00 00 00 00 00 [15:33:37]*** 00 00 00 00 00 00 00 00 [15:33:37]*** 00 00 00 00 00 00 00 00 [15:33:37]*** 00 00 00 00 00 00 00 00 [15:33:37]*** 00 00 00 00 00 00 00 00 [15:33:37]*** 00 00 00 00 00 00 00 00 [15:33:37]Read from MH i2c: E0 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E0 10 00 [15:33:37]MH_I2C_Read... [15:33:37]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 [15:33:37]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:33:37]wFMCommunicate request_size=10 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:33:37]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 03 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:33:37]RAPDU: 90 00 [15:33:37]wFMCommunicate OK [15:33:37]wFMCommunicate request_size=4 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 11 00 00 [15:33:37]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 17 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 D6 [15:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:33:37]wFMCommunicate OK [15:33:37]Detected FM SN is 0000000000965344 [15:33:37]Stored FM SN is 0000000000965344 [15:33:37]wFMCommunicate request_size=9 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 16 00 00 04 20 41 00 00 [15:33:37]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 20 41 00 00 00 00 F3 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 03 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:33:37]RAPDU: 90 00 [15:33:37]wFMCommunicate OK [15:33:37]FM PIN OK [15:33:37]wFMCommunicate request_size=8 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 14 04 00 03 02 00 01 [15:33:37]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 03 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:33:37]RAPDU: 90 00 [15:33:37]wFMCommunicate OK [15:33:37]wFMCommunicate request_size=13 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:33:37]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 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 03 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:33:37]RAPDU: 90 00 [15:33:37]wFMCommunicate OK [15:33:37]wFMCommunicate request_size=4 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 11 00 00 [15:33:37]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 17 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 DA [15:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:33:37]wFMCommunicate OK [15:33:37]DocumentArchiveInit [15:33:37]Start Httpd... [15:33:37]Httpd thread 3067399524 created [15:33:37]Write to MH i2c: 01 00 00 0F 00 0F [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: 01 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: 01 07 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:33:37]MH Int Process started [15:33:37]Allocated Socket 7 [15:33:37]Bind OK [15:33:37]Listen OK [15:33:37]httpd running on port 8080 [15:33:37]Waiting for new connection... [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:31]accept exits with 9 [15:34:31]New connection [15:34:31]New thread 3067112804 created [15:34:31]Waiting for new connection... [15:34:31] Sock 9.Parse request [15:34:31]Sock 9.Check first char [15:34:31]Sock 9.First char is OK [15:34:31]request: POST /json_proto HTTP/1.0 [15:34:31]Method: POST [15:34:31]URL: /json_proto [15:34:31]Method is POST - this is cgi request [15:34:31]url: /json_proto [15:34:31]query_string will be loaded in cgi processing [15:34:31]execute_cgi json_proto POST (null) [15:34:31]execute_cgi path=json_proto method=POST [15:34:31]POST find Content-Length [15:34:31]Host: 172.17.35.133:8080 [15:34:31]Content-Length: 711 [15:34:31]Content-Type: application/json [15:34:31] [15:34:31]POST finish read [15:34:31]Found Content-Length = 711 [15:34:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254587", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:31]execute_script... [15:34:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)254587", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 113.00, "quantity" : 1.000, "sum" : 113.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 113.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:31]POST & json_proto [15:34:31]process_json_proto [15:34:31]json parsed OK: [15:34:31]protocol is kg_v1.0 [15:34:31]action value=close_receipt [15:34:31]process_action close_receipt [15:34:31]cmd_close_receipt [15:34:31]MH_GetDate [15:34:31]Write to MH i2c: F0 00 00 10 00 FF [15:34:31]Write i2c OK [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: F0 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: F0 09 00 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: F0 09 00 10 00 00 87 57 70 66 8C 55 28 65 2A [15:34:31]GetLastDocTimeStamp 1718637947 [15:34:31]current date 1718638471 [15:34:31]FM_GetShiftState [15:34:31]SAM_PROTO_GetShiftState [15:34:31]wFMCommunicate request_size=4 [15:34:31]MH_SAM_APDU [15:34:31]CAPDU: 80 13 01 00 [15:34:31]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [15:34:31]Write i2c OK [15:34:31]MH_I2C_Read... [15:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:31]Read from MH i2c: E2 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 0E 00 [15:34:31]MH_I2C_Read... [15:34:31]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 40 [15:34:31]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:34:31]wFMCommunicate OK [15:34:31]SAM_PROTO_GetShiftState done [15:34:31]FM_GetShiftState done [15:34:31]opened in 1718583887 [15:34:31]opened+sec_in_day 1718670287 [15:34:31]quantity*price = 11300 [15:34:31]sum+1 = 11301 [15:34:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.00 НСП 1% : 1.00 НДС 12% : 12.00 Наличными: 113.00 Безнал.: 0.00 Место: АЗС № 76 "Партнер Нефть" Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 СНО: Общий режим Чек 61 17.06.2024 15:34 Смена: 328 ФФД: 1.0 ЗНМ: 0300000200 РНМ: 0000000000099755 Версия ККМ: 001 ФМ: 0000000000965344 ФД: 22380 ФПД: 71215062826688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T153431&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22380&fm=71215062826688&tin=02508201610067®Number=0000000000099755&sum=11300 0 [15:34:32]StoreToDocumentArchive [15:34:32]shift 328 fd 22380 [15:34:32]save to /storage/0328/doc_00022380 [15:34:32]save last doc name /storage/0328/doc_00022380 to /storage/kkm_last_doc_name [15:34:32]save OK [15:34:32]Clear old archive folders... [15:34:32]ProcessDocumentItem done err = 0, tmpTLVsize=303 [15:34:32]tlvbuf is 01AB2B90 [15:34:32]SAM_PROTO_ClearQueue [15:34:32]wFMCommunicate request_size=4 [15:34:32]MH_SAM_APDU [15:34:32]CAPDU: 80 09 00 00 [15:34:32]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [15:34:32]Write i2c OK [15:34:32]MH_I2C_Read... [15:34:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:32]Read from MH i2c: E2 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 03 00 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [15:34:32]RAPDU: 90 00 [15:34:32]wFMCommunicate OK [15:34:32]SAM_PROTO_ClearQueue done [15:34:32]KKMCreateOFDPacket [15:34:32]OFDProtocolAddRootSTLVToBuf [15:34:32]FM_MakeSignedData [15:34:32]FM_MakeSignedData [15:34:32]SAM_PROTO_SignData [15:34:32]wFMCommunicate request_size=4 [15:34:32]MH_SAM_APDU [15:34:32]CAPDU: 80 0D 01 02 [15:34:32]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [15:34:32]Write i2c OK [15:34:32]MH_I2C_Read... [15:34:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:32]Read from MH i2c: E2 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 03 00 [15:34:32]MH_I2C_Read... [15:34:32]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [15:34:32]RAPDU: 90 00 [15:34:32]wFMCommunicate OK [15:34:32]wFMCommunicate request_size=255 [15:34:32]MH_SAM_APDU [15:34:32]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 87 57 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D [15:34:32]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 87 57 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 00 00 9D [15:34:32]Write i2c OK [15:34:32]MH_I2C_Read... [15:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:33]Read from MH i2c: E2 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: E2 03 00 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [15:34:33]RAPDU: 90 00 [15:34:33]wFMCommunicate OK [15:34:33]wFMCommunicate request_size=62 [15:34:33]MH_SAM_APDU [15:34:33]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6C 57 00 00 35 04 06 00 40 C5 0C 85 BE C0 [15:34:33]Write to MH i2c: E2 41 00 21 00 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6C 57 00 00 35 04 06 00 40 C5 0C 85 BE C0 00 00 B6 [15:34:33]Write i2c OK [15:34:33]MH_I2C_Read... [15:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:33]Read from MH i2c: E2 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: E2 03 00 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [15:34:33]RAPDU: 90 00 [15:34:33]wFMCommunicate OK [15:34:33]wFMCommunicate request_size=4 [15:34:33]MH_SAM_APDU [15:34:33]CAPDU: 80 0D 03 02 [15:34:33]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [15:34:33]Write i2c OK [15:34:33]MH_I2C_Read... [15:34:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:33]Read from MH i2c: E2 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: E2 0B 00 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: E2 0B 00 22 00 00 48 37 A7 17 44 32 DB E9 90 00 15 [15:34:33]RAPDU: 48 37 A7 17 44 32 DB E9 90 00 [15:34:33]wFMCommunicate OK [15:34:33]SAM_PROTO_SignData done [15:34:33]FM_MakeSignedData done [15:34:33]CreateOFDProtocolMessage [15:34:33]wFMCommunicate request_size=4 [15:34:33]MH_SAM_APDU [15:34:33]CAPDU: 80 11 00 00 [15:34:33]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [15:34:33]Write i2c OK [15:34:33]MH_I2C_Read... [15:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:33]Read from MH i2c: E2 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: E2 17 00 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 EF [15:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:34:33]wFMCommunicate OK [15:34:33]CreateOFDProtocolMessage done [15:34:33]OFDSenderStorePacket 22380 [15:34:33]StoreOFDPacket docnum=22380 [15:34:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 43 01 00 00 3A 6B 3B 01 82 D4 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 04 00 00 00 00 07 04 06 00 24 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 87 57 70 66 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 10 04 04 00 6C 57 00 00 35 04 06 00 40 C5 0C 85 BE C0 48 37 A7 17 44 32 DB E9 [15:34:33]CheckFolder [15:34:33]dirname=/storage/ofd_packets [15:34:33]CheckFolder done [15:34:33]ProducePacketName [15:34:33]name=ofd_packets/00022380 [15:34:33]NVStorageSaveData ofd_packets/00022380 [15:34:33]File name is /storage/ofd_packets/00022380 [15:34:33]Write 353 bytes [15:34:33]NVStorageSaveData done [15:34:33]OFDSenderStorePacket done [15:34:33]KKMCreateOFDPacket done [15:34:33]NVStorageSaveData kkm_last_timestamp [15:34:33]File name is /storage/kkm_last_timestamp [15:34:33]Write 4 bytes [15:34:33]NVStorageSaveData done [15:34:33]ExternCall_PrintAddStr [15:34:33]wPrintStart [15:34:33]Write to MH i2c: 01 00 00 24 00 24 [15:34:33]Write i2c OK [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: 01 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: 01 07 00 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [15:34:33]RasterBufferAndPrint [15:34:33]line Счет N : (3)254587 [15:34:33]line ИНН: 02508201610067 [15:34:33]line Контрольно-Кассовый Чек [15:34:33]line ПРОДАЖА [15:34:33]line Товар: 4870202521216 [15:34:33]line Напиток MAXI чай 1,2 зел.лимон (новый) [15:34:33]line 1.000 * 113.00 [15:34:33]line = 113.00 [15:34:33]line НДС 12% НСП 1% [15:34:33]line > о реализуемом товаре [15:34:33]line ИТОГО: 113.00 [15:34:33]line НСП 1% : 1.00 [15:34:33]line НДС 12% : 12.00 [15:34:33]line Наличными: 113.00 [15:34:33]line Безнал.: 0.00 [15:34:33]line Место: АЗС № 76 "Партнер Нефть" [15:34:33]line Адрес: 720001, с. Чат-Базар, трасса Талас-Суусамыр, 42.485056, 72.552224 [15:34:33]line СНО: Общий режим [15:34:33]line Чек 61 17.06.2024 15:34 [15:34:33]line Смена: 328 ФФД: 1.0 [15:34:33]line ЗНМ: 0300000200 [15:34:33]line РНМ: 0000000000099755 [15:34:33]line Версия ККМ: 001 [15:34:33]line ФМ: 0000000000965344 [15:34:33]line ФД: 22380 [15:34:33]line ФПД: 71215062826688 [15:34:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240617T153431&type=1&operation_type=1&fn_number=0000000000965344&fd_number=22380&fm=71215062826688&tin=02508201610067®Number=0000000000099755&sum=11300 [15:34:33]OFD Sender: Processing packet 22380 [packets to send 5, broken 4] [15:34:33]ProducePacketName [15:34:33]name=ofd_packets/00022380 [15:34:33]OFD Sender: To server: pG, [15:34:33]CommunicateWithHost lk.salyk.kg:30040 [15:34:33]ConnectInit lk.salyk.kg [15:34:33]line 0 [15:34:33]written 0, free lines is 4095 [15:34:34]Write to MH i2c: 01 00 00 4D 00 4D [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: 01 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: 01 07 00 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: 01 07 00 4D 00 00 00 00 00 00 11 0D 72 [15:34:34]RasterBufferAndPrint [15:34:34]line [15:34:34]line [15:34:34]line [15:34:34]line [15:34:34]line [15:34:34]written 0, free lines is 3351 [15:34:34]MH_Cut [15:34:34]Write to MH i2c: D1 01 00 54 00 01 26 [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: D1 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: D1 01 00 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: D1 01 00 54 00 00 25 [15:34:34]Write to MH i2c: 01 00 00 55 00 55 [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]*** Cut start [15:34:34]*** Partial cut [15:34:34]*** CUTSNS_PIN = 1 [15:34:34]*** CUTSNS_PIN = 0 [15:34:35]*** Brake cut motor [15:34:35]Read from MH i2c: 01 [15:34:35]MH_I2C_Read... [15:34:35]*** Stop cut motor [15:34:35]*** Cut end [15:34:35]Read from MH i2c: 01 07 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 07 00 55 00 00 00 00 00 00 FF 0F 6A [15:34:35]process_action close_receipt done [15:34:35]requested_data is exist [15:34:35]produce_requested_data [15:34:35]requested_item fm.sn is exist - process it [15:34:35]wFMCommunicate request_size=4 [15:34:35]MH_SAM_APDU [15:34:35]CAPDU: 80 11 00 00 [15:34:35]Write to MH i2c: E2 08 00 56 00 80 11 00 00 00 00 00 00 D0 [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:35]Read from MH i2c: E2 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: E2 17 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: E2 17 00 56 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 22 [15:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:34:35]wFMCommunicate OK [15:34:35]requested_item fd.num is exist - process it [15:34:35]SAM_PROTO_GetFieldsCounters [15:34:35]wFMCommunicate request_size=4 [15:34:35]MH_SAM_APDU [15:34:35]CAPDU: 80 13 00 00 [15:34:35]Write to MH i2c: E2 08 00 57 00 80 13 00 00 00 00 00 00 D3 [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:35]Read from MH i2c: E2 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: E2 62 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: E2 62 00 57 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 6C 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [15:34:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 39 37 35 35 10 04 04 00 6C 57 00 00 0E 04 04 00 48 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:35]wFMCommunicate OK [15:34:35]SAM_PROTO_GetFieldsCounters done [15:34:35]requested_item shift.num is exist - process it [15:34:35]requested_item shift.opened is exist - process it [15:34:35]req_shift_opened [15:34:35]FM_GetShiftState [15:34:35]SAM_PROTO_GetShiftState [15:34:35]wFMCommunicate request_size=4 [15:34:35]MH_SAM_APDU [15:34:35]CAPDU: 80 13 01 00 [15:34:35]Write to MH i2c: E2 08 00 58 00 80 13 01 00 00 00 00 00 D5 [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:35]Read from MH i2c: E2 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: E2 0E 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: E2 0E 00 58 00 00 09 00 01 4F 82 6F 66 00 00 00 00 90 00 87 [15:34:35]RAPDU: 09 00 01 4F 82 6F 66 00 00 00 00 90 00 [15:34:35]wFMCommunicate OK [15:34:35]SAM_PROTO_GetShiftState done [15:34:35]FM_GetShiftState done [15:34:35]req_shift_opened done [15:34:35]requested_item shift.open_date is exist - process it [15:34:35]req_shift_open_date [15:34:35]req_shift_open_date done [15:34:35]produce_requested_data done [15:34:35]produce_requested_data return {"fm.sn":"0000000000965344","fd.num":22380,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887} [15:34:35]process_action_free close_receipt [15:34:35]json_value_free [15:34:35]json_value_free done [15:34:35]process_json_proto returns [15:34:35]Send response to host [15:34:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965344","fd.num":22380,"shift.num":328,"shift.opened":1,"shift.open_date":1718583887}}} [15:34:35]free response buf [15:34:35]execute_script done [15:34:35]execute_script returns [15:34:35]free content buf [15:34:35]Sock 9.Close socket [15:34:35]Sock 9.Thread stoped [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]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 9C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 41 [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057259C (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: 21496462+1697142156=1718638618 [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 = 0x33540623 [00:00:10]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [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 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 9C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 42 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 1B 58 70 66 8C 55 28 65 B6 [15:36:59]Current date/time: 17.06.2024 15:36 [15:36:59]FM_Init [15:36:59]wFMConnect [15:36:59]MH_SAM_On [15:36:59]Write to MH i2c: E0 00 00 08 00 E7 [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]*** iso7816_init finished! [15:36:59]*** atr: [15:36:59]*** 0F 3B D5 18 FF 81 91 FE [15:36:59]*** 1F C3 80 73 C8 21 10 0A [15:36:59]*** 00 00 00 00 00 00 00 00 [15:36:59]*** 00 00 00 00 00 00 00 00 [15:36:59]*** 00 00 00 00 00 00 00 00 [15:36:59]*** 00 00 00 00 00 00 00 00 [15:36:59]*** 00 00 00 00 00 00 00 00 [15:36:59]*** 00 00 00 00 00 00 00 00 [15:36:59]Read from MH i2c: E0 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E0 10 00 [15:36:59]MH_I2C_Read... [15:36:59]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 [15:36:59]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:36:59]wFMCommunicate request_size=10 [15:36:59]MH_SAM_APDU [15:36:59]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:36:59]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:36:59]Read from MH i2c: E2 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 03 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:36:59]RAPDU: 90 00 [15:36:59]wFMCommunicate OK [15:36:59]wFMCommunicate request_size=4 [15:36:59]MH_SAM_APDU [15:36:59]CAPDU: 80 11 00 00 [15:36:59]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:59]Read from MH i2c: E2 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 17 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 D6 [15:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:36:59]wFMCommunicate OK [15:36:59]Detected FM SN is 0000000000965344 [15:36:59]Stored FM SN is 0000000000965344 [15:36:59]wFMCommunicate request_size=9 [15:36:59]MH_SAM_APDU [15:36:59]CAPDU: 80 16 00 00 04 20 41 00 00 [15:36:59]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 20 41 00 00 00 00 F3 [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:36:59]Read from MH i2c: E2 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 03 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:36:59]RAPDU: 90 00 [15:36:59]wFMCommunicate OK [15:36:59]FM PIN OK [15:36:59]wFMCommunicate request_size=8 [15:36:59]MH_SAM_APDU [15:36:59]CAPDU: 80 14 04 00 03 02 00 01 [15:36:59]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:36:59]Read from MH i2c: E2 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 03 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:36:59]RAPDU: 90 00 [15:36:59]wFMCommunicate OK [15:36:59]wFMCommunicate request_size=13 [15:36:59]MH_SAM_APDU [15:36:59]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:36:59]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 [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:36:59]Read from MH i2c: E2 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 03 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:36:59]RAPDU: 90 00 [15:36:59]wFMCommunicate OK [15:36:59]wFMCommunicate request_size=4 [15:36:59]MH_SAM_APDU [15:36:59]CAPDU: 80 11 00 00 [15:36:59]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:59]Read from MH i2c: E2 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 17 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 DA [15:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 34 90 00 [15:36:59]wFMCommunicate OK [15:36:59]DocumentArchiveInit [15:36:59]Start Httpd... [15:36:59]Httpd thread 3067796836 created [15:36:59]Write to MH i2c: 01 00 00 0F 00 0F [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: 01 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: 01 07 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:36:59]MH Int Process started [15:36:59]Allocated Socket 8 [15:36:59]Bind OK [15:36:59]Listen OK [15:36:59]httpd running on port 8080 [15:36:59]Waiting for new connection... [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send